summaryrefslogtreecommitdiffstats
path: root/services/java/com
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGErepo sync . build/envsetup.sh lunch passion-eng2010-09-271-1/+4
| | | | | | | | This is a manual cherrypick of: Change I3a76de15: Fixing font scale in WindowManagerService. There was a bug that causes WindowManagerService to lose the fontScale setting. Change-Id: I9b993e11f6a3e75735d8ed05596083893543d732
* Merge "Move SipService out of SystemServer to phone process." into gingerbreadHung-ying Tyan2010-09-275-3316/+0
|\
| * Move SipService out of SystemServer to phone process.Hung-ying Tyan2010-09-285-3316/+0
| | | | | | | | | | | | | | Companion CL: https://android-git/g/#change,70187 http://b/issue?id=2998069 Change-Id: I90923ac522ef363a4e04292f652d413c5a1526ad
* | Merge "squeeze a few more bits of randomness into /dev/random" into gingerbreadNick Kralevich2010-09-271-0/+1
|\ \ | |/ |/|
| * squeeze a few more bits of randomness into /dev/randomNick Kralevich2010-09-271-0/+1
| | | | | | | | Change-Id: Ida30c33985411f353c828b43ea26ca1b7e6502af
* | Merge "Allow all apps to call ContentResolver.getType()." into gingerbreadDianne Hackborn2010-09-272-2/+34
|\ \
| * | Allow all apps to call ContentResolver.getType().Dianne Hackborn2010-09-262-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | I can't find the bug number for this, but it is needed for some things we are doing where the app building an intent may not have access to the URI in the data field. This is for HC, but doing in GB to avoid introducing integration issues. Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
* | | Fix build.Hung-ying Tyan2010-09-281-0/+3
| | | | | | | | | | | | Change-Id: Ie47b63f02764e8a1ca1d36f502b6b4134859ff0d
* | | SIP: misc fixesHung-ying Tyan2010-09-281-25/+43
| | | | | | | | | | | | | | | | | | | | | | | | + check REQUEST_TERMINATED response on INVITE not CANCEL, + check if a TransactionTerminatedEvent matches the ongoing transaction, + add log to track SipConnection disconnect events. Change-Id: I28325be62ac44e4a7507d3c4b5b78b066c0ea2ad
* | | SipService: handle cross-domain authentication errorHung-ying Tyan2010-09-271-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | and add new CROSS_DOMAIN_AUTHENTICATION error code and OUT_OF_NETWORK DisconnectCause. http://b/issue?id=3020185 Change-Id: Icc0a341599d5a72b7cb2d43675fbddc516544978
* | | Use buffered output during packages.xml writeKenny Root2010-09-261-2/+4
|/ / | | | | | | | | | | | | | | FileOutputStream writes data one byte at a time, so use the BufferedOutputStream to wrap it and write once all the XML serialization is done. Change-Id: I419a6fcac2ac9a72a6cf41d4ca6e7ab6c7505618
* | Fixed some timeout and lock reentrance issues with broadcasts.Jeff Brown2010-09-241-75/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When starting a broadcast, the ActivityManagerService posts a delayed BROADCAST_TIMEOUT_MSG to handle timeouts. If a premature timeout occurs, we post a new BROADCAST_TIMEOUT_MSG to extend the timeout time for the current receiver. However, if the current receiver does timeout, the message is consumed and no replacement is ever posted. To fix the dropped timeouts, we track whether we have a pending broadcast timeout message and setup a new one when we begin working on the next receiver. As a last resort, performNextBroadcast contains code to detect whether a broadcast appears to be hung (timeout handling failed). If so, it calls broadcastTimeout to cause it to timeout immediately. However, performNextBroadcast is holding on to the ActivityManagerService lock while doing this but broadcastTimout expected to be called while the lock was not held since after updating the broadcast record state, it calls appNotResponding. To fix the unintentended lock reentrance, changed broadcastTimeout to assume the lock is already held (and the callers ensure this) then added code to perform the ANR asynchronously. Renamed a few methods to add "Locked" suffixes where appropriate and added a few comments for tricky areas uncovered during review. Change-Id: I3cb5b06d6b6a4a338f32c0998db721f6acf3b082
* | Merge "Some debugging support." into gingerbreadDianne Hackborn2010-09-241-1/+4
|\ \ | |/ |/|
| * Some debugging support.Dianne Hackborn2010-09-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | - New feature to "am monitor" to have it automatically launch gdbserv for you when a crash/ANR happens, and tell you how to run the client. - Update dumpstate to match new location of binder debug logs - Various commented out logs that are being used to track down issues. Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
* | SIP: longer timeout for making call, shorter for cancellingHung-ying Tyan2010-09-251-1/+1
|/ | | | | | http://b/3021865 Change-Id: I354ebcc00f1ac68e4b7b466745c36aeb314f9138
* Merge "Move long Connectivity tasks to handler thread." into gingerbreadRobert Greenwalt2010-09-241-92/+198
|\
| * Move long Connectivity tasks to handler thread.Robert Greenwalt2010-09-231-92/+198
| | | | | | | | | | | | | | Reduce ANR potential. bug:2942829 Change-Id: I21610b462d5ab91821015cd16eecd86d2c0580d1
* | SDP: remove dead code.Chia-chi Yeh2010-09-241-1/+0
| | | | | | | | Change-Id: I2a5764a2b9cabc54b0ac18666e494c1cb39c4e9b
* | Refactoring SIP classes to get ready for API review.Hung-ying Tyan2010-09-243-62/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | + replace SipAudioCall and its Listener interfaces with real implementations, + remove SipAudioCallImpl.java, most of it is has become part of SipAudioCall, + add SipSession and its Listener classes to wrap ISipSession and ISipSessionListener, + move SipSessionState to SipSession.State, + make SipManager keep context and remove the context argument from many methods of its, + rename SipManager.getInstance() to newInstance(), + rename constant names for action strings and extra keys to follow conventions, + set thread names for debugging purpose. Change-Id: Ie1790dc0e8f49c06c7fc80d33fec0f673a9c3044
* | Merge "Crash apps when they provide bad notifications instead of crashing ↵Joe Onorato2010-09-231-1/+3
|\ \ | | | | | | | | | the system process." into gingerbread
| * | Crash apps when they provide bad notifications instead of crashing the ↵Joe Onorato2010-09-231-1/+3
| | | | | | | | | | | | | | | | | | | | | system process. Bug: 2958415 Change-Id: I9cbef340fb20a64eca8493950b814399c26ce197
* | | Merge "Handle OPTIONS requests from SIP servers." into gingerbreadChung-yih Wang2010-09-231-0/+6
|\ \ \
| * | | Handle OPTIONS requests from SIP servers.Chung-yih Wang2010-09-241-0/+6
| | | | | | | | | | | | | | | | Change-Id: I849d5ea4c4c56a06d25ccdc6b959274c59c47200
* | | | Fix issue #3022508: Crash during media scanDianne Hackborn2010-09-233-234/+489
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't kill processes for excessive wake lock use, even if they are in the background, as long as they have running services. Also fix some problems with this, such as not noting the kill in battery stats. And add killing of processes for cpu usage as well, along with some optimizations to computing CPU usage. And fix BatteryWaster to be better behaving for testing these cases. Add new "monitor" command to am to watch as the activity manager does stuff (so we can catch things at the point of ANR). Finally some miscellaneous debug output for the stuff here, as well as in progress debugging of an ANR. Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
* | | Merge "Fix a deadlock I ran into." into gingerbreadDianne Hackborn2010-09-231-13/+13
|\ \ \ | |_|/ |/| |
| * | Fix a deadlock I ran into.Dianne Hackborn2010-09-221-13/+13
| | | | | | | | | | | | | | | | | | | | | Activity manager was calling into the backup service (and other things) with its lock held. Change-Id: Id55093e09cc5fe81b73b85968184816d956e0ae8
* | | Merge "Cleanup Netd to prevent getting hung." into gingerbreadRobert Greenwalt2010-09-233-8/+34
|\ \ \ | |_|/ |/| |
| * | Cleanup Netd to prevent getting hung.Robert Greenwalt2010-09-223-8/+34
| |/ | | | | | | | | | | | | | | | | | | If the sending of the command fails we should note it and not wait forever for the response. We should also not say we're ready until we actually are. bug:2993205 Change-Id: I380f0312ac4693ad184a526b330fdfa23f6ac558
* | Don't do single byte writes in DropBoxManagerServiceBrad Fitzpatrick2010-09-221-1/+5
| | | | | | | | | | Bug: 3018772 Change-Id: I6990041f059aeb2a4c29e59b1a3d78d19bf9b02f
* | Fix NPE in PowerManagerService on boot, if some settings are corrupted.Amith Yamasani2010-09-221-8/+17
| | | | | | | | | | Bug: 2715038 Change-Id: I10c08b359ff3cde732c37eb6dff0877cdb021cd9
* | Merge "GpsLocationProvider: Fix race condition while bringing up APN for ↵Mike Lockwood2010-09-221-2/+7
|\ \ | | | | | | | | | SUPL." into gingerbread
| * | GpsLocationProvider: Fix race condition while bringing up APN for SUPL.Mike Lockwood2010-09-221-2/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | If handleUpdateNetworkState() is called before ConnectivityManager.startUsingNetworkFeature() returns, then we will not call native_agps_data_conn_open() to inform the GPS that the APN is up. So we now set mAGpsDataConnectionState to AGPS_DATA_CONNECTION_OPENING before calling ConnectivityManager.startUsingNetworkFeature() to avoid this problem. Change-Id: I5e1597d6494dc8ab68e608911c546a7a04f2ea07 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Merge "SipService: fix thread/socket leak" into gingerbreadHung-ying Tyan2010-09-221-3/+3
|\ \ | |/ |/|
| * SipService: fix thread/socket leakHung-ying Tyan2010-09-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | Should call SipSessionGroup.close() instead of closeNotToReceiveCalls() to stop the SIP stack (which will stop the MessageProcessor thread and close its socket). Might be related to ANR's reported by: http://b/issue?id=3021924 http://b/issue?id=3021927 Change-Id: I4ead1d81fc9abac983f5753b825d20bc1cc79866
* | Fix race reading input configuration during system startup.Jeff Brown2010-09-211-17/+3
| | | | | | | | Change-Id: I9360c4ec5c29937fce06b44ffc71fca58c8b3d5f
* | Make wifi scan async. (don't auto-merge)Irfan Sheriff2010-09-211-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | When an entity (NLP for example) acquires a WifiLock and initiates a scan, scan can get blocked until driver starts. scan returns no useful info, scan results are broadcast when obtained. Bug: 2964633 Change-Id: Iaefc32bb6b82f0718285a18ac600e6bbbb096e77
* | Merge "Inet status bug fix" into gingerbreadRobert Greenwalt2010-09-211-0/+16
|\ \
| * | Inet status bug fixRobert Greenwalt2010-09-211-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Don't wipe out the connected status every time we get a cellular status change. Don't filter out disconnect event for wifi - we need them. bug:3009923 Change-Id: I68cadac5f44d6eb4e0fe711fda7c5d218abb45bd
* | | Fix issue #2999757: "Application Redirected" dialogue showing up erraticallyDianne Hackborn2010-09-201-17/+21
| | | | | | | | | | | | | | | | | | Give up on this for now. Change-Id: Ic66a36d468f8bcb313d9bde2809124cdfd74adb3
* | | Merge "Fix #2999258: ANR in Settings after every reboot" into gingerbreadDianne Hackborn2010-09-201-39/+97
|\ \ \ | |/ / |/| |
| * | Fix #2999258: ANR in Settings after every rebootDianne Hackborn2010-09-201-39/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main problem here was in the error recovery when we are waiting for a process to start but it has failed for some reason. The code was just setting mPendingBroadcast to null, but this would cause an eventual ANR because the state was not set back to IDLE so we would continue waiting for the broadcast without trying to restart its process. Now we set it to idle. We also need to reset the "nextReceiver" index, so there is a new mPendingBroadcastRecvIndex variable holding what it should be set back to. While digging into this, I found a number of other lesser problems: - There is a race when booting the system where we set mSystemReady to true before restarting the upgrade processes. This could allow a broadcast to happen between those two and its process to immediately be removed. To fix this, there is a new mProcessesReady that is set once we are truly ready to start launching processes. - There were various places where we were calling sendBroadcastLocked() without the flag to send only to receivers... if this is called before mProcessesReady is set, then we would end up sticking any process for the broadcast on the holding list to not get launched until later (and hang up all broadcasts as they want for it). Now we always make sure to set this appropriately. - sendBroadcastInPackage() was not doing all of the validation that sendBroadcast() does. And of course a bunch of new debugging logs that were done in the course of tracking this down. Change-Id: I6134bbd94fdb73db8b693507b29499eae012d543
* | | Merge "Add Inet Condition log to bugreports" into gingerbreadRobert Greenwalt2010-09-201-0/+27
|\ \ \ | |/ / |/| |
| * | Add Inet Condition log to bugreportsRobert Greenwalt2010-09-201-0/+27
| |/ | | | | | | | | | | Reports who reports what condition on which network at what time. Where is implied. Change-Id: I89fbc7323dec438041859fcc934169fa325f0133
* | Merge "LocationManager: Hide location provider and geocode provider APIs." ↵Mike Lockwood2010-09-201-1/+1
|\ \ | | | | | | | | | into gingerbread
| * | LocationManager: Hide location provider and geocode provider APIs.Mike Lockwood2010-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rename Geocoder.isImplemented() to Geocoder.isPresent() BUG: 3000738 BUG: 3001413 Change-Id: I56bb4e9a9c59f8b79de585eeb168f74c3ff1a853 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Merge "DO NOT MERGE. Wifi service now blames apps for its wake lock use." ↵Dianne Hackborn2010-09-201-1/+2
|\ \ \ | |/ / |/| | | | | into gingerbread
| * | DO NOT MERGE. Wifi service now blames apps for its wake lock use.Dianne Hackborn2010-09-201-1/+2
| | | | | | | | | | | | Change-Id: Ic57d8f77527bbfea6a129b8f348fe9108157b4d8
* | | Merge "In theory the package manager now scans /vendor/app" into gingerbreadDianne Hackborn2010-09-201-2/+18
|\ \ \
| * | | In theory the package manager now scans /vendor/appDianne Hackborn2010-09-201-2/+18
| | |/ | |/| | | | | | | | | | | | | Not tested. Change-Id: Ib6120d645074c95dd0afd1476f6167aec5d50bb9
* | | Some battery improvements:Dianne Hackborn2010-09-202-2/+7
|/ / | | | | | | | | | | | | | | | | | | - New API for iterating over history that will allow a better implementation in the future. - Now do writes asynchronously. Also improve the documentation for Activity.onRetainNonInstanceState(). Change-Id: Idf67f2796a8868eb62f288bcbb2bad29876c8554