9172 Commits

Author SHA1 Message Date
Svetoslav Ganov
37fd797699 am a1dc761c: Adding scroll actions to accessibility node info.
* commit 'a1dc761c8322355eb1bb71d3d6c9c603c1d1fc0f':
  Adding scroll actions to accessibility node info.
2012-05-10 12:39:55 -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
Craig Mautner
3c52b43f4f am 4fe5ebcc: Merge "Update DimAnimator layer when its window changes." into jb-dev
* commit '4fe5ebcc962ad7edb205bf988dd463854dea1044':
  Update DimAnimator layer when its window changes.
2012-05-10 11:35:10 -07:00
Craig Mautner
4fe5ebcc96 Merge "Update DimAnimator layer when its window changes." into jb-dev 2012-05-10 11:30:53 -07:00
Mike Lockwood
378d05a918 am b86bc105: Merge "UsbService: Fix problem detecting audio accessory mode when connected at boot" into jb-dev
* commit 'b86bc1058b8b9bce045ae94f7cd703d4bfecccb3':
  UsbService: Fix problem detecting audio accessory mode when connected at boot
2012-05-10 11:04:28 -07:00
Mike Lockwood
b86bc1058b Merge "UsbService: Fix problem detecting audio accessory mode when connected at boot" into jb-dev 2012-05-10 11:02:20 -07:00
Chet Haase
b43c85fef1 am 6b16286f: Merge "Notify windows when window animations complete" into jb-dev
* commit '6b16286f653f9f8a1c17a8dffebbe6cee4e5afca':
  Notify windows when window animations complete
2012-05-10 10:52:54 -07:00
Chet Haase
6b16286f65 Merge "Notify windows when window animations complete" into jb-dev 2012-05-10 10:50:29 -07:00
Jeff Sharkey
0af3e95717 am ca90d6da: Merge "Avoid updating thresholds during shutdown." into jb-dev
* commit 'ca90d6dad572c6aaad3b0a314df200d1762c23af':
  Avoid updating thresholds during shutdown.
2012-05-10 10:45:32 -07:00
Michael Jurka
bf1b5fa944 am 421dceb0: Merge "Making transition out of recents look better" into jb-dev
* commit '421dceb0a4fd8f20349a0de277f82b56e71cb90b':
  Making transition out of recents look better
2012-05-10 10:45:30 -07:00
Craig Mautner
acafd19c5e Update DimAnimator layer when its window changes.
Prior to this fix once dimming had been turned on it stayed at the
same layer and associated with the same window until it was turned
off. Now the DimAnimator layer is updated if either the window layer
changes or the dimming window changes.

Fixes bug 6467865.

Change-Id: I3e1765b92b51be26e3718c8a87e2583041a36af9
2012-05-10 10:41:02 -07:00
Jeff Sharkey
ca90d6dad5 Merge "Avoid updating thresholds during shutdown." into jb-dev 2012-05-10 10:35:45 -07:00
Michael Jurka
421dceb0a4 Merge "Making transition out of recents look better" into jb-dev 2012-05-10 10:35:19 -07:00
Mike Lockwood
bf91046872 UsbService: Fix problem detecting audio accessory mode when connected at boot
Change-Id: Ie0e23b8ec88f1dd29bb956bc1d21c241f3545059
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-05-10 10:09:12 -07:00
Chet Haase
198e564c9a Notify windows when window animations complete
Drawing in windows is suppressed during window animations, to make window
animations smoother. This means that drawing activities that the activity
requested are dropped on the floor. There is no call at the end of window
animations to tell the windows that they may now draw, which leaves the windows
and activities in an uncertain state, especially with respect to some of the
dirty flags that we use internally to know when we have requested (and satisfied)
invalidations on views.

The fix is to notice, on the WindowManager side, when we've finished window
animations and to schedule a traversal on the WindowManager, which will then send
out appropriate messages to the affected windows.

Issue #6461113 EventInfo is stuck in day view

Change-Id: I364c9c472531c467d44801698cfb453970173bb3
2012-05-10 09:55:15 -07:00
Daniel Sandler
5a062e6107 am a25079e6: Show the ADB icon in the status bar again.
* commit 'a25079e6bafcfd77135a852f0e838738d80606ef':
  Show the ADB icon in the status bar again.
2012-05-10 09:26:44 -07:00
Kenny Root
c4cbbb131f am 8c3906d9: Merge "Use the right flag types when creating InstallArgs" into jb-dev
* commit '8c3906d920f55ec0d42252ef8f460e6066b1d4b6':
  Use the right flag types when creating InstallArgs
