summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix issue #7232952: Settings crash on tapping on Downloaded apps on a ↵Dianne Hackborn2012-09-272-3/+4
|\ | | | | | | secondary user" into jb-mr1-dev
| * Fix issue #7232952: Settings crash on tapping on Downloaded apps on a ↵Dianne Hackborn2012-09-262-3/+4
| | | | | | | | | | | | | | | | | | secondary user Also tweak bind flags for new location services so they aren't put so aggressively up in the oom adj list. Change-Id: I9da25a3fea7681013b4d95b7db7e9a808f2d733b
* | Merge changes I2c09abaa,I9d8406e1 into jb-mr1-devJeff Brown2012-09-263-35/+40
|\ \ | | | | | | | | | | | | | | | * changes: Cure narcolepsy. Allow applications to connect to known wifi displays.
| * | Cure narcolepsy.Jeff Brown2012-09-261-2/+2
| | | | | | | | | | | | | | | Bug: 7204211 Change-Id: I2c09abaad5d321cec6f62f7ca0ce00c3b61ee211
| * | Allow applications to connect to known wifi displays.Jeff Brown2012-09-262-33/+38
| | | | | | | | | | | | | | | Bug: 7177920 Change-Id: I9d8406e1016988e2cd267dfa52d78a829f1b385e
* | | Merge "Remove unused Secure settings." into jb-mr1-devJeff Sharkey2012-09-261-22/+7
|\ \ \
| * | | Remove unused Secure settings.Jeff Sharkey2012-09-261-22/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Carefully leave default values intact in Watchdog for now. Bug: 7232007, 7232230 Change-Id: Id944181109305aed41e0766fdd39625b43cb1d19
* | | | Merge "First step towards cleaning up Global settings." into jb-mr1-devJeff Sharkey2012-09-263-38/+38
|\ \ \ \ | |/ / /
| * | | First step towards cleaning up Global settings.Jeff Sharkey2012-09-263-38/+38
| | |/ | |/| | | | | | | | | | | | | | | | Remove all @Deprecated @hide settings, and clean up any stragglers. Bug: 7232125 Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
* | | Merge "Fix for bug: #7173350. elapsedRealtimeNano() -> ↵Philip Milne2012-09-264-15/+8
|\ \ \ | |_|/ |/| | | | | elapsedRealtimeNanos()" into jb-mr1-dev
| * | Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()Philip Milne2012-09-264-15/+8
| | | | | | | | | | | | Change-Id: Ie38952bbaace080e81e41e61350cda172951d548
* | | Make DreamManagerService more robust.Jeff Brown2012-09-266-569/+565
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clearly isolated the DreamManagerService and DreamController responsibilities. DreamManagerService contains just enough logic to manage the global synchronous behaviors. All of the asynchronous behaviors are in DreamController. Added a new PowerManager function called nap() to request the device to start napping. If it is a good time to nap, then the PowerManagerService will call startDream() on the DreamManagerService to start dreaming. Fixed a possible multi-user issue by explicitly tracking for which user a dream service is being started and stopping dreams when the current user changes. The user id is also passed to bindService() to ensure that the dream has the right environment. Fix interactions with docks and the UI mode manager. It is important that we always send the ACTION_DOCK_EVENT broadcast to the system so that it can configure audio routing and the like. When docked, the UI mode manager starts a dock app if there is one, otherwise it starts a dream. This change resolves issues with dreams started for reasons other than a user activity timeout. Bug: 7204211 Change-Id: I3193cc8190982c0836319176fa2e9c4dcad9c01f
* | | Move DreamManagerService to its own package.Jeff Brown2012-09-263-5/+3
| |/ |/| | | | | | | Bug: 7204211 Change-Id: Ia6cfe252647161df357a4de149a06fa1e3fd63fa
* | Merge "Maybe fix issue #7211766: bindService() to User u0 While u10 is..." ↵Dianne Hackborn2012-09-2613-157/+291
|\ \ | | | | | | | | | into jb-mr1-dev
| * | Maybe fix issue #7211766: bindService() to User u0 While u10 is...Dianne Hackborn2012-09-2613-157/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...Forground Sometimes Doesn't Take The main change here is a one-liner in ActiveServices to check the uid when deciding whether to remove an item from mPendingServices. This could cause the problem being seen -- if the same service for two users is starting at the same time, the second one would blow away the pending start of the first one. Unfortunately I have had trouble reproducing the bug, so I don't know if this is actually fixing it. It's a bug, anyway. The reason so much has changed here is because I spread around logging and printing of the user ID associated with operations and objects to make it easier to debug these kind of multi-user things. Also includes some tweaks to the oom manager to allow more background processes (I have seen many times in logs where we thrash through processes because the LRU list is too short), plus to compensate an additional time-based metric for when to get rid of background processes, plus some new logic to try to help things like Chrome keep around their service processes. Change-Id: Icda77fb2a1dd349969e3ff2c8fff0f19b40b31d3
* | | Merge "Multi-user ringtone playback." into jb-mr1-devJeff Sharkey2012-09-261-2/+2
|\ \ \ | |_|/ |/| |
| * | Multi-user ringtone playback.Jeff Sharkey2012-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "getBestProvider() prefers GPS over NLP" into jb-mr1-devVictoria Lease2012-09-261-3/+3
|\ \ \
| * | | getBestProvider() prefers GPS over NLPVictoria Lease2012-09-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preferring the GPS location provider over NLP should produce better average and worst-case results than NLP, which is very accurate in certain conditions and completely useless in others. Bug: 7182301 Change-Id: If7d50f0d3ac663cbfd84b7033adc204c11bcaca4
* | | | Enable multi-user function for IMFSatoshi Kataoka2012-09-261-135/+402
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 6931482 Change-Id: Ib23849d352db33f0747aa9d5a178f00ac726c13b
* | | | Merge "Remove permission check in registerAdapter" into jb-mr1-devMatthew Xie2012-09-251-2/+0
|\ \ \ \
| * | | | Remove permission check in registerAdapterMatthew Xie2012-09-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This matches the JB behavior of getDefaultAdapter public api bug 6948829 Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
* | | | | Merge "Use more reasonable warning thresholds for power on/off." into jb-mr1-devJeff Brown2012-09-251-6/+6
|\ \ \ \ \
| * | | | | Use more reasonable warning thresholds for power on/off.Jeff Brown2012-09-251-6/+6
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To encourage vendors to make power on/off as efficient and responsive as possible, we log some warnings whenever it is too slow. The previous thresholds were a little unreasonable mainly because we wanted to understand how long the process tends to take even when it's fast. Raise the warning limit while still being aggressive about timings. Ideally we want the screen to turn on/off within no more than a few frames. Bug: 7167820 Change-Id: Id28dbf8c91cefa7ae7544b72887104af7aabccff
* | | | | Merge "Handle multi-user mountObb() requests." into jb-mr1-devJeff Sharkey2012-09-255-101/+468
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Handle multi-user mountObb() requests.Jeff Sharkey2012-09-255-101/+468
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge changes I332f020f,I632648ac into jb-mr1-devJeff Brown2012-09-2517-106/+149
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Update references to migrated global settings. Handle user switched for settings changes.
| * | | | Update references to migrated global settings.Jeff Brown2012-09-2513-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | Handle user switched for settings changes.Jeff Brown2012-09-254-54/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move OVERLAY_DISPLAY_DEVICES to Global. Bug: 7127417 Change-Id: I632648ac5b01408512f59424f3bb55162431bea4
* | | | | Merge "Fix typo." into jb-mr1-devJeff Brown2012-09-251-4/+5
|\ \ \ \ \ | |/ / / /
| * | | | Fix typo.Jeff Brown2012-09-251-4/+5
| |/ / / | | | | | | | | | | | | | | | | Bug: 7183618 Change-Id: I0c761fc7f55b3f182007cb4d50cbfdce309f844a
* | | | Merge "Adding a global accessibility action to open quick settings." into ↵Svetoslav Ganov2012-09-252-9/+45
|\ \ \ \ | | | | | | | | | | | | | | | jb-mr1-dev
| * | | | Adding a global accessibility action to open quick settings.Svetoslav Ganov2012-09-252-9/+45
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Load resources for the correct userAmith Yamasani2012-09-252-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "The active window for accessibilitiy incorrectly tracked." into ↵Svetoslav Ganov2012-09-252-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | jb-mr1-dev
| * | | | The active window for accessibilitiy incorrectly tracked.Svetoslav Ganov2012-09-242-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Regression in screen introspection APIs due to the multi-user change.Svetoslav Ganov2012-09-251-25/+65
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Watch for voice recognition service changes for all usersAmith Yamasani2012-09-251-36/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Monitor package changes and update the default recognizer Bug: 7216043 Change-Id: I6b358b62401eaf58b38059caa57f72585f332eb5
* | | | Merge into jb-mr1-devJean-Baptiste Queru2012-09-251-10/+4
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: Ib0523ded92e2fe4be6a32d092baa55b527229c07
| * | | More than one finger at a time can trigger a system crash.Svetoslav Ganov2012-09-241-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge into jb-mr1-devJean-Baptiste Queru2012-09-251-2/+16
|\ \ \ \ | | | | | | | | | | | | | | | Change-Id: I6504b000be7e3b6e770af99c5a922fd1e9ec73de
| * | | | Magnified frame not properly computed when keyguard goes away.Svetoslav Ganov2012-09-241-2/+16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The keyguard force hides some windows when it is shown and as soon as the keyguard goes away there windows are made visible. However, the window transition that the keyguard is moving away is reported before the force hidden windows are shown which makes the screen magnifier compute the magnified region with an incomplete list of windows of interest. bug:7215285 Change-Id: I3abc4d97b7a74de8183ad20477dadf66c82da037
* | | | Merge into jb-mr1-devJean-Baptiste Queru2012-09-251-5/+5
|\ \ \ \ | | | | | | | | | | | | | | | Change-Id: Ia9c5e2295fe61ae0f5275d3ddfd056d9778b66d1
| * | | | Use global wifi_sleep_policy constantsBrian Muramatsu2012-09-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 7196148 This will get rid of the wifi_sleep_policy has moved log spamming. Change-Id: I303c8da80289aba183eb1e51f6a006fc40cd1801
* | | | | Fix buildAmith Yamasani2012-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge error... Change-Id: I0e674ee25a080fa6abfaa9da893084d6b4fa69a6
* | | | | Merge into jb-mr1-devJean-Baptiste Queru2012-09-251-1/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Change-Id: Id8bbccaa542bef3351958fb6749370880a1921f3
| * | | | | Fix dialogs on secondary displays.Jeff Brown2012-09-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7183618 Change-Id: I65b650a0c423f3081c412a7341b7427b6ac85e24
* | | | | | Merge into jb-mr1-devJean-Baptiste Queru2012-09-251-3/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifc2328e30a52c2baebc1322c9b161104dcf21618
| * | | | | | AppInfo from Notifications for secondary usersAmith Yamasani2012-09-241-3/+6
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Required wiring up startActivitiesAsUser() Bug: 7224950 Also fix a bug in navigateUp in secondary user Change-Id: I114ae2de0457362d62e899fdb94b12239a3eb778
* | | | | | Merge into jb-mr1-devJean-Baptiste Queru2012-09-252-15/+22
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | Change-Id: I97ff2551b36a1b590f2d314cabfcf198dd10f404