summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | am 76169da0: fix [2315900] Monochrome camera preview screen after launching ↵Mathias Agopian2009-12-102-50/+69
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | camera Merge commit '76169da0e84b0fcf621aeac6141af3ee85bc7c1e' into eclair-mr2 * commit '76169da0e84b0fcf621aeac6141af3ee85bc7c1e': fix [2315900] Monochrome camera preview screen after launching camera
| | * | fix [2315900] Monochrome camera preview screen after launching cameraMathias Agopian2009-12-092-50/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this was introduced by a recent change. when we try to figure out the size of the yuv->rgb temporary buffer, the output resolution has not been computed yet and an invalid buffer size is used. most of the time the allocation fails and the system reverts to "standard" GL will uses onle the Y plane. the allocation of the temporary buffer is moved to onDraw(), the first time it is called, by that time, the window is positioned properly.
* | | | am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclairJason Sams2009-12-105-33/+45
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7' * commit 'b62954b66542e3e2654d97a81123c51805bceca7': Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
| * | | am 57ce0888: Merge change Id22c0137 into eclairJason Sams2009-12-105-33/+45
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '57ce0888fcb1376b385c3dab5e4262793acaaf16' into eclair-mr2 * commit '57ce0888fcb1376b385c3dab5e4262793acaaf16': Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
| | * | Merge change Id22c0137 into eclairAndroid (Google) Code Review2009-12-095-33/+45
| | |\ \ | | | | | | | | | | | | | | | | | | | | * changes: Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
| | | * | Throttle low priority RS threads by sleeping once per frame to avoid ↵Jason Sams2009-12-095-33/+45
| | | | | | | | | | | | | | | | | | | | starving other apps.
* | | | | am d1b8019a: am ae5bd2b9: am d8c752ef: Merge change Ib548dbb2 into eclairMathias Agopian2009-12-101-9/+15
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'd1b8019a69d186df74f072cc51b413e34c3016f4' * commit 'd1b8019a69d186df74f072cc51b413e34c3016f4': improve video performance to minimize the tearing effect seen in 720p movies
| * | | | am d8c752ef: Merge change Ib548dbb2 into eclairMathias Agopian2009-12-101-9/+15
| |\ \ \ \ | | |/ / / | | | | / | | |_|/ | |/| | | | | | | | | | Merge commit 'd8c752ef74bc6d8b412defe35caf1a19be15eb8b' into eclair-mr2 * commit 'd8c752ef74bc6d8b412defe35caf1a19be15eb8b': improve video performance to minimize the tearing effect seen in 720p movies
| | * | improve video performance to minimize the tearing effect seen in 720p moviesMathias Agopian2009-12-081-9/+15
| | |/ | | | | | | | | | | | | | | | | | | | | | always rescale videos to their target size using copybit during yuv->rgb conversion. this improves performance of the GPU pass and doesn't require linear filtering to be enabled. Also always use 16-bits buffers. the average processing time for 720p dropped from ~50ms to ~30ms
* | | am ea483723: am 9fbb534e: Merge change Iafbeb31b into eclair-mr2Dianne Hackborn2009-12-101-1/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'ea483723b3cc630cf5b5b6fda7b08d9592bdbbde' * commit 'ea483723b3cc630cf5b5b6fda7b08d9592bdbbde': Maybe really fix windows build.
| * | Maybe really fix windows build.Dianne Hackborn2009-12-081-1/+4
| | |
* | | am b901f0c6: am 484fe4d6: Merge change I06fb2c1c into eclair-mr2Dianne Hackborn2009-12-101-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'b901f0c6dd4c833e4d5a0aa409066d25762abbbb' * commit 'b901f0c6dd4c833e4d5a0aa409066d25762abbbb': Hopefully fix Windows build
| * | Hopefully fix Windows buildDianne Hackborn2009-12-081-0/+2
| | |
* | | 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.