summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add a missing break; to restore old functionality and not turn off ↵Andreas Huber2010-07-301-0/+4
|\ | | | | | | the screen after 30secs regardless of system preference." into froyo
| * Add a missing break; to restore old functionality and not turn off the ↵Andreas Huber2010-07-291-0/+4
| | | | | | | | | | | | screen after 30secs regardless of system preference. Change-Id: Ib71113a3bc5aa5fdc088ab4ac3627352499ad3fa
* | Merge from open-source froyoThe Android Open Source Project2010-07-291-2/+1
|\ \ | |/ |/| | | Change-Id: Ifa75fce9bd362b06ecb622219ef501e61e89fd76
| * Fix a bug where we cleaned an apps external data when upgrading it. :(Dianne Hackborn2010-07-291-2/+1
| | | | | | | | Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada
* | Add a method to let a properly permissioned app directlyJoe Onorato2010-07-241-30/+76
|/ | | | | | | | | manipulate the user activity timeout. We should come up with a better API for this, but this is for a last minute power manager hack to turn off the screen sooner after a phone call ends. Change-Id: I76422f952e3e894c90b3311e7d889899c79cbbaa
* Avoid leaking file descriptors when returning drop box events.Dan Egnor2010-07-211-0/+208
| | | | | | | | | | | | | | We can't use Parcel.writeValue() to write the ParcelFileDescriptor, otherwise it leaks when returning the value to the caller (the flag gets lost). Change the way DropBoxManager.Entry gets serialized so that it uses a bit of its own flags value to track whether the data is a byte[] or a ParcelFileDescriptor. Modify the dropbox unit test to add extensive checking of Entry serialization and deserialization under various circumstances, and to include a regression test to ensure that FD leaking doesn't happen. Bug: 2847738 Change-Id: I4ccd17dd03ffab234340cd359e6f3510fdf81193
* Properly note the current active restore set's tokenChristopher Tate2010-06-241-1/+1
| | | | | Bug: 2796780 Change-Id: Iad601ed96ae73cf34910a276350712e6af19bb4e
* Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr ↵Dianne Hackborn2010-06-171-11/+57
| | | | | | | | | | test Modify UIModeManager to not get location updates every thirty minutes. Instead it gets one once a day, and requests a new update when airplane mode is turned off or the time zone changes. Change-Id: I8044c27b5cd77709e4b872e2e8edd352f23e4af1
* Merge "Don't adjust lights if screen or button brightness is changed when ↵Mike Lockwood2010-06-101-2/+8
|\ | | | | | | the screen is off." into froyo
| * Don't adjust lights if screen or button brightness is changed when the ↵Mike Lockwood2010-06-101-2/+8
| | | | | | | | | | | | | | | | | | screen is off. Change-Id: I798a240374c3a739e1f1eaf36fa9fdef8416f2a2 BUG: 2758292 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Merge "Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes ↵Adam Powell2010-06-101-0/+2
|\ \ | | | | | | | | | down." into froyo
| * | Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down.Adam Powell2010-06-091-0/+2
| | | | | | | | | | | | Change-Id: I26bd54cec739ca8d91d2c2b18b90134f20dbd907
* | | do not merge: cherry-picked 929b4855b8208d36272769e8eeaa6cd2823b94c0 from ↵Nick Kralevich2010-06-101-1/+6
|/ / | | | | | | | | | | master branch Change-Id: Ie20371234a531f65f523682a0d0c27394dc30afa
* | Fix 2737842: Disable KeguardManager API if device policy is enabledJim Miller2010-06-082-37/+68
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds notification to find out when the device policy has changed. When an admin adds or changes a policy, we get notified and reset the state of keyguard to be enabled. It also moves disabling keyguard into the TokenWatcher.acquired() method to avoid disabling keyguard when a policy doesn't permit it. This avoids reference counting issues in TokenWatcher and hence relieves the ordering issue. There is one remaining caveat. An application that uses KeyguardManager to disable keyguard will need to disable keyguard again after any policy change. Tested: Install and run app that disables keyguard with no admin. Result: keyguard is enabled/disabled as expected. Enable admin and set quality = "something" after installing & running app. Result: keyguard is enabled. Change admin password quality to "unspecified" and re-run app (per caveat). Result: keyguard is disabled. Change admin password quality to "something" again. Result: keyguard is enabled. Disable admin : Result: keyguard is enabled until app runs again (per caveat). Added minor cosmetic changes after review. Change-Id: I302f2b01446bf031f746b0f3e8b5fd7a6cc0e648
* Merge "Fix 2737842: disable keyguard API when device policy is enabled." ↵Jim Miller2010-06-071-18/+43
|\ | | | | | | into froyo
| * Fix 2737842: disable keyguard API when device policy is enabled.Jim Miller2010-06-071-18/+43
| | | | | | | | | | | | | | This fix disables KeyguardManager's enable/disable API when any device policy admin requests a policy that enforces a password. Change-Id: Idb1da16b14ed8963142f7b1f62d2b060d84ffa65
* | Merge "Don't bring up Launcher until after boot complete" into froyoChristopher Tate2010-06-071-1/+1
|\ \
| * | Don't bring up Launcher until after boot completeChristopher Tate2010-06-071-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The preboot upgrade handling was bringing up the acore process with a default application object, then the normal "start the HOME app" code was bringing up Launcher2 [hosted in acore] in anticipation of boot completion... but then it saw that the host process was alive and continued with Launcher2's init. Launcher2 depends on a custom application object, however, so it crashed immediately. This change ensures that the HOME app is not actually initted at that level until after boot has completed, at which point its proper application class can be instantiated. Fixes bug #2732250 Change-Id: I1a15384e2c0d50e14300df0c0db236bd7b1a187c
* | Merge "Fix issue #2749322: addPackageToPreferred throws SecurityException" ↵Dianne Hackborn2010-06-071-6/+2
|\ \ | | | | | | | | | into froyo
| * | Fix issue #2749322: addPackageToPreferred throws SecurityExceptionDianne Hackborn2010-06-071-6/+2
| |/ | | | | | | Change-Id: I96cdc110fd9acca4b6c95d281e819bad1e4557f8
* | Cut logging, boost efficiency of ThrottleServiceRobert Greenwalt2010-06-071-17/+20
|/ | | | | | | | Changed the Alarms to be non-waking. bug:2748959 bug:2747862 Change-Id: I9e4294162a4fc2f90aed36393b858edcf82aa307
* Merge "Watchdog now records kernel stacks when it fires" into froyoChristopher Tate2010-06-041-0/+22
|\
| * Watchdog now records kernel stacks when it firesChristopher Tate2010-06-041-0/+22
| | | | | | | | | | | | | | | | The kernel threads are appended to the usual /data/anr/traces.txt file and dropboxed along with the usual Dalvik stack dumps. Change-Id: I120f1f5ee54c965efe9ac0c7f40fdef56385f1fa NOTE: this change depends on the kernel publishing /proc/$PID/stack
* | Merge "Make the DUN apn data secure." into froyoRobert Greenwalt2010-06-041-3/+8
|\ \
| * | Make the DUN apn data secure.Robert Greenwalt2010-06-041-3/+8
| |/ | | | | | | | | | | | | | | | | | | | | Rather than come out of the user-modifiable APN DB, the DUN APN data will come first from a built-in resource and then potentially overriden by a secure setting (which is gservices upgradable). Also made the "require-dun" setting secure-setting overridable. bug:2736390 Change-Id: I1e4644c3839f06c977b83797641f3948785146a2
* | Don't crash when low storage is encountered pre-boot completion.Jeff Hamilton2010-06-041-0/+2
|/ | | | | Bug: 2741633 Change-Id: Ic073ead64ff43b2e2c32b439756cd71c2b6550b8
* Also dump system process threads halfway through the watchdog intervalChristopher Tate2010-05-282-6/+26
| | | | | | | | This gives us a snapshot of what the system process was doing after 30 seconds of apparent inactivity as well as after 1 minute, to help distinguishing actual deadlocks from too-slow progress, livelock, etc. Change-Id: I19758861d1b25f298e88788e8f1c7ec7bf828823
* Merge "Don't enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts." ↵Jeff Hamilton2010-05-271-4/+14
|\ | | | | | | into froyo
| * Don't enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts.Jeff Hamilton2010-05-261-4/+14
| | | | | | | | | | | | | | | | | | | | They're designed to handle one time upgrade code, which may take a significant amount of time. Third party code cannot receive this broadcast so the timing should be able to be kept under control. Bug: 2713849 Change-Id: I3733b6530198bebd9b8c2ba6f9f27a7999336b8d
* | Fix null pointer exceptionIrfan Sheriff2010-05-261-2/+5
| | | | | | | | | | Bug: 2718857 Change-Id: I4b04284fd5b3a4881297fe15555e9f1ca91d73cb
* | Merge "Fix escaping of characters" into froyoIrfan Sheriff2010-05-261-4/+9
|\ \
| * | Fix escaping of charactersIrfan Sheriff2010-05-241-4/+9
| |/ | | | | | | | | | | | | | | \ and " in SSID and password cause issues with netd parsing. Fix it. Bug: 2708960 Change-Id: I278ca21c0bbfd9dc430a2f9ae02828274a0d2376
* | Make the NTP Cache max-age gservices-settableRobert Greenwalt2010-05-251-3/+10
|/ | | | | | | Trying to make Throttle polling more energy efficient. bug:2708119 Change-Id: I2b75639e202dcbcee11047c43407a22de04ce350
* Fix 2641875Suchi Amalapurapu2010-05-181-1/+3
| | | | | | | | Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well. Change-Id: I63219369b0e7abca4919fbde2a04035a0fea9e35
* Resurrect flashlight support in obsolete IHardwareService Binder API.Mike Lockwood2010-05-171-0/+49
| | | | | | | | This is to avoid flashlight apps that had been using reflection to access this API after this class was removed after eclair. Change-Id: I26ed929abad93345468eb33d4a15977a31ebea7e Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge "Make the SSID field of WifiConfiguration consistent with API ↵Chung-yih Wang2010-05-141-2/+2
|\ | | | | | | description." into froyo
| * Make the SSID field of WifiConfiguration consistent with API description.Chung-yih Wang2010-05-151-2/+2
| | | | | | | | | | | | Bug id http://b/issue?id=2684571 Change-Id: I809478991ba606252d69ef007339754ab2856416
* | Fix issue #2686193: Can't move apps to SD cardDianne Hackborn2010-05-141-2/+2
|/ | | | Change-Id: Icd84d8080d33fb8ce5103a0e726d50f0ec70092e
* Fix 2672155Suchi Amalapurapu2010-05-131-3/+6
| | | | | | | | Check the code path when enabling disabling packages. Add unit test Change-Id: I0f0f482a3735234eab3f63ba1f6462574b70144e
* Fix issue #2676378: Activity Manager Crash on FRF40Dianne Hackborn2010-05-111-6/+6
| | | | | | D'oh! Change-Id: If1b43ff5f230f9bf0de0887deb1b25dcf6aa6e66
* LocationManagerService: Call updateNetworkState on providers that are disabled.Mike Lockwood2010-05-111-1/+1
| | | | | | | | | | Fixes a problem with Network Location not working after SetupWizard until the network state changes. Change-Id: Ief81b76beb5cc90b2ca7d8aa2d4c99221898f01d BUG: 2671347 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Fix bug 2670395 and 2599698Jean-Michel Trivi2010-05-111-6/+9
| | | | | | | | | | | | | | | | | | | | | | | When the user selects a "Silent" notification sound, the Uri encoded path is an empty string. Setting this Uri as the data source of the MediaPlayer used to play notifications caused the completion listener to not be called, which with the AudioFocus logic causes the Music app to pause and never resume. The NotificationPlayer modifications cause the MediaPlayer for the notification to only request audio focus when the data source is not empty. The audio focus code in AudioService is defensively synchronized against a unique lock, and the exception observed in bug 2670395 is explicitely caught in case another edge case wasn't caught by this fix. The AudioFocus handling in AudioManager is modified so only the requestAudioFocus and abandonAudioFocus methods are meant to be used, as registerAudioFocusListener and unregisterAudioFocusListener provided no additional functionality over the request/abandon methods. abandonAudioFocus() also removes the listener from the map in AudioManager since after abandonning focus, the listener would no longer be called. Change-Id: I3b553ee8a8163c25e01117d7e5479dd5fdfa7c6b
* Merge "Hopefully fix issue #2662536: Why is launcher being killed?" into froyoDianne Hackborn2010-05-102-16/+64
|\
| * Hopefully fix issue #2662536: Why is launcher being killed?Dianne Hackborn2010-05-102-16/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It looks like there was a subtle bug where Process.setOomAdj() could return false just because the given process doesn't exist, even though it is documented to only return false if OOM killing is not supported at all. This would cause the activity manager to fall into its code path of trying to clean up processes itself, which it does a much poorer problem at. I am thinking we may be seeing this problem more now that the activity manager is killing background processes itself when there are too many of them. In addition, this change cleans up and reduces some of the logging around killing processes. Finally, try to improve process LRU management a bit by taking into account process dependencies. Any dependent processes are pulled up in the LRU list with the processes that is actually moving. Also, we bring a process up if someone accesses its content provider. Change-Id: I34ea161f839679345578ffe681e8d9c5d26ab948
* | Fix ThrottleService wifi interactionRobert Greenwalt2010-05-061-1/+61
|/ | | | | | | | | | | | When we switch to another network (or even just lose mobile data) the mobile interface is either brought down or destroyed altogether. That means any throttling rules we've told the kernel about get lost. This change notices when our interface comes up and reinstates throttling if needed. bug:2660287 Change-Id: I4c6ebf78acc59ed66b95984a1e8b7c2ffbc22dcb
* Fix 2656989. Clean up update to updated system applications.Suchi Amalapurapu2010-05-051-0/+12
| | | | Change-Id: Ic66b00926c45fac43396f1f8f23d0865ba77faba
* Fix issue #2643754: Launcher is caching widget layouts for too longDianne Hackborn2010-05-041-0/+18
| | | | | | | | | | With the .apk file names now changing during an update, we need to make sure to flush all caches related to a package when the package is removed. Otherwise we can continue to use the old package, since its old file may still exist if we try to load it too soon. Change-Id: I15f08dffca3feac999dbca4f24bef12a30ca0a66
* Fix issue #2641875: Apps on sdcard not accesible after updateDianne Hackborn2010-04-291-2/+1
| | | | Change-Id: I541aa040939e6a872f0b7e8e82e44f96de49d97a
* Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: ↵Amith Yamasani2010-04-281-0/+3
|\ | | | | | | 2632681" into froyo
| * Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681Amith Yamasani2010-04-281-0/+3
| | | | | | | | | | | | | | The SimpleDateFormat was being cached and new timezone not being applied. Make sure to apply the new timezone to the format object as soon as it changes. Change-Id: I72abfef2e14cf5db5a6e8cb71b053380b695495c