summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | camera2: Fix native binder interface and add tests.Ruben Brunk2015-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add CameraBinderTests for limited coverage of native camera2 binder interfaces for the camera service. - Fix several bugs in the native binder interfaces. Bug: 18468810 Change-Id: Iab2d81a5cacd20daf7454aeeed033cc13d88452c
* | | | Merge "CameraModule: fix getCameraInfo()" into mnc-devChien-Yu Chen2015-07-072-6/+15
|\ \ \ \
| * | | | CameraModule: fix getCameraInfo()Chien-Yu Chen2015-07-062-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove mCameraCharacteristicsMap. CameraModule kept a CameraMetadata in mCameraCharacteristicsMap and kept its camera_metadata in mCameraInfoMap. When CameraMetadata gets moved in mCameraCharacteristicsMap, it may clone a new camera_metadata and free the old one. So the original camera_metadata stored in mCameraCharacteristicsMap becomes invalid. Bug: 22171288 Change-Id: Ia8e99fe42989946bc952ad23abb296aeac60da83
* | | | | audio: Do not delete PatchRecord before Peer is stoppedEric Laurent2015-07-061-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PatchPanel::clearPatchConnections deletes PatchRecord before the peer PatchTrack is stopped. This can cause an access to already free'ed memory leading to a crash in PatchTrack::getNextBuffer. Fix is to delete PatchRecord and PatchTrack only after removing both of them from active tracks list Bug: 22304526. Change-Id: I7003756d3d2dd8912ce5e3b2fc31f5e82f455888
* | | | | Merge "audio policy: fix regression in incall notification management" into ↵Eric Laurent2015-07-061-2/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | audio policy: fix regression in incall notification managementEric Laurent2015-07-021-2/+5
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 2110e04c introduced a regression preventing ongoing alarms to be restored when exiting a call and leaving the replacement tone playing for ever. Also add missing management of accessibility prompts when entering a call. Bug: 21857005. Change-Id: I4295c791c003db42c0fba9f618e51f60438158d1
* | | | | Merge "audio: add definitions for devices connected over IP" into mnc-devEric Laurent2015-07-062-0/+6
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | audio: add definitions for devices connected over IPEric Laurent2015-07-062-0/+6
| |/ / / | | | | | | | | | | | | | | | | Bug: 22068684. Change-Id: Idde0eaf7121d2e43f32eee3e6b10e99d8cff4912
* | | | Fix build warningGlenn Kasten2015-07-061-0/+1
| | | | | | | | | | | | | | | | Change-Id: I876edc37fb2093ee13c876c2af5c46512763154d
* | | | Merge "audiopolicy: Update flag enum tables for the new flags" into mnc-devGlenn Kasten2015-07-061-0/+4
|\ \ \ \ | |/ / / |/| | |
| * | | audiopolicy: Update flag enum tables for the new flagsRavi Kumar Alamanda2015-07-021-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Without an entry in sOutputFlagNameToEnumTable or sInputFlagNameToEnumTable, a profile with specific output/input flag in the audio_policy.conf will not be detected by AudioPolicyManager. Bug: 19230391 Change-Id: I94bb3594e2eb8b57747b474a253da3551263c59a
* | | Camera3-Device: Fix AE lock availableChien-Yu Chen2015-06-302-16/+16
|/ / | | | | | | | | | | | | | | | | Pass whether AE lock is available when creating the request thread because when the request thread was created, its parent's info was not set yet. Bug: 20494782 Change-Id: I11ed3f99c473955c437e81f3e1d704c15a9ca1a4
* | Merge "reduce number of binder calls from mediaserver" into mnc-devEric Laurent2015-06-274-6/+38
|\ \
| * | reduce number of binder calls from mediaserverEric Laurent2015-06-264-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce the number of audio port, audio patch and IO config changed binder calls from mediaserver to client processes: - Do not call IO config changed callback if selected device is the same as previously selected one on a given audio flinger playback or capture thread. - Do not call the audio port or audo patch list update callback on a client if this client as no listener registered. Bug: 22045560. Change-Id: If780e105404de79b7cb5c80c27b793ceb6b1c423
* | | audio policy: fix several device descriptor issues.Eric Laurent2015-06-255-20/+20
|/ / | | | | | | | | | | | | | | | | | | | | | | - checkOutputsForDevice() should only clear device descriptor attributes if the device is digital. - checkInputsForDevice() did not clear device descriptor attributes at all. - AudioPort::clearCapabilities() and importAudioPort() should not manage gains as these are device specific. - importAudioPort() should load a default port config. Bug: 21990937. Change-Id: Ida762ed8f9baaabae392cb4291eff1a8d3009751
* | Merge "Camera3: Support AE precapture trigger CANCEL" into mnc-devChien-Yu Chen2015-06-242-31/+124
|\ \
| * | Camera3: Support AE precapture trigger CANCELChien-Yu Chen2015-06-242-31/+124
| | | | | | | | | | | | | | | | | | | | | | | | Support AE precapture trigger CANCEL for devices <= API version 3.2. Bug: 20494782 Change-Id: I6003ba8057ca4ec9e8dfda47b8411ae6be913d22
* | | Merge "Add default for pre-distortion active array." into mnc-devRuben Brunk2015-06-231-0/+9
|\ \ \ | | |/ | |/|
| * | Add default for pre-distortion active array.Ruben Brunk2015-06-221-0/+9
| | | | | | | | | | | | | | | Bug: 20491394 Change-Id: I53b0539b37cc7a042e6765c97775b8c2bbba7159
* | | Merge "Using centralized isAudioPlaybackRateValid to validate parameters" ↵Ricardo Garcia2015-06-233-10/+9
|\ \ \ | |/ / |/| | | | | into mnc-dev
| * | Using centralized isAudioPlaybackRateValid to validate parametersRicardo Garcia2015-06-223-10/+9
| |/ | | | | | | | | | | | | Centralized validation code bug: 20701446 Change-Id: I9d9941c7639c05b2afe069ff4f858c693c910bfe
* | Merge "Fix FastMixer high bit depth Hal support" into mnc-devAndy Hung2015-06-221-0/+4
|\ \
| * | Fix FastMixer high bit depth Hal supportAndy Hung2015-06-191-0/+4
| | | | | | | | | | | | | | | Bug: 21959591 Change-Id: Ia3351ea5644b36852a1f0dad1314beac97d840e1
* | | Merge "AudioFlinger: reset SPDIF encoder on flush" into mnc-devPhil Burk2015-06-201-1/+2
|\ \ \
| * | | AudioFlinger: reset SPDIF encoder on flushPhil Burk2015-06-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This may prevent corrupt data from reaching the AVR. Bug: 19604395 Change-Id: I3dbdd002326917b9f14dda46a3e5170e1ec799bb Signed-off-by: Phil Burk <philburk@google.com>
* | | | Merge "Camera3Device: Fix high speed configuration" into mnc-devChien-Yu Chen2015-06-191-1/+5
|\ \ \ \
| * | | | Camera3Device: Fix high speed configurationChien-Yu Chen2015-06-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If high speed mode changed, HAL needs to reconfigure the streams even when the stream configurations don't change. Bug: 21900311 Change-Id: I76aee456b3b6d8c8f599a1638dcd38d75553a235
* | | | | Merge "Fixing no rates, chans & encodings on input devices for device enum ↵Paul McLean2015-06-192-7/+20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | API. Filtering digital attributes for non-digital audio devices." into mnc-dev
| * | | | | Fixing no rates, chans & encodings on input devices for device enum API.Paul McLean2015-06-192-7/+20
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filtering digital attributes for non-digital audio devices. Bug: 21876072 21903975 Change-Id: Ia5c81a8160f4b4ebf5941dd0c5dfb68d01699ca6
* | | | | Merge "Fix clamp issue with AudioMixer with float input and int16 output" ↵Andy Hung2015-06-191-3/+2
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | into mnc-dev
| * | | | Fix clamp issue with AudioMixer with float input and int16 outputAndy Hung2015-06-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20706338 Change-Id: I7e3ab0da96901870cc57fbe2e79163bc81157465
* | | | | Merge "Reduce log messages on AudioFlinger throttle" into mnc-devAndy Hung2015-06-182-2/+17
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Reduce log messages on AudioFlinger throttleAndy Hung2015-06-182-2/+17
| |/ / / | | | | | | | | | | | | | | | | Bug: 21858740 Change-Id: I8f291b64c1033867bb57ffceaa3b7d94aa998715
* | | | Merge "Bug fix on Engine Configurable" into mnc-devEric Laurent2015-06-184-109/+38
|\ \ \ \
| * | | | Bug fix on Engine ConfigurableFrançois Gaffie2015-06-184-109/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a couple of issue within audio policy engine configurable -valgrind error detected within the parsing of the configuration file -configuration file typos -start of the PFW delayed to the init in order to wait the full construction of the engine object -wrong specialization of template functions. -broadcast volume min / max init to stream collection of manager & PFW Change-Id: I08823ab4040c92b719747c60cc3fa5c8b5f172ac Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | | | | Merge "Add a configurable version of the policy engine based on PFW" into ↵Eric Laurent2015-06-1863-2/+20495
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | | mnc-dev
| * | | Add a configurable version of the policy engine based on PFWFrançois Gaffie2015-06-1863-2/+20495
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a configurable version of the policy engine based on the parameter framework. This configurable engine shall be activated with a flag USE_CONFIGURABLE_AUDIO_POLICY within BoardConfig.mk This patch provides the generic configuration as an example. This configuration provides the same user experience as the default policy engine. - Fix M Issue on configurable policy engine version. - Remove the "empty static lib include trick" hack The code was using a hack to import headers only through an empty lib. This trick was used not only by the PFW and its plugin but also internally with policy. This patch removes this hack and either links againts the real libraries if exist or point on the path of the header. However, since header directories are not recursively detected on Andoid, we need to manually add all necessary libraries. (for example libicuuc needed by libxml2) - let the build system decide which compiler and which stl is to be used - Disable by default Audio Policy Settings XML file generation at compilation time In order not to depend on python tool for the configurable policy example, this patch adds the generated Settings XML file and disables the generation from .pfw files at compile time. If the user wishes to regenerate it, he may use the pfw_rebuild_settings option. - Fix Clang issues within Configurable Audio Policy Fix compilation issues revealed when switching to CLANG compiler within the configurable version of policy engine. Change-Id: I3edc26db94c0bf8a76430ab8081bae52e9193705 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | | Merge "audiopolicy: Add AUDIO_OUTPUT_FLAG_TTS to flags enum table" into mnc-devEric Laurent2015-06-181-0/+1
|\ \ \ | |/ / |/| |
| * | audiopolicy: Add AUDIO_OUTPUT_FLAG_TTS to flags enum tableRavi Kumar Alamanda2015-06-181-0/+1
| |/ | | | | | | | | | | | | | | Without an entry in sOutputFlagNameToEnumTable, a profile with specific output flag in the audio_policy.conf will not be detected by AudioPolicyManager. Change-Id: Id242e6819aab1a67d72c564f3cc39af3de8e1ef7
* | Merge "audio policy: fix explicit routing and accessibility" into mnc-devEric Laurent2015-06-181-1/+8
|\ \ | |/ |/|
| * audio policy: fix explicit routing and accessibilityEric Laurent2015-06-111-1/+8
| | | | | | | | | | | | | | | | | | If a session has an active explicit routing request, this routing must also be applied to accessibility prompts if accessibility usage is currrently remapped to the strategy used by this session. Bug: 20873151. Change-Id: I97c6ece98cf1af9c64c2d2eb1fe382c7c0d657b4
* | Merge "Fix AudioRecord cleanup if construction fails" into mnc-devAndy Hung2015-06-131-1/+3
|\ \
| * | Fix AudioRecord cleanup if construction failsAndy Hung2015-06-121-1/+3
| | | | | | | | | | | | | | | Bug: 11671194 Change-Id: Id48350264f8b5ce53bf7ce2b308bf4ba21e59241
* | | Merge "Fix rounding width." into mnc-devRuben Brunk2015-06-121-3/+2
|\ \ \
| * | | Fix rounding width.Ruben Brunk2015-06-121-3/+2
| | | | | | | | | | | | | | | | | | | | Bug: 19930700 Change-Id: I9d5685bd98a049fcb01f6ecc649f15f3b4498e6d
* | | | Merge "audiopolicy: use deep buffer output by default for music streams" ↵Andy Hung2015-06-111-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | into mnc-dev
| * | | | audiopolicy: use deep buffer output by default for music streamsRavi Kumar Alamanda2015-06-111-0/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default disabled. This is enabled by adb shell setprop audio.deep_buffer.media 1 Applications that use AudioTrack java interface for audio rendering defaults to primary output as flags indicated as FLAG_NONE. If the primary output is low latency output, it results higher power consumption than deep-buffer path if used. Make the deep buffer output as default option for music streams if flags are not specified. It may also be used for testing audio glitches from heavy CPU or DRM which may cause issues with the FastMixer. Bug: 21198655 Bug: 21785618 Change-Id: I909c296ddcf4484b9a877ef1c0230ea58537e06a
* | | | Merge "AudioFlinger: flush stream when switching tracks" into mnc-devPhil Burk2015-06-112-24/+45
|\ \ \ \ | |_|_|/ |/| | |
| * | | AudioFlinger: flush stream when switching tracksPhil Burk2015-06-112-24/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For direct threads, when recycling a stream, perform a flush so that the frame position is reset. Bug: 21145353 Change-Id: I08611cd64bb249a9659c44f9e4c47e7455f4838f Signed-off-by: Phil Burk <philburk@google.com>
* | | | Merge "audio policy: route media to BT SCO in call" into mnc-devEric Laurent2015-06-101-0/+4
|\ \ \ \