8678 Commits

Author SHA1 Message Date
Jeff Sharkey
c41a803b47 am 1951db86: Merge "Multi-user ringtone playback." into jb-mr1-dev
* commit '1951db86f527ff4e8c2ddf4306779ce956cd372d':
  Multi-user ringtone playback.
2012-09-26 13:41:11 -07:00
Jeff Sharkey
1951db86f5 Merge "Multi-user ringtone playback." into jb-mr1-dev 2012-09-26 13:38:22 -07:00
Jeff Sharkey
65c4a2b26c Multi-user ringtone playback.
Change RingtonePlayer to open content:// Uris based on requesting
UserHandle.  Grant SystemUI visibility to all emulated storage so
it can play ringtones for apps without READ_EXTERNAL_STORAGE.

Resolve canonical file:// Uris before passing out of source app,
replacing any /emulated_legacy/-style paths with user-specific
variant so they can be opened by SystemUI.  Calling for RemoteViews,
Ringtones, and Notifications.

Bug: 7202982
Change-Id: Ibf0eca8df80c1486711144a7b648f464aadfe099
2012-09-26 10:49:35 -07:00
Victoria Lease
b1a35bdee9 am 72a37470: Merge "getBestProvider() prefers GPS over NLP" into jb-mr1-dev
* commit '72a374705d32cf715443aa203f75c159e1bc9bd5':
  getBestProvider() prefers GPS over NLP
2012-09-26 08:01:08 -07:00
Victoria Lease
72a374705d Merge "getBestProvider() prefers GPS over NLP" into jb-mr1-dev 2012-09-26 07:59:13 -07:00
Satoshi Kataoka
d53a08877d am 4e1ab15b: Enable multi-user function for IMF
* commit '4e1ab15b305aac26ad8819fc3b2951e20985944d':
  Enable multi-user function for IMF
2012-09-26 03:25:07 -07:00
Satoshi Kataoka
4e1ab15b30 Enable multi-user function for IMF
Bug: 6931482

Change-Id: Ib23849d352db33f0747aa9d5a178f00ac726c13b
2012-09-26 19:22:04 +09:00
Matthew Xie
709aae3bd1 am 5e1c74db: Merge "Remove permission check in registerAdapter" into jb-mr1-dev
* commit '5e1c74dbbe1ccf93ab13a3cc9e46e98988036762':
  Remove permission check in registerAdapter
2012-09-25 21:06:25 -07:00
Matthew Xie
5e1c74dbbe Merge "Remove permission check in registerAdapter" into jb-mr1-dev 2012-09-25 21:04:15 -07:00
Matthew Xie
670ef53353 Remove permission check in registerAdapter
This matches the JB behavior of getDefaultAdapter public api
bug 6948829

Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
2012-09-25 18:25:54 -07:00
Jeff Sharkey
558f6d654f am 6e065a72: Merge "Handle multi-user mountObb() requests." into jb-mr1-dev
* commit '6e065a729dbf08f99209a7710da80442a394ec0d':
  Handle multi-user mountObb() requests.
2012-09-25 17:53:35 -07:00
Jeff Sharkey
6e065a729d Merge "Handle multi-user mountObb() requests." into jb-mr1-dev 2012-09-25 17:52:14 -07:00
Jeff Sharkey
4fbbda4cec Handle multi-user mountObb() requests.
Since emulated external storage paths differ based on execution
context, carefully fix up paths for various use-cases:

1. When sending paths to DefaultContainerService, always scope
   OBB paths as belonging to USER_OWNER.
2. When sending paths to vold, always build emulated storage paths
   visible to root.
3. Always use the original untouched path when talking with apps.

Mount OBB containers using shared app GID, so that an app can read
the mount point across users.

Handle legacy paths like "/sdcard" by resolving the canonical path
before sending to MountService.  Move tests to servicestests, and
add tests for new path generation logic.

Bug: 7212801
Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
2012-09-25 17:34:48 -07:00
Jeff Brown
3476cb8ec2 am b32e2216: Merge changes I332f020f,I632648ac into jb-mr1-dev
* commit 'b32e221699201cb647beae3fe0a1771fd5a41cf4':
  Update references to migrated global settings.
  Handle user switched for settings changes.
2012-09-25 17:05:56 -07:00
Jeff Brown
f5cbed0177 am 0a52088e: Merge "Fix typo." into jb-mr1-dev
* commit '0a52088e58a6ddea0966ba9cd2fbc7bd3e23809a':
  Fix typo.
2012-09-25 17:04:02 -07:00
Jeff Brown
b32e221699 Merge changes I332f020f,I632648ac into jb-mr1-dev
* changes:
  Update references to migrated global settings.
  Handle user switched for settings changes.
2012-09-25 17:03:11 -07:00
Jeff Brown
0a52088e58 Merge "Fix typo." into jb-mr1-dev 2012-09-25 17:02:06 -07:00
Svetoslav Ganov
53da9d3490 am c91fb587: Merge "Adding a global accessibility action to open quick settings." into jb-mr1-dev
* commit 'c91fb5875bfd7f91d50d6fe939873872b53c8b2f':
  Adding a global accessibility action to open quick settings.
