3931 Commits

Author SHA1 Message Date
Jesse Wilson
822b72efd8 Merge "Rename Uri.normalize() to Uri.normalizeScheme()." into jb-dev 2012-05-10 12:39:37 -07:00
Svetoslav Ganov
a1dc761c83 Adding scroll actions to accessibility node info.
1. Scrolling actions are crucial for enabling a gesture based
   traversal of the UI and specifically scrollable containers
   especially lists and anything backed by an adapter. Since
   accessibility focus can land only attached views, it cannot
   visit views for adapter items not shown on the screen.
   Auto scrolling the list as a result of putting access focus
   ot a list item does not work well since the user may get
   trapped in a long list. Adding an accessibility node provider
   to emit virtual views for one view before the first and one
   after the last is complex and suffers the limitation of trapping
   the user. Accessibility service need an explicit scroll actions
   which may be performed upon an explicit user action. Hence,
   the user is informed for the start/end of the visible part of
   the list and he makes a deliberate choice to scroll. This will
   benefit also people developing Braille devices since they can
   scroll the content without telling the user to stop using the
   Braille controller and take the device out of his pocket to scroll
   and go back to the Braille controller.

NOTE: Without these action large portions of the screen will be
    hard to access since users will have to touch and explore to
    find and scroll the list.

Change-Id: Iafcf54d4967893205872b3649025a4e347a299ed
2012-05-10 12:28:04 -07:00
Jesse Wilson
abc43ddd8a Rename Uri.normalize() to Uri.normalizeScheme().
Change-Id: I67839656c7c1c16a5376c9894d699d2bad3c7a5c
2012-05-10 14:31:17 -04:00
Daniel Sandler
d33b803b6b Clean up API docs for Notification.
Bug: 6427241
Bug: 6427245
Bug: 6427814
Change-Id: I91d741513e3b345d2b9f28ad0a1bf11b0a898076
2012-05-10 13:15:37 -04:00
Dianne Hackborn
f4299bd185 Whoops forgot to add current.txt. :(
Change-Id: I7efdd45cb9873866559c858c47d660deef06ce24
2012-05-09 21:58:50 -07:00
Dianne Hackborn
a482d36635 Merge "Fixed typo in findAccessibilityFocus API." into jb-dev 2012-05-09 21:40:00 -07:00
Dianne Hackborn
e2c7e2adc0 Merge "Add compression level key for FLAC encoding" into jb-dev 2012-05-09 21:38:57 -07:00
alanv
57aab75544 Fixed typo in findAccessibilityFocus API.
Change-Id: I3ca1448792a1b712f781c1bfa73823ca08ea3d39
2012-05-09 19:52:29 -07:00
Jean-Michel Trivi
08fb063f07 Add compression level key for FLAC encoding
Change-Id: Ic4c32694841b6f37ca44061d14bb81fc267696cc
2012-05-09 19:16:14 -07:00
Dianne Hackborn
dd79ae6b72 Merge "Add infrastructure for accessing "unstable" content providers." into jb-dev 2012-05-09 18:30:23 -07:00
Dianne Hackborn
652b6d1e59 Add infrastructure for accessing "unstable" content providers.
We have an API and some stuff that purports to this, but no real
implementation yet.

Change-Id: I93555440014a50fdf79fa3f65318d90fb82265b4
2012-05-09 18:18:40 -07:00
Dianne Hackborn
78fd4a14dd Merge "Remove auto-brightness adjustment knob." into jb-dev 2012-05-09 18:03:12 -07:00
Jeff Brown
b3e9ee2379 Merge "Deprecate certain AbstractCursor fields." into jb-dev 2012-05-09 17:35:18 -07:00
Irfan Sheriff
c12a244632 Merge "Use Map for DnsSd TXT record" into jb-dev 2012-05-09 16:37:11 -07:00
Dianne Hackborn
518a3d82f7 Remove auto-brightness adjustment knob.
Not yet ready for release.

Change-Id: I75bc87f35af47c6baac1f26953d8bf3e38062c92
2012-05-09 16:30:49 -07:00
Irfan Sheriff
527ba07b63 Use Map for DnsSd TXT record
Bug: 6434844
Change-Id: I767077585f501b46026ed34ec3e778d3e53209cc
2012-05-09 16:25:00 -07:00
Svetoslav Ganov
e4abc512aa Remove activation gestures form reported and add a touch explore requesting flag.
1. Delegating activation gestures has several issues that we should
   decide how to handle if possible before allowing an accessibility
   service to take over them:

   A) It is needed that every view than can be clicked or long pressed on
      reacts to such as a response to calling performClick and performLongPress
      which is not necessary true since the view may watch the touch
      events and do its own click long click detection. As a result it may
      be possible that there are view a user cannot interact with in
      touch exploration mode but can if not in that mode.

   B) Clicking or long pressing on a different location in a view may yield
      different results, for example NumberPicker. Ideally such views have
      to implement AccessibilityNodeProvide which provider handles correctly
      the request for click long press on virtual nodes. Some apps however
      just fire different hover accessibility events when the user is over
      a specific semantic portion of the view but do not provide virtual
      nodes. Hence, a user will not be able to interact with such semantic
      regions but the system can achieve that by sending the click/long click
      at the precise location in the view that was last touch explored.

2. Adding a flag on accessibility service info to request explore by touch
   mode. There is no need to put the device in this mode if node of the currently
   enabled accessibility services supports it. Now the problem is inverted and
   the service has to explicitly state its capability.

3. Fixing a bug where includeImportantViews was ignored for automation
   services.

Change-Id: I3b29a19f24ab5e26ee29f974bbac2197614c9e2a
2012-05-09 16:17:20 -07:00
Dave Burke
2ed09ea41f Merge "GFX api cleanup 2 of 2" into jb-dev 2012-05-09 15:07:26 -07:00
Jeff Brown
7873d5b3ff Deprecate certain AbstractCursor fields.
Bug: 6353797
Change-Id: I52b67f35c867378849ceb77356d0065161157ac9
2012-05-09 14:32:14 -07:00
Irfan Sheriff
9669a0ce57 Merge "API review fixes" into jb-dev 2012-05-09 14:04:04 -07:00
Andreas Huber
ea86b36f80 Merge "Remove SEEK_CLOSEST constant from MediaExtractor, its implementation makes no" into jb-dev 2012-05-09 13:20:32 -07:00
Irfan Sheriff
22af38c526 API review fixes
- Remove the notion of channel from an application perspective
- Remove the use of DnsSd as part of API and add a protocol type to allow
future extensions
- Use the listener object as a handler for stop and unregister operations. Also,
we now allow multiple active discovery operations.
- Remove init/deinit operations in favour of setting up construction

Bug:6434844
Change-Id: Id15521d571aac9c4053d81184ad66dfc54f636de
2012-05-09 11:48:42 -07:00
Andreas Huber
f86374adec Remove SEEK_CLOSEST constant from MediaExtractor, its implementation makes no
sense for the java API.

Change-Id: I3f2eabb5ca5ffb6c1f03141bfd303310111e8774
related-to-bug: 6276111
2012-05-09 11:32:51 -07:00
Stephen Hines
794db6cbac Merge "GFX api cleanup 1.5 of 2" into jb-dev 2012-05-09 10:26:36 -07:00
Jason Sams
d4ca991098 GFX api cleanup 2 of 2
Change-Id: Ie928b8ee7d31fcaa26fcad9a2548581bb8395a61
2012-05-08 19:02:07 -07:00
Jason Sams
e619de6a4e GFX api cleanup 1.5 of 2
Change-Id: Ib31332ae0b7a6059d4971ea616089cd382ef6895
2012-05-08 18:40:58 -07:00
Svetoslav Ganov
2aaa6bbd53 Merge "Renaming the constants for activation and long press." into jb-dev 2012-05-08 18:21:02 -07:00
Jason Sams
65c80f8247 GFX api cleanup 1 of 2
Change-Id: Ib85784c18b1647e51f1d7cf2a4c956d17e1d2e3c
2012-05-08 17:30:26 -07:00
Svetoslav Ganov
87bd0dccf7 Renaming the constants for activation and long press.
1. We will have a double tap to activate an item and
   tap and hold to perform a long press.

Change-Id: Ibd9d8774e5a4693d8868d1128e55a82ff0c3a80b
2012-05-08 14:29:33 -07:00
Stephen Hines
1d56afc6ac Merge "Revert "Deprecate"" into jb-dev 2012-05-08 14:25:49 -07:00
Svetoslav Ganov
59f3f5853c Merge "Add performAccessibilityAction to AccessibilityDelegate." into jb-dev 2012-05-08 12:52:57 -07:00
Svetoslav Ganov
6704c23339 Merge "AccessibilityNodeInfo for visible views should reported." into jb-dev 2012-05-08 11:32:20 -07:00
Jeff Brown
947f1c8db0 Merge "Move CancellationSignal to android.os package." into jb-dev 2012-05-08 10:51:12 -07:00
Jeff Brown
a7771df369 Move CancellationSignal to android.os package.
Bug: 6427830
Change-Id: I39451bb1e1d4a8d976ed1c671234f0c8c61658dd
2012-05-07 20:06:46 -07:00
Jeff Brown
9cc5e7678d Merge "Hide SET_KEYBOARD_LAYOUT permissions." into jb-dev 2012-05-07 19:29:55 -07:00
Jeff Brown
507f5586fb Hide SET_KEYBOARD_LAYOUT permissions.
Bug: 6427036
Change-Id: Idbb442ad8071b2ca4acf247b135c7aba0830cf70
2012-05-07 19:06:06 -07:00
alanv
8eeefefc84 Add performAccessibilityAction to AccessibilityDelegate.
Change-Id: I43dff2ced959af5d8a9ce9ed18858a6e74cb35c6
2012-05-07 18:42:31 -07:00
Svetoslav Ganov
0a1bb6dffc AccessibilityNodeInfo for visible views should reported.
1. AccessibilityNodeInfos for visible views should always
   be reported and the clients should be able to check
   whether that node info is shown to the user. For example,
   focus search may return a node that is not on the screen
   and the accessibility layer may decide to give it focus
   which scroll the source view in the screen.

bug:6421991

Change-Id: Idc1fd8512dda767abe802aacedb0c69582e6fc2a
2012-05-07 18:22:59 -07:00
Svetoslav Ganov
b2ee0d5767 Merge "Text traversal at various granularities." into jb-dev 2012-05-07 17:54:31 -07:00
Svetoslav Ganov
6d17a936f7 Text traversal at various granularities.
1. Implementing text content navigation at various granularities.
   For views that have content description but no text the
   content description is the traversed at character and word
   granularities. For views that inherit from TextView the
   supported granularities are character, word, line, and page.

bug:5932640

Conflicts:

	core/java/android/view/View.java

Conflicts:

	core/java/android/view/View.java

Change-Id: I66d1e16ce9ac5d6b49f036b17c087b2a7075e4c0
2012-05-07 17:31:52 -07:00
Stephen Hines
9c9ad3f8c2 Revert "Deprecate"
This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908.

Conflicts:

	api/current.txt
	graphics/java/android/renderscript/Element.java
	graphics/java/android/renderscript/Script.java

Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
2012-05-07 15:34:29 -07:00
Philip Milne
7bb66c9cae Hide optical bounds feature for JB.
Change-Id: I1fe38e9c64515acd550baa930ebc0af4c139bf40
2012-05-07 11:42:57 -07:00
Dianne Hackborn
7bfa14570e Merge "Finish up issue #6249094: Display permissions based on relevance to private data" into jb-dev 2012-05-06 17:49:53 -07:00
Dianne Hackborn
99222d212f Finish up issue #6249094: Display permissions based on relevance to private data
Added bitmaps for permission group icons.  We had to pick either
icons for a dark or light background, and it had to be light for
settings, so the installer theme has gone back to dark.

Tweaked the permission groups to match the icons.

Redid the group priorities to make them correct (they were written
with higher priorities being less important).

Fixed bug where priority was not being used for system apps.

Change-Id: Ia3d3f0c1614a11b4cfd11682ce9e6c9f87d75c06
2012-05-06 17:45:13 -07:00
Svetoslav Ganov
2551e5a1d9 Merge "API REVIEW: android.view.accessibility" into jb-dev 2012-05-06 14:53:27 -07:00
Svetoslav Ganov
2b435aada3 API REVIEW: android.view.accessibility
1. Changed all references to granularity to movement
   granularity. BTW, to be more precise it should be
   text movement granularity.

bug:6435232

Change-Id: If6366b002ca3390f74918995b342baff2cbcfd01
2012-05-04 17:16:41 -07:00
Dianne Hackborn
6ad5b4f637 Merge "Fix issue #6426645: API REVIEW: android.app.ActivityOptions" into jb-dev 2012-05-04 16:10:16 -07:00
Fabrice Di Meglio
2b20212e16 Merge "Hide Paint textLocale APIs - DO NOT MERGE" into jb-dev 2012-05-04 14:39:18 -07:00
Fabrice Di Meglio
b0aa2f5368 Hide Paint textLocale APIs - DO NOT MERGE
- fix bug #6441521 Need to @hide Paint setTextLocale / getTextLocale - CJK support

Change-Id: Ic536989243d7028e6f5fce7d60dfef4467bebffb
2012-05-04 14:19:19 -07:00
Jim Miller
516c25b38a Merge "Fix 6414061: Add new ACTION_ASSIST intent." into jb-dev 2012-05-04 14:12:41 -07:00