Commit Graph

28775 Commits

Author SHA1 Message Date
Jeff Sharkey
4a55653e34 am abd0c099: am 45ed828a: am c85e16ca: Merge "Make RegisteredServicesCache multi-user aware." into jb-mr1-dev
* commit 'abd0c099c75d85ebca9281c7937b5b5b86f6066f':
  Make RegisteredServicesCache multi-user aware.
2012-10-10 08:42:10 -07:00
Satoshi Kataoka
ad9d695ecc am 78bd3854: am 27e2b6c2: am 0aaffb14: Merge "Don\'t update the text services locale in the main thread" into jb-mr1-dev
* commit '78bd3854c63261cc01321ebb41a29d9302ae1b8f':
  Don't update the text services locale in the main thread
2012-10-10 08:42:07 -07:00
Svetoslav Ganov
3c444d2c13 am de9e026f: am d849afb1: am a726e23d: Merge "Cannot force a shown item from an ActionMode into the overflow menu." into jb-mr1-dev
* commit 'de9e026f10fde0726db97af002989b1248e4aa51':
  Cannot force a shown item from an ActionMode into the overflow menu.
2012-10-10 08:41:58 -07:00
Jeff Sharkey
abd0c099c7 am 45ed828a: am c85e16ca: Merge "Make RegisteredServicesCache multi-user aware." into jb-mr1-dev
* commit '45ed828ae2f8030186da8aa9848764f4a9f32224':
  Make RegisteredServicesCache multi-user aware.
2012-10-10 08:38:00 -07:00
Satoshi Kataoka
78bd3854c6 am 27e2b6c2: am 0aaffb14: Merge "Don\'t update the text services locale in the main thread" into jb-mr1-dev
* commit '27e2b6c25f17af7515e405d7a6a4a8f9cf1225b3':
  Don't update the text services locale in the main thread
2012-10-10 08:37:56 -07:00
Svetoslav Ganov
de9e026f10 am d849afb1: am a726e23d: Merge "Cannot force a shown item from an ActionMode into the overflow menu." into jb-mr1-dev
* commit 'd849afb172e9e82a6814baa5c6d2fdcb8cf7736b':
  Cannot force a shown item from an ActionMode into the overflow menu.
2012-10-10 08:37:46 -07:00
Jeff Sharkey
45ed828ae2 am c85e16ca: Merge "Make RegisteredServicesCache multi-user aware." into jb-mr1-dev
* commit 'c85e16cafb777607e6c38e1843c5fa194b8086b3':
  Make RegisteredServicesCache multi-user aware.
2012-10-10 08:33:49 -07:00
Satoshi Kataoka
27e2b6c25f am 0aaffb14: Merge "Don\'t update the text services locale in the main thread" into jb-mr1-dev
* commit '0aaffb14c8e243433bab1a1bd5773005f0f17699':
  Don't update the text services locale in the main thread
2012-10-10 08:33:45 -07:00
Svetoslav Ganov
d849afb172 am a726e23d: Merge "Cannot force a shown item from an ActionMode into the overflow menu." into jb-mr1-dev
* commit 'a726e23d7b13824ede2cdc185ce846238d348604':
  Cannot force a shown item from an ActionMode into the overflow menu.
2012-10-10 08:33:37 -07:00
Jeff Sharkey
c85e16cafb Merge "Make RegisteredServicesCache multi-user aware." into jb-mr1-dev 2012-10-09 23:47:01 -07:00
Satoshi Kataoka
0aaffb14c8 Merge "Don't update the text services locale in the main thread" into jb-mr1-dev 2012-10-09 23:36:50 -07:00
Svetoslav Ganov
a726e23d7b Merge "Cannot force a shown item from an ActionMode into the overflow menu." into jb-mr1-dev 2012-10-09 22:01:55 -07:00
Jeff Sharkey
6ab72d74b8 Make RegisteredServicesCache multi-user aware.
RegisteredServicesCache is used to track account authenticators and
sync adapters, which can vary based on user.  This change requires
that callers now provide a userId when making cache requests.  It
continues persisting into a single file for now, which is keyed based
on UID.

