summaryrefslogtreecommitdiffstats
path: root/core/java/android/server
Commit message (Collapse)AuthorAgeFilesLines
* Move lingering services to services.jar.Jeff Sharkey2012-12-114-773/+0
| | | | | | | | This helps reduce the pressure on framework.jar, and makes it clear that it should only be used by the system_server. Bug: 7333397 Change-Id: I0858904239535380fbf30562b793e277d8c3f054
* am afdd978c: am 68e0da7e: Merge "Quiet down a lot of logging." into jb-mr1.1-devDianne Hackborn2012-11-291-1/+1
|\ | | | | | | | | * commit 'afdd978ccd8d45ac789873dd4cf0ab0dd3f46d20': Quiet down a lot of logging.
| * Quiet down a lot of logging.Dianne Hackborn2012-11-271-1/+1
| | | | | | | | | | | | | | Also fix a little problem where the USER_STARTED broadcasts were not being sent as ordered broadcasts(!). Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
* | am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-071-0/+0
|\ \ | |/ |/| | | | | * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
| * Correct executable bit for source filesKenny Root2012-11-072-0/+0
| | | | | | | | | | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
| * Enhance StateMachine Quitting and logging support. DO NOT MERGEWink Saville2012-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make StateMachine#quit non-conditional and remove the need to process the SM_QUIT_CMD it is now private. Rename halting to onHalting. Add onQuitting Change the message specific logging to be more generic and change the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add addLogRec(String) and addLogRec(String, State) as the generic logging methods. bug: 5678189 Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7 Conflicts: services/java/com/android/server/NsdService.java
* | Only send broadcasts to registered receiversAmith Yamasani2012-10-291-2/+3
| | | | | | | | | | | | | | | | Fix for issue found in #7420259 Not sure if this fixes the actual ringtone issue, but it clears the way. Change-Id: I7fd5584df2dc254ba7281f57e51143c79bfcff63
* | Protect more service dump() methods.Jeff Sharkey2012-10-151-0/+2
| | | | | | | | | | Bug: 6406965 Change-Id: Ia45a580c1e6f403308e7e540f18f2c0505af0f29
* | Fix resource reading for secondary usersAmith Yamasani2012-10-072-67/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7086881 Load resources for the correct user. Also clean up package monitoring and locking. Added dump method to SearchManagerService. Sneaking in a change to make crash dialogs visible to current user. Change-Id: Id56dd15428d66084de995e28be242db27c15fda3
* | Enforce permissions for calls with specified userIdAmith Yamasani2012-08-301-40/+42
| | | | | | | | | | | | Fix a couple of places where incorrect userIds were being passed in. Change-Id: I398c676e0488ff7e584be96e96c8b32652134238
* | Improve multi-user broadcasts.Dianne Hackborn2012-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now use ALL and CURRENT when sending broadcasts, to specify where the broadcast goes. Sticky broadcasts are now correctly separated per user, and registered receivers are filtered based on the requested target user. New Context APIs for more kinds of sending broadcasts as users. Updating a bunch of system code that sends broadcasts to explicitly specify which user the broadcast goes to. Made a single version of the code for interpreting the requested target user ID that all entries to activity manager (start activity, send broadcast, start service) use. Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
* | Rename UserId to UserHandle.Dianne Hackborn2012-08-161-9/+9
| | | | | | | | | | | | This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
* | Launch ASSIST intent on the current userAmith Yamasani2012-08-141-0/+51
| | | | | | | | | | | | | | | | | | Lockscreen and statusbar now launch the intent on the current user. Make sure that the intent resolution is made to the package manager for the specific user, as the app could have been disabled for that user or may have an alternative app installed. Change-Id: I93b0f972d6c7e8880b146da83dc3d08a68fe7e51
* | User Manager service to manage users and query user detailsAmith Yamasani2012-08-111-1/+3
| | | | | | | | | | | | | | | | | | | | Moved a bunch of methods from PackageManager to UserManager. Fix launching of activities from recents to correct user. Guest creation APIs Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
* | Delete various Bluetooth files for stack integration.Jaikumar Ganesh2012-07-1310-7515/+0
| |
* | am 691976fa: am 29775794: Merge "Get rid of the extra bt_disable call when ↵Matthew Xie2012-06-271-5/+2
|\ \ | |/ | | | | | | | | | | turning on airplane mode Get rid of enabling bt when in airplane mode." into jb-dev * commit '691976fae6ff7ef925e411e9e7b273d2623072bf': Get rid of the extra bt_disable call when turning on airplane mode Get rid of enabling bt when in airplane mode.
| * Get rid of the extra bt_disable call when turning on airplane modeMatthew Xie2012-06-271-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of enabling bt when in airplane mode. Current code has 2 paths that trying to place bluetooth in cold state when turning airplane mode on. This caused extra call of bt_disable that causing a kernel sleep failure. The fix removes one of the sys call. This CL keeps Bluetooth in cold state after turning airplane mode on instead of seting it to hotoff state bug 6563480 Change-Id: I30c413707157acb4a8e83ded9452256cf6260899
* | SearchManagerService made multi-user awareAmith Yamasani2012-06-152-29/+69
| | | | | | | | | | | | | | Cache Searchables per user and query package manager through the private interface. Change-Id: I1d24fdd27cce8c27be45287cbfcb4df1e2ce2cf1
* | am c383b407: am cee7203f: Merge "Send device connection intents from ↵Eric Laurent2012-05-311-10/+49
|\ \ | |/ | | | | | | | | | | AudioService" into jb-dev * commit 'c383b407ad24474b87de68f93ea95de495f6d2c1': Send device connection intents from AudioService
| * Send device connection intents from AudioServiceEric Laurent2012-05-301-10/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioService is currently notified of wired headset and A2DP sink connection states via broadcast intents from WiredAccessoryObserver and BluetoothA2dpService. This is a problem as there is no guaranty that AudioService can take actions upon the change before other apps are notified. For instance, the Play On feature requires the UI to be refreshed when a device is inserted/removed and we must guaranty that the UI component can read new A2DP enable state from AudioManager after it receives a device connection state change intent. - Added hidden methods to AudioManager so that WiredAccessoryObserver and BluetoothA2dpService can notify AudioService of device connection directly. - The wired accessories connection intents are now sent by AudioService. - The A2DP state change intent is delayed by BluetoothA2DPService when ACTION_AUDIO_BECOMING_NOISY is sent by AudioService - ACTION_AUDIO_BECOMING_NOISY intent is not sent when disconnecting A2DP while a wired headset is present and vice versa. Bug 6485897. Change-Id: Ie160b3ee5f451132065530772b868593c90afd94
* | Enhance StateMachine Quitting and logging support.Wink Saville2012-05-291-1/+1
|/ | | | | | | | | | | | | | | | | | Make StateMachine#quit non-conditional and remove the need to process the SM_QUIT_CMD it is now private. Rename halting to onHalting. Add onQuitting Change the message specific logging to be more generic and change the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add addLogRec(String) and addLogRec(String, State) as the generic logging methods. bug: 5678189 Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
* Increase the setup-sdp delay to cover for all the devices.Matthew Xie2012-05-171-2/+2
| | | | | | | | 20 ms worked well for GN hspa for stress test, but failed sometimes for other platform. Increased it to 50ms. Tested on all the device types bug 6438556 Change-Id: Ic5fcde3de7ea6d3d983edab7ae3df5684637bd20
* When turning off, broadcast STATE_OFF in the last HotOff stateMatthew Xie2012-05-072-17/+53
| | | | | | | | | This is because we do HotOff -> PowerOff -> HotOff for USER_TURN_OFF Donot do poweroff for perprocess turn off. Add small time delays for calls into stack to reset dbus timing. bug 6438556 Change-Id: Iae8bdd24e41824ed4bc34aca96d082f9284f169c
* Merge "Always move Bluetooth Adapter to cold state when turn off Bluetooth." ↵Matthew Xie2012-05-021-5/+7
|\ | | | | | | into jb-dev
| * Always move Bluetooth Adapter to cold state when turn off Bluetooth.Matthew Xie2012-05-021-5/+7
| | | | | | | | | | | | | | | | | | | | quick switch feature introduced in ICS does not work very well. Reported logs indicate the Bluez stack cannot sustain the long time ON/hotoff state. This change will always move the adapter to code but move it to hotoff to be able to turn on quickly. bug 5792792 Change-Id: I41c39d4bf11bb5eb3cd83279e8ec81e01774e008
* | Check null of address in onDeviceCreatedMatthew Xie2012-05-011-1/+5
|/ | | | | | | | | address can be null that returned from getAddressFromObjectPath. If it is null case, donot continue call getRemoteDeviceProperties. Otherwise it causes null pointer exception and crash the system. Bug 6338780 Change-Id: Ib190342032ab2ad11c49f44fa6d4b2509a861514
* Protect system services with DUMP permission.Jeff Sharkey2012-04-262-0/+4
| | | | Change-Id: I5e53859f8b8e5473e54eca43ebd7de841f1a05ff
* Allow enabling Bluetooth without auto-connecting.Martijn Coenen2012-04-231-2/+44
| | | | | | | | | | | This is a feature used for NFC-to-Bluetooth handover: we want to enable BT for file transfer, and disconnect it when we're done. During this period we don't want to auto-connect other devices - it should be transparent to the user that Bluetooth is used. Also, don't allow A2DP/HSP incoming connections. Change-Id: I0a03e8084c439b1271b6a80f4d9da5aacfe19c45
* Merge "Get alias for Bluetooth devices."Jeff Brown2012-04-201-0/+4
|\
| * Get alias for Bluetooth devices.Jeff Brown2012-04-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | Bluetooth devices can be renamed by the user. Make the input system aware of the user-specified name and transparently pass it down to applications. This enables the keyboard layout picker Settings UI to use device names that are consistent with what the user set in the Bluetooth UI. Bug: 6363157 Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
* | Move handling of package changes to a background thread.Dianne Hackborn2012-04-191-1/+1
|/ | | | | | Helps get rid of some jank when installing applications. Change-Id: I97d0022f82d67796e334d37086e5911dd6ca6b62
* Check nullpointer of discoverableTimeout in initBluetoothAfterTurningOn.Matthew Xie2012-04-171-0/+5
| | | | | | | | When we fail to get the property, print out warning message, turn Discoverable off. Bug 6302990 Change-Id: Ie21aa2a89050c74d99d9ee521a95ffa822114757
* add config_bluetooth_default_profiles config var and use it to disable bt ↵Travis Geiselbrecht2012-03-221-11/+17
| | | | | | | | | profiles For devices that don't care about the previously default bluetooth profiles, add a config var to disable them. Change-Id: I04bb7ad4b1235bc37227645f472fdf5b918f6a31
* Fix obvious typos under frameworks/base/coreKen Wakasa2012-03-091-1/+1
| | | | Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
* am 1890fa82: am 79d84930: Merge "Set Bluetooth adapter to PowerOff mode when ↵Matthew Xie2012-01-122-2/+2
|\ | | | | | | | | | | | | turnoff with airplane on" into ics-mr1 * commit '1890fa822091ea700b7409ac79a57cf650b55003': Set Bluetooth adapter to PowerOff mode when turnoff with airplane on
| * Set Bluetooth adapter to PowerOff mode when turnoff with airplane onMatthew Xie2012-01-112-2/+2
| | | | | | | | | | | | | | | | | | Currently, when airplane mode was on and BT was on, turning BT off moved BT to hotoff state. This fix moves BT all the way to Poweroff state to have better power performance. bug 5854282 Change-Id: I7ba41797a46a81ddb3a576453f2a8303b5eed525
* | am 18ad6514: am ed0830c5: Merge "Move broadcastState STATE_TURNING_ON before ↵Matthew Xie2011-12-121-1/+1
|\ \ | |/ | | | | | | | | | | persistSwitchSetting" into ics-mr1 * commit '18ad6514bbeb68a96c12ba1636ab8df8e3945f37': Move broadcastState STATE_TURNING_ON before persistSwitchSetting
| * Move broadcastState STATE_TURNING_ON before persistSwitchSettingMatthew Xie2011-12-121-1/+1
| | | | | | | | | | | | | | | | | | CTS test revealed that persistSwitchSetting could take more than 1 second. STATE_TURNING_ON intent missed the test timing. We move the broadcast before persistSwitchSetting bug 5740715 Change-Id: I54a0a0afc8d1c4fc28f84e6122809af2f1456ca7
* | am 12479141: am 0d9a41e7: Merge "Broadcast turning on/off intent as early as ↵Matthew Xie2011-12-051-5/+5
|\ \ | |/ | | | | | | | | | | possible when switch on/off BT" into ics-mr1 * commit '12479141dd3e63a5f26a4509d0922c9ef9e3d78c': Broadcast turning on/off intent as early as possible when switch on/off BT
| * Merge "Broadcast turning on/off intent as early as possible when switch ↵Matthew Xie2011-12-051-5/+5
| |\ | | | | | | | | | on/off BT" into ics-mr1
| | * Broadcast turning on/off intent as early as possible when switch on/off BTMatthew Xie2011-12-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Move broadcastState(BluetoothAdapter.STATE_TURNING_ON/OFF) before any other method calls when turn on/off Bluetooth. Bug 5703346 Change-Id: Iddbdab58367a7d648708aa23671eb09701d66793
* | | am 6001d3ad: am 1a1be44c: Merge "Unlink the Binder DeathRecipient when ↵Matthew Xie2011-12-011-9/+25
|\ \ \ | |/ / | | | | | | | | | | | | | | | removing a Bluetooth service record" into ics-mr1 * commit '6001d3ad9f5ddb5be09ec6e70b5e646cb9a0f469': Unlink the Binder DeathRecipient when removing a Bluetooth service record
| * | Merge "Unlink the Binder DeathRecipient when removing a Bluetooth service ↵Matthew Xie2011-12-011-9/+25
| |\ \ | | | | | | | | | | | | record" into ics-mr1
| | * | Unlink the Binder DeathRecipient when removing a Bluetooth service recordJason Simmons2011-12-011-9/+25
| | |/ | | | | | | | | | | | | | | | | | | | | | The fix holds a reference to the Reaper objects, so that they don't get GCed and cause the error - unlink not called on death recipients. bug 5602314 Change-Id: Ib8a9e254d7c9ebe9d54f5c10b3daa31d062b4df0
* | | Clean up InterfaceConfiguration flags.Jeff Sharkey2011-11-291-5/+5
| | | | | | | | | | | | | | | | | | | | | Offer modifier methods for interface flags instead of mutating directly, and remove square brackets. Change-Id: I4cce719dccedfb3f0e8448c111e65b93c0008cbb
* | | am f4e41c35: am eb701df8: Merge "Cleanup references when turning BT off." ↵Jaikumar Ganesh2011-11-291-4/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | into ics-mr1 * commit 'f4e41c35387728720780935564a491cf9bf1357e': Cleanup references when turning BT off.
| * | Cleanup references when turning BT off.Jaikumar Ganesh2011-11-281-4/+6
| |/ | | | | | | | | Bug: 5572649 Change-Id: I62f9e0620832b69995d5c6e1c24634c9a3895a4b
* | am a4f5c425: am 2b9af44e: am 6da97a24: Merge "Check the bluetooth state for ↵Matthew Xie2011-11-171-7/+7
|\ \ | |/ | | | | | | | | | | getUuid call" into ics-mr0 * commit 'a4f5c425b822a46fc49bc87bba82688570584ff1': Check the bluetooth state for getUuid call
| * am 6da97a24: Merge "Check the bluetooth state for getUuid call" into ics-mr0Matthew Xie2011-11-171-7/+7
| |\ | | | | | | | | | | | | * commit '6da97a24e329851888890d4e380066037d08bcd7': Check the bluetooth state for getUuid call
| | * Check the bluetooth state for getUuid callMatthew Xie2011-11-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Donnot make the bluetoothservice.getUuids call if the bluetooth is not on. Also get rid of all the necessary locks on BluetoothService for get property call. It had a lock on BluetoothAdapterProperty. bug5472114 Change-Id: I383472ae6006fc1f0129c960c8a44ed0df027a43