summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* ProCamera: Fix rare deadlock when client destructs inside the connect callIgor Murashkin2013-03-131-77/+87
| | | | | Bug: 8337737 Change-Id: Ia6fca4365fa20fdbfd6a1ec8d047639a002f2aba
* remove CameraServiceTest which wasn't usedMathias Agopian2013-03-124-1140/+0
| | | | | | | this test hasn't been compiled or run in a long long time and isn't up to date or relevant. Change-Id: I5a7f1190d4a783e088d44e3e6ef66231cf0cfb49
* Camera: Make ProCamera connect take the same paths as Camera connectIgor Murashkin2013-03-114-164/+130
| | | | | | | | * ProCamera uses the app ops manager * Refactored connect calls to be as common as possible * Removed some useless not implemented function calls in ProClient Change-Id: I5dab30d20f0c202a494a07b2cfe4c1fa04a2a076
* (Camera)ProCamera: Remove unused functions from binder interfaceIgor Murashkin2013-03-112-10/+2
| | | | Change-Id: I0582268cef6e84b630bc87c8a03dcd69d54c440d
* (Camera)FrameProcessor: Refactor to share code with ProFrameProcessorIgor Murashkin2013-03-1111-203/+106
| | | | Change-Id: Ie8cd0df7caf83f9d0134f560ae31ab72f2f7d1fc
* CameraService: Refactor Camera2Client to share a base with ProCameraClientIgor Murashkin2013-03-1115-470/+583
| | | | Change-Id: I249e2a0fc47ae84f29c9d9c4a223fba13da3ee66
* Increase size of statistics bufferGlenn Kasten2013-03-111-1/+1
| | | | | Bug: 8354576 Change-Id: I327e9dc203e09df8abc21e589ce9056540618abd
* Camera: Log warning on out-of-range face detect scoresAlex Ray2013-03-061-0/+4
| | | | | Bug: 7368364 Change-Id: I7b1e995dd15e87c816b89ccf9968a222fd66d140
* Add template class SingleStateQueueGlenn Kasten2013-03-051-1/+0
| | | | Change-Id: If7e2bc9b2a216524ee9cbb68682e2634933b4973
* Miscellaneous cleanupGlenn Kasten2013-03-046-20/+13
| | | | | | | | | | Abbreviation framesReady to fRdy for new systrace. Put inline const on one line. Use local copy of mState in state. Improve logging. Line length 100. Change-Id: I8201c3ce0e53fd464fd33d02544e52c342d40b68
* Merge "media.log cleanup" into jb-mr2-devGlenn Kasten2013-03-026-38/+22
|\
| * media.log cleanupGlenn Kasten2013-03-016-38/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove almost all of the specific logs, but leave the media.log logging infrastructure in place for the next time we need it. Re-apply a few good changes that were reverted earlier: - check logf format vs. argument list compatibility - distinguish potentially modified and actually modified tracks in FastMixer - fix benign bug where sq->end() was called more than once - fix a build warning Bug: 6490974 Change-Id: I02d3e83646c738acaebb415bd0d6b548638b4ef5
* | Merge "Remove tee sink debugging at compile time" into jb-mr2-devGlenn Kasten2013-03-016-23/+70
|\ \ | |/ |/|
| * Remove tee sink debugging at compile timeGlenn Kasten2013-02-266-23/+70
| | | | | | | | | | Bug: 8223560 Change-Id: Iddbfb06c45d43d9f20bb428215dd4094931e19a7
* | Camera: Drop ProCamera connections when a Camera connection happensIgor Murashkin2013-02-284-4/+225
| | | | | | | | | | | | | | * Also adds an ICameraServiceListener with available/not available statuses Bug: 8291653 Change-Id: I24680f1a2dc109510caf451cf7c7bd180b670d84
* | Camera: Start of support for version 3.0 of camera device HALEino-Ville Talvala2013-02-2718-247/+881
| | | | | | | | | | | | | | - Refactor common CameraDevice interface out of Camera2Device - Initial skeleton only for Camera3Device Change-Id: I097cc76e2ad102a51712ac114235163245f5482c
* | Merge "camera_client: refactor Camera/ProCamera commonalities into ↵Igor Murashkin2013-02-272-2/+11
|\ \ | | | | | | | | | BasicCamera" into jb-mr2-dev
| * | camera_client: refactor Camera/ProCamera commonalities into BasicCameraIgor Murashkin2013-02-262-2/+11
| |/ | | | | | | Change-Id: Ie10a4094522d49683657665fe94ab0b7ccd280e9
* | Revert "Logging to investigate a crash"Glenn Kasten2013-02-271-6/+0
|/ | | | This reverts commit f0ff908da019a44115109f1b4d1b6864b35a8a29.
* CameraService and Stagefright: Support AppOpsEino-Ville Talvala2013-02-258-45/+228
| | | | | | | | | | | | | Camera: - Signal to AppOpsService when camera usage starts and stops - Listen to permissions revocations and act on them - Currently just kill camera connection when permissions lost Stagefright: - Pass on client name, UID to camera as needed Bug: 8181262 Change-Id: I9e33c9d05e9daa77dbb2d795045d08eb887ec8f0
* Merge "Update tee sink"Glenn Kasten2013-02-236-32/+164
|\
| * Update tee sinkGlenn Kasten2013-02-226-32/+164
| | | | | | | | | | | | | | | | | | | | Implement rotation to reduce long-term storage use. Implement optional per-track tee. Dynamically enable at runtime based on property, instead of at compile-time. Dynamic frame count not yet implemented. Bug: 8223560 Change-Id: I3706443c6ec0cb0c6656dc288715a02ad5fea63a
* | ProCamera: Add getInfo for getting static metadata (and a test)Igor Murashkin2013-02-222-0/+19
| | | | | | | | Change-Id: I3b87dfbc621d98bf41f37a892a1012baf85b5166
* | Camera: ProCamera - implement onResultReceived callback for metadata callbacksIgor Murashkin2013-02-225-2/+297
| | | | | | | | Change-Id: I46775402b007244bc383d6343a620eebbd492aad
* | Camera: ProCamera - add createStreamCpu and unit testIgor Murashkin2013-02-221-0/+7
| | | | | | | | Change-Id: I468172dbfdd78510b273bf9d119c950cbeda7ea3
* | Camera: Change ProCamera to take IGraphicBufferProducerIgor Murashkin2013-02-222-5/+13
| | | | | | | | Change-Id: Iec62eead6d179aa5486f7719143340976bb76e7d
* | Camera: ProCamera2Client implement createStream,createDefaultRequestIgor Murashkin2013-02-222-15/+54
| | | | | | | | | | | | The StreamingImage unit test should now work when TEST_DISPLAY_SECS is set. Change-Id: I9cf3ad5bd5a76096ab21bd39e631d636c4ff3d3f
* | Camera: ProCamera2Client - add createStream (service is stubbed) and unit testIgor Murashkin2013-02-224-1/+556
| | | | | | | | Change-Id: I1ae7ba9b24f5883c214c19a7ed0eaf0c802d69c1
* | Camera: Add ProCamera private binder interface for an API2-light functionalityIgor Murashkin2013-02-222-53/+390
| | | | | | | | Change-Id: I2af7a807c99df75ea659e6e6acc9c4fca6a56274
* | Camera: Add unit test infrastructure for libcameraclientIgor Murashkin2013-02-221-0/+1
| | | | | | | | Change-Id: I957538663ae8332d26f3640c63a75efc79f4ac5c
* | Camera: Move CameraMetadata.h from service to client libraryIgor Murashkin2013-02-2214-484/+10
|/ | | | Change-Id: I940ce86f318f37ae5b73f912a6e589415150125f
* Merge "replace getISurfaceTexture by getIGraphicBufferProducer"Mathias Agopian2013-02-212-2/+2
|\
| * replace getISurfaceTexture by getIGraphicBufferProducerMathias Agopian2013-02-192-2/+2
| | | | | | | | Change-Id: I723a3863558126f2635a544a39bb3ec88d499c60
* | CameraService: Log camera module nameAlex Ray2013-02-201-0/+1
|/ | | | | | | | Explicitly logs camera module loaded. This is useful on systems with multiple camera modules installed. Also this make the camera service match audioflinger, which logs hardware module names as well. Change-Id: I280bf12df2d517f936916b8ba3cb662e671d0216
* A reference cannot be re-boundGlenn Kasten2013-02-191-20/+24
| | | | | | Bug: 8213067 Bug: 6490974 Change-Id: If546215641fbc9a0fb1e8af8b85cc01f0a4b26ab
* Merge "Revert "Temporary additional logging to investigate bug""Glenn Kasten2013-02-158-218/+24
|\
| * Revert "Temporary additional logging to investigate bug"Glenn Kasten2013-02-158-218/+24
| | | | | | | | | | | | This reverts commit 32584a7d672864b20ab8b83a3cb23c1858e908b7 Change-Id: I9dc680578b955b1af462eeb7a49d61a0d45eb81b
* | Merge "Temporary additional logging to investigate bug"Glenn Kasten2013-02-158-24/+218
|\ \ | |/
| * Temporary additional logging to investigate bugGlenn Kasten2013-02-158-24/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug appears related to continuing to use an invalid buffer provider in fast mixer after track destruction, so focus the added logs in that area. Also includes a bug fix: was calling log in an unsafe place near Threads.cpp AudioFlinger::PlaybackThread::createTrack_l line 1250. Details: - include caller pid or client pid where appropriate - increase log buffer size - log mFastIndex when AudioMixer sees an invalid bufferProvider. - log both potentially modified and actually modified tracks in FastMixer. - fix benign bug where sq->end() was called more than once. - log StateQueue push() call and return. - increase StateQueue size from 4 to 8 entries - log mixer->enable(), bufferProvider, and currentTrackMask - log buffer provider addresses - increase fast mixer log buffer again - check logf format vs. argument list compatibility - add logging to AudioMixer - add checking of magic field in AudioMixer to detect overwrites - add bool AudioMixer::enabled() - increase log buffer sizes yet again - enable assertion checking without ALOGV - improve a few log messages - check for corruption in more places - log in all the process hooks - add new mixer APIs so we can check for corruption of mixer state - fix a build warning Bug: 6490974 Change-Id: Ib0c4a73dcf606ef9bd898313b3b40ef61ab42f51
* | Refactoring: Rename SurfaceTextureClient to SurfaceMathias Agopian2013-02-158-16/+13
|/ | | | Change-Id: I4e8a8b20914cb64edc37abe68233fbc9f2b5d830
* Revert "Temporary additional logging to investigate bug"Glenn Kasten2013-02-148-144/+21
| | | | | | This reverts commit 639482c24c911b125398b31883ba6d55faebe28b Change-Id: I11f2829072ab11e18b0663024f27bf31192f1d39
* Temporary additional logging to investigate bugGlenn Kasten2013-02-148-21/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | The bug appears related to continuing to use an invalid buffer provider in fast mixer after track destruction, so focus the added logs in that area. Also includes a bug fix: was calling log in an unsafe place near Threads.cpp AudioFlinger::PlaybackThread::createTrack_l line 1250. Details: - include caller pid or client pid where appropriate - increase log buffer size - log mFastIndex when AudioMixer sees an invalid bufferProvider. - log both potentially modified and actually modified tracks in FastMixer. - fix benign bug where sq->end() was called more than once. - log StateQueue push() call and return. - increase StateQueue size from 4 to 8 entries - log mixer->enable(), bufferProvider, and currentTrackMask - log buffer provider addresses - increase fast mixer log buffer again - check logf format vs. argument list compatibility - add logging to AudioMixer - add checking of magic field in AudioMixer to detect overwrites - add bool AudioMixer::enabled() Bug: 6490974 Change-Id: I1f3f18aa62d9fbd35bc32285b669f5ba40efe28e
* Revert "Temporary additional logging to investigate bug"Glenn Kasten2013-02-147-71/+17
| | | | | | This reverts commit 0ddd56316262ac74a95e9edb595697c163136d6d Change-Id: I180a928af6f5a38d15a5efe44cd1fe927b5d961c
* Temporary additional logging to investigate bugGlenn Kasten2013-02-137-17/+71
| | | | | | | | | | | | | | | | | | | The bug appears related to continuing to use an invalid buffer provider in fast mixer after track destruction, so focus the added logs in that area. Also includes a bug fix: was calling log in an unsafe place near Threads.cpp AudioFlinger::PlaybackThread::createTrack_l line 1250. Details: - include caller pid or client pid where appropriate - increase log buffer size - log mFastIndex when AudioMixer sees an invalid bufferProvider. - log both potentially modified and actually modified tracks in FastMixer. - fix benign bug where sq->end() was called more than once. - log StateQueue push() call and return. Bug: 6490974 Change-Id: Iee7c8f40e20b6000cd8286c0ec6a14fff4a37af1
* Revert "Temporary additional logging to investigate bug"Glenn Kasten2013-02-125-41/+11
| | | | | | This reverts commit 3051df27261e9952c0e642dec548515250e85f6a Change-Id: I8bf5c3e91b65bd20de26f480c367c2854b62373c
* Temporary additional logging to investigate bugGlenn Kasten2013-02-125-11/+41
| | | | | | | | | | | | | | | The bug appears related to continuing to use an invalid buffer provider in fast mixer after track destruction, so focus the added logs in that area. Also includes a bug fix: was calling log in an unsafe place near Threads.cpp AudioFlinger::PlaybackThread::createTrack_l line 1250. Details: - include caller pid or client pid where appropriate - increase log buffer size Bug: 6490974 Change-Id: I4c030f171343fe4b483eae0ddea4427118d8d4b1
* Add support for querying if a stream is active remotelyJean-Michel Trivi2013-02-112-0/+10
| | | | | | Bug 7485803 Change-Id: I0744374f130fd2dd0714102354cffed2fa915361
* Merge "AudioFlinger: fix RecordThread initial device"Eric Laurent2013-02-043-6/+8
|\
| * AudioFlinger: fix RecordThread initial deviceEric Laurent2013-02-013-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | A regression was introduced when the audio device enums where modified for a 32 bit representation: the device passed when constructing a RecordThread was still the concatenation of input device and output device bit fields on one 32 bit value which is not possible anymore. The fix consists in modifying the RecordThread constructor to accept separate values for input and output devices. Change-Id: I81fb5f4718428b54251e65d74b86e198ce15193e
* | Fix crash when destroying a DuplicatingThreadGlenn Kasten2013-02-041-0/+3
| | | | | | | | | | Bug: 8121343 Change-Id: I9b1fc56c753e465e8a08916022e52db6c3a36906