summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* am eb5ffc23: Merge change Id8e98194 into eclairEric Laurent2009-12-221-1/+2
|\ | | | | | | | | | | | | Merge commit 'eb5ffc239b6482b9c1e046f6f5872187043d852c' into eclair-plus-aosp * commit 'eb5ffc239b6482b9c1e046f6f5872187043d852c': Fix issues 2333450 and 2333559:
| * Fix issues 2333450 and 2333559:Eric Laurent2009-12-221-1/+2
| | | | | | | | | | | | Add new config values to AudioSystem::FOR_DOCK force usage to differenciate car and desk docks. Use a receiver for the sticky Intent.ACTION_DOCK_EVENT in AudioService to detect the type of dock and select force usage accordingly.
* | am 86ed86d2: Merge change I0f73439a into eclairJean-Michel Trivi2009-12-091-0/+2
|\ \ | |/ | | | | | | | | | | Merge commit '86ed86d2260932bdf2217b1d8431ac9e04d47534' into eclair-plus-aosp * commit '86ed86d2260932bdf2217b1d8431ac9e04d47534': Partially fix bug 2111240 Detect docking / undocking event by reporting
| * Partially fix bug 2111240 Detect docking / undocking event by reportingJean-Michel Trivi2009-12-071-0/+2
| | | | | | | | | | | | | | to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY values. This CL is complemented by an update of the APM to take into account the FOR_DOCK usage.
* | am e7800946: Merge change I49f02be9 into eclairEric Laurent2009-11-211-3/+4
|\ \ | |/ | | | | | | | | | | Merge commit 'e7800946a42c0ebe8e0b3f6eba04a96a9641aaff' into eclair-plus-aosp * commit 'e7800946a42c0ebe8e0b3f6eba04a96a9641aaff': Issue 2265163: Audio still reported routed through earpiece on sholes
| * Merge change I49f02be9 into eclairAndroid (Google) Code Review2009-11-211-3/+4
| |\ | | | | | | | | | | | | * changes: Issue 2265163: Audio still reported routed through earpiece on sholes
| | * Issue 2265163: Audio still reported routed through earpiece on sholesEric Laurent2009-11-191-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 f854e077: Merge change I8134d6ed into eclairAndreas Huber2009-11-191-1/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'f854e0770207e93ef9d1bf6d50ed18537a107ca4' into eclair-plus-aosp * commit 'f854e0770207e93ef9d1bf6d50ed18537a107ca4': DO NOT MERGE: Instead of inserting semi-random delays after submission to surface flinger, delay releasing buffers to the next display time to avoid flickering.
| * | DO NOT MERGE: Instead of inserting semi-random delays after submission to ↵Andreas Huber2009-11-191-1/+3
| |/ | | | | | | surface flinger, delay releasing buffers to the next display time to avoid flickering.
* | am 91e40e78: Merge change I18e02606 into eclairMathias Agopian2009-11-131-2/+2
|\ \ | |/ | | | | | | | | | | Merge commit '91e40e7838d183cb2a9e750edf0a6572f21da21d' into eclair-plus-aosp * commit '91e40e7838d183cb2a9e750edf0a6572f21da21d': fix some aspects of [2258746] native crash in launcher2
| * fix some aspects of [2258746] native crash in launcher2Mathias Agopian2009-11-131-2/+2
| | | | | | | | | | | | Surface::validate() could sometimes dereference a null pointer before checking it wasn't null. This will prevent the application to crash when given bad parameters or used incorrectly. However, the bug above probably has another cause.
* | am 1aa9f3ca: Merge change I923d7d72 into eclairEric Laurent2009-11-121-5/+1
|\ \ | |/ | | | | | | | | | | Merge commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54' into eclair-plus-aosp * commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54': Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
| * Merge change I923d7d72 into eclairAndroid (Google) Code Review2009-11-121-5/+1
| |\ | | | | | | | | | | | | * changes: Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
| | * Fix issue 2242614: Wired headset not recognized: bogus "state" in ↵Eric Laurent2009-11-121-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ACTION_HEADSET_PLUG broadcast. The headset state indicated by HeadsetObserver in the broadcast intent ACTION_HEADSET_PLUG was not 0 or 1 as specified in the java doc but contained a bit field indicating the type of headset connected. Modified HeadsetObserver to broacast a state conforming to java doc. Added an extra to intent ACTION_HEADSET_PLUG to indicate if headset has a microphone or not. Removed handling of non standard headset indications from HeadsetObserver. Removed platform specific devices from output devices defined in AudioSystem. Modified AudioService to use new ACTION_HEADSET_PLUG intent extra instead of bitfield in state.
* | | am c66d53f9: Merge change I880541a8 into eclairAndreas Huber2009-11-123-116/+35
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'c66d53f97b1fe635f576642d5720dcd441e34cce' into eclair-plus-aosp * commit 'c66d53f97b1fe635f576642d5720dcd441e34cce': Delegate the platform dependent hardware renderer implementation to a shared library provided by the vendor.
| * | Delegate the platform dependent hardware renderer implementation to a shared ↵Andreas Huber2009-11-123-116/+35
| |/ | | | | | | library provided by the vendor.
* | am 05eca1d4: Merge change Ie80e2381 into eclairAndreas Huber2009-11-054-24/+24
|\ \ | |/ | | | | | | | | | | Merge commit '05eca1d46a45723a57899dabad698537b7faef82' into eclair-plus-aosp * commit '05eca1d46a45723a57899dabad698537b7faef82': DO NOT MERGE: Squashed commit of the following:
| * DO NOT MERGE: Squashed commit of the following:Andreas Huber2009-11-054-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 08259dd3dc9026887f9bbfedaf45866eb56ea9bc Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 12:02:31 2009 -0800 DO NOT MERGE: Use PV for metadata extraction even if stagefright is used for playback. commit 991832fe4dc012e51d3d9ed8d647c7f09991858f Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:24:11 2009 -0800 DO NOT MERGE: Do not assert if we encounter OMX_StateInvalid. All bets are off though. commit cec45cf302d9218fe79956cbe8a462d7ca3a10bb Author: Andreas Huber <andih@google.com> Date: Mon Oct 26 16:11:54 2009 -0700 DO NOT MERGE: When freeing an OMX node, attempt to transition it from its current state all the way to "Loaded" in order to properly free any allocated buffers. commit 34a1e885ef9113d68acbc26d36fcc47fdebbed84 Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:10:49 2009 -0800 DO NOT MERGE: Fix heap corruptin in OMXNodeInstance. commit 5a47f7439a1298b330541a7e4e647a8b44487388 Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:08:19 2009 -0800 DO NOT MERGE: Fix seek-on-initial-read behaviour of OMXCodec. commit 45bed64722501b9f411a2940aff5aff4cc4d2e98 Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:02:23 2009 -0800 DO NOT MERGE: Renaming string.h to stagefright_string.h to avoid conflicts. commit 6738e306a50196f31a73d4fc7b7c45faff639903 Author: Andreas Huber <andih@google.com> Date: Thu Oct 15 13:46:54 2009 -0700 DO NOT MERGE: Reimplement the OMX backend for stagefright. Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup. Changed APIs to conform to the rest of the system.
* | am 67b69292: Merge change I93f500a5 into eclairEric Laurent2009-11-053-1/+16
|\ \ | |/ | | | | | | | | | | Merge commit '67b692920c18f99b096dce285adc6f7439fa866c' into eclair-plus-aosp * commit '67b692920c18f99b096dce285adc6f7439fa866c': Fix issue 2203561: Sholes: audio playing out of earpiece.
| * Merge change I93f500a5 into eclairAndroid (Google) Code Review2009-11-053-1/+16
| |\ | | | | | | | | | | | | * changes: Fix issue 2203561: Sholes: audio playing out of earpiece.
| | * Fix issue 2203561: Sholes: audio playing out of earpiece.Eric Laurent2009-11-043-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new IAudioTrack interface to AudioFlinger when start() fails due to a broken pipe error. Do the same if start fails due to the same error after time out in obtainBuffer(). Do not indicate that the AudioTrack is started to AudioPolicyManager if IAudioTrack start fails. This avoids that an AudioTrack keeps a dead IAudioTrack after a media server crash. Same modifications for AudioRecord. Add a flag to ToneGenerator indicating that the callback thread can call Java. Without it, when the media server crashes and restarts, the AudioSystem error callback will crash in JNI if the IAudiotrack is created from AudioTrack callback thread.
* | | am 7ed0ceeb: Merge change I6869df3a into eclairJean-Michel Trivi2009-11-041-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '7ed0ceeba54712f76e9a4f2dd4c9197d76813488' into eclair-plus-aosp * commit '7ed0ceeba54712f76e9a4f2dd4c9197d76813488': Add new audio sources to support the A1026 recording configurations.
| * | Add new audio sources to support the A1026 recording configurations.Jean-Michel Trivi2009-11-031-1/+2
| |/
* | am 8637759a: Merge change I36d0184e into eclairMathias Agopian2009-11-032-1/+5
|\ \ | |/ | | | | | | | | | | Merge commit '8637759a1d34a4adda292579d5f8790587659235' into eclair-plus-aosp * commit '8637759a1d34a4adda292579d5f8790587659235': fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
| * Merge change I36d0184e into eclairAndroid (Google) Code Review2009-11-022-1/+5
| |\ | | | | | | | | | | | | * changes: fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
| | * fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts ↵Mathias Agopian2009-11-022-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | when playing back video we lost the concept of vertical stride when moving video playback to EGLImage. Here we bring it back in a somewhat hacky-way that will work only for the softgl/mdp backend.
* | | am d4649b2f: Merge change Ibaef6141 into eclairIliyan Malchev2009-11-021-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'd4649b2f8ea8285a4eb3c47e87520c7835e6c672' into eclair-plus-aosp * commit 'd4649b2f8ea8285a4eb3c47e87520c7835e6c672': libbinder: add a NO_CACHING flag to MemoryHeapBase
| * | Merge change Ibaef6141 into eclairAndroid (Google) Code Review2009-11-021-1/+2
| |\ \ | | | | | | | | | | | | | | | | * changes: libbinder: add a NO_CACHING flag to MemoryHeapBase
| | * | libbinder: add a NO_CACHING flag to MemoryHeapBaseIliyan Malchev2009-10-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The NO_CACHING flag translates to opening a memory region with O_SYNC. Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | am ee98c240: Merge change I73680cd9 into eclairEric Laurent2009-11-022-2/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'ee98c24020c1634b02cde6d333968f04a0de941f' into eclair-plus-aosp * commit 'ee98c24020c1634b02cde6d333968f04a0de941f': Fix 2194140: [Passion] Support Audience chip.
| * | | Merge change I73680cd9 into eclairAndroid (Google) Code Review2009-11-022-2/+4
| |\ \ \ | | |_|/ | |/| | | | | | | | | | * changes: Fix 2194140: [Passion] Support Audience chip.
| | * | Fix 2194140: [Passion] Support Audience chip.Eric Laurent2009-11-022-2/+4
| | |/ | | | | | | | | | | | | Added new input device DEVICE_IN_BACK_MIC. Added new audio source AUDIO_SOURCE_CAMCORDER.
* | | am b6a6791f: Merge change I60413727 into eclairDianne Hackborn2009-11-021-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'b6a6791f381691d4a58fe6972eb9f0b65308ac1f' into eclair-plus-aosp * commit 'b6a6791f381691d4a58fe6972eb9f0b65308ac1f': Fix issue #2226370: Resource versions match with equality
| * | Fix issue #2226370: Resource versions match with equalityDianne Hackborn2009-11-011-2/+2
| |/ | | | | | | | | | | Also fixed turned-around increment of version number for resources. :( Change-Id: I604137272da984bcd69cee4f174e6b7f2c786e46
* | am 4cb04c46: Use image rect information to display zoomed picture.Wu-cheng Li2009-10-281-0/+9
|\ \ | |/ | | | | | | | | | | Merge commit '4cb04c4654e9718a73b378e7b9962dee454efa8d' into eclair-plus-aosp * commit '4cb04c4654e9718a73b378e7b9962dee454efa8d': Use image rect information to display zoomed picture.
| * Use image rect information to display zoomed picture.Wu-cheng Li2009-10-291-0/+9
| |
* | am 73e17015: Merge change I8d2de438 into eclairMathias Agopian2009-10-271-2/+12
|\ \ | |/ | | | | | | | | | | Merge commit '73e17015d3cd67c93ccad5d63d31c439ff6fa694' into eclair-plus-aosp * commit '73e17015d3cd67c93ccad5d63d31c439ff6fa694': fix [2143798] Need to figure out how to do video
| * fix [2143798] Need to figure out how to do videoMathias Agopian2009-10-271-2/+12
| | | | | | | | | | | | | | | | | | Use EGLImageKHR instead of copybit directly. We now have the basis to use streaming YUV textures (well, in fact we already are). When/if we use the GPU instead of the MDP we'll need to make sure it supports the appropriate YUV format. Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
* | am bf96aaad: Merge change Icf10db28 into eclairEric Laurent2009-10-242-2/+5
|\ \ | |/ | | | | | | | | | | Merge commit 'bf96aaadd46fb5b0884070177faa16ec4f22e2ba' into eclair-plus-aosp * commit 'bf96aaadd46fb5b0884070177faa16ec4f22e2ba': Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
| * Fix issue 2192181: AudioFlinger must provide separated methods to set ↵Eric Laurent2009-10-212-2/+5
| | | | | | | | | | | | | | VOICE_CALL stream volume and down link audio volume. Added setVoiceVolume() method to AudioSystem, AudioFlinger, IAudioFlinger, AudioPolicyService. Removed call to AudioHardwareInterface::setVoiceVolume() from AudioFlinger::setStreamVolume().
* | am ca404dfb: Merge change Ie3ffb526 into eclairAndreas Huber2009-10-201-0/+1
|\ \ | |/ | | | | | | | | | | Merge commit 'ca404dfb920ab009cef4db5e74715b796f79b3f9' into eclair-plus-aosp * commit 'ca404dfb920ab009cef4db5e74715b796f79b3f9': do not merge: The qcom video decoders always output yuv data after adjusting dimensions to be a multiple of 16.
| * do not merge: The qcom video decoders always output yuv data after adjusting ↵Andreas Huber2009-10-201-0/+1
| | | | | | | | | | | | dimensions to be a multiple of 16. Add a quirk mode to OMXCodec that makes it aware of this fact for proper display. Also integrate back a change from eclair-mr2 that delays releasing an output buffer briefly after posting it to surface flinger, as we don't know how long it'll take it to actually display the buffer's content.
* | am 7bb7e992: Merge change Ia8ac904d into eclairMathias Agopian2009-10-161-6/+9
|\ \ | |/ | | | | | | | | | | Merge commit '7bb7e99216956d917af1786a3e02a92cac46fc84' into eclair-plus-aosp * commit '7bb7e99216956d917af1786a3e02a92cac46fc84': fix [2182249] [MR1] valgrind error in surface flinger
| * fix [2182249] [MR1] valgrind error in surface flingerMathias Agopian2009-10-151-6/+9
| |
* | am a2de8e31: Merge change Ie05f07df into eclairMathias Agopian2009-10-073-49/+2
|\ \ | |/ | | | | | | | | | | Merge commit 'a2de8e31c2693d009db1f9386406758874dd1d40' into eclair-plus-aosp * commit 'a2de8e31c2693d009db1f9386406758874dd1d40': fix [2170319] gmail bulk operation checkbox latency on passion
| * fix [2170319] gmail bulk operation checkbox latency on passionMathias Agopian2009-10-073-49/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes [2152536] ANR in browser When SF is enqueuing buffers faster than SF dequeues them. The update flag in SF is not counted and under some situations SF will only dequeue the first buffer. The state at this point is not technically corrupted, it's valid, but just delayed by one buffer. In the case of the Browser ANR, because the last enqueued buffer was delayed the resizing of the current buffer couldn't happen. The system would always fall back onto its feet if anything -else- in tried to draw, because the "late" buffer would be picked up then.
* | am 26fe45dc: Merge change I4961c959 into eclairMathias Agopian2009-10-071-7/+13
|\ \ | |/ | | | | | | | | | | Merge commit '26fe45dcb3df12eda94d93f1473cd6a2f5f345c7' into eclair-plus-aosp * commit '26fe45dcb3df12eda94d93f1473cd6a2f5f345c7': fix [2152536] ANR in browser
| * Merge change I4961c959 into eclairAndroid (Google) Code Review2009-10-061-7/+13
| |\ | | | | | | | | | | | | * changes: fix [2152536] ANR in browser
| | * fix [2152536] ANR in browserMathias Agopian2009-10-061-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A window is created and the browser is about to render into it the very first time, at that point it does an IPC to SF to request a new buffer. Meanwhile, the window manager removes that window from the list and the shared memory block it uses is marked as invalid. However, at that point, another window is created and is given the same index (that just go freed), but a different identity and resets the "invalid" bit in the shared block. When we go back to the buffer allocation code, we're stuck because the surface we're allocating for is gone and we don't detect it's invalid because the invalid bit has been reset. It is not sufficient to check for the invalid bit, I should also check that identities match.
* | | am 62443f5f: Fix issue 2139634: DTMF tones on Sholes popping, hissing (audio ↵Eric Laurent2009-10-071-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | latency too high). Merge commit '62443f5f4517ba17d911975e695f1ab75bfdbf77' into eclair-plus-aosp * commit '62443f5f4517ba17d911975e695f1ab75bfdbf77': Fix issue 2139634: DTMF tones on Sholes popping, hissing (audio latency too high).