summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ \
| * | | audio policy: route media to BT SCO in callEric Laurent2015-06-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow media (and Navigation instructions) to be routed to BT SCO in call. Bug: 18986190. Change-Id: I1fa4decfbf035623fdcc8681b53cbd61e1d5f933
* | | | Merge "CameraService: Add consumer name to output stream dumpsys" into mnc-devEino-Ville Talvala2015-06-0921-47/+56
|\ \ \ \
| * | | | CameraService: Add consumer name to output stream dumpsysEino-Ville Talvala2015-06-0921-47/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also switch use of ANativeWindow to Surface, to get to the getConsumerName() method where necessary. Surface can always be cast to ANativeWindow, but not the other way around, so it's a better option anyway. Change-Id: Ie5c2d30821c1a754f9e382699ff50b4b328288b3
* | | | | Merge "Camera3Device: Default-initialize operating mode." into mnc-devEino-Ville Talvala2015-06-091-1/+2
|\ \ \ \ \ | |/ / / /
| * | | | Camera3Device: Default-initialize operating mode.Eino-Ville Talvala2015-06-091-1/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Since configureStreams is only called by CameraDeviceClient, the operation mode could default-initialize to CONSTRAINED_HIGH_SPEED for API1 operation. Change-Id: Ide71af07ca3925db8e450d00def1daeb44d8046a
* | | | Merge "Take advantage of audio_channel_in_mask_from_count" into mnc-devGlenn Kasten2015-06-091-5/+3
|\ \ \ \ | |/ / / |/| | |
| * | | Take advantage of audio_channel_in_mask_from_countGlenn Kasten2015-06-091-5/+3
| |/ / | | | | | | | | | | | | | | | Bug: 21375533 Bug: 21721483 Change-Id: I1ccd5d1d68a25f415dc4a62bf7a44d9db12a256b
* | | Camera1 API: Support SW encoders for new camera HALsEino-Ville Talvala2015-06-0815-50/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Support new set video format/dataspace command in camera service - HALv3: Select gralloc usage flags based on format - HALv1: Pass format command directly to HAL layer - Use format/dataspace command in CameraSource - Switch all API1 recording to use metadata mode - Switch all >= HALv2 API1 recording to use kMetadataBufferTypeANWBuffer Bug: 13222807 Change-Id: I2e609b92c65792611bb1dab09e0c41c363ebbc42
* | | audio policy: fix very verbose log build.Eric Laurent2015-06-081-1/+2
|/ / | | | | | | Change-Id: I94a69207059d8010ded14bce5d6e39c3f3074649
* | Camera: Change error for app ops reject, propagate binder errorsEino-Ville Talvala2015-06-051-1/+2
|/ | | | | | | | | | | | | | | | | | | | | | INVALID_OPERATION surfaces as an non-specific device-level error to applications in the onError callback. This is not a condition apps targeting camera2 in L will generally have to deal with. Instead, return -EACCESS which maps to throwing CameraAccessException.CAMERA_DISABLED, same as disabling camera access with DevicePolicyManager. The old camera API converts any error code to -EACCESS at the JNI layer, so this doesn't change anything for the older API. Also update the various native ICameraService binder connect calls to check for the transact error code, and return it if it is not OK. Without this, PERMISSION_DENIED transact errors from the camera service cannot be distinguished from CAMERA_DISABLED errors in some codepaths. Bug: 21604925 Change-Id: Ifccc8989b8c20653429e2d3e51dba7abb2be9c35
* Camera2: implement high speed video APIsZhijun He2015-06-038-10/+53
| | | | | Bug: 21442271 Change-Id: Ia0ae5bbd3e8c81bad293c29987301a2457817d12
* Merge "Throttle MixerThread data pull to no more than twice expected rate" ↵Andy Hung2015-06-032-3/+38
|\ | | | | | | into mnc-dev
| * Throttle MixerThread data pull to no more than twice expected rateAndy Hung2015-06-032-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | This helps prevent underruns with NuPlayer and other applications which set up buffers that are close to minimum size or use deep buffers, and rely on a double-buffering sleep strategy to fill. Enabled by default. Disabled by setting af.thread.throttle 0 Bug: 19062223 Bug: 21198655 Change-Id: Ia52b48e0c99588af5db53c43fede2afd775b8899
* | Fix buildGlenn Kasten2015-06-021-0/+1
| | | | | | | | Change-Id: I4d1e396d812b6a22087d35156633451d5c1c36bc
* | Allow capture by root for command-line native testingGlenn Kasten2015-06-021-0/+4
|/ | | | Change-Id: I3cafd70b7770c7e4b578d39a8d570572829f2c59
* Merge "Add property to control audio offload with video content" into mnc-devAndy Hung2015-06-021-2/+3
|\
| * Add property to control audio offload with video contentAndy Hung2015-06-011-2/+3
| | | | | | | | | | | | | | Property audio.offload.video normally disabled (set to 1 to enable) Bug: 21198655 Change-Id: Ib1c457b1e3950f18d91b855424aa80bd23c723b0
* | Merge "Track camera and flashlight usage in battery stats." into mnc-devRuben Brunk2015-06-024-51/+205
|\ \
| * | Track camera and flashlight usage in battery stats.Ruben Brunk2015-06-014-51/+205
| | | | | | | | | | | | | | | | | | Bug: 15986092 Change-Id: I9dc6828332e4091fd93bf2d82839e8e3862a2fc2
* | | Merge "Camera3: fix aborting reprocess requests" into mnc-devChien-Yu Chen2015-06-012-24/+39
|\ \ \
| * | | Camera3: fix aborting reprocess requestsChien-Yu Chen2015-06-012-24/+39
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get an input buffer right after camera service takes one reprocess capture request from the request queue to prevent the input buffers getting out of order. When aborting pending reprocess requests in the request queue, also abort the same amount of input buffers. Bug: 21028914 Change-Id: I7cfacecb4c24509f59c983abd587db5a403237bd
* | | Merge "Add more device codes for symbolic display" into mnc-devGlenn Kasten2015-05-291-0/+34
|\ \ \
| * | | Add more device codes for symbolic displayGlenn Kasten2015-05-271-0/+34
| | | | | | | | | | | | | | | | Change-Id: I08553f0e94d0a0931ccf98ee04f53686b96c8b03
* | | | Merge "Fix for audio effects in offload path for mono content" into mnc-devRicardo Garcia2015-05-291-1/+9
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix for audio effects in offload path for mono contentRicardo Garcia2015-05-281-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Effects path is always stereo, and it should be initialized as thus even if the source is mono. Fixed condition check before initialization. bug: 18157592 Change-Id: Idd7241931e4ba6085fd804345128d898c8511e11
* | | | Merge "Camera: derive LSC characteristics keys" into mnc-devYin-Chia Yeh2015-05-281-2/+28
|\ \ \ \
| * | | | Camera: derive LSC characteristics keysYin-Chia Yeh2015-05-281-2/+28
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Also fix a typo in AWB lock available key. Bug: 21403373 Bug: 20883751 Change-Id: I5156f4fafcf4ae86f680fb618966c7cc58900120
* | | | Camera3Device: Do not call cleanUpFailedRequest with mutex heldEino-Ville Talvala2015-05-281-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Double-acquiring a non-recursive mutex tends to work poorly. Bug: 21498811 Change-Id: I1d59959fca69c97684522195808019797f7a6a7d
* | | | Camera3Device: Close hole in prepare in-use stream checkEino-Ville Talvala2015-05-272-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a narrow window in which a capture request is neither in the request queue or handed off to the HAL, which can be expanded to some size if buffers have to be allocated. During this window, the prepare() method will not correctly notice that a stream should be considered in use. Add a member to contain the current request being processed, and check against it in prepare as well. Change-Id: I3a198d617f5feee0a3332af4b4439f24eda28ea3
* | | | audio flinger: add suffix to time variables namesEric Laurent2015-05-272-56/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add suffix to clarify units for the following variables: standbyTime -> mStandbyTimeNs standbyDelay -> mStandbyDelayNs activeSleepTime -> mActiveSleepTimeUs idleSleepTime -> mIdleSleepTimeUs sleepTime -> mSleepTimeUs Change-Id: I7f5d602c39e0ef3f6fe9ef99eaf1b351c7bd4fc3
* | | | Merge "audio flinger: pause direct output when underrunning" into mnc-devEric Laurent2015-05-271-7/+7
|\ \ \ \ | |/ / / |/| | |
| * | | audio flinger: pause direct output when underrunningEric Laurent2015-05-261-7/+7
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | If a direct output supports pause, pause the stream instead of placing it into standby when the audio track underruns. This will avoid resetting the presented frame count and preserve A/V sync. Bug: 21437855. Change-Id: I598346edb62a1864126acdb1d9a937c82eac2191
* | | Merge "audio policy: add checks on primary output" into mnc-devEric Laurent2015-05-222-30/+47
|\ \ \
| * | | audio policy: add checks on primary outputEric Laurent2015-05-222-30/+47
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Check if primary output has been initialized before using it. The primary output may not be initialized either due to HAL failure or on devices without telephony. Bug: 19573336. Change-Id: Id1fc3ed588268e1232b43d1e6235254d2f1a71d0
* | | Merge "sound trigger: fix abort event init." into mnc-devEric Laurent2015-05-221-0/+1
|\ \ \ | |_|/ |/| |
| * | sound trigger: fix abort event init.Eric Laurent2015-05-221-0/+1
| |/ | | | | | | | | | | | | | | Initialize unused fields of recognition abort event to avoid argument type check exception in JNI. Bug: 20951546. Change-Id: I65ed3284464bd9a32406b5305d562fa434abedce
* | Merge "Improve volume input check for AudioMixer" into mnc-devAndy Hung2015-05-211-23/+88
|\ \
| * | Improve volume input check for AudioMixerAndy Hung2015-05-211-23/+88
| | | | | | | | | | | | Change-Id: I5b656b123847529f2b76af2a68bd4e9b691882f4
* | | Merge "audio flinger: do not call JAVA services until system is ready" into ↵Eric Laurent2015-05-214-50/+102
|\ \ \ | | | | | | | | | | | | mnc-dev
| * | | audio flinger: do not call JAVA services until system is readyEric Laurent2015-05-204-50/+102
| | |/ | |/| | | | | | | | | | | | | | | | | | | Wait for system ready indication form AudioService before enabling calls to scheduling service or power manager. Bug: 11520969. Change-Id: I221927394f4a08fd86c9d457e55dd0e07949f0cf
* | | Merge "camera: Add AIDL interface for CameraServiceProxy." into mnc-devRuben Brunk2015-05-202-0/+15
|\ \ \ | |_|/ |/| |
| * | camera: Add AIDL interface for CameraServiceProxy.Ruben Brunk2015-05-202-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds an AIDL interface to allow the proxy camera service running in system server to accept RPCs from the camera service running in mediaserver. - Request an update to the valid user set from the proxy camera service when mediaserver restarts to initialize properly + avoid DOS after a crash. Bug: 21267484 Change-Id: Ib821582794ddd1e3574b5dc6c79f7cb197b57f10
* | | Merge "audio policy: fix direct output profile selection" into mnc-devEric Laurent2015-05-201-12/+44
|\ \ \
| * | | audio policy: fix direct output profile selectionEric Laurent2015-05-191-12/+44
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix logic in AudioPolicyManager::getProfileForDirectOutput() to select the direct output with most matching flags and not just the first compatible one. Also fixes issue 17783395 which was fixed by commit f7bc29b02 in lmp-tv-dev branch only but in a way that caused a regression for HW A/V sync (issue 19384172). Also removed duplicated code lines in getOutputForDevice() Bug: 20819715. Bug: 17783395. Bug: 19384172. Change-Id: I7fc793b37f9b53fabd92cab6b884ef85cfdafee4
* | | Merge "CameraService: Logcat conflicting devices on rejected open" into mnc-devEino-Ville Talvala2015-05-201-0/+4
|\ \ \