summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | AudioFlinger uses media.log service for loggingGlenn Kasten2013-01-318-1/+112
| | | | | | | | Change-Id: Ia0f8204334f6b233f644d897762a18c95d936b4b
* | Add media.log service based on NBLogGlenn Kasten2013-01-253-0/+157
|/ | | | Change-Id: Ie45093df6ac9a739d05c8d408fab52a9a8a27e7f
* AudioFlinger: fix build with debug log enabledEric Laurent2013-01-171-1/+1
| | | | Change-Id: Id397155ec884c41cb84b35462ea09a97a04d3ed2
* Merge "Fix build warnings"Glenn Kasten2013-01-092-4/+4
|\
| * Fix build warningsGlenn Kasten2013-01-082-4/+4
| | | | | | | | Change-Id: I79f4d7052a4c0a9fde144063f44a9c8c9dd575d5
* | Camera2: Fix JPEG quality metadata type, new warnings.Eino-Ville Talvala2013-01-072-15/+24
|/ | | | | | | | | | | - JPEG quality tag is now a uint8_t, not an int. Update parameter code accordingly. - Fix new warnings about narrowing conversions. Bug: 7944244 Change-Id: Ie081c57c9e9323148614b170b132ffb98c0a0b9f
* Merge "Start isolating control block accesses in a proxy"Glenn Kasten2012-12-216-70/+63
|\
| * Start isolating control block accesses in a proxyGlenn Kasten2012-12-126-70/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The proxy object will eventually be the only code that understands the details of the control block. This should make it easier to change the control block in the future. Initial set of control block fields that are isolated: - sample rate - send level - volume Prepare for streaming/static separation by adding a union to the control block for the new fields. Fix bug in handling of max sample rate on a track. It was only checking at re-configuration, not at each mix. Simplify OutputTrack::obtainBuffer. Change-Id: I2249f9d04f73a911a922ad1d7f6197292c74cd92
* | Merge "Remove unnecessary parameter"Glenn Kasten2012-12-212-6/+5
|\ \
| * | Remove unnecessary parameterGlenn Kasten2012-12-182-6/+5
| |/ | | | | | | | | | | Just get the parameter on server side Change-Id: I433a63104dbb257e0d862be2ab61847cb36d1c15
* | Merge "Fix build warnings"Glenn Kasten2012-12-203-6/+6
|\ \
| * | Fix build warningsGlenn Kasten2012-12-173-6/+6
| |/ | | | | | | Change-Id: I9e3cfa0c6b3467fe763ce55f759d179f02c5deea
* | Merge "Add warning about following the design rules"Glenn Kasten2012-12-201-0/+6
|\ \
| * | Add warning about following the design rulesGlenn Kasten2012-11-301-0/+6
| | | | | | | | | | | | Change-Id: Ic4895ed5682bad10b03e97d8015e642ee1696533
* | | Rename ISurfaceTexture and SurfaceTextureAndy McFadden2012-12-185-14/+14
| |/ |/| | | | | | | | | | | | | | | | | The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: I64520a55f8c09fe6215382ea361c539a9940cba5
* | Prepare for track invalidation to be done by proxyGlenn Kasten2012-12-123-7/+16
| | | | | | | | | | | | | | Don't rely on control block to determine whether track has been marked invalid. Instead, use a local flag that can't be corrupted by client. Change-Id: I783dafe828f93c1c3d2d0e5a08105ea536436efb
* | am 76143093: am f0ff908d: Logging to investigate a crashGlenn Kasten2012-12-101-0/+6
|\ \ | | | | | | | | | | | | * commit '761430930a7335d714af0f7c1d497feb8f9f0a5a': Logging to investigate a crash
| * | Logging to investigate a crashGlenn Kasten2012-12-071-0/+6
| | | | | | | | | | | | | | | Bug: 6490974 Change-Id: Ib926a9258bde4ee05ed42eea662dff68e426a997
* | | Merge "Camera2: fix metadata symbols"Igor Murashkin2012-12-044-153/+153
|\ \ \
| * | | Camera2: fix metadata symbolsIgor Murashkin2012-12-034-153/+153
| | | | | | | | | | | | | | | | Change-Id: I59e457824782de26b7b489cd92eb33d48e6ee2d9
* | | | Merge "audioflinger: define ANDROID_SMP, remove conditional tracing"Alex Ray2012-12-042-21/+17
|\ \ \ \ | |/ / / |/| | |
| * | | audioflinger: define ANDROID_SMP, remove conditional tracingAlex Ray2012-11-302-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With ANDROID_SMP set, tracing functionality is completely inline, and without the performance hits of external library calls, tracing does not need to be conditionally compiled. Change-Id: I4b29a9a52c403f0d2ea137c5b7bc05a518a7ca4b
* | | | AudioTrack::mute() is unused so remove itGlenn Kasten2012-12-034-27/+5
|/ / / | | | | | | | | | | | | | | | | | | If ever needed again, it could be implemented on client side by forcing a track volume of 0. Change-Id: I88a9b4f675b6dca2948549414f9ec2c192d29269
* | | Remove conditional compilation of ATRACE functionsAlex Ray2012-11-303-10/+8
| | | | | | | | | | | | | | | | | | | | | Tracing functions are meant to be dynamically controlled via sysprops. Conditional compilation removes this functionality. Change-Id: I26bc473d104d0b3c50a228dddfda3fa2428d157a