summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Fix PM crash due to bad array bookkeeping logic.Jeff Brown2010-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 2586093 Change-Id: I320deeef65a434060e608015dc2dd97b8200e025
* | | | | am be348964: Merge "Move Tethering off the ServerThread." into froyoRobert Greenwalt2010-04-201-1/+7
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'be34896457bb37b4e263efa87316d2e2420adab3' into froyo-plus-aosp * commit 'be34896457bb37b4e263efa87316d2e2420adab3': Move Tethering off the ServerThread.
| * | | | Merge "Move Tethering off the ServerThread." into froyoRobert Greenwalt2010-04-201-1/+7
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | Move Tethering off the ServerThread.Robert Greenwalt2010-04-201-1/+7
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | An ANR has been reported because somebody else was hogging the Netd link. We can't pause the server thread for that, so make a new thread. bug:2609904 Change-Id: I0430a08621da1cda0a0010ce15826cceee59a529
* | | | am c96307ef: Merge "Make the silent/vibrate status icon reflect overall ↵Daniel Sandler2010-04-201-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | device state. (DO NOT MERGE)" into froyo Merge commit 'c96307efd2829cdd0fa7c835484f2f89edf7d883' into froyo-plus-aosp * commit 'c96307efd2829cdd0fa7c835484f2f89edf7d883': Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)
| * | | Merge "Make the silent/vibrate status icon reflect overall device state. (DO ↵Daniel Sandler2010-04-201-1/+1
| |\ \ \ | | |/ / | |/| | | | | | NOT MERGE)" into froyo
| | * | Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)Daniel Sandler2010-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, this status icon reflected just the incoming call behavior: - gone for audible (with or without vibrate), - wiggling phone for vibrate, - silent (speaker + X) for no audible ring or vibrate. Now that silent mode has changed (see VIBRATE_IN_SILENT), you can easily get into a state where this icon is confusing by setting the incoming call ringer to *never* vibrate but setting the overall device silent state to allow vibration (VIBRATE_IN_SILENT=true). In this case, rocking the volume all the way down would show a wiggling phone (because the device is in vibrate-only mode) but the status bar would show speaker+X (because the incoming call would neither ring nor vibrate). Now these two icons are consistent. This means, however, that if this special condition is set by the user (device vibrates in silent mode, but incoming calls should never vibrate) and the device is in silent mode, the status bar will show a wiggling phone even though incoming calls will not vibrate the device. This puts the ringer on a more even footing with other apps on the device, which may elect not to vibrate even if VIBRATE_IN_SILENT=true overall. Bug: 2598014 Change-Id: Ib942f68738d77ab0d9b9da4fac718ae5957c133c
* | | | am f06f2eb2: Merge "Misc fixes for throttling." into froyoRobert Greenwalt2010-04-191-40/+47
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'f06f2eb2d646789d723d4a08d0681cae5b40b768' into froyo-plus-aosp * commit 'f06f2eb2d646789d723d4a08d0681cae5b40b768': Misc fixes for throttling.
| * | | Merge "Misc fixes for throttling." into froyoRobert Greenwalt2010-04-191-40/+47
| |\ \ \
| | * | | Misc fixes for throttling.Robert Greenwalt2010-04-191-40/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup of duplicate code Caching Ntp data so we don't hit the network as often Clearing out of MRU data when we switch to a new sim Sending notification after we reset byte counts bug:2605277 bug:2605272 bug:2597530 bug:2576057 Change-Id: I3df526bae6374f6ae56fed67b0defad2b4fabefd
* | | | | am 11bea2e2: Merge "Reduce lock contention, removing unnecessary ↵Brad Fitzpatrick2010-04-191-6/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | synchronization." into froyo Merge commit '11bea2e216800c5612144f76d307da653d565be3' into froyo-plus-aosp * commit '11bea2e216800c5612144f76d307da653d565be3': Reduce lock contention, removing unnecessary synchronization.
| * | | | Reduce lock contention, removing unnecessary synchronization.Brad Fitzpatrick2010-04-191-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value returned is purely a function of what's passed in, all following final members. BUG=2606839 Change-Id: I506fb9b1f3be965576c2b3317a30ff1f990ccda3
* | | | | am afbf9f8d: Merge "Ease contention on the mProcessStatsThread mutex in ↵Brad Fitzpatrick2010-04-191-9/+17
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updateCpuStats." into froyo Merge commit 'afbf9f8d6d66a0c1ba8c44a87b120bcad89ad8b5' into froyo-plus-aosp * commit 'afbf9f8d6d66a0c1ba8c44a87b120bcad89ad8b5': Ease contention on the mProcessStatsThread mutex in updateCpuStats.
| * | | | Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." ↵Brad Fitzpatrick2010-04-191-9/+17
| |\ \ \ \ | | | | | | | | | | | | | | | | | | into froyo
| | * | | | Ease contention on the mProcessStatsThread mutex in updateCpuStats.Brad Fitzpatrick2010-04-191-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG=2606839 Change-Id: I444af0bb4a7b0be7ebf9ee5887805f2f09a426d0
* | | | | | am 04152f98: Merge "Fix bug 2599698 Music paused by itself The ↵Jean-Michel Trivi2010-04-191-1/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NotificationPlayer sets an OnCompletionListener on the MediaPlayer it\'s using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player was started bef Merge commit '04152f98ffbd17f54a6b771636ff7f440f0edc78' into froyo-plus-aosp * commit '04152f98ffbd17f54a6b771636ff7f440f0edc78': Fix bug 2599698 Music paused by itself
| * | | | | Merge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an ↵Jean-Michel Trivi2010-04-191-1/+1
| |\ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | OnCompletionListener on the MediaPlayer it's using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player was started before the listener was set. The theory about the bug is that the player finished playing before the listener was called. Therefore the audio focus was never abandonned, and the music didn't resume." into froyo
| | * | | | Fix bug 2599698 Music paused by itselfJean-Michel Trivi2010-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it's using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player was started before the listener was set. The theory about the bug is that the player finished playing before the listener was called. Therefore the audio focus was never abandonned, and the music didn't resume. Change-Id: Ic3baf359ea24de0d832a655dc47e745b25bc3dec
* | | | | | am 3110bf6d: Merge "Fix inconsistency in how we handle light sensor when ↵Mike Lockwood2010-04-191-3/+11
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | battery is low." into froyo Merge commit '3110bf6df1cb6d548e678cdcbb8c7349b2ac0d8a' into froyo-plus-aosp * commit '3110bf6df1cb6d548e678cdcbb8c7349b2ac0d8a': Fix inconsistency in how we handle light sensor when battery is low.
| * | | | | Merge "Fix inconsistency in how we handle light sensor when battery is low." ↵Mike Lockwood2010-04-191-3/+11
| |\ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | into froyo
| | * | | | Fix inconsistency in how we handle light sensor when battery is low.Mike Lockwood2010-04-171-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In lightSensorChangedLocked we ignore the light sensor if the battery is low. But in applyButtonState() and applyKeyboardState() we were still using the previous mLightSensorScreenBrightness value, which resulted in a race condition that could leave the button lights on after the screen turns off. Now we ignore the light sensor value and button brightness override if the battery is low so the low battery behavior is consistent. Change-Id: I4943f8904299883211a95596ee207df69d1eaea2 BUG: 2570962 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | am 7171ea81: Make ThrottleService more tamper resistant.Robert Greenwalt2010-04-181-53/+138
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '7171ea8179e09270e4d6ab825a2320816eee39c5' into froyo-plus-aosp * commit '7171ea8179e09270e4d6ab825a2320816eee39c5': Make ThrottleService more tamper resistant.
| * | | | | Make ThrottleService more tamper resistant.Robert Greenwalt2010-04-181-53/+138
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use elapsed time not wall time for alarms so users can't play with the system time to get around things. Also using NTP servers to pull in an authoritative time - if we the build is configured with an NTP server we will not advance to the next cycle without it, but we also will not trottle - rather not throttle users on an error. Note that the poll alarm is just relative to the last poll time and real time doesn't matter. Defining the time-fetching API's as returning time in the system wallclock range (correcting if we are using NTP time internally). bug:2597530 Change-Id: I1c0ac0923314c2f8a04edd0b36c4845352eae99a
* | | | | am 975d86df: Merge "Dont check on interface value on API" into froyoIrfan Sheriff2010-04-171-12/+13
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '975d86dfc6407314491a18bc715c8c95a8f8f0b1' into froyo-plus-aosp * commit '975d86dfc6407314491a18bc715c8c95a8f8f0b1': Dont check on interface value on API
| * | | | Dont check on interface value on APIIrfan Sheriff2010-04-161-12/+13
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The interface check in API could be used in future. Bug: 2576057 Change-Id: Icfb78a88be44d1e6a8350c4b65efe70970e658d8
* | | | am e80c6f49: Merge "Add multi-sim support to ThrottleService." into froyoRobert Greenwalt2010-04-151-1/+70
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'e80c6f49d5055e299b7ada91b5967feab66e467b' into froyo-plus-aosp * commit 'e80c6f49d5055e299b7ada91b5967feab66e467b': Add multi-sim support to ThrottleService.
| * | | Merge "Add multi-sim support to ThrottleService." into froyoRobert Greenwalt2010-04-151-1/+70
| |\ \ \ | | |/ / | |/| |
| | * | Add multi-sim support to ThrottleService.Robert Greenwalt2010-04-151-1/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses the last used data until the SIM is available (if ever). Supports data from several SIMs for all the world travelers out there. bug: 2576057 Change-Id: I70e34a51f1c2ccda41a480652b0233b68ff3f538
* | | | am 4f99e3c2: Remove native binaries when an updated system application is ↵David 'Digit' Turner2010-04-151-14/+66
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | upgraded through OTA. Merge commit '4f99e3c28449833b10ee23c538246847fdb6a498' into froyo-plus-aosp * commit '4f99e3c28449833b10ee23c538246847fdb6a498': Remove native binaries when an updated system application is upgraded through OTA.
| * | | Remove native binaries when an updated system application is upgraded ↵David 'Digit' Turner2010-04-151-14/+66
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | through OTA. The point of this patch is to deal with the following case: - A system application exists in the system partition. As such its native code lies under /system/lib - An upgrade for it is installed through Market and overrides the version on the system partition. This places its native libraries under /data/data/<pkgname>/lib/ - Finally, the system is upgraded through an OTA, with an even more recent of the system application. We thus must remove the Market package as well as the native libraries that are in <dataDir>/lib since the new versions in /system/lib will be more recent. The patch itself removes the files in <dataDir>/lib when such a situation is detected. Note that this directory is created by the PackageManager service and owned by the 'system' userID. The application cannot create files there so simply erasing the content of the directory is enough (and avoids reparsing the market package file to list the installed binaries). The patch also fixes a different issue which can be reproduced with: - have system app installed on /system partition - install an update (e.g. adb install -r Term.apk) - uninstall the update (e.g. adb uninstall com.android.term) the logcat shows that the PackageManager will unpack the native libraries from the original /system/app/Term.apk into <dataDir>/lib, while they already are in /system/lib. The patch fixes that too. Change-Id: I5dfe27b91b6b31972e9cd4c196d15c3692732127
* | | am 93597ed1: Merge "Fix wakelock leak in ↵Mike Lockwood2010-04-151-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | PowerManagerService.sendNotificationLocked()" into froyo Merge commit '93597ed1839de164c81f83832d4c2373ea32ac8f' into froyo-plus-aosp * commit '93597ed1839de164c81f83832d4c2373ea32ac8f': Fix wakelock leak in PowerManagerService.sendNotificationLocked()
| * | Merge "Fix wakelock leak in PowerManagerService.sendNotificationLocked()" ↵Mike Lockwood2010-04-151-0/+2
| |\ \ | | | | | | | | | | | | into froyo
| | * | Fix wakelock leak in PowerManagerService.sendNotificationLocked()Mike Lockwood2010-04-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia5f814fe81413dc5350faaf4c79cff47de62d0ed BUG: 2592894 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | am 8090edae: Merge "Sholes mobile iface comes/goes - handle the reset" into ↵Robert Greenwalt2010-04-141-0/+12
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | froyo Merge commit '8090edae9ed1228e8cbaa14dd94c6ce885a0b729' into froyo-plus-aosp * commit '8090edae9ed1228e8cbaa14dd94c6ce885a0b729': Sholes mobile iface comes/goes - handle the reset
| * | | Merge "Sholes mobile iface comes/goes - handle the reset" into froyoRobert Greenwalt2010-04-141-0/+12
| |\ \ \
| | * | | Sholes mobile iface comes/goes - handle the resetRobert Greenwalt2010-04-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The byte counter for the iface goes to zero when it comes back. Catch that and do the complex math to correct. Also add a log entry telling us our desired throttle index. Lastly, reset the sec/msec part of our reset time so that one calc will == another and not be off by little bits. bug:25494925 Change-Id: I99525b72a76316a8e601ceb457ca202fae040bae
* | | | | am deb69370: Revert "Add ordered broadcast when removing packages." Couple ↵Suchi Amalapurapu2010-04-141-29/+27
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of cosmetic fixes as well. Merge commit 'deb69370ef9a786940ae49411ba657410361b4f1' into froyo-plus-aosp * commit 'deb69370ef9a786940ae49411ba657410361b4f1': Revert "Add ordered broadcast when removing packages."
| * | | | Revert "Add ordered broadcast when removing packages."Suchi Amalapurapu2010-04-141-29/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Couple of cosmetic fixes as well. This reverts commit 0c1285fa979e8b8c170f31d0ef1b4e5d9ddcf6b1. Conflicts: services/java/com/android/server/PackageManagerService.java Change-Id: Ife0f9f80525f4a41b1f8c12ffc2de62e061e7d5b
* | | | | am b0ef1442: Merge "Fix issue #258640: Automatic propagation of ↵Dianne Hackborn2010-04-141-2/+11
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET" into froyo Merge commit 'b0ef1442866ec52a772e6edfab732a2c987bbee0' into froyo-plus-aosp * commit 'b0ef1442866ec52a772e6edfab732a2c987bbee0': Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
| * | | | Merge "Fix issue #258640: Automatic propagation of ↵Dianne Hackborn2010-04-141-2/+11
| |\ \ \ \ | | | | | | | | | | | | | | | | | | FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET" into froyo
| | * | | | Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESETDianne Hackborn2010-04-141-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure, if an activity is started with clear task when reset, if that activity is finished in the middle of a stack that the behavior is retained by propagating it to the next activity. Change-Id: Ie31b8f968558b0e64e0ef7efa55950a722c6afa5
* | | | | | am 28b2fdc5: Merge "Dont fall back to installing on sdcard when internal ↵Suchi Amalapurapu2010-04-141-1/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | storage is filled up when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard i Merge commit '28b2fdc5ee0ad75a476b825e3657b1decd0a2b7c' into froyo-plus-aosp * commit '28b2fdc5ee0ad75a476b825e3657b1decd0a2b7c': Dont fall back to installing on sdcard when internal storage is filled up
| * | | | | Dont fall back to installing on sdcard when internal storage is filled upSuchi Amalapurapu2010-04-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard is filled up. If nothing is specified ie install location is set to let system decide, we just check on internal storage. Fix tests Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b
* | | | | | am 40b6996a: Merge "Add ordered broadcast when removing packages." into froyoSuchi Amalapurapu2010-04-141-28/+31
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '40b6996a8fb7da131e8b91453b08e292723662be' into froyo-plus-aosp * commit '40b6996a8fb7da131e8b91453b08e292723662be': Add ordered broadcast when removing packages.
| * | | | | Add ordered broadcast when removing packages.Suchi Amalapurapu2010-04-141-28/+31
| |/ / / / | | | | | | | | | | | | | | | Change-Id: I30a84068fa8f2b15564b0a164d339ac95f40e801
* | | | | am 8656145e: Merge "Fix issue #593153: Broadcast time out when sending..." ↵Dianne Hackborn2010-04-143-10/+16
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into froyo Merge commit '8656145e2abe881caffa4181ee5c2e4e3dba1cee' into froyo-plus-aosp * commit '8656145e2abe881caffa4181ee5c2e4e3dba1cee': Fix issue #593153: Broadcast time out when sending...
| * | | | Fix issue #593153: Broadcast time out when sending...Dianne Hackborn2010-04-143-10/+16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...ordered broadcast for ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE Turns out this was because the broadcast receiver for ContextImpl was not correctly being created, so when it received an ordered broadcast it would not tell the activity manager when it was done. This is now fixed, along with a ton of superficial changes to debug output to help track this down and a little cleanup of dealing with error cases in dispatching broadcasts. Also a fix for a NPE when dumping the broadcast state. Finally, a little fiddling with package manager to get rid of a lot of the noise when removing and re-adding packages on the SD card. Change-Id: I961c14836dc613d3ea8122b6e910ef866e7fcb25
* | | | am 22b3644a: Update the datause icons.Robert Greenwalt2010-04-141-5/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '22b3644ac2027d055a6b187c979ef492ee6fb082' into froyo-plus-aosp * commit '22b3644ac2027d055a6b187c979ef492ee6fb082': Update the datause icons.
| * | | Update the datause icons.Robert Greenwalt2010-04-141-5/+4
| | | | | | | | | | | | | | | | | | | | bug:2576057 Change-Id: Idf57d59aecb9bcff635dafa1e77d90a8737a0c08
* | | | am 9cb66e89: Merge "Perist Throttle data across reboots" into froyoRobert Greenwalt2010-04-141-21/+67
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '9cb66e89cd0c4bfa8d77591719023b7153fee9b9' into froyo-plus-aosp * commit '9cb66e89cd0c4bfa8d77591719023b7153fee9b9': Perist Throttle data across reboots