summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of 27eecb70 to gingerbreadJean-Baptiste Queru2010-07-302-2/+0
|\ | | | | | | Change-Id: If064f2f4950fc1a4ff38e6927fe2120af76b26f1
| * 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
* | | Merge "Fix a bug where we cleaned an apps external data when upgrading it. ↵Dianne Hackborn2010-07-291-2/+1
|\ \ \ | | | | | | | | | | | | :(" into gingerbread
| * | | Fix a bug where we cleaned an apps external data when upgrading it. :(Dianne Hackborn2010-07-291-2/+1
| | | | | | | | | | | | | | | | Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada
* | | | DO NOT MERGE: Fix input event injection ANRs on UI thread.Jeff Brown2010-07-293-72/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new asynchronous injection mode and made the existing synchronization mechanism more robust. Change-Id: Ia4aa04fd9b75ea2461a844c5b7933c831c1027e6
* | | | Fix typo in GPS mode logic.Mike Lockwood2010-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MS-Assisted support should not be required for using MS-Based mode. Change-Id: Ia6ee219674de3e9cc13190b753f8776305a4fa90 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | Fixed underrun in audioflinger mixer.Eric Laurent2010-07-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When all audio tracks have been disabled and the mixer is running idle before the output stream is placed in standby, the mixer sometimes fails to write to the output stream on time to avoid underrun. This is because the sleep period used to wait before the next write to output stream is too close to the actual buffer duration. In fact this sleep time is not critical as if we write too early to the output stream, the kernel driver will wait for free buffers from the audio DSP DMA and we will sleep anyways. The fix consists in dividing the calculated wait period by 2 to increase the margin. Change-Id: I5730887dc2ccce2a511bc858494a6f7da6b392a0
* | | | Allow creation of an audio effect on a session with no audio tracks.Eric Laurent2010-07-292-16/+72
|/ / / | | | | | | | | | | | | | | | | | | | | | This is necessary to allow creating and enabling an effect attached to a particular player session before the playback is started. As a matter of fact, the implementation of the mediaplayer does not create the AudioTrack before playback starts. Change-Id: I1266e8885f9d756acc949303321aaac0fbf83e34
* | | Merge "fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. ↵Mathias Agopian2010-07-283-22/+78
|\ \ \ | | | | | | | | | | | | cannot dequeue all allocated buffers at once." into gingerbread
| * | | fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot ↵Mathias Agopian2010-07-273-22/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dequeue all allocated buffers at once. this situation happened when the last buffer needed to be resized (or allocated, the first time). the assumption was that the buffer was in use by SF itself as the current buffer (obviously, this assumption made no sense when the buffer had never been allocated, btw). the system would wait until some other buffer became the "front" buffer. we fix this problem by entirely removing the requirement that the buffer being resized cannot be the front buffer. instead, we just allocate a new buffer and replace the front buffer by the new one. the downside is that this uses more memory (an extra buffer) for a brief amount of time while the old buffer is being reallocated and before it has actually been replaced. Change-Id: I022e4621209474ceb1c671b23deb4188eaaa7285
* | | | Remove stale temporary ASEC containersKenny Root2010-07-281-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a temporary container is created, its existence should be ephemeral. However, if there is an error that causes system_server to be killed during the process of creating a finalized ASEC, delete the stale containers on the next start-up of system_server. Change-Id: I7be8f94638a824295474c9a95960594848cb726b
* | | | Merge "Fix getTempContainerId()" into gingerbreadKenny Root2010-07-281-43/+25
|\ \ \ \
| * | | | Fix getTempContainerId()Kenny Root2010-07-281-43/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getTempContainerId() would always return "smdl2tmp1" unless you had MAX_CONTAINERS number of SD card SDKs, because of an array sort that put all the zeros at the beginning. Switch from trying to find a hole in the series of numbers to just getting a number that's one larger than the previous. This reduces the algorithmic complexity and the memory requirements. Bug: 2832580 Change-Id: I32dc75ef5a6645f594ea47b032d7402e8860ebcd
* | | | | Refactor input reader to support new device types more easily.Jeff Brown2010-07-283-113/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the input reader so that each raw input protocol is handled by a separate subclass of the new InputMapper type. This way, behaviors pertaining to keyboard, trackballs, touchscreens, switches and other devices are clearly distinguished for improved maintainability. Added partial support for describing capabilities of input devices (incomplete and untested for now, will be fleshed out in later commits). Simplified EventHub interface somewhat since InputReader is taking over more of the work. Cleaned up some of the interactions between InputManager and WindowManagerService related to reading input state. Fixed swiping finger from screen edge into display area. Added logging of device information to 'dumpsys window'. Change-Id: I17faffc33e3aec3a0f33f0b37e81a70609378612
* | | | | Merge "Add a missing break; to restore old functionality and not turn off ↵Joe Onorato2010-07-281-0/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | the screen after 30secs regardless of system preference." into gingerbread
| * | | | | Add a missing break; to restore old functionality and not turn off the ↵Andreas Huber2010-07-271-0/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | screen after 30secs regardless of system preference. Change-Id: I6d160a1851e1f73bac3775d24cf70d46da59aa47
* | | | | Merge "Audio effects: modified command() parameter types." into gingerbreadEric Laurent2010-07-282-26/+97
|\ \ \ \ \
| * | | | | Audio effects: modified command() parameter types.Eric Laurent2010-07-282-26/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type of the cmd, cmdSize and *pReplySize parameters of the effect control interface command() function have been modified from int to uint32_t. This is more consistent with their role. Change-Id: I84d289fc262d6753747910f06f485597dfee6591
* | | | | | Merge "Tethering: Use new ACTION_USB_STATE broadcast to monitor USB ↵Mike Lockwood2010-07-281-6/+5
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | connected state" into gingerbread
| * | | | | Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected stateMike Lockwood2010-06-281-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces use of battery status, which will not work on devices that do not charge over USB. Change-Id: I1e123bb534d46b890461ddfdee24f81da5798756 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | Merge "Cap the size of StrictMode buffering we do before calling DropBox." ↵Brad Fitzpatrick2010-07-271-10/+25
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | into gingerbread
| * | | | | Cap the size of StrictMode buffering we do before calling DropBox.Brad Fitzpatrick2010-07-271-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I46ea767bd0153c745e9b7eff945dacf5130f8807
* | | | | | Merge "Remove a log message Jason doesn't like" into gingerbreadDan Egnor2010-07-271-2/+0
|\ \ \ \ \ \
| * | | | | | Remove a log message Jason doesn't likeDan Egnor2010-07-261-2/+0
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 2856942 Change-Id: Ifc5cfc076bfed0918bb203ed9c82a42092ac3939
* | | | | | am 8c65ee2d: Merge "Add a method to let a properly permissioned app directly ↵Joe Onorato2010-07-271-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." i Merge commit '8c65ee2d509db7dcb50ce4530d52eb5bdca3f917' into gingerbread * commit '8c65ee2d509db7dcb50ce4530d52eb5bdca3f917': Add a method to let a properly permissioned app directly
| * | | | 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
* | | | Infrastructure to report running services to developer.Dianne Hackborn2010-07-241-8/+25
| | | | | | | | | | | | | | | | Change-Id: Id1aae61323e7b8357c5fcc4bc641aaa57f3b6fde
* | | | Fix handling of application disabled state.Dianne Hackborn2010-07-241-7/+19
| |_|/ |/| | | | | | | | Change-Id: I617b76e89eeb75437b384b92f1205bb00b15bb70
* | | Report sensor events to BatteryStats serviceMathias Agopian2010-07-231-22/+42
| | | | | | | | | | | | Change-Id: I9b83aa709887aa658bc474391573f2d45b6c4eb2
* | | SensorService handles last known state properlyMathias Agopian2010-07-222-15/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SensorService now correctly sends the last known state of a sensor as soon as a new connection is made. This fixes the issue where, for instance, an application could wait a long time before getting the light or proximity sensor initial state. Change-Id: Ic41392f3626e26c4f15746c7e17c7ecd44bbb10b
* | | filter sensor event by connectionMathias Agopian2010-07-222-9/+20
| | | | | | | | | | | | | | | | | | | | | we now don't send events down to a connection that has not registered for this event. Change-Id: I3fe507974d3e99293749bfec2ef871e8a0ee9600
* | | propagate sensor event rate properly to the sensor HALMathias Agopian2010-07-212-51/+104
| | | | | | | | | | | | Change-Id: I1abe4c0fcce423caab79208353fded4d57398227
* | | propagate sensor event rate properlyMathias Agopian2010-07-211-1/+9
| | | | | | | | | | | | Change-Id: I32e67d30e4295285a6827956cc8161b2025d70bc
* | | SensorService doesn't crash if correct HAL is not presentMathias Agopian2010-07-212-14/+34
| | | | | | | | | | | | Change-Id: I83700b1a1b43390f5830e1056572bfb16e58e8e4
* | | Merge "Better dumpsys logs" into gingerbreadMathias Agopian2010-07-212-2/+17
|\ \ \
| * | | Better dumpsys logsMathias Agopian2010-07-192-2/+17
| | | | | | | | | | | | | | | | Change-Id: Iae65a8547ee5815cc4c3b74d2c9ef17bed7f565d
* | | | Merge "Added partial support for repporting sensor activity to ↵Mathias Agopian2010-07-211-0/+37
|\ \ \ \ | |/ / / | | | | | | | | IBatteryStats" into gingerbread
| * | | Added partial support for repporting sensor activity to IBatteryStatsMathias Agopian2010-07-191-0/+37
| | | | | | | | | | | | | | | | Change-Id: I2af319d89e49b0f2349ec9d8b0fccac80e9bc047
* | | | Merge "new SensorService" into gingerbreadMathias Agopian2010-07-2110-466/+610
|\ \ \ \ | |/ / /
| * | | new SensorServiceMathias Agopian2010-07-1910-466/+610
| | | | | | | | | | | | | | | | | | | | | | | | | | | | remove old sensor service and implement SensorManager on top of the new (native) SensorManger API. Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
* | | | am e8605af5: Merge "Avoid leaking file descriptors when returning drop box ↵Dan Egnor2010-07-211-0/+208
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | events." into froyo Merge commit 'e8605af513e846f6cd223c9e92461189727d8c9b' into gingerbread * commit 'e8605af513e846f6cd223c9e92461189727d8c9b': Avoid leaking file descriptors when returning drop box events.
| * | | 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
* | | | Audio policy manager changes for audio effectsEric Laurent2010-07-205-200/+652
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added methods for audio effects management by audio policy manager. - control of total CPU load and memory used by effect engines - selection of output stream for global effects - added audio session id in parameter list for startOutput() and stopOutput(). this is not used in default audio policy manager implementation. Modifications of audio effect framework in AudioFlinger to allow moving and reconfiguring effect engines from one output mixer thread to another when audio tracks in the same session are moved or when requested by audio policy manager. Also fixed mutex deadlock problem with effect chains locks. Change-Id: Ida43484b06e9b890d6b9e53c13958d042720ebdb
* | | Merge "Fixed problems in audio effect volume control." into gingerbreadEric Laurent2010-07-192-10/+24
|\ \ \
| * | | Fixed problems in audio effect volume control.Eric Laurent2010-07-192-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed the following problems in audio effect volume control in AudioFlinger: - Make sure that the volumes returned by EffectChain::setVolume_l() are correct even is no change is detected since last call - Do not use isEnabled() to validate volume control but mState >= ACTIVE instead as the volume control must be also active in STOPPING and STOPPED states. Change-Id: Id62da3164fad500ee8a5efd6cd78c77e8fdcb541
* | | | Merge "Don't throw an exception from isProviderEnabled and ↵Adam Bliss2010-07-191-6/+2
|\ \ \ \ | |/ / / |/| | | | | | | getLastKnownLocation" into gingerbread
| * | | Don't throw an exception from isProviderEnabled and getLastKnownLocationMike Lockwood2010-07-171-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if the location provider does not exist. Instead use the same behavior as if the provider were disabled in settings (return false for isProviderEnabled and null from getLastKnownLocation). This eliminates for a lot of exception handling around some simple queries to the location manager. BUG: 2841014 Change-Id: I4fbe0c088e915c90969e13083201dd3e7f4029cb Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | Fix individual pointer id up/down reporting.Jeff Brown2010-07-161-3/+7
|/ / / | | | | | | | | | | | | | | | Fix a minor threading bug in InputManager dump. Change-Id: Ic2eecf7df5a8dc9f40561fcb03ebe58a2c073778
* | | Merge "Fix bug with phantom input windows." into gingerbreadJeff Brown2010-07-163-116/+134
|\ \ \