2012-05-10 09:26:13 -07:00
Dianne Hackborn
7ab1675111 am 2c2864f6: Merge "Add new API to find total RAM." into jb-dev
* commit '2c2864f65c5cec6aebcb1b5612331f3946893042':
  Add new API to find total RAM.
2012-05-10 09:26:09 -07:00
Craig Mautner
e649909727 am b4ffa66d: Merge "Fix wallpaper glitch and moving window animation." into jb-dev
* commit 'b4ffa66d6e696bdc773b64802b1cf6d20097c6a3':
  Fix wallpaper glitch and moving window animation.
2012-05-10 09:25:54 -07:00
Dianne Hackborn
e6f6cd69ff am 78fd4a14: Merge "Remove auto-brightness adjustment knob." into jb-dev
* commit '78fd4a14dd2a1e2d9ab4be024861c0d9119cce7f':
  Remove auto-brightness adjustment knob.
2012-05-10 09:25:50 -07:00
Jeff Brown
3631131e5f am 571d4cbe: Merge "Fix bugs in fallback key handling." into jb-dev
* commit '571d4cbeec4adad050b8e188770e7e7dedc558f1':
  Fix bugs in fallback key handling.
2012-05-10 09:25:36 -07:00
Svetoslav Ganov
0d55601191 am e4abc512: Remove activation gestures form reported and add a touch explore requesting flag.
* commit 'e4abc512aa6474f0106f407f7b399832da34483f':
  Remove activation gestures form reported and add a touch explore requesting flag.
2012-05-10 09:24:56 -07:00
Guang Zhu
cc441aba8a am 0fa15291: Merge "Make UiTestAutomationBridge see non-important views again" into jb-dev
* commit '0fa152912e55f2d08f0a8d1260332a81e5706694':
  Make UiTestAutomationBridge see non-important views again
2012-05-10 09:24:19 -07:00
Dianne Hackborn
67cc7f2e60 am a53de062: Add callback hack to find out when to load system properties.
* commit 'a53de0629f3b94472c0f160f5bbe1090b020feab':
  Add callback hack to find out when to load system properties.
2012-05-10 09:24:07 -07:00
Jeff Sharkey
fe9e28cba7 am 6367b166: Merge "Recover from Throwable in FileRotator, dump." into jb-dev
* commit '6367b1669d41f9fe7cd7abe5e05296edecd50f8e':
  Recover from Throwable in FileRotator, dump.
2012-05-10 09:23:59 -07:00
Daniel Sandler
a25079e6ba Show the ADB icon in the status bar again.
Bug: 6440323
Change-Id: I3b1972d18be4ad77a87c4b71673b6cfb7735c59e
2012-05-10 11:01:34 -04:00
Kenny Root
8c3906d920 Merge "Use the right flag types when creating InstallArgs" into jb-dev 2012-05-09 21:39:49 -07:00
Dianne Hackborn
2c2864f65c Merge "Add new API to find total RAM." into jb-dev 2012-05-09 21:34:42 -07:00
Michael Jurka
21385cd83d Making transition out of recents look better
- Fading out recents first, then scaling up app
thumbnail
- Fade Recents out over 130ms
- Delay the window animation for 200ms first,
then animate for 200ms (previously we didn't delay
and then animated for 300ms)

Bug: 6390075

Change-Id: Ia8c753bf7ee03d2acef6eb2772b28d88fe10a682
2012-05-09 20:25:28 -07:00
Jeff Sharkey
20f5c3d413 Avoid updating thresholds during shutdown.
Bug: 6472388
Change-Id: I70e1ed5dc75056840f2f0b130ce0dfecb06f385e
2012-05-09 19:59:07 -07:00
Dianne Hackborn
59325eb31f Add new API to find total RAM.
Change-Id: Iad2dff3c44f471515f093e7f0d0d959528881ab9
2012-05-09 18:45:20 -07:00
Craig Mautner
b4ffa66d6e Merge "Fix wallpaper glitch and moving window animation." into jb-dev 2012-05-09 18:05:08 -07:00
Dianne Hackborn
78fd4a14dd Merge "Remove auto-brightness adjustment knob." into jb-dev 2012-05-09 18:03:12 -07:00
Craig Mautner
9aa695871c Fix wallpaper glitch and moving window animation.
1. Previous fix to hide wallpaper at the same time the wallpaper target
was hidden was too aggressive. In the case where one wallpaper target
was replacing another we would lose the wallpaper for an instant.

2. Previous fix to keep from overwriting the moving window boundaries
was incomplete.  The default values for the parent window were 0,0
which caused the lock window animation to translate down and to the
right. Defaulting the parent window boundaries to the full screen
and restoring it to the full screen after each animation fixes this.

Fixes bug 6472070.

Change-Id: I0b13c642c1aaab666cdd0f4a1e7fb4b716e6b17f
2012-05-09 17:41:13 -07:00
Jeff Brown
571d4cbeec Merge "Fix bugs in fallback key handling." into jb-dev 2012-05-09 17:35:07 -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
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
Kenny Root
88670d816b Use the right flag types when creating InstallArgs
Need to use PackageManager.INSTALL_{EXTERNAL,FORWARD_LOCKED} for
createInstallArgs instead of ApplicationInfo.FLAG_etc for the install
args to be created correctly. If certain flags conflict, there will be a
failure to delete the package.

Change-Id: Ibd8705943371596b2f2d6c24bd071b737ca74ef4
2012-05-09 16:02:09 -07:00
Guang Zhu
0fa152912e Merge "Make UiTestAutomationBridge see non-important views again" into jb-dev 2012-05-09 15:11:14 -07:00
Dianne Hackborn
a53de0629f Add callback hack to find out when to load system properties.
Use this to reload the trace and layout bounds properties.

This is ONLY for debugging.

Change-Id: I1c4bdb52c823520c352c5bac45fa9ee31160793c
2012-05-09 14:53:20 -07:00
Jeff Sharkey
6367b1669d Merge "Recover from Throwable in FileRotator, dump." into jb-dev 2012-05-09 14:36:40 -07:00
Guang Zhu
df549f8381 Make UiTestAutomationBridge see non-important views again
This problem was introduced in I74df9c24. The intention of the
change was still let UiTestAutomationBridge see the
non-important views, but there were bugs in the implementation:

1. AccessibilityManagerService was not really updating
   mIncludeNotImportantViews when mIsAutomation is true

2. Wrong constant is used to set the flag

Change-Id: Ia0a2e9ed9720bd0ea3a563e0b492e870a6ec1586
2012-05-09 14:32:15 -07:00
Irfan Sheriff
1a11e33b91 am 9669a0ce: Merge "API review fixes" into jb-dev
* commit '9669a0ce574745ba0b0ebd32e8337811973fb7dc':
  API review fixes
2012-05-09 14:06:12 -07:00
Irfan Sheriff
9669a0ce57 Merge "API review fixes" into jb-dev 2012-05-09 14:04:04 -07:00
Craig Mautner
bdf3dc1c95 am 08c04000: Merge "Remove incorrect CLEAR_WHEN_TASK_RESET behavior." into jb-dev
* commit '08c04000c6355a735dab237e1994dc17c7e5d44f':
  Remove incorrect CLEAR_WHEN_TASK_RESET behavior.
2012-05-09 13:58:14 -07:00
Craig Mautner
08c04000c6 Merge "Remove incorrect CLEAR_WHEN_TASK_RESET behavior." into jb-dev 2012-05-09 13:55:52 -07:00
Jeff Sharkey
6de357e4d1 Recover from Throwable in FileRotator, dump.
In rewriteSingle(), catch Throwable to rollback to backup file,
instead of just IOException. Also add dumpAll() to pack up contents
for later debugging, and use it when encountering bad stats.

Bug: 6467868
Change-Id: Ic8e287cf5a235706811a304a88d71d11d3a79cd4
2012-05-09 13:43:19 -07:00
Jeff Brown
fd23e3ed97 Fix bugs in fallback key handling.
If a fallback key is generated using a key plus a modifier,
then it's possible we might get a different fallback key
generated if the modifier has changed.  PhoneWindowManager
needs to remember which fallback is last generated for a
given key code so that it can apply the same fallback action.

When generating cancellation events, it's important to have
preserved the policyFlags of the original event.  Otherwise
we may not dispatch the cancellation properly.  For example,
some actions are not performed if the POLICY_FLAG_TRUSTED
is not specified.

Remember the metaState associated with a key event so we can
include it when canceled.

Tell the policy when a fallback is being cancelled so that it
can clean up its state.

After a SEARCH shortcut is invoked, clear the flag indicating
that a shortcut is pending.  This is to prevent SEARCH from
getting stuck down in the case where we might forget to send
the up.  (Shouldn't happen anymore after the prior fixes.)

Bug: 5616255
Change-Id: I68f0a9679c7af464eaf31c099f2aa50b53fecf1f
2012-05-09 13:34:28 -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
Craig Mautner
9158cbcbc9 Remove incorrect CLEAR_WHEN_TASK_RESET behavior.
Fixes bug 6447950.

Change-Id: I6b512d5dd44c54e7b51f85c51783e8c942238c1d
2012-05-09 11:37:48 -07:00