It now watches for package broadcasts from all users, and scans
packages on-demand.  It changes cache callers to provide a relevant
userId, and evicts cache entries when users are stopped.

Changes SyncManager to only work with accounts from running users,
only kicking off pending syncs once a user is started.

Bug: 7276595, 7316150
Change-Id: I79466a84aa69aa37e4bd9691c5d6221d3662ff29
2012-10-09 21:39:19 -07:00
Svetoslav Ganov
14c4669916 Cannot force a shown item from an ActionMode into the overflow menu.
1. An app showing an action mode with a visible item that decides to move this item
   to the overflow menu cannot do so since the action menu is not updated properly.
   Specifically, ActionMenuPresenter does not clear the "is action button" property
   of a menu item neither requires nor requests an action button, i.e. the item's
   "show as action" property changed to be never shown on the action bar.

bug:7319766

Change-Id: I5cfda6269466fafca1f039a3bab6397392ae9f17
2012-10-09 19:20:27 -07:00
Dianne Hackborn
3c30494d44 am 572286b4: am 31af905a: am 36db9d08: Merge "Further work on issue #7307399: Framework needs a new pre-user-shutdown..." into jb-mr1-dev
* commit '572286b4152245a73ac00ebc69b4bd8fc4bc586d':
  Further work on issue #7307399: Framework needs a new pre-user-shutdown...
2012-10-09 19:17:09 -07:00
Dianne Hackborn
572286b415 am 31af905a: am 36db9d08: Merge "Further work on issue #7307399: Framework needs a new pre-user-shutdown..." into jb-mr1-dev
* commit '31af905ac5388339fd0ffd87e6f25bd2a293dc0e':
  Further work on issue #7307399: Framework needs a new pre-user-shutdown...
2012-10-09 19:14:24 -07:00
Dianne Hackborn
31af905ac5 am 36db9d08: Merge "Further work on issue #7307399: Framework needs a new pre-user-shutdown..." into jb-mr1-dev
* commit '36db9d0879640a1cb9a8723d6649068a1c4c08de':
  Further work on issue #7307399: Framework needs a new pre-user-shutdown...
2012-10-09 19:13:13 -07:00
Dianne Hackborn
36db9d0879 Merge "Further work on issue #7307399: Framework needs a new pre-user-shutdown..." into jb-mr1-dev 2012-10-09 19:10:49 -07:00
Svetoslav Ganov
ca4dabc360 am 8ca8e02b: am 52c59ddf: am 27258209: Merge "Return true on successful accessiblity action click/long click." into jb-mr1-dev
* commit '8ca8e02bf207e77fcae644d8ecb30143ec098f6d':
  Return true on successful accessiblity action click/long click.
2012-10-09 17:59:26 -07:00
Dianne Hackborn
c0bd747b06 Further work on issue #7307399: Framework needs a new pre-user-shutdown...
...phase & callback API

I realized there were a few things wrong with what was there.  The new
ACTION_USER_STARTING was not being sent for the first user at boot, and
there was an existing problem where ACTION_USER_STARTED was sent every
time there was a user switch.

Also improved some debug output of broadcasts to make it easier to see
what is going on in this stuff, and better reporting of why a service
couldn't be started.

Change-Id: Id8a536defbbad1f73d94a37d13762436b822fbe3
2012-10-09 17:57:14 -07:00
Svetoslav Ganov
8ca8e02bf2 am 52c59ddf: am 27258209: Merge "Return true on successful accessiblity action click/long click." into jb-mr1-dev
* commit '52c59ddfee480fe974194af6a6abe7fbd19aba9d':
  Return true on successful accessiblity action click/long click.
2012-10-09 17:57:06 -07:00
Svetoslav Ganov
52c59ddfee am 27258209: Merge "Return true on successful accessiblity action click/long click." into jb-mr1-dev
* commit '27258209fee11a45154875c3c5493962f55904d2':
  Return true on successful accessiblity action click/long click.
2012-10-09 17:54:58 -07:00
Dianne Hackborn
96a739737f am 7beb70a9: am e5456645: am 840590dd: Merge "Fix issue #7311376: Add API to allow apps to know if they are..." into jb-mr1-dev
* commit '7beb70a94af2ce29b4184fd7927bba93d90cf878':
  Fix issue #7311376: Add API to allow apps to know if they are...