2012-09-25 16:49:56 -07:00
Svetoslav Ganov
c91fb5875b Merge "Adding a global accessibility action to open quick settings." into jb-mr1-dev 2012-09-25 16:47:06 -07:00
Svetoslav Ganov
e20a177d3f Adding a global accessibility action to open quick settings.
1. Added APIs for opening the quick settings to the StatusBarManagerService
   and the local StatausBarManager. The new APIs are protected by the old
   EXPAND_STATUS_BAR permission.
   Renamed the expand* and collapse* non-public APIs that are expanding
   the notifications to expandNotifications* collapseNotifications* to
   better convey what they do given that this change adds
   expandQuickSettings* and collapseQuickSettings*.
   Added a global action to the accessibility layer to expand the quick
   settings which is calling into the new status bar manager APIs.

bug:7030487

Change-Id: Ic7b46e1a132f1c0d71355f18e7c5a9a2424171c3
2012-09-25 16:07:59 -07:00
Amith Yamasani
0b6a060400 am be47828f: Merge "Load resources for the correct user" into jb-mr1-dev
* commit 'be47828fbce3c647211b6948df4b61a27275cdff':
  Load resources for the correct user
2012-09-25 15:51:35 -07:00
Amith Yamasani
98edc95171 Load resources for the correct user
For apps that are only installed on secondary users, the SystemUI is
unable to see them by default. Added some methods to explicitly pass the
userId of the user the resources are requested for by the StatusBarIcon

Bug: 7214384

Also fix binding to remote views

Bug: 7192802

Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
2012-09-25 15:45:27 -07:00
Jeff Brown
bf6f6f9de7 Update references to migrated global settings.
Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
2012-09-25 15:27:51 -07:00
Jeff Brown
d49359631b Handle user switched for settings changes.
Move OVERLAY_DISPLAY_DEVICES to Global.

Bug: 7127417
Change-Id: I632648ac5b01408512f59424f3bb55162431bea4
2012-09-25 15:26:51 -07:00
Jeff Brown
28e0b09a3d Fix typo.
Bug: 7183618
Change-Id: I0c761fc7f55b3f182007cb4d50cbfdce309f844a
2012-09-25 15:15:17 -07:00
Svetoslav Ganov
4a847601c2 am 1c9766e3: Merge "The active window for accessibilitiy incorrectly tracked." into jb-mr1-dev
* commit '1c9766e32a630c72db400a769430e60549062577':
  The active window for accessibilitiy incorrectly tracked.
2012-09-25 14:49:50 -07:00
Svetoslav Ganov
1c9766e32a Merge "The active window for accessibilitiy incorrectly tracked." into jb-mr1-dev 2012-09-25 14:46:58 -07:00
Svetoslav Ganov
f3df6b087b am a8afa694: Regression in screen introspection APIs due to the multi-user change.
* commit 'a8afa694d6881266ad762aacdac92b2047f9a86c':
  Regression in screen introspection APIs due to the multi-user change.
2012-09-25 14:07:46 -07:00
Svetoslav Ganov
a8afa694d6 Regression in screen introspection APIs due to the multi-user change.
1. The initial user was set to USER_NULL but some clients were registering
   before the user change callback happens. Since the initial user is
   the owner the current user id defaults to USER_OWNER.

2. The check for global clients and window connections was using the
   calling UID but there are processes that run in a per user basis
   as system UID (Setting for example). Now the check is stronger
   and comparing the caller PID with that of the system process.

3. The code for finding the focused window id was not checking the
   global window token list in addition to that of the current user.

4. The code updating the active window id was calling out into the
   window manager with a lock held.

bug:7224670

Change-Id: I9f4b7ea67eb5598b30ee7d1b68a1d3ce0cf8cfb4
2012-09-25 13:59:37 -07:00
Amith Yamasani
0badb67818 am b8c2ac3e: Merge "Watch for voice recognition service changes for all users" into jb-mr1-dev
* commit 'b8c2ac3ecb6ee6319df65a88f42141c070b46163':
  Watch for voice recognition service changes for all users
2012-09-25 12:49:08 -07:00
Jean-Baptiste Queru
91a07b878f am fe3632bc: Merge into jb-mr1-dev
* commit 'fe3632bcbea6aabe0e363c00097767465a1d7797':
  More than one finger at a time can trigger a system crash.
2012-09-25 12:48:21 -07:00
Jean-Baptiste Queru
8764b9336c am 56d8cc10: Merge into jb-mr1-dev
* commit '56d8cc103150eecad8911754735abec3a7ce9691':
  Magnified frame not properly computed when keyguard goes away.
2012-09-25 12:48:17 -07:00
Jean-Baptiste Queru
876576b14f am ecfc9ca5: Merge into jb-mr1-dev
* commit 'ecfc9ca5f5233ad2eb6921c05250b8b3ebbc4c58':
  Use global wifi_sleep_policy constants
