9611 Commits

Author SHA1 Message Date
Svetoslav Ganov
cce365a505 am 2622a7cd: am b7726159: Merge "Crash in the touch explorer." into jb-dev
* commit '2622a7cd6e923a88ffbdd1925a9112a7b141fb04':
  Crash in the touch explorer.
2012-06-10 10:06:37 -07:00
Svetoslav Ganov
2622a7cd6e am b7726159: Merge "Crash in the touch explorer." into jb-dev
* commit 'b7726159e3ee29b45381ede8446c1e87fbbaa23a':
  Crash in the touch explorer.
2012-06-10 10:02:40 -07:00
Svetoslav Ganov
b7726159e3 Merge "Crash in the touch explorer." into jb-dev 2012-06-10 09:59:24 -07:00
Svetoslav Ganov
a656414e94 am 3dbb70ec: am 86bbf705: Merge "Settings crash after enabling TalkBack accessibility." into jb-dev
* commit '3dbb70ec9c593e11dd19efa528a99e9ec21d63e0':
  Settings crash after enabling TalkBack accessibility.
2012-06-10 09:57:18 -07:00
Svetoslav Ganov
3dbb70ec9c am 86bbf705: Merge "Settings crash after enabling TalkBack accessibility." into jb-dev
* commit '86bbf70587602c1fd86fce1a2a4be78da45aaedc':
  Settings crash after enabling TalkBack accessibility.
2012-06-10 09:53:17 -07:00
Dianne Hackborn
8e4e795936 am a8e46828: am c99e6ee2: am c9aa32e9: Merge "Fix dumpPowerState method"
* commit 'a8e46828bf463cf542885d7726310abeac915e0a':
  Fix dumpPowerState method
2012-06-08 19:00:38 -07:00
Dianne Hackborn
a8e46828bf am c99e6ee2: am c9aa32e9: Merge "Fix dumpPowerState method"
* commit 'c99e6ee202ba9d895c96f034643fd39a035ea7f2':
  Fix dumpPowerState method
2012-06-08 18:55:56 -07:00
Dianne Hackborn
c9aa32e93f Merge "Fix dumpPowerState method" 2012-06-08 18:33:48 -07:00
Svetoslav Ganov
e45c0b230b Crash in the touch explorer.
1. The touch explorer was notified for accessibility events from
   a binder thread which was poking the internal state of the
   latter which by design is not tread safe. Since the touch
   explorer is expected to be running only on the main thread
   the accessibility manager service delivers the accessibility
   events to the explorer on that thread.

bug:6635496

Change-Id: Ifdc5329e4be8e485d7f77f0fb472184494fa0d15
2012-06-08 17:49:52 -07:00
Svetoslav Ganov
ee33ad24cd Settings crash after enabling TalkBack accessibility.
1. AccessibilityInput filter was not checking whether the touch
   explorer instance is not null before passing it an accessibility
   event. If the accessibility event is dispatched before the input
   filter is installed but after it is created we runt into this
   case.

2. Added a missing null check in accessibility node info.

bug:6635089

Change-Id: Ia389dc1f427427eb73794f6331ccb870e0b44c55
2012-06-08 16:09:36 -07:00
Jean-Baptiste Queru
d208c1b8c9 am 3e751f1b: am 60c77212: am 2a393a99: Merge "MountService: unlink death notification when unregistering listeners"
* commit '3e751f1b7bc9ae4c477b75290e59d7c3904f94dc':
  MountService: unlink death notification when unregistering listeners
2012-06-08 15:41:41 -07:00
Jean-Baptiste Queru
3e751f1b7b am 60c77212: am 2a393a99: Merge "MountService: unlink death notification when unregistering listeners"
* commit '60c7721210d327a464fdc95dbbe504e8eb10525c':
  MountService: unlink death notification when unregistering listeners
2012-06-08 15:36:41 -07:00
Jean-Baptiste Queru
2a393a99dc Merge "MountService: unlink death notification when unregistering listeners" 2012-06-08 14:30:52 -07:00
Colin Cross
241e702059 Merge "PowerManagerService: call surfaceflinger blank and unblank through binder" 2012-06-08 14:14:23 -07:00
Craig Mautner
cbb987e151 am af2ab39a: am 78fc35bd: Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev
* commit 'af2ab39abad1c0481af471e60a299fb2839d608d':
  Hide wallpaper when wallpaper target gets hidden.
