summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* am a789e519: am 0c4e56d0: Camera: make sure jpeg buffer size isn\'t too smallYin-Chia Yeh2015-01-201-4/+3
|\ | | | | | | | | * commit 'a789e51942c7572e0c9f54326d6d9d0ff65d6941': Camera: make sure jpeg buffer size isn't too small
| * Camera: make sure jpeg buffer size isn't too smallYin-Chia Yeh2015-01-201-4/+3
| | | | | | | | | | | | | | | | Assuming the jpeg header can take up to 256KB, make sure we always allocate enough size for the image data. Bug: 18962703 Change-Id: I08eb3d198d12f71f3ab7266324e80fe7410bdc89
* | am bf2751a5: am 7ccc6b9b: Merge "fix audio patch leak." into lmp-mr1-devEric Laurent2015-01-201-2/+4
|\ \ | |/ | | | | | | * commit 'bf2751a5ea6a306c2ba51a0658ec10aa889a81fa': fix audio patch leak.
| * Merge "fix audio patch leak." into lmp-mr1-devEric Laurent2015-01-201-2/+4
| |\
| | * fix audio patch leak.Eric Laurent2015-01-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always wait for status when executing a create audio patch command in audio policy service command thread. The returned patch handle must be passed back to audio policy manager so that the patch can be modified later. Failing to do so causes a leak of patch descriptors in audio flinger. Bug: 19032387. Change-Id: I5462d1437fac244d9c5e38f2c7b8e1a4c01d2b75
* | | am 65cb339d: am 21291a42: Merge "fix leak in audio policy effect config ↵Eric Laurent2015-01-151-0/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | parser" into lmp-mr1-dev * commit '65cb339de0f628c82bdd5c68d868b6f3dc83cf04': fix leak in audio policy effect config parser
| * | Merge "fix leak in audio policy effect config parser" into lmp-mr1-devEric Laurent2015-01-151-0/+4
| |\ \
| | * | fix leak in audio policy effect config parserEric Laurent2015-01-151-0/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Free temporary effect descriptors created in loadAudioEffectConfig(). Bug 19021726. Change-Id: Icd44216e25df3fe683a01763d7e8a7b84f367a1a
* | | am eed5e4bd: am 5b578bec: Merge " [FM]There is no sound output from BT ↵Leo Wang2015-01-151-4/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | earphone while BT earphone is connected" into lmp-mr1-dev * commit 'eed5e4bd2b25da3e1965f4ab360f3cea1ccbcc2c': [FM]There is no sound output from BT earphone while BT earphone is connected
| * | [FM]There is no sound output from BT earphone while BT earphone is connectedHochi Huang2015-01-131-4/+4
| |/ | | | | | | | | | | | | | | | | | | Bug: 18847131 Review: https://partner-android-review.git.corp.google.com/#/c/193318 Signed-off-by: Hochi Huang <hochi.huang@mediatek.com> Change-Id: I79703ba4ceb67ca3b95fbc71444dd3b116ba4131
* | am 78c02ddb: am cfa5bf04: Merge "make libserviceutility a shared lib" into ↵Chong Zhang2015-01-073-10/+14
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit '78c02ddb6bf0d676160244a62c11dceb68301b73': make libserviceutility a shared lib audio policy: fix remote mic capture audio policy: suppport for dynamic source Fix overload of SoftVideoDecoderOMXComponent::updatePortDefinitions Fix race condition in signaling completion for decode. AnotherPacketSource: need reset some members before returning from queueDiscontinuity(). Fix looping sound playback AnotherPacketSource.cpp: Do not queue discontinity signal buffer resulted from seek.
| * Merge "make libserviceutility a shared lib" into lmp-mr1-devChong Zhang2015-01-073-10/+14
| |\
| | * make libserviceutility a shared libChong Zhang2015-01-073-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | so that we have only one getpid_cached in mediaserver process bug: 18919657 Change-Id: Iff3cd932c9110e874b3885f79705f49bf3e3f1fc
* | | am 6ab33981: am 610255e8: Merge "audioflinger: pause HW A/V sync output when ↵Eric Laurent2015-01-072-5/+13
|\ \ \ | |/ / | | | | | | | | | | | | | | | AudioTrack underruns" into lmp-mr1-dev * commit '6ab33981d45cd69e683a143fec6530e66bd3e371': audioflinger: pause HW A/V sync output when AudioTrack underruns
| * | Merge "audioflinger: pause HW A/V sync output when AudioTrack underruns" ↵Eric Laurent2015-01-072-5/+13
| |\ \ | | | | | | | | | | | | into lmp-mr1-dev
| | * | audioflinger: pause HW A/V sync output when AudioTrack underrunsEric Laurent2014-12-192-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not standby, starve or feed 0s to the audio HAL on direct output using HW A/V sync mode. Bug: 17883772. Change-Id: I11e6c97ec24360d75f9b602814d40a54b60cb7a7
* | | | am fb5d35c0: am 7ae3dfab: Merge "fix record from default input source" into ↵Eric Laurent2015-01-072-13/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit 'fb5d35c00d1c4d672d245b6820551808617eba46': fix record from default input source
| * | | Merge "fix record from default input source" into lmp-mr1-devEric Laurent2015-01-072-13/+26
| |\ \ \
| | * | | fix record from default input sourceEric Laurent2015-01-062-13/+26
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit caf7f48a0e broke capture from default input source on some devices: the input source is now specified as part of the audio attributes and the default source was not remapped to mic source. Bug: 18736417. Change-Id: I3f5da33cdb56f959aaef68ed1952342babc63aa0
| * | | Merge "DO NOT MERGE - fix memory leak in PatchPanel" into lmp-mr1-devEric Laurent2015-01-061-0/+2
| |\ \ \ | | |/ / | |/| |
| | * | DO NOT MERGE - fix memory leak in PatchPanelsoon1.choi2015-01-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the audio patch is created, audio patch with same handle is removed from vector for patches. At this time, Patch allocated in the heap is not freed. This causes memory leaks in the mediaserver. Bug: 18904322. Change-Id: Id0d28c36a7e7fbf473753bf4ead7518f28c1b998
* | | | am 01310cd7: am 3190e67d: close remote submix\'s output when device is not ↵keunyoung2015-01-052-23/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | available. * commit '01310cd7adad778f8a6d0e4bc73dae068638abf2': close remote submix's output when device is not available.
| * | | close remote submix's output when device is not available.keunyoung2015-01-052-23/+10
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - change output close logic to find the device from IOProfile rather than AudioPatch as AudioPatch handle can be cleared before disconnect. - Otherwise, remote submix can be stuck as output is never closed and does not work any more as subsequent open fails as output is already taken. bug: 18733215 Change-Id: Iddb481c91e81070e6be18996a4c8837dabd7ebdb
* | | am 76758100: am 43637c2e: Merge "fix memory leak in PatchPanel"Eric Laurent2015-01-051-0/+2
|\ \ \ | | | | | | | | | | | | | | | | * commit '76758100c85622c178355959e454651310ea0011': fix memory leak in PatchPanel
| * \ \ am 43637c2e: Merge "fix memory leak in PatchPanel"Eric Laurent2015-01-051-0/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '43637c2e0313ed9fea4e4aceb14c166349327aea': fix memory leak in PatchPanel
| | * | | fix memory leak in PatchPanelsoon1.choi2015-01-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the audio patch is created, audio patch with same handle is removed from vector for patches. At this time, Patch allocated in the heap is not freed. This causes memory leaks in the mediaserver. Change-Id: Id0d28c36a7e7fbf473753bf4ead7518f28c1b998
| | * | | DO NOT MERGE - audio policy: fix inifinite loop in clearAudioPatches()Eric Laurent2014-12-161-5/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | releaseAudioPatch() does not necessarily remove the audio patch from the list. Scan the list from the top down to avoid adjusting the index. Bug: 18621514. Change-Id: I58787154680f7cb1818509017835b1693d62190f
* | | | am 57221635: am 5886252a: Merge "audio policy: fix isSourceActive() for ↵Eric Laurent2014-12-241-5/+16
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | hotword" into lmp-mr1-dev * commit '572216352498c702651567b3b299a1f7ed725429': audio policy: fix isSourceActive() for hotword
| * | | audio policy: fix isSourceActive() for hotwordEric Laurent2014-12-191-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only condider AUDIO_SOURCE_HOTWORD equivalent to AUDIO_SOURCE_VOICE_RECOGNITION if the active capture was triggered by a hardware hotword recognition. Also fix activeInputsCount(). Bug: 18802896. Change-Id: I471aafcae29a76e9c323c6c0c314ef083991476b
* | | | am caf17e31: am 0a0662ea: Merge "audio policy: improve accessibility ↵Eric Laurent2014-12-201-0/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | routing" into lmp-mr1-dev * commit 'caf17e316c7b7c22e877397f6bb3f882e4f68279': audio policy: improve accessibility routing
| * | | audio policy: improve accessibility routingEric Laurent2014-12-191-0/+8
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Force re-evaluating accessibility use case routing when a condition affecting it (ringtone, alarm, call state) is changing. Bug: 18761698. Change-Id: I42ac3a9fdc80bce11cf0a7fc76f680af4271abc9
* | | am d33712d7: am 145cf5d8: Merge "audioflinger: implement pause/resume for ↵Eric Laurent2014-12-173-30/+115
|\ \ \ | |/ / | | | | | | | | | | | | | | | direct outputs" into lmp-mr1-dev * commit 'd33712d7ec5dcf427cc0be9b7d2ca1c99823c8e6': audioflinger: implement pause/resume for direct outputs
| * | Merge "audioflinger: implement pause/resume for direct outputs" into lmp-mr1-devEric Laurent2014-12-173-30/+115
| |\ \
| | * | audioflinger: implement pause/resume for direct outputsEric Laurent2014-12-163-30/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend pause/resume support to direct output threads (was only for offload threads). If the HAL implements pause/resume, track pause/resume is forwarded to the HAL. Pause, flush, resume sequence is respected by executing the HAL calls in the playback thread (same as offload). Make sure the track flags on client side are consistent with the flags on server side. Bug: 17883772. Change-Id: I89b360d69818f7a9204bd36e3ec63a79e106ecf1
* | | | am 8aadc515: am 71b52b5b: Merge "Fix routing not happening after change in ↵Jean-Michel Trivi2014-12-171-0/+18
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | output device list" into lmp-mr1-dev * commit '8aadc515b57c78cbb07ae7d0cb2553148ef05947': Fix routing not happening after change in output device list
| * | | Merge "Fix routing not happening after change in output device list" into ↵Jean-Michel Trivi2014-12-171-0/+18
| |\ \ \ | | | | | | | | | | | | | | | lmp-mr1-dev
| | * | | Fix routing not happening after change in output device listJean-Michel Trivi2014-12-161-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an output stream is active while rerouting rules are installed and recording starts, the list of outputs is not updated and therefore the stream is not rerouted to the new virtual device. The fix consists in also taking into account all the policy-related outputs when evaluating the before and after list of outputs following a connection state event. Bug 18736417 Change-Id: I6697976b3f89e2c0995e888e9046a2273361bb97
* | | | | am 99429b40: am 277c7b8c: Merge "Fix permission check for audio recording" ↵Jean-Michel Trivi2014-12-176-14/+74
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit '99429b40411790b85e19c57392bbd292a237c470': Fix permission check for audio recording
| * | | | Merge "Fix permission check for audio recording" into lmp-mr1-devJean-Michel Trivi2014-12-176-14/+74
| |\ \ \ \ | | |/ / /
| | * | | Fix permission check for audio recordingJean-Michel Trivi2014-12-156-14/+74
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define input types covering the different usecases for audio recording, and check the corresponding permissions when starting to record. Move the permission check from audio flinger to audio policy, as only the policy has the information to determine which permission to enforce. Fix missing permission when an application records audio and the audio is injected by an external policy. Bug 18736417 Change-Id: If7ec040502242c990ac8ea464db484339bdce573
* | | | am 7ca332ab: am 045e710f: [FM] Fix notification routing when FM enableHochi Huang2014-12-171-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '7ca332ab8d7329598386acc1f50c43fc59952210': [FM] Fix notification routing when FM enable
| * | | [FM] Fix notification routing when FM enableHochi Huang2014-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://partner-android-review.git.corp.google.com/#/c/188454/ Bug: 18727227 Change-Id: I74856ede5999cfc8a6932a99855d468cccd6f51c Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>
* | | | am 679a1439: am be845fce: Merge "audiopolicy : Fix for incorrect input ↵Eric Laurent2014-12-161-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | device selection" into lmp-mr1-dev * commit '679a14393639c70a653fe2a07f8de582d3a5de14': audiopolicy : Fix for incorrect input device selection
| * | | Merge "audiopolicy : Fix for incorrect input device selection" into lmp-mr1-devEric Laurent2014-12-161-0/+3
| |\ \ \
| | * | | audiopolicy : Fix for incorrect input device selectionEric Laurent2014-12-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some VoIP applications do not use source as VOICE_COMM but MIC and policy manager ignores the force usage in that case and selects handset-mic as input device even when BT-SCO headset is connected. Check the force usage for the AUDIO_SOURCE_MIC as well. Bug: 18606571 Change-Id: I5d5010ab396f85bf58573943c91fd815f39f57c1
* | | | | am 9632d33e: am cd71a69d: audio: Force audio to Speaker if requested during ↵Eric Laurent2014-12-161-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | VOIP call * commit '9632d33e21ec2631c75cc949e0c92c351fd6a447': audio: Force audio to Speaker if requested during VOIP call
| * | | | audio: Force audio to Speaker if requested during VOIP callEric Laurent2014-12-161-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getDeviceForStrategy is returning AUDIO_DEVICE_OUT_USB even when setForceUse is called with Speaker during VOIP call. Actual Intention is to route audio for phone strategy to USB device even after setForceUse is called with Speaker when not in voice call. It is supposed to exclude VOIP call too Added additional check for MODE_IN_COMMUNICATION so that it returns SPEAKER when setForceUse is called with speaker Bug: 18758599 Change-Id: I1c51128cc1c7bfce1cf6f1fde60b428d3a9379fc
* | | | am 0fd52ac2: am 6eac9e2f: Merge "Camera2Client: flush requests in ↵Chien-Yu Chen2014-12-161-0/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | stopPreviewL" into lmp-mr1-dev * commit '0fd52ac2929f6ded984cc3a063645d65b5e2006f': Camera2Client: flush requests in stopPreviewL
| * | | Camera2Client: flush requests in stopPreviewLRuchit Sharma2014-12-151-0/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Requests queued in the pipeline have little meaning after the app calls stopPreview(). Flushing will help improve the switch KPI. bug 17340914 Change-Id: I899d69aa3b0fd41f028760290a81013297712fed
* | | am 23085662: am c73ca6ef: audio policy: fix remote mic captureEric Laurent2014-12-132-17/+43
|\ \ \ | |/ / | | | | | | | | | * commit '2308566236a3ff16197419ec226f956a295fe81a': audio policy: fix remote mic capture