74763 Commits

Author SHA1 Message Date
Jeff Sharkey
854b2b1670 Surface list of apps with given network policy.
Bug: 6007276
Change-Id: I0f0e939ee6481496480c4afaa108c99eb158547c
2012-04-13 19:46:33 -07:00
Jamie Gennis
721bfaa63d SurfaceTexture: fix updateTexImage JNI
Sigh...

Change-Id: I0271bed44c58e0c9a03eda4886eb2c1ee76e041f
2012-04-13 19:14:37 -07:00
Svetoslav Ganov
4213804541 Accessibility focus - framework
Usefulness: Keep track of the current user location in the screen when
            traversing the it. Enabling structural and directional
            navigation over all elements on the screen. This enables
            blind users that know the application layout to efficiently
            locate desired elements as opposed to try touch exploring the
            region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
           to let accessibility services keep track of it since they
           have access to the screen content, and another to let the view
           hierarchy keep track of it. While the first approach would
           require almost no work on our part it poses several challenges
           which make it a sub-optimal choice. Having the accessibility focus
           in the accessibility service would require that service to scrape
           the window content every time it changes to sync the view tree
           state and the accessibility focus location. Pretty much the service
           will have to keep an off screen model of the screen content. This
           could be quite challenging to get right and would incur performance
           cost for the multiple IPCs to repeatedly fetch the screen content.
           Further, keeping virtual accessibility focus (i.e. in the service)
           would require sync of the input and accessibility focus. This could
           be challenging to implement right as well. Also, having an unlimited
           number of accessibility services we cannot guarantee that they will
           have a proper implementation, if any, to allow users to perform structural
           navigation of the screen content. Assuming two accessibility
           services implement structural navigation via accessibility focus,
           there is not guarantee that they will behave similarly by default,
           i.e. provide some standard way to navigate the screen content.
           Also feedback from experienced accessibility researchers, specifically
           T.V Raman, provides evidence that having virtual accessibility focus
           creates many issues and it is very hard to get right.
           Therefore, keeping accessibility focus in the system will avoid
           keeping an off-screen model in accessibility services, it will always
           be in sync with the state of the view hierarchy and the input focus.
           Also this will allow having a default behavior for traversing the
           screen via this accessibility focus that is consistent in all
           accessibility services. We provide accessibility services with APIs to
           override this behavior but all of them will perform screen traversal
           in a consistent way by default.

Behavior:  If accessibility is enabled the accessibility focus is the leading one
           and the input follows it. Putting accessibility focus on a view moves
           the input focus there. Clearing the accessibility focus of a view, clears
           the input focus of this view. If accessibility focus is on a view that
           cannot take input focus, then no other view should have input focus.
           In accessibility mode we initially give accessibility focus to the topmost
           view and no view has input focus. This ensures consistent behavior accross
           all apps. Note that accessibility focus can move hierarchically in the
           view tree and having it at the root is better than putting it where the
           input focus would be - at the first input focusable which could be at
           an arbitrary depth in the view tree. By default not all views are reported
           for accessibility, only the important ones. A view may be explicitly labeled
           as important or not for accessibility, or the system determines which one
           is such - default. Important views for accessibility are all views that are
           not dumb layout managers used only to arrange their chidren. Since the same
           content arrangement can be obtained via different combintation of layout
           managers, such managers cannot be used to reliably determine the application
           structure. For example, a user should see a list as a list view with several
           list items and each list item as a text view and a button as opposed to seeing
           all the layout managers used to arrange the list item's content.
           By default only important for accessibility views are regared for accessibility
           purposes. View not regarded for accessibility neither fire accessibility events,
           nor are reported being on the screen. An accessibility service may request the
           system to regard all views. If the target SDK of an accessibility services is
           less than JellyBean, then all views are regarded for accessibility.
           Note that an accessibility service that requires all view to be ragarded for
           accessibility may put accessibility focus on any view. Hence, it may implement
           any navigational paradigm if desired. Especially considering the fact that
           the system is detecting some standard gestures and delegates their processing
           to an accessibility service. The default implementation of an accessibility
           services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
2012-04-13 19:05:24 -07:00
Jamie Gennis
33efb231cb Unhide new SurfaceTexture & TextureView APIs
This change unhides the new SurfaceTexture and TextureView APIs that were added
to allow transferring ownership of the SurfaceTexture from the UI framework to
the application.