2012-10-09 17:53:13 -07:00
Svetoslav Ganov
27258209fe Merge "Return true on successful accessiblity action click/long click." into jb-mr1-dev 2012-10-09 17:52:01 -07:00
Dianne Hackborn
7beb70a94a am e5456645: am 840590dd: Merge "Fix issue #7311376: Add API to allow apps to know if they are..." into jb-mr1-dev
* commit 'e54566457869a15d606870c230662b76c02456cb':
  Fix issue #7311376: Add API to allow apps to know if they are...
2012-10-09 17:51:13 -07:00
Dianne Hackborn
e545664578 am 840590dd: Merge "Fix issue #7311376: Add API to allow apps to know if they are..." into jb-mr1-dev
* commit '840590dd642719f402491092944a12475d6d6a8e':
  Fix issue #7311376: Add API to allow apps to know if they are...
2012-10-09 17:49:11 -07:00
Dianne Hackborn
840590dd64 Merge "Fix issue #7311376: Add API to allow apps to know if they are..." into jb-mr1-dev 2012-10-09 17:46:36 -07:00
Chris Wren
d8d279a956 am b0a23017: am f37e38a0: am f966cf35: Merge "default the screen on during the dream." into jb-mr1-dev
* commit 'b0a230174d3c8a6d13935679ee7d2e90c0817c14':
  default the screen on during the dream.
2012-10-09 17:44:27 -07:00
Chris Wren
b0a230174d am f37e38a0: am f966cf35: Merge "default the screen on during the dream." into jb-mr1-dev
* commit 'f37e38a0b3284aaa27a153a3c017a60be1018e3e':
  default the screen on during the dream.
2012-10-09 17:42:28 -07:00
Chris Wren
f37e38a0b3 am f966cf35: Merge "default the screen on during the dream." into jb-mr1-dev
* commit 'f966cf353942690ca691e52a5b396a824fd52829':
  default the screen on during the dream.
2012-10-09 17:41:05 -07:00
Chris Wren
f966cf3539 Merge "default the screen on during the dream." into jb-mr1-dev 2012-10-09 17:38:30 -07:00
Dianne Hackborn
a8a9bd65bf Fix issue #7311376: Add API to allow apps to know if they are...
...running as the foreground user

Add UserManager.isUserRunning() which is the public version of the
existing method on ActivityManager.

Also add UserManager.isUserRunningOrStopping() since that seems like
it will be useful.

And fix the internal function that returns the array of currently
running users to not include stopped users.

Change-Id: I84672fa8748fc027fd402729586b5603f640e498
2012-10-09 17:00:31 -07:00
Svetoslav Ganov
96985fccdc Return true on successful accessiblity action click/long click.
1. If a view is clickable or long clickable perfroming the corresponding
   accessiblity action should return true no matter whether there is a
   registered on click/long click listener. Currently true is returned
   only if there is a listener but it is also possible that a sub-class
   overrides performClick and does work there. For example CompoundButton.
   Now if the view is clickable or long clickable we will call the
   perfrom* method and return true, which is we clicked.

2. Fixed some JavaDoc indentation.

bug:7318777

Change-Id: Id603fee378b8f7d07f1128b5641ede57640bab53
2012-10-09 16:32:50 -07:00
Christopher Tate
cf32f96620 am fcd4db9b: am 711b4fca: am c9c47f82: Merge "Back up / restore the "Avoid poor connections" wifi setting" into jb-mr1-dev
* commit 'fcd4db9b8174b40a76f77bea73011c6470772465':
  Back up / restore the "Avoid poor connections" wifi setting
2012-10-09 16:07:47 -07:00
Christopher Tate
fcd4db9b81 am 711b4fca: am c9c47f82: Merge "Back up / restore the "Avoid poor connections" wifi setting" into jb-mr1-dev
* commit '711b4fcadda2948b73e97f4ff3dc3e96b5316499':
  Back up / restore the "Avoid poor connections" wifi setting
2012-10-09 16:05:25 -07:00
Christopher Tate
711b4fcadd am c9c47f82: Merge "Back up / restore the "Avoid poor connections" wifi setting" into jb-mr1-dev
* commit 'c9c47f821af22c6fae4c97fe185c6a651a6f9b67':
  Back up / restore the "Avoid poor connections" wifi setting
