summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-078-21/+13
| | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* Improve activity manager debug dumps.Dianne Hackborn2011-04-075-275/+700
| | | | | | | | | Activity manager now does all dump requests into apps asynchronously, so it can nicely timeout if there is an app problem. Also lots of general cleanup of the am dump output. Change-Id: Id0dbccffb217315aeb85c964e379833e6aa3f5af
* am de1b950d: am 9e7a5a1e: Merge "ConnectivityService needs to use the new ↵Wink Saville2011-04-071-18/+18
|\ | | | | | | | | | | | | names for the NetConfig vars." into honeycomb-LTE * commit 'de1b950d2b07737e3d284ed2ada361737d8a5a1a': ConnectivityService needs to use the new names for the NetConfig vars.
| * am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the ↵Wink Saville2011-04-071-18/+18
| |\ | | | | | | | | | | | | | | | | | | NetConfig vars." into honeycomb-LTE * commit '9e7a5a1e567a0e696d9a7b68fffd00b7408e6ac1': ConnectivityService needs to use the new names for the NetConfig vars.
| | * ConnectivityService needs to use the new names for the NetConfig vars.Wink Saville2011-04-071-18/+18
| | | | | | | | | | | | Change-Id: I809a624057462871cd1849051286c2bffd5099e9
* | | am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aospRobert Greenwalt2011-04-071-70/+65
|\ \ \ | |/ / | | | | | | | | | * commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21': Add external dependency API.
| * | resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aospRobert Greenwalt2011-04-071-70/+65
| |\ \ | | |/ | | | | | | Change-Id: I0962138f6ecb1ed54fda25524d8850b086f13c4f
| | * Add external dependency API.Robert Greenwalt2011-04-071-71/+66
| | | | | | | | | | | | | | | | | | | | | An APN will not be connected to if some external dependency is not met. bug:3486704 Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
* | | Merge "Coalesce input events that arrive faster than 333Hz."Jeff Brown2011-04-073-21/+101
|\ \ \
| * | | Coalesce input events that arrive faster than 333Hz.Jeff Brown2011-04-073-21/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some drivers report individual finger updates one at a time instead of all at once. When 10 fingers are down, this can cause the framework to have to handle 10 times as many events each with 10 times as much data. Applications like PointerLocation would get significantly bogged down by all of the redundant samples. This change coalesces samples that are closely spaced in time, before they are dispatched, as part of the motion event batching protocol. Increased the size of the InputChannel shared memory buffer so that applications can catch up faster if they accumulate a backlog of samples. Added logging code to help measure input dispatch and drawing latency issues in the view hierarchy. See ViewDebug.DEBUG_LATENCY. Change-Id: Ia5898f781f19901d2225c529a910c32bdf4f504f
* | | | Merge changes I4011db5c,I622bc5faJoe Onorato2011-04-061-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: less logging A system setting for "advanced settings."
| * | | | less loggingJoe Onorato2011-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I4011db5c2a610e741a09e4e8fee68a86175769cc
* | | | | Merge "Allow batching samples onto the pending motion event."Jeff Brown2011-04-061-0/+28
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / /
| * | | Allow batching samples onto the pending motion event.Jeff Brown2011-04-061-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enlarges the window of opportunity for batching to encompass time spent for the window to become ready (while it is busy processing the last event). Change-Id: I3fb5a394ab1b85d6591192678168ca6e35dd9d53
* | | | Merge "Miscellaneous code cleanup in audio framework"Glenn Kasten2011-04-062-5/+6
|\ \ \ \
| * | | | Miscellaneous code cleanup in audio frameworkGlenn Kasten2011-04-062-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: - Move declaration of kClassPathName to top of file so it can be used in more than one place, instead of "android/media/AudioSystem". - Make private methods static. - Add comment to stream_type, audio_mode, force_use types that they must match values in AudioSystem.java. - Add comment about unused types mp3_sub_format and vorbis_sub_format. - Fix typos. - Use @ in javadoc comments. - Delete dead APIs setMode, getMode, setRouting, getRouting in AudioSystem.java (they are all hidden, deprecated, and unused by rest of framework) - Delete unused private log method. - Fix pathname for android_media_AudioSystem.cpp. - Improve code formatting for space after == and !=. - Add logging of delta for changing audio policy manager ref count. Change-Id: I18037c7beb8ab76d1fda08c11e589f6e591d36e1
* | | | | Merge "remove more unused references to ISurface"Mathias Agopian2011-04-063-24/+3
|\ \ \ \ \
| * | | | | remove more unused references to ISurfaceMathias Agopian2011-04-053-24/+3
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2201f1ca2bb8f203a081d94a0134f798778dfbef
* | | | | | Merge "turn off log spew"Joe Onorato2011-04-062-2/+1
|\ \ \ \ \ \
| * | | | | | turn off log spewJoe Onorato2011-04-062-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7e5564e02460ff41829c9fd26d80032ea3104498
* | | | | | | Add new resource configurations for screen width/height in "dp".Dianne Hackborn2011-04-061-0/+3
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now specify resource configuration variants "wNNNdp" and "hNNNdp". These are the minimum screen width/height in "dp" units. This allows you to do things like have your app adjust its layout based only on the about of horizontal space available. This introduces a new configuration change flag for screen size. Note that this configuration change happens each time the orientation changes. Applications often say they handle the orientation change to avoid being restarted at a screen rotation, and this will now cause them to be restarted. To address this, we assume the app can handle this new config change if its target SDK version is < ICS. Change-Id: I22f8afa136b4f274423978c570fa7c9855040496
* | | | | | Merge "Don't use local ref for cached jclass reference in JNI code"Brian Carlstrom2011-04-061-2/+2
|\ \ \ \ \ \
| * | | | | | Don't use local ref for cached jclass reference in JNI codeBrian Carlstrom2011-04-061-2/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id45b2acb358a819f2fd332e99f3a095f6fc7299b related-to-bug: 4241138
* | | | | | Merge "Add support for supplicant SCAN_INTERVAL"Irfan Sheriff2011-04-061-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add support for supplicant SCAN_INTERVALIrfan Sheriff2011-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, allow scan interval for framework and supplicant to be configured at build time or run time Bug: 4144882 Change-Id: I877f4bcc872597b44d3f4da85cf2bc0f16e09444
* | | | | | Merge "MountService: Fix running media scanner at boot."Mike Lockwood2011-04-051-0/+7
|\ \ \ \ \ \
| * | | | | | MountService: Fix running media scanner at boot.Mike Lockwood2011-04-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibd1111b7ec6380011cd10a56f11f891f2e16abc2 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | | Merge "Fix deadlock in MountService"Mike Lockwood2011-04-051-17/+32
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Fix deadlock in MountServiceMike Lockwood2011-04-051-17/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not safe to call into vold with a lock held on mVolumeStates since we will receive events back from vold on a different thread. So in the boot completed handler we make a copy of the volume list and then call vold to mount volumes after releasing the lock Change-Id: I0dee91f09e4056132aaaf0fb0a663148c65db1e4 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | | New fix for issue 4111672: control block flagsEric Laurent2011-04-051-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first fix (commit 913af0b4) is problematic because it makes threads in mediaserver process block on the cblk mutex. This is not permitted as it can cause audio to skip or worse have a malicious application prevent all audio playback by keeping the mutex locked. The fix consists in using atomic operations when modifying the control block flags. Also fixed audio_track_cblk_t::framesReady() so that it doesn't block when called from AudioFlinger (only applies when a loop is active). Change-Id: Ibf0abb562ced3e9f64118afdd5036854bb959428
* | | | | | | Merge "Fix deadlock in BackupManagerService"Christopher Tate2011-04-041-8/+8
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Fix deadlock in BackupManagerServiceChristopher Tate2011-04-041-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lock ordering bug. The fix is to avoid having to hold both locks simultaneously in one prong of the deadlock. (Further strengthening: the code path for potentially acquiring both simultaneously now begins at a common method, ensuring that lock ordering is always consistent.) Change-Id: If9433aff8326fec2ba0e97e96ad2d835b01e2cda
* | | | | | | Merge "StorageManager: Add getVolumeList() and getVolumeState() methods"Mike Lockwood2011-04-041-0/+13
|\ \ \ \ \ \ \
| * | | | | | | StorageManager: Add getVolumeList() and getVolumeState() methodsMike Lockwood2011-04-041-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Icf3301827dd27e8430bd44eaafde517a31ef035a Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | | | Merge "MountService: Add support for multiple volumes"Mike Lockwood2011-04-041-108/+111
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | / / / | |_|_|_|/ / / |/| | | | | |
| * | | | | | MountService: Add support for multiple volumesMike Lockwood2011-04-041-108/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4eaa781cf302c7aaae170af2489b6b29120c0b81 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | | am e716a551: resolved conflicts for merge of ab2194aa to honeycomb-plus-aospRobert Greenwalt2011-04-041-0/+1
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | * commit 'e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96': Only leave one default network up at a time.
| * | | | | | resolved conflicts for merge of ab2194aa to honeycomb-plus-aospRobert Greenwalt2011-04-041-0/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I99a29f920336b00b26b9aadafd2bd835049f48cf
| | * \ \ \ \ \ am 27725e8c: Only leave one default network up at a time.Robert Greenwalt2011-04-041-0/+1
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '27725e8cd1e2eb3b88186ae8d43e437f130b1f84': Only leave one default network up at a time.
| | | * | | | | | Only leave one default network up at a time.Robert Greenwalt2011-03-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If original refuses to tear down, tear down new one. It's better to have none (which will try to launch them all again) than two. Really people shouldn't refuse the teardown request. bug:4183397 Change-Id: I54ea1bf0d2cd2ef16fcf2eafc69895ad2fe33ffd
* | | | | | | | | am 8f7aad14: am f7a34b15: am e558a000: Merge "Avoid crash in system server ↵Brad Fitzpatrick2011-04-041-1/+2
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | / / / / | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | when mounting container" * commit '8f7aad147d790b25bae7301827e070df72690341': Avoid crash in system server when mounting container
| * | | | | | | am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting ↵Brad Fitzpatrick2011-04-041-1/+2
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | container" * commit 'f7a34b15986f8c00bc6fb941a40f9acbe2c21aff': Avoid crash in system server when mounting container
| | * | | | | | am e558a000: Merge "Avoid crash in system server when mounting container"Brad Fitzpatrick2011-04-041-1/+2
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e558a0000389a2523b8d3d3a787db6b4579d2bdc': Avoid crash in system server when mounting container
| | | * | | | | | Avoid crash in system server when mounting containerFredrik Helmer2011-04-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A race condition when mounting a container in PackageHelper may cause the system_server to crash (uncaught exception). Calling methods are prepared to handle null, so return null instead. Change-Id: I852ee21a2d847e37d81c1b900c27ddf94ef24fcb
| | * | | | | | | am 05f14e2b: Merge "DO NOT MERGE Pick upstream intf with valid IP conf" into ↵Irfan Sheriff2011-03-301-4/+4
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread * commit '05f14e2bcf78be62b35e85902408ea66103a3881': DO NOT MERGE Pick upstream intf with valid IP conf
| | | * | | | | | Merge "DO NOT MERGE Pick upstream intf with valid IP conf" into gingerbreadIrfan Sheriff2011-03-251-4/+4
| | | |\ \ \ \ \ \
| | | | * | | | | | DO NOT MERGE Pick upstream intf with valid IP confIrfan Sheriff2011-03-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a work around for the issue of picking the wrong interface, add a check for selecting an upstream interface that has a valid IP configuration Bug: 3362306 Change-Id: I3e8ab5ef30b69f1adab755d83f5b65c078f73936
| * | | | | | | | | Fix the build.Robert Greenwalt2011-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bad merge. Change-Id: I45d418a8868c9cab1b142ef997ad1d3550d11eee
* | | | | | | | | | You can't fsync(2) /dev/urandom...Elliott Hughes2011-04-042-4/+4
| |_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...so don't even try. Doing so leads to this: W/EntropyService( 1586): unable to load initial entropy (first boot?) W/EntropyService( 1586): java.io.SyncFailedException: fsync failed: EINVAL (Invalid argument) W/EntropyService( 1586): at java.io.FileDescriptor.sync(FileDescriptor.java:73) W/EntropyService( 1586): at java.io.RandomAccessFile.write(RandomAccessFile.java:694) W/EntropyService( 1586): at java.io.RandomAccessFile.write(RandomAccessFile.java:676) W/EntropyService( 1586): at com.android.server.RandomBlock.toDataOut(RandomBlock.java:88) W/EntropyService( 1586): at com.android.server.RandomBlock.toFile(RandomBlock.java:70) W/EntropyService( 1586): at com.android.server.EntropyService.loadInitialEntropy(EntropyService.java:99) W/EntropyService( 1586): at com.android.server.EntropyService.<init>(EntropyService.java:86) W/EntropyService( 1586): at com.android.server.EntropyService.<init>(EntropyService.java:76) W/EntropyService( 1586): at com.android.server.ServerThread.run(SystemServer.java:139) W/EntropyService( 1586): Caused by: libcore.io.ErrnoException: fsync failed: EINVAL (Invalid argument) W/EntropyService( 1586): at libcore.io.Posix.fsync(Native Method) W/EntropyService( 1586): at libcore.io.BlockGuardOs.fsync(BlockGuardOs.java:39) W/EntropyService( 1586): at java.io.FileDescriptor.sync(FileDescriptor.java:71) W/EntropyService( 1586): ... 8 more Change-Id: I598a9456eccec0ca087f1568d47b6b8e531de8a8
* | | | | | | | | Merge "Fix dispatcher crash when input monitoring enabled. Also ensure that ↵Jeff Brown2011-04-013-39/+40
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | we actually log assertion failures."