2012-06-08 13:26:00 -07:00
Craig Mautner
c62c7ee75b am 1189f855: am 7f786b8f: Merge "Do not animate keyboard and button brightness." into jb-dev
* commit '1189f855e680eb05f60d849372a7049cbf9a305e':
  Do not animate keyboard and button brightness.
2012-06-08 13:25:49 -07:00
Craig Mautner
af2ab39aba am 78fc35bd: Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev
* commit '78fc35bde452c2fea18ecf9d8aeedee6d82ba1eb':
  Hide wallpaper when wallpaper target gets hidden.
2012-06-08 13:18:13 -07:00
Craig Mautner
78fc35bde4 Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev 2012-06-08 13:14:54 -07:00
Craig Mautner
ff92f04e76 Hide wallpaper when wallpaper target gets hidden.
Another location that potentially hides the wallpaper target while
leaving the wallpaper itself still visible. Causes the wallpaper to
show up when upper surfaces are transparent all the way down.

Fixes bug b6621986.

Change-Id: If75053160f041eb78868eda36b7820fb2110d069
2012-06-08 12:56:14 -07:00
Craig Mautner
1189f855e6 am 7f786b8f: Merge "Do not animate keyboard and button brightness." into jb-dev
* commit '7f786b8fa20619dcd69324c521cb59242a8f2944':
  Do not animate keyboard and button brightness.
2012-06-08 12:49:57 -07:00
Craig Mautner
7f786b8fa2 Merge "Do not animate keyboard and button brightness." into jb-dev 2012-06-08 12:48:19 -07:00
Craig Mautner
8dd1e4ce42 am 6aabf8d7: am fab75dc8: Merge "Turn off dimming immediately for removed windows." into jb-dev
* commit '6aabf8d7c7e19c424deeb7295cd13240a31dbfe4':
  Turn off dimming immediately for removed windows.
2012-06-08 11:43:17 -07:00
Craig Mautner
6aabf8d7c7 am fab75dc8: Merge "Turn off dimming immediately for removed windows." into jb-dev
* commit 'fab75dc830039b5aa1463aea55ceee2de279ec52':
  Turn off dimming immediately for removed windows.
2012-06-08 11:39:12 -07:00
Craig Mautner
fab75dc830 Merge "Turn off dimming immediately for removed windows." into jb-dev 2012-06-08 11:36:36 -07:00
Dianne Hackborn
c7e2d4a57b am 33e39aef: am 0876ab0a: Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev
* commit '33e39aefdf9266dc4858f7a6171f46f43ffa3ec3':
  Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...
2012-06-08 11:12:27 -07:00
Dianne Hackborn
33e39aefdf am 0876ab0a: Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev
* commit '0876ab0ac17518c479e9dffe025884870a586d9c':
  Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...
2012-06-08 11:04:13 -07:00
Dianne Hackborn
0876ab0ac1 Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev 2012-06-08 11:01:42 -07:00
Craig Mautner
236a35b77a Turn off dimming immediately for removed windows.
Dimming was only turning off immediately for app-animated windows.
For removed windows dimming wouldn't turn off until the window was
completely gone.

Fixes bug 6628057.

Change-Id: I3ba6501b10a31b6f8c91012e17ad8734a84050c4
2012-06-08 09:54:59 -07:00
Kenny Root
f8dc339a52 am 625b92fc: am f27f2f8f: Merge "Delete old forward-locked apps on upgrade" into jb-dev
* commit '625b92fcf7ce3237eb4894e3c41846a65022831d':
  Delete old forward-locked apps on upgrade
2012-06-08 09:23:33 -07:00
Craig Mautner
291576ec6f Do not animate keyboard and button brightness.
Keyboard and button brightness are always set to assign values
immediately but were being passed through the animation process
anyways. This interfered with the state of the screen brightness
animation. Intercept keyboard and button brightness directives and
implement them immediately.

Also use actual screen brightness and value to determine when we
are dimming or brightening. Previously we were using the sensor
values to determine whether the action called for was to brighten or
dim. This looks at the actual screen brightness level to make that
determination. If the two values get out of sync it is better to rely
on the screen value than the sensor value.

