summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
...
* | | am 5cd6fcd5: am e6c0e993: Merge change I129483f8 into eclair-mr2Kenny Root2009-12-103-46/+183
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '5cd6fcd518d47d1974a10fccf3c3d5431a83307a' * commit '5cd6fcd518d47d1974a10fccf3c3d5431a83307a': Optional use of UTF-8 strings in resource bundles
| * | Merge change I129483f8 into eclair-mr2Android (Google) Code Review2009-12-083-46/+183
| |\ \ | | | | | | | | | | | | | | | | * changes: Optional use of UTF-8 strings in resource bundles
| | * | Optional use of UTF-8 strings in resource bundlesKenny Root2009-12-073-46/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows the use of UTF-8 for packing resources instead of the default of UTF-16 for Java. When strings are extracted from the ResStringPool, they are converted to UTF-16 and the result is cached for subsequent calls. When using aapt to package, add in the "-8" switch to pack the resources using UTF-8. This will result in the value, key, and type strings as well as the compiled XML string values taking significantly less space in the final application package in most scenarios. Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
* | | | am 68a3b8b6: am 24eca800: Merge change I887f355f into eclair-mr2Dianne Hackborn2009-12-102-15/+87
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3' * commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3': Propagate background scheduling class across processes.
| * | | Propagate background scheduling class across processes.Dianne Hackborn2009-12-072-15/+87
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a very simply implementation: upon receiving an IPC, if the handling thread is at a background priority (the driver will have taken care of propagating this from the calling thread), then stick it in to the background scheduling group. Plus an API to turn this off for the process, which is used by the system process. This also pulls some of the code for managing scheduling classes out of the Process JNI wrappers and in to some convenience methods in thread.h.
* | | am bf831e0d: am 38f6bdc4: am 0a08029f: Fix issue 2306779: Runtime restart - ↵Eric Laurent2009-12-071-12/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Init failed at android.media.ToneGenerator. Merge commit 'bf831e0de0fd1636a7ee2670faed208f96f23f65' * commit 'bf831e0de0fd1636a7ee2670faed208f96f23f65': Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.
| * | am 0a08029f: Fix issue 2306779: Runtime restart - Init failed at ↵Eric Laurent2009-12-071-12/+4
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | android.media.ToneGenerator. Merge commit '0a08029fc9a370c6ef2a2a6fd1d800d9159b61f8' into eclair-mr2 * commit '0a08029fc9a370c6ef2a2a6fd1d800d9159b61f8': Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.
| | * Fix issue 2306779: Runtime restart - Init failed at ↵Eric Laurent2009-12-071-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | android.media.ToneGenerator. The ToneGenerator failed to initialize because no more tracks were available in AudioFlinger mixer. All tracks were used because the duplicating output was failing to free the tracks on audio hardware output mixer when exiting due to a misplaced test on output activity: output tracks where only freed if the duplicating output was active when exiting. The fix consists in freeing the output tracks when the duplicating thread is destroyed without condition.
* | | am e30bae7f: am b8341cf7: am 6d42d806: Merge change I9cc489a2 into eclairEric Laurent2009-12-072-17/+39
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'e30bae7f8ef0489788c155ae44d9a57beca1acf5' * commit 'e30bae7f8ef0489788c155ae44d9a57beca1acf5': Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
| * | am 6d42d806: Merge change I9cc489a2 into eclairEric Laurent2009-12-072-17/+39
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7' into eclair-mr2 * commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7': Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
| | * Merge change I9cc489a2 into eclairAndroid (Google) Code Review2009-12-072-17/+39
| | |\ | | | | | | | | | | | | | | | | * changes: Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
| | | * Fix issue 2304669: VoiceIME: starting and canceling voice IME yields ↵Eric Laurent2009-12-072-17/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | persistent "error 8" state on future attempts and breaks voice search. Fixed AudioFlinger::openInput() broken in change ddb78e7753be03937ad57ce7c3c842c52bdad65e so that an invalid IO handle (0) is returned in case of failure. Applied the same correction to openOutput(). Modified RecordThread start procedure so that a failure occuring during the first read from audio input stream is detected and causes the record start to fail. Modified RecordThread stop procedure to make sure that audio input stream fd is closed before we exit the stop function. Fixed AudioRecord JAVA and JNI implementation to take status of native AudioRecord::start() into account and not change mRecordingState to RECORDSTATE_RECORDING if start fails.
* | | | am 0c15b889: am 401f4220: am 0019215f: Revert "When using MDP, we needed to ↵Dima Zavin2009-12-071-3/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | use a texture for diming." Merge commit '0c15b889317e9569282e4513db598369a0506b40' * commit '0c15b889317e9569282e4513db598369a0506b40': Revert "When using MDP, we needed to use a texture for diming."
| * | | am 0019215f: Revert "When using MDP, we needed to use a texture for diming."Dima Zavin2009-12-071-3/+0
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '0019215fc395ef12c191049b1903eeabf70859cf' into eclair-mr2 * commit '0019215fc395ef12c191049b1903eeabf70859cf': Revert "When using MDP, we needed to use a texture for diming."
| | * | Revert "When using MDP, we needed to use a texture for diming."Dima Zavin2009-12-071-3/+0
| | |/ | | | | | | | | | This reverts commit bf0c320afbf6bf2441916755ecb443b64afbe73f.
| | * Merge change Ic73ec39b into eclairAndroid (Google) Code Review2009-12-031-0/+14
| | |\ | | | | | | | | | | | | | | | | * changes: DO NOT MERGE. Implement WAR which should prevent the white square bug from appearing on user devices. If we see a 0 texture id during bind for rendering, attempt to re-upload. If this fails log debug info and restart the app.
| | | * DO NOT MERGE. Implement WAR which should prevent the white square bug from ↵Jason Sams2009-12-031-0/+14
| | | | | | | | | | | | | | | | appearing on user devices. If we see a 0 texture id during bind for rendering, attempt to re-upload. If this fails log debug info and restart the app.
* | | | am 20208ff6: am 9b565d5b: am cef8d031: Merge change I00d0b54a into eclairErik Gilling2009-12-041-2/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '20208ff643b33956c93d1f3fa1fa2c2d06fc7d02' * commit '20208ff643b33956c93d1f3fa1fa2c2d06fc7d02': surfaceflinger: remove un-cached buffer hack for SGX
| * | | am cef8d031: Merge change I00d0b54a into eclairErik Gilling2009-12-031-2/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit 'cef8d031e842b773bbd6481b517996a185391e92' into eclair-mr2 * commit 'cef8d031e842b773bbd6481b517996a185391e92': surfaceflinger: remove un-cached buffer hack for SGX
| | * | surfaceflinger: remove un-cached buffer hack for SGXErik Gilling2009-12-031-2/+1
| | |/ | | | | | | | | | Signed-off-by: Erik Gilling <konkers@android.com>
* | | am 2aa10791: am 96dac84b: am 121a31ac: Merge change Id86beb99 into eclairMathias Agopian2009-12-021-13/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '2aa107917b5a7e6de720a34c4701de55ee9772eb' * commit '2aa107917b5a7e6de720a34c4701de55ee9772eb': fix [2291418] Camera preview cannot work in Emulator
| * | am 121a31ac: Merge change Id86beb99 into eclairMathias Agopian2009-12-021-13/+15
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '121a31ac3901fcb81c808da2b4a9a7cf66c12b7c' into eclair-mr2 * commit '121a31ac3901fcb81c808da2b4a9a7cf66c12b7c': fix [2291418] Camera preview cannot work in Emulator
| | * fix [2291418] Camera preview cannot work in EmulatorMathias Agopian2009-12-021-13/+15
| | | | | | | | | | | | | | | | | | The image buffer used by glTexImage2d() would be uninitialized when no copybit engine can be found. We now always initialize images, since the abscence of copybit is not necessarily fatal.
* | | am 52d390e8: am 6076046a: am 1ac56b60: Merge change Iac196e17 into eclairEric Laurent2009-12-021-5/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '52d390e8892967c1fad717a00731c0a25e268686' * commit '52d390e8892967c1fad717a00731c0a25e268686': Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.
| * | am 1ac56b60: Merge change Iac196e17 into eclairEric Laurent2009-12-021-5/+6
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '1ac56b602aa6a1ac54c608e5a8b76f44638db23b' into eclair-mr2 * commit '1ac56b602aa6a1ac54c608e5a8b76f44638db23b': Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.
| | * Merge change Iac196e17 into eclairAndroid (Google) Code Review2009-12-011-5/+6
| | |\ | | | | | | | | | | | | | | | | * changes: Fix issue 2292062: Audio freezes for three seconds when choosing ringtones with a headset connected and music playing.
| | | * Fix issue 2292062: Audio freezes for three seconds when choosing ringtones ↵Eric Laurent2009-12-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with a headset connected and music playing. The problem comes from a deadlock with AudioPolicyService mutex: When the second ringtone starts, this mutex is locked by AudioPolicyService::startOutput() which in turn calls setParameters() to change the output device. Audioflinger::ThreadBase::setParameters() signals the parameter change to the AudioFlinger mixer thread and waits for a condition indicating that the parameter change has been processed. At the same time, the mixer thread detects that the audio track corresponding to the first ring tone has been killed and calls its destructor. This calls AudioPolicyService::releaseOutput() which tries to lock the AudioPolicyService mutex. If this happens before the mixer thread can process the setParameters() command we are deadlocked. The deadlock ends because setParameters() uses a timeout when waiting for the condition. This regression was introduced by change 33736 fixing issue 2265163. The fix consists in calling AudioPolicyService::releaseOutput() from Track::destroy() instead of from Track destructor: as detroy() is never called from the mixer thread loop (as opposed to the destructor) the deadlock described above cannot occur.
* | | | am 44dcf411: am f764dae4: am 33ad0f9e: Merge change I0e44976a into eclairMathias Agopian2009-12-022-13/+22
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '44dcf411b01bdbd0ae2aeef3e958403a1096f36b' * commit '44dcf411b01bdbd0ae2aeef3e958403a1096f36b': fix [2297155] SurfaceFlinger's freeze-timeout doesn't work
| * | | am 33ad0f9e: Merge change I0e44976a into eclairMathias Agopian2009-12-022-13/+22
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '33ad0f9ec8d47660b16ced45242a45f369fe2547' into eclair-mr2 * commit '33ad0f9ec8d47660b16ced45242a45f369fe2547': fix [2297155] SurfaceFlinger's freeze-timeout doesn't work
| | * | fix [2297155] SurfaceFlinger's freeze-timeout doesn't workMathias Agopian2009-12-012-13/+22
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | There was bug in the logic that calculated the relative timeout, the start time was reset each time an event was received, which caused the timeout to never occur if an application was constantly redrawing. Now we always check for a timeout when we come back from the waitEvent() and process the "anti-freeze" if needed, regardless of whether an event was received.
* | | am a628e023: am 102f4dbb: am 8e4a110b: Merge change I5469a4ac into eclairMathias Agopian2009-12-011-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'a628e0238519a596e2d10981aae0aab65418f271' * commit 'a628e0238519a596e2d10981aae0aab65418f271': fixed [2260070] display stopped updating
| * | am 8e4a110b: Merge change I5469a4ac into eclairMathias Agopian2009-12-011-0/+5
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '8e4a110b3e146b30b804d7e2cd0825bf56bd7d0f' into eclair-mr2 * commit '8e4a110b3e146b30b804d7e2cd0825bf56bd7d0f': fixed [2260070] display stopped updating
| | * fixed [2260070] display stopped updatingMathias Agopian2009-11-301-0/+5
| | | | | | | | | | | | | | | always check that the visible region isn't empty after all visible regions are recomputed clear he freeze-lock if it is.
* | | Beging GL2 user shaders. Switch master to using GL2 by default.Jason Sams2009-11-307-19/+62
| | |
* | | Fix filmJason Sams2009-11-251-1/+1
| | |
* | | Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 ↵Jason Sams2009-11-2524-116/+963
| | | | | | | | | | | | can be enabled and will render most tests correctly.
* | | am 3f6ee1a1: am 1565d2ef: Merge change I4ad9ec48 into eclair-mr2Eric Laurent2009-11-251-1/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '3f6ee1a180268ca2e30723ce2c45b81c2e671abb' * commit '3f6ee1a180268ca2e30723ce2c45b81c2e671abb': Fix A2dpAudioInterface getParameters.
| * | Fix A2dpAudioInterface getParameters.Eric Laurent2009-11-251-1/+3
| |/ | | | | | | A2dpAudioInterface::getParameters() was prepending a ';' to the key value pair returned from underlying AudioHardwareInterface.
* | am 40f92fe9: am 1e22cffa: am 63851404: Merge change Ibf0c320a into eclairMathias Agopian2009-11-241-0/+3
|\ \ | |/ | | | | | | | | | | Merge commit '40f92fe967f36d524d173b7819dc875af2cd9971' * commit '40f92fe967f36d524d173b7819dc875af2cd9971': When using MDP, we needed to use a texture for diming.
| * Merge change Ibf0c320a into eclairAndroid (Google) Code Review2009-11-241-0/+3
| |\ | | | | | | | | | | | | * changes: When using MDP, we needed to use a texture for diming.
| | * When using MDP, we needed to use a texture for diming.Mathias Agopian2009-11-231-0/+3
| | |
* | | am e4df64bd: am 66358e24: am 9dab667e: Force a crash under conditions where ↵Jason Sams2009-11-244-3/+32
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | white square bug in all apps is likely to occur. Merge commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2' * commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2': Force a crash under conditions where white square bug in all apps is likely to occur.
| * | Force a crash under conditions where white square bug in all apps is likely ↵Jason Sams2009-11-244-3/+32
| |/ | | | | | | to occur.
* | am 9f96a37a: am 6a2500a3: am 39dbb099: Merge change I36176536 into eclairJason Sams2009-11-231-2/+1
|\ \ | |/ | | | | | | | | | | Merge commit '9f96a37aabbffffe719c1dfb73b5c437f190bcf0' * commit '9f96a37aabbffffe719c1dfb73b5c437f190bcf0': Fix ref counting bug that could cause memory leak in allApps.
| * Fix ref counting bug that could cause memory leak in allApps.Jason Sams2009-11-231-2/+1
| |
* | am 86526461: am 949c572a: am e7800946: Merge change I49f02be9 into eclairEric Laurent2009-11-212-97/+162
|\ \ | |/ | | | | | | | | | | Merge commit '8652646105a6ace559280b579ee8935541ada6c1' * commit '8652646105a6ace559280b579ee8935541ada6c1': Issue 2265163: Audio still reported routed through earpiece on sholes
| * Merge change I49f02be9 into eclairAndroid (Google) Code Review2009-11-212-97/+162
| |\ | | | | | | | | | | | | * changes: Issue 2265163: Audio still reported routed through earpiece on sholes
| | * Issue 2265163: Audio still reported routed through earpiece on sholesEric Laurent2009-11-192-97/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a second attempt to fix the audio routed to earpiece syndrom. The root cause identified this time is the crash of an application having an active AudioTrack playing on the VOICE_CALL stream type. When this happens, the AudioTrack destructor is not called and the audio policy manager is not notified of the track stop. Results a situation where the VOICE_CALL stream is considered as always in use by audio policy manager which makes that audio is routed to earpiece. The fix consists in moving the track start/stop/close notification to audio policiy manager from AudioTrack to AudioFlinger Track objet. The net result is that in the case of a client application crash, the AudioFlinger TrackHandle object (which implements the remote side of the IAudioTrack binder interface) destructor is called which in turn destroys the Track object and we can notify the audio policy manager of the track stop and removal. The same modification is made for AudioRecord although no bug related to record has been reported yet. Also fixed a potential problem if record stop is called while the record thread is exiting.
* | | am e71db657: am f2900600: am 1824ec8c: Merge change If2b0bbed into eclairDianne Hackborn2009-11-201-6/+14
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'e71db6579c2afe06fe95dd88217a667d18fe4e20' * commit 'e71db6579c2afe06fe95dd88217a667d18fe4e20': Debugging for issue #2228381 android.view.InflateException
| * | Debugging for issue #2228381 android.view.InflateExceptionDianne Hackborn2009-11-201-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Binary XML file line #37: Error inflating class <unknown> after adding a secondary account Now that I have these debug logs, I want to keep them since they will make debugging these kinds of issues a lot easier in the future. (Note in this case there was no problem in the framework.) Change-Id: If2b0bbeda4706b7c5dc1ba4a5db04b74f40e1543