2012-10-09 16:01:59 -07:00
Christopher Tate
c9c47f821a Merge "Back up / restore the "Avoid poor connections" wifi setting" into jb-mr1-dev 2012-10-09 15:57:06 -07:00
Eino-Ville Talvala
d6c0c114b9 am c2b90f77: am 685a5128: am cbdb2136: Merge "Camera: Query AudioService for shutter sound enforcement." into jb-mr1-dev
* commit 'c2b90f77bd9c79e9437a1799140b1da215c949c6':
  Camera: Query AudioService for shutter sound enforcement.
2012-10-09 15:28:55 -07:00
Christopher Tate
16eb7cd457 Back up / restore the "Avoid poor connections" wifi setting
Bug 7318177

Change-Id: I8fdc037f823b8c57727e7d49c5bffdc9b3c10ebb
2012-10-09 15:26:30 -07:00
Eino-Ville Talvala
c2b90f77bd am 685a5128: am cbdb2136: Merge "Camera: Query AudioService for shutter sound enforcement." into jb-mr1-dev
* commit '685a512868a7da11f7097282fd1a4a2af070d816':
  Camera: Query AudioService for shutter sound enforcement.
2012-10-09 15:26:07 -07:00
Eino-Ville Talvala
685a512868 am cbdb2136: Merge "Camera: Query AudioService for shutter sound enforcement." into jb-mr1-dev
* commit 'cbdb21364653910179da1eddd43f4b932420b75b':
  Camera: Query AudioService for shutter sound enforcement.
2012-10-09 15:23:54 -07:00
Eino-Ville Talvala
cbdb213646 Merge "Camera: Query AudioService for shutter sound enforcement." into jb-mr1-dev 2012-10-09 15:21:36 -07:00
Adam Powell
68293b35dc am d338b977: am db380410: am 16062128: Merge "Allow more scaling values to be tuned in resource overlays" into jb-mr1-dev
* commit 'd338b9775bd549bc9d7b2153e60432ac694701fa':
  Allow more scaling values to be tuned in resource overlays
2012-10-09 13:32:38 -07:00
Adam Powell
d338b9775b am db380410: am 16062128: Merge "Allow more scaling values to be tuned in resource overlays" into jb-mr1-dev
* commit 'db38041002c6c9f297e8c8c1eade6471646045b2':
  Allow more scaling values to be tuned in resource overlays
2012-10-09 13:29:38 -07:00
Adam Powell
db38041002 am 16062128: Merge "Allow more scaling values to be tuned in resource overlays" into jb-mr1-dev
* commit '160621280d7eaba7eeddc183c4c11aa49d32e30e':
  Allow more scaling values to be tuned in resource overlays
2012-10-09 13:27:42 -07:00
Adam Powell
160621280d Merge "Allow more scaling values to be tuned in resource overlays" into jb-mr1-dev 2012-10-09 13:25:12 -07:00
Victoria Lease
35b9ec35e7 am 45e001a3: am 45bdc2c1: am c0c0c0e6: Merge "Multiuser love for LocationManager" into jb-mr1-dev
* commit '45e001a3ceb456e8017784b700a645bb2efe4008':
  Multiuser love for LocationManager
2012-10-09 12:29:46 -07:00
Victoria Lease
45e001a3ce am 45bdc2c1: am c0c0c0e6: Merge "Multiuser love for LocationManager" into jb-mr1-dev
* commit '45bdc2c170d37ac4821423f28cda141687256ab2':
  Multiuser love for LocationManager
2012-10-09 12:27:08 -07:00
Victoria Lease
45bdc2c170 am c0c0c0e6: Merge "Multiuser love for LocationManager" into jb-mr1-dev
* commit 'c0c0c0e612e1ccf1e55eb2a9338ddfff40d8d7f2':
  Multiuser love for LocationManager
2012-10-09 12:24:42 -07:00
Victoria Lease
c0c0c0e612 Merge "Multiuser love for LocationManager" into jb-mr1-dev 2012-10-09 12:22:03 -07:00