Fixes bug 6626681.

Change-Id: I82158f5188ffb739e01f818ba88e79f03a405c58
2012-06-08 09:22:36 -07:00
Kenny Root
625b92fcf7 am f27f2f8f: Merge "Delete old forward-locked apps on upgrade" into jb-dev
* commit 'f27f2f8f71f584471fe558845c24121e957b2cf2':
  Delete old forward-locked apps on upgrade
2012-06-08 09:19:08 -07:00
Kenny Root
f27f2f8f71 Merge "Delete old forward-locked apps on upgrade" into jb-dev 2012-06-08 09:16:40 -07:00
Svetoslav Ganov
a2cac523bf am 7a91def9: am 75fb3e7a: Merge "Cannot click on the last touch explored auto-completion item." into jb-dev
* commit '7a91def99ad20491ee739b7a5edf0d3ed3099e2e':
  Cannot click on the last touch explored auto-completion item.
2012-06-07 19:59:42 -07:00
Svetoslav Ganov
7a91def99a am 75fb3e7a: Merge "Cannot click on the last touch explored auto-completion item." into jb-dev
* commit '75fb3e7ac25099d9f6f0a4c34ee0aa7db2dd5d65':
  Cannot click on the last touch explored auto-completion item.
2012-06-07 19:55:08 -07:00
Svetoslav Ganov
75fb3e7ac2 Merge "Cannot click on the last touch explored auto-completion item." into jb-dev 2012-06-07 19:52:19 -07:00
Kenny Root
987ad95821 am 6dd3a0d6: am 87353093: Merge "Measure ASECs for forward-locked apps" into jb-dev
* commit '6dd3a0d61f707e7f5a9338113217eadac1849e48':
  Measure ASECs for forward-locked apps
2012-06-07 17:21:39 -07:00
Dianne Hackborn
d0c5f515c0 Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...
...mismatched uid: X on disk, Y in settings" errors on Froyo and Gingerbread

Deal more gracefully with the uid changing in three ways:

1. If the uid on disk has become root, then have installd change it to
   the application's uid.  This is to correct a potential case where
   installd was interrupted while linking or unlinking the libs dir,
   during which it temporarily changes the owner of the dir to root
   so that a malicious app can not get in its way.  So if the uid on
   disk has become root, we assume we can safely just change it back
   to the correct uid.

2. When scaning packages at boot, use the same "delete and rebuild data
   directory" code for third party applications as we have for system
   applications.  This allows us to at least end up in a state where the
   app will run, even if its data is lost.

3. But we really don't want to get in to case 2, so if an application
   update is being installed and we find that the uid we now have for
   the app is different than the one on disk, fail the update.  This will
   protect against for example a developer changing the sharedUserId of
   their app and getting into this bad state.

Bug: 6295373
Change-Id: Ic802fdd818ac62449ff3c61d1fff1aa4d4942f39
2012-06-07 16:57:57 -07:00
Svetoslav Ganov
385d9f24b5 Cannot click on the last touch explored auto-completion item.
1. When typing into an auto completion edit field a list of completions pops up and if
   the user touch explores the list and tries to double tap to select the touched
   completion the latter is not selected.

   The auto completion is a popup that does not take input focus and is overlaid on
   top of the window that has input focus. The touch explorer was clicking on the
   location of the accessibility focus if the last touch explored location is within
   the bounds of the active window. In this case this was the window with the edit
   text into which the user is typing. The check performed by the touch explorer
   was missing the case when the last touch explored location was within the bounds
   of the active window but it actually was deloverd to another overlaid window.
   Now we are poking on the accessibility focus location if the last explored
   location is within the active window and was delivered to it.

bug:6629535

Change-Id: Ie66d5bb81ab021f2bb0414339b7de26d96826191
2012-06-07 16:35:11 -07:00
Kenny Root
6dd3a0d61f am 87353093: Merge "Measure ASECs for forward-locked apps" into jb-dev
* commit '87353093ef98f13c45c418884734460a1b09c149':
  Measure ASECs for forward-locked apps