Change-Id: Ic4b781d907a59e99ff1a5974009305c1f9aee36a
2012-04-13 18:33:38 -07:00
Jamie Gennis
dbed083ff0 Merge "SurfaceTexture: update API docs" 2012-04-13 18:02:28 -07:00
Roman Nurik
e28f057fe8 am 6a9835a2: am 08135aa1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '6a9835a2cdd95826ce0e4b9cb88c45b2e8277baf':
2012-04-13 17:57:18 -07:00
Roman Nurik
3b4e911550 am 4d7038cb: am 3fc245a1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '4d7038cb96690c93c6ca407d338159ea062424fb':
2012-04-13 17:55:08 -07:00
Roman Nurik
c01e915780 am 273ad179: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '273ad17995679c5cdcf45b1458efb221889a9e90':
  docs: Android Training: Creating Backward-Compatible UIs class
2012-04-13 17:54:15 -07:00
Roman Nurik
6a9835a2cd am 08135aa1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '08135aa17fc5e5e8ecfebf04c10911fb083c3660':
2012-04-13 17:53:47 -07:00
Roman Nurik
4d7038cb96 am 3fc245a1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '3fc245a181269c5e425698d8ad212015812ebd8d':
  docs: Android Training: Creating Backward-Compatible UIs class
2012-04-13 17:53:17 -07:00
Roman Nurik
08135aa17f am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '38e09c3ddb7da47a23bf4221ab678e058c7e923a':
  docs: Android Training: Creating Backward-Compatible UIs class
2012-04-13 17:51:40 -07:00
Roman Nurik
273ad17995 am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '38e09c3ddb7da47a23bf4221ab678e058c7e923a':
  docs: Android Training: Creating Backward-Compatible UIs class
2012-04-13 17:51:34 -07:00
Roman Nurik
3fc245a181 am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
* commit '38e09c3ddb7da47a23bf4221ab678e058c7e923a':
  docs: Android Training: Creating Backward-Compatible UIs class
2012-04-13 17:51:16 -07:00
Jeff Brown
90aba7caac Merge "Add support for input devices that have vibrators." 2012-04-13 17:34:20 -07:00
Roman Nurik
21e09bc4cb am 509efe16: am 29934896: am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '509efe16a1e191ac8e65709feed20eaae2894343':
2012-04-13 17:29:11 -07:00
Roman Nurik
2c7aa1c082 am 88b5b983: am f872e0b9: am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '88b5b983acfe1caf8c584a20f98b4e48af76d1fe':
2012-04-13 17:29:03 -07:00
Roman Nurik
012b5beff4 am c07e9d0c: am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit 'c07e9d0c67e4481caef22dcd8de60c90afe97d63':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:27:43 -07:00
Roman Nurik
38e09c3ddb docs: Android Training: Creating Backward-Compatible UIs class
Change-Id: I9a3038839c7849ecbb144b218ce5a08bdcd35886
2012-04-13 17:27:21 -07:00
Roman Nurik
509efe16a1 am 29934896: am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '299348968aae3fa29dca167bfcc847ed5c65927b':
2012-04-13 17:26:39 -07:00
Roman Nurik
88b5b983ac am f872e0b9: am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit 'f872e0b959877d2685bf5bf0e83c4e6865163203':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:26:03 -07:00
Roman Nurik
c07e9d0c67 am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:23:54 -07:00
Roman Nurik
f872e0b959 am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:23:53 -07:00
Roman Nurik
299348968a am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:23:40 -07:00
Roman Nurik
19266f7b02 docs: Android Training: Implementing Effective Navigation class
Change-Id: Ife2f666e78e3fc0b28ad23321fd98926973e037b
2012-04-13 17:15:47 -07:00
Eric Fischer
ba9d0e1b9f Merge "Import translations. DO NOT MERGE" 2012-04-13 17:08:44 -07:00
Eric Fischer
bc6aa58d43 Merge "Import translations. DO NOT MERGE" 2012-04-13 17:06:32 -07:00
Jeff Brown
75e0dcbca1 Merge "Extract Vibrator implementation from interface." 2012-04-13 17:03:05 -07:00
Jeff Brown
a47425a13c Add support for input devices that have vibrators.
Added a getVibrator() method to InputDevice which returns a Vibrator
associated with that input device.  Its uses the same API as the
system vibrator which makes it easy for applications to be modified
to use one or the other.

Bug: 6334179
Change-Id: Ifc7f13dbcb778670f3f1c07ccc562334e6109d2e
2012-04-13 17:01:15 -07:00
Dianne Hackborn
8b2dd9c870 Merge "Improve lock screen hide animation." 2012-04-13 16:55:00 -07:00
Wink Saville
48a7bf24e3 Merge "Enhance the debug output for StateMachines." 2012-04-13 16:52:04 -07:00
Dianne Hackborn
2a07308ed2 Merge "Add direct support for HTML formatted text in ClipData etc." 2012-04-13 16:47:38 -07:00
Philip Milne
1557fd7809 Fix for bug 6110465.
Add layout bound metadata to 9-patch files and make layouts take them into account.

This CL contains a proposed API for dealing with layout bounds.

This solution exposes:

1. Class: Insets - for storing layout Insets (and later possibly padding).
2. Methods: View:(get/set)LayoutInsets() - for storing layoutBounds.
3. Methods: ViewGroup:(get/set)LayoutMode() - for controlling layoutMode.

It also iuncudes the changes to GridLayout to support layout bounds.

Change-Id: I60c836b6530b61c5abf37f93ee9c44aad73573f1
2012-04-13 16:25:08 -07:00
Wink Saville
583eaaa57c Enhance the debug output for StateMachines.
Allow some messages to be ignored and allow the subclass to
add additional information. In particular, the information
can be used to decode the msg.what to a string.

Change-Id: I4f53becc6f0cb77399f99702084efef9d8785d67
2012-04-13 16:11:20 -07:00
Jamie Gennis
2b4bfa5efe SurfaceTexture: update API docs
This change updates the SurfaceTexture API docs and modifies the behavior of
the updateTexImage to produce an IllegalStateException when not attached to a
GLES context.

Change-Id: I5a0875927785108960985c567d571d5f7033256a
2012-04-13 16:04:15 -07:00
Dianne Hackborn
acb69bb909 Add direct support for HTML formatted text in ClipData etc.
When using the clipboard, ACTION_SEND, etc., you can now supply
HTML formatted text as one of the representations.  This is exposed
as a set of methods on ClipData for building items with HTML
formatted text, and retrieving and coercing to HTML (and styled)
text.  In addtion, there is a new EXTRA_HTML_TEXT for interoperating
with the old ACTION_SEND protocol.

Change-Id: I8846520a480c8a5f829ec1e693aeebd425ac170d
2012-04-13 15:36:06 -07:00
Martijn Coenen
a94afeb5b3 Merge "Unhide new Beam push APIs." 2012-04-13 15:22:11 -07:00
Makoto Onuki
e64d187553 Merge "Introduce new URI to clear data usage information" 2012-04-13 15:22:05 -07:00
Jean-Baptiste Queru
aa7a8a895b Merge "Include ALL the audio packages" 2012-04-13 15:14:55 -07:00
Jeff Sharkey
c58a6d2da4 Merge "Mapping from DownloadManager status to string." 2012-04-13 14:47:23 -07:00
Jeff Sharkey
58d9fb6220 Mapping from DownloadManager status to string.
Change-Id: I159aa5f9c7289d6935436d78523b0628482bdc91
2012-04-13 14:42:50 -07:00
Daniel Lehmann
58ab2bcca9 Merge "Depcrecate increment function (should have been done back in ICS)" 2012-04-13 13:36:22 -07:00
Daniel Lehmann
a1620dc521 Depcrecate increment function (should have been done back in ICS)
Change-Id: I5c7d4d80a5d10b6ed2460f6dac30e53cc2714521
2012-04-13 13:29:49 -07:00
John Reck
a12e1fe16f Merge "Set initial focus" 2012-04-13 13:25:41 -07:00
Makoto Onuki
7ebbfd0f0c Introduce new URI to clear data usage information
We were going to piggyback existing DataUsageFeedback.FEEDBACK_URI,
but decided to introduce a new URI for this.

Bug 5475575

Change-Id: I6d467e5342f551142f047aa1b0b3503c5bf9b7fd
2012-04-13 13:18:22 -07:00
George Mount
07c9e296e6 Check for null mWebViewCore in selectText
Bug 6306770

Change-Id: I83e70aef45ff6519e4e9eb70edae44efcecf6de8
2012-04-13 13:16:15 -07:00
George Mount
8b0d90ee57 Wait for zoom manager to update before sending new picture event.
Bug 6315070

Change-Id: I80be7680499705f7865abc8ef753db1bb63ef44f
2012-04-13 13:16:15 -07:00
Eric Fischer
5cc53a3f80 Import translations. DO NOT MERGE
Change-Id: I0e4e1a2f1e2af07143ea621cb4f35f1df5190484
2012-04-13 12:56:38 -07:00
Jean-Baptiste Queru
f55e0dd969 Include ALL the audio packages
Change-Id: I4a7bedcaf8a9eccbabdfef4ebee46ee4e356b04e
2012-04-13 12:48:04 -07:00
Christopher Tate
22bf2a6e14 Merge "Fix full backup/restore detection of encrypted devices" 2012-04-13 12:46:54 -07:00
Eric Fischer
5ffc3bd2b6 Import translations. DO NOT MERGE
Change-Id: I6c9944f6c0968d076210839b415dca80722cd80d
2012-04-13 12:46:16 -07:00