2012-09-25 12:48:13 -07:00
Amith Yamasani
1feb6fc416 am 95293865: Fix build
* commit '95293865bde95d2a41cb6edb0d113277000ccb29':
  Fix build
2012-09-25 12:48:07 -07:00
Jean-Baptiste Queru
ad8f410e69 am 0dfe1cf3: Merge into jb-mr1-dev
* commit '0dfe1cf3cda5accef0a3c361593ccc716e725539':
  Fix dialogs on secondary displays.
2012-09-25 12:48:04 -07:00
Jean-Baptiste Queru
74b11cbff0 am 7951c459: Merge into jb-mr1-dev
* commit '7951c459aefeb012638477b762e19b792ecbe009':
  AppInfo from Notifications for secondary users
2012-09-25 12:47:49 -07:00
Jean-Baptiste Queru
507cb6e231 am ec199613: Merge into jb-mr1-dev
* commit 'ec1996131d2e17408a22fd55fbc3edba5ea80d02':
  Fix surface view on secondary display.
  Fix drag and drop surfaces on secondary displays.
  Allow a window on a secondary display to have focus.
2012-09-25 12:47:27 -07:00
Jean-Baptiste Queru
df3131e466 am 6fb2514c: Merge into jb-mr1-dev
* commit '6fb2514cdf77e2657d7b73b0cd97e060aefc6b53':
  Fix issue #7215984: java.lang.RuntimeException: Unable to create...
2012-09-25 12:46:26 -07:00
Amith Yamasani
f80a9b2f8a Watch for voice recognition service changes for all users
Monitor package changes and update the default recognizer

Bug: 7216043

Change-Id: I6b358b62401eaf58b38059caa57f72585f332eb5
2012-09-25 10:31:47 -07:00
Jean-Baptiste Queru
fe3632bcbe Merge into jb-mr1-dev
Change-Id: Ib0523ded92e2fe4be6a32d092baa55b527229c07
2012-09-25 09:42:01 -07:00
Jean-Baptiste Queru
56d8cc1031 Merge into jb-mr1-dev
Change-Id: I6504b000be7e3b6e770af99c5a922fd1e9ec73de
2012-09-25 09:41:25 -07:00
Jean-Baptiste Queru
ecfc9ca5f5 Merge into jb-mr1-dev
Change-Id: Ia9c5e2295fe61ae0f5275d3ddfd056d9778b66d1
2012-09-25 09:40:41 -07:00
Amith Yamasani
95293865bd Fix build
Merge error...

Change-Id: I0e674ee25a080fa6abfaa9da893084d6b4fa69a6
2012-09-25 09:39:36 -07:00
Jean-Baptiste Queru
0dfe1cf3cd Merge into jb-mr1-dev
Change-Id: Id8bbccaa542bef3351958fb6749370880a1921f3
2012-09-25 09:37:51 -07:00
Jean-Baptiste Queru
7951c459ae Merge into jb-mr1-dev
Change-Id: Ifc2328e30a52c2baebc1322c9b161104dcf21618
2012-09-25 09:36:32 -07:00
Jean-Baptiste Queru
ec1996131d Merge into jb-mr1-dev
Change-Id: I97ff2551b36a1b590f2d314cabfcf198dd10f404
2012-09-25 09:35:19 -07:00
Jean-Baptiste Queru
6fb2514cdf Merge into jb-mr1-dev
Change-Id: I1baab28b12364213673ed7992207ad198491f286
2012-09-25 09:25:15 -07:00
Svetoslav Ganov
76c0dd4827 The active window for accessibilitiy incorrectly tracked.
1. The active window for accessibility purposes is the either the
   window the user is touching or the window that has input focus. We
   were using the touch exploration gesture end event to figure
   when the user stops touching the screen so we can set the active
   window to the input focused one. However, we do not send such
   gesture end if the user does not touch explore. If the user only
   taps we do not consider this touch exploring. We now have dedicated
   accessibility events for first and last touch and this change uses
   them as a guide when to update the active window.

bug:6523219

Change-Id: I6262c0c5f408b02dbaa127664e4b426935d7f81f
2012-09-24 19:16:20 -07:00
Svetoslav Ganov
03e7b88815 More than one finger at a time can trigger a system crash.
1. The crash was happening if: two active pointers are performing a drag;
   there are some inactive pointers down; the main dragging pointer (we are
   merging the dragging pointers into one) goes up; now an inactive pointer
   goes up and the explorer tries to inject up for the dragging pointer
   which is no longer in the event resulting in a crash. Basically two
   problems: inactive pointers were not ignored; 2) having only one
   active pointer should not only send the up event but also transition
   the explorer in touch exploring state.

bug:6874128

Change-Id: I341fc360ebc074fe3919d5ba3b98ee5cb08dd71e
2012-09-24 18:43:30 -07:00
Jeff Brown
3671410b9e Fix dialogs on secondary displays.
Bug: 7183618
Change-Id: I65b650a0c423f3081c412a7341b7427b6ac85e24
2012-09-24 17:36:06 -07:00