2012-06-07 16:34:32 -07:00
Kenny Root
87353093ef Merge "Measure ASECs for forward-locked apps" into jb-dev 2012-06-07 15:40:54 -07:00
Kenny Root
8a97c0905a am 41668981: am 906272b9: Merge "Only call fixSdPermissions when appropriate" into jb-dev
* commit '41668981aeef6f56d7528d91efa0372b9f6224b2':
  Only call fixSdPermissions when appropriate
2012-06-07 14:29:15 -07:00
Kenny Root
41668981ae am 906272b9: Merge "Only call fixSdPermissions when appropriate" into jb-dev
* commit '906272b977f5bfd977ca69d0826bb95ba3fcda63':
  Only call fixSdPermissions when appropriate
2012-06-07 14:23:42 -07:00
Kenny Root
906272b977 Merge "Only call fixSdPermissions when appropriate" into jb-dev 2012-06-07 14:21:14 -07:00
Colin Cross
dccb2c16e5 PowerManagerService: call surfaceflinger blank and unblank through binder
Synchronize with SurfaceFlinger during screen off and on to ensure that
a black frame has been drawn on the display, and then trigger all early
suspend handlers on devices that have early suspend, as well as PowerHAL
operations.

Change-Id: I8a5ad5a84c9e80ce5bb8f7f0b09b064e2b9ad4ef
2012-06-07 14:01:22 -07:00
Svetoslav Ganov
4210a6f08b am 8114f439: am ddbcce81: Merge "Cannot interact with dialogs when IME is up and on not touch explored popups." into jb-dev
* commit '8114f439fe8b409a00ac704b37128922690e2186':
  Cannot interact with dialogs when IME is up and on not touch explored popups.
2012-06-07 14:00:29 -07:00
Svetoslav Ganov
8114f439fe am ddbcce81: Merge "Cannot interact with dialogs when IME is up and on not touch explored popups." into jb-dev
* commit 'ddbcce81acaa744d35c727d9a530b04255fab5af':
  Cannot interact with dialogs when IME is up and on not touch explored popups.
2012-06-07 13:53:39 -07:00
Kenny Root
2afded11aa Measure ASECs for forward-locked apps
Forward-locked apps are mostly in ASEC containers now, so the
containers need to be measured as well.

Bug: 6606390
Change-Id: I69e9fe47aabe1e130568779a45fe8000b3ce9d4c
2012-06-07 13:23:10 -07:00
Kenny Root
c7a8999a52 Only call fixSdPermissions when appropriate
When media packages were loaded, they would lose their forward-locked
status since the flags covering it was not available when the
doPostInstall step was called.

Bug: 6611980
Change-Id: I807fcec6b61cedf7654808b704fba7de9c7c1922
2012-06-07 12:50:15 -07:00
Svetoslav Ganov
86783474fd Cannot interact with dialogs when IME is up and on not touch explored popups.
1. If the last touch explored location is within the active window we
   used to click on exact location if it is within the accessibility
   focus otherwise in the accessibility focus center. If the last touch
   explored location is not within the active window we used to just
   click there. This breaks in the case were one has touch explored
   at a given place in the current window and now a dialog opens *not*
   covering the touch explored location. If one uses swipes to move
   accessibility focus i.e. to traverse the dialog without touching
   it one cannot activate anything because the touch explorer is using
   the last touch explored location that is outside of the active
   window e.g the dialog.

   The solution is to clear the last touch explored location when a
   window opens or accessibility focus moves. If the last touch
   explored location is null we are clicking in the accessibility
   focus location.

bug:6620911

2. There is a bug in the window manager that does not notify a
   window that its location has changed (bug:6623031). This breaks
   accessibility interaction with dialogs that have input because
   when the IME is up the dialog is moved but not notified. Now
   the accessibility layer gets incorrect location for the
   accessibility focus and the window bounds.

   The soluion is when the accessibility manager service calls
   into the remove thress to obtain some accessibility node infos
   it passes the window left and top which it gets from the
   window manager. These values are used to update the attach info
   window left and top so all accessibility node infos emitted
   from that window had correct bounds in screen coordinates.

bug:6620796

Change-Id: I18914f2095c55cfc826acf5277bd94b776bda0c8
2012-06-07 12:02:16 -07:00
Robert Greenwalt
3cab89e691 Merge "Fix a sync problem in NativeDaemonConnector." 2012-06-07 11:37:15 -07:00