summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Camera2: Re-entering preview state on v2 Device" into jb-mr1-devAlex Ray2012-09-281-1/+7
|\
| * Camera2: Re-entering preview state on v2 DeviceAlex Ray2012-09-261-1/+7
| | | | | | | | | | Bug: 7240891 Change-Id: I6a01b27197b4ee89a68f06f4375d315a716b67ae
* | Camera2: Only _some_ FPS values in the old API are scaled.Eino-Ville Talvala2012-09-272-3/+6
| | | | | | | | | | | | | | The (deprecated) single-FPS parameter is not scaled by 1000. Bug: 7230239 Change-Id: I5664cce90f9cb01e57e39f1a1f7c8eb730501da3
* | Merge "Camera2: Fix FPS value scaling between HAL2 and API" into jb-mr1-devEino-Ville Talvala2012-09-272-7/+12
|\ \ | |/ |/|
| * Camera2: Fix FPS value scaling between HAL2 and APIEino-Ville Talvala2012-09-272-7/+12
| | | | | | | | | | | | | | | | | | | | | | API assumes FPS values are in fixed-point with LSB 0.001; HAL2 just uses ints with no fractional part. HAL should probably use floats or something similar, but for now, fix scaling so the two agree on FPS values. Bug: 7230239 Change-Id: Ie18a4f11fc9d17d9ae2d04781511a273213eda55
* | audioflinger: use resample coefficients from audio-resampler library.SathishKumar Mani2012-09-265-22/+114
| | | | | | | | | | | | | | | | | | | | | | -Add a separate quality VERY_HIGH_QUALITY in resampler -Use resample coefficients audio-resampler library for quality VERY_HIGH_QUALITY. -This improves the quality of resampled output. Bug: 7024293 Change-Id: Ia44142413bed5f5963d7eab7846eec877a2415e4 Signed-off-by: Iliyan Malchev <malchev@google.com>
* | audioflinger/resampler: Add VERY_HIGH_QUALITY audio-resamplerSathishKumar Mani2012-09-264-0/+4725
|/ | | | | | Change-Id: I34f5d36ae60010ec64222d6660d10a84da3bf566 Bug: 7024293 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Camera2: Fix JPEG Transport Header offsetAlex Ray2012-09-261-3/+7
| | | | | | | Use offset into start of buffer after transport header Bug: 7108816 Change-Id: I6f9778db313856eaeee31f6999e4e55678b09b26
* Revert "Don't wait for presentation complete if terminated"Glenn Kasten2012-09-261-6/+6
| | | | | | This reverts commit 44cda3a4e7ca3de0db9cb49145def3803b03ebb4 Change-Id: I7fd29b77690dab057ac966a42fb198b2772f092c
* Implement android.media.AudioManager.getProperty()Glenn Kasten2012-09-252-1/+24
| | | | | Bug: 6635041 Change-Id: I3386a4a6c226bc4eceaf65556119e4fb15f73224
* Camera2: Make sure to clean out reprocess streams on shutdown as well.Eino-Ville Talvala2012-09-251-0/+1
| | | | | | | Otherwise, streams may persist past expected lifetime. Bug: 6243944 Change-Id: I901971b78baf9d577ea3812588dec3885232e7ef
* Camera2: Debug and logging fixes.Eino-Ville Talvala2012-09-2511-20/+81
| | | | | | | | | | - Fix LOG_TAGs to work with standard logcat filtering. - Add ATRACE to Camera2Device - Shorten thread names to fit in 16 characters - Remove some ATRACEs to avoid flooding trace unnecessarily Bug: 7220520 Change-Id: Ief8d677b5c8bb35d94e0f21b11b86505e83169ea
* audioflinger: improve record start and thread exitEric Laurent2012-09-251-2/+2
| | | | | | | | | | | | Use broadcast() instead of signal() on the thread wake up condition when starting record or requesting thread exit to make sure that if another thread is waiting for the same condition (e.g binder thread calling setParameters()) the mixer thread will be woken up. Bug 7184317. Change-Id: I3154a4509ca7af6ffae5236e522b0fab8e75ed06
* Merge "Camera2: Emit ShutterCallback/RawCallback events after takePicture" ↵Igor Murashkin2012-09-242-7/+34
|\ | | | | | | into jb-mr1-dev
| * Camera2: Emit ShutterCallback/RawCallback events after takePictureIgor Murashkin2012-09-242-7/+34
| | | | | | | | | | Bug: 7176692 Change-Id: I50e8f9511f1770d97a42d1fa208c04b1bbcfba6b
* | Merge "Camera2: Fix cropRegion sometimes exceeding the sensor array size" ↵Igor Murashkin2012-09-242-24/+117
|\ \ | | | | | | | | | into jb-mr1-dev
| * | Camera2: Fix cropRegion sometimes exceeding the sensor array sizeIgor Murashkin2012-09-242-24/+117
| |/ | | | | | | | | | | Bug: 7155264 Bug: 7120431 Change-Id: I92a9c695b97ec40acf26dbdaa877964e41a9fd4c
* | Merge "Check clock_gettime(CLOCK_MONOTONIC) for failure" into jb-mr1-devGlenn Kasten2012-09-241-0/+3
|\ \ | |/ |/|
| * Check clock_gettime(CLOCK_MONOTONIC) for failureGlenn Kasten2012-09-241-0/+3
| | | | | | | | | | Bug: 7100774 Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
* | Merge "fix end of track presentation on suspended output" into jb-mr1-devEric Laurent2012-09-241-2/+13
|\ \
| * | fix end of track presentation on suspended outputEric Laurent2012-09-231-2/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code detecting the end of an audio track presentation before removing it from the active track list is based on the count of audio frames sent to audio HAL. When an output stream is suspended (e.g. A2DP when SCO is active), this count does not change and a track in stopped state will never be removed from active track list causing the mixer thread to never release the wake lock. The fix consists in incrementing the audio HAL frame count even if the output is suspended. Also fix a problem in getRenderPosition() when the output is suspended. Bug 7167534. Change-Id: I3be836cbbea29b65dc087199cac6a1cd84c0a41d
* | Camera2: Truncate JPEG imagesAlex Ray2012-09-242-7/+172
|/ | | | | | | | Check for JPEG size hint from HAL, use if applicable. Otherwise read until end of JPEG image to find appropriate file size. Bug: 7108816 Change-Id: Idfd194133eb6c293ab08c9466f59606e62ba56b6
* Merge "Camera2: Don't use ZSL when flash is on force fire mode." into jb-mr1-devEino-Ville Talvala2012-09-211-1/+2
|\
| * Camera2: Don't use ZSL when flash is on force fire mode.Eino-Ville Talvala2012-09-211-1/+2
| | | | | | | | | | Bug: 7213907 Change-Id: I120b187c1886d85f4b2b5d3a6f28a28936424e8e
* | Merge "Camera2: Emit FaceDetection events for all except repeating 0-face ↵Igor Murashkin2012-09-212-5/+25
|\ \ | |/ |/| | | frames" into jb-mr1-dev
| * Camera2: Emit FaceDetection events for all except repeating 0-face framesIgor Murashkin2012-09-212-5/+25
| | | | | | | | | | Bug: 7205311 Change-Id: I570209445acf3a26f2246c3fe886d56bb63bd2f8
* | Merge "Camera2: Clean up startup/shutdown sequences." into jb-mr1-devEino-Ville Talvala2012-09-203-37/+85
|\ \
| * | Camera2: Clean up startup/shutdown sequences.Eino-Ville Talvala2012-09-203-37/+85
| |/ | | | | | | | | | | | | | | | | | | - Close camera device on startup errors - Make sure all threads are shut down and the device is closed before returning from ICamera::disconnect. Bug: 7172680 Change-Id: I98611448ec5f2311e6604fa8ee5f9dde7bfdd988
* | Camera2: Erase ZSL queue after each use.Eino-Ville Talvala2012-09-203-1/+32
|/ | | | | | | | | Since preview stops after a capture is submitted, need to clear out the ZSL queue to avoid using stale buffers when the preview starts up again. Bug: 7189765 Change-Id: I9ae2382d0af132208aca5ccba49b5464d18a263e
* Camera2: State must be STOPPED before JPEG callback is fired.Eino-Ville Talvala2012-09-203-31/+39
| | | | | | | | | Move handling of JPEG callback to CaptureSequencer instead of JpegProcessor, so that we can be sure the camera state is updated to STOPPED before the JPEG callback is sent to the application layer. Bug: 7172743 Change-Id: Ie8752d946d3eb8254230c77f10e5c38a83dc5371
* Camera2: ZSL captures should also make some noise.Eino-Ville Talvala2012-09-191-0/+5
| | | | Change-Id: If7aff7223db41b4b7edeeb4c32e40ef3197b180b
* Camera2: Increase max timeout for the precapture sequence.Eino-Ville Talvala2012-09-191-1/+1
| | | | | | | Increase maximum duration of the precapture sequence (final metering + preflash + redeye reduction) to 2 seconds before timing out. Change-Id: Ie1de4e96d46599eb53e1def9052b211e684f1fbc
* Merge "Camera2: Increase capture timeout." into jb-mr1-devEino-Ville Talvala2012-09-181-1/+1
|\
| * Camera2: Increase capture timeout.Eino-Ville Talvala2012-09-181-1/+1
| | | | | | | | | | | | | | Low-light modes may take longer to capture a picture, so increase the timeouts. Change-Id: Id50b1e4fd3186da4e75b2cc1c226ced2f8d394ac
* | Camera2: Enable ZSL by default.Eino-Ville Talvala2012-09-181-4/+4
| | | | | | | | | | Bug: 6910087 Change-Id: Ie774f28fbb943b2ac2c856872fd4cae68b40430c
* | Merge "Camera2: ZSL: Do regular capture if AE is not satisfied." into jb-mr1-devEino-Ville Talvala2012-09-184-12/+80
|\ \
| * | Camera2: ZSL: Do regular capture if AE is not satisfied.Eino-Ville Talvala2012-09-184-12/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Check the AE state of the selected ZSL buffer; if it's not reporting as CONVERGED or LOCKED, fall back to normal capture sequence - Add more debugging for the ZSL queue. Bug: 6910087 Change-Id: I77a4287580aa9ddbd58438477c40ce829555d0ca
* | | Camera2: Don't be bothered by lack of faces.Eino-Ville Talvala2012-09-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Sometimes, people might want to photograph scenes with no faces. And not have their log fill with errors when they do. Bug: 7078231 Change-Id: Ibe5c08d51b49a3ea14203416fe7803a58de08dda
* | | Camera2: Filter out faces with 0 confidence.Eino-Ville Talvala2012-09-171-1/+7
| | | | | | | | | | | | | | | Bug: 7078231 Change-Id: I559f1281359835e0489456091a5409ebc8f73479
* | | Camera2: Change face detect/scene mode priority.Eino-Ville Talvala2012-09-171-2/+5
|/ / | | | | | | | | | | | | | | Explicit scene modes should override the implicit face priority scene mode from enabling face detection, to match application/API expectations. Change-Id: I6f0f44fadeacfdc0594dd2fdc280e294d2d87df6
* | Camera2: Don't play shutter sound when doing a video snapshotEino-Ville Talvala2012-09-151-1/+2
|/ | | | | Bug: 7171820 Change-Id: I11ec0900aff3cdf4b57ae1bfc75f7acfecf95098
* Merge "Revert "Revert "Camera2: Use FORMAT_ZSL until transition to new ↵Eino-Ville Talvala2012-09-141-1/+1
|\ | | | | | | gralloc scheme.""" into jb-mr1-dev
| * Revert "Revert "Camera2: Use FORMAT_ZSL until transition to new gralloc ↵Eino-Ville Talvala2012-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | scheme."" The changes this commit depends on are now submitted. This reverts commit f54b1459cda7f585b4896671643b33bab8290964 Change-Id: If7f146ab7968d50fffd2174c2c5792bdc9d7724c
* | Merge "Revert "Camera2: Use FORMAT_ZSL until transition to new gralloc ↵Eino-Ville Talvala2012-09-141-1/+1
|\ \ | |/ | | | | scheme."" into jb-mr1-dev
| * Revert "Camera2: Use FORMAT_ZSL until transition to new gralloc scheme."Igor Murashkin2012-09-141-1/+1
| | | | | | | | | | | | This reverts commit 8a3016613dc684a6be11fdf643f9cc5cad817e8f Change-Id: I3f1d4e9c13df838b8b6aa5696a6494140eac3e04
* | Merge "Camera2: Use FORMAT_ZSL until transition to new gralloc scheme." into ↵Igor Murashkin2012-09-141-1/+1
|\ \ | |/ | | | | jb-mr1-dev
| * Camera2: Use FORMAT_ZSL until transition to new gralloc scheme.Eino-Ville Talvala2012-09-131-1/+1
| | | | | | | | | | | | | | | | Until all HAL implementations move to the new format negotiation scheme, use CAMERA2_HAL_PIXEL_FORMAT_ZSL to indicate ZSL mode. Bug: 6243944 Change-Id: Idf5d9f42e203903ba906d5df156100646b27404c
* | audioflinger: send priority request from a threadEric Laurent2012-09-132-36/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating a fast AudioTrack, a request is sent to SchedulingPolicyService to elevate the requesting thread priority. This generates a binder call into system_server process and to a JAVA service via JNI. If the thread from which the track was created is in the system_server process and does not have the "can call java" attribute, a crash occurs because the binder optimization reuses the same thread to process the returning binder call and no JNI env is present. The fix consists in sending the priority change request from the AudioFlinger mixer thread, not from the binder thread. This also reverts the workaround in commit 73431968 Bug 7126707. Change-Id: I3347adf71ffbb56ed8436506d4357eab693078a3
* | Handle audio HAL returning 0 bytes in record threadJean-Michel Trivi2012-09-131-4/+4
|/ | | | | | | Enter standby when HAL returns an error, but also consider 0 bytes returned as NOT_ENOUGH_DATA. Change-Id: Ica83142310e9c176f936e0440571a6034cbc575f
* Merge "Don't deadlock on AudioRecord start when reads return 0" into jb-mr1-devEric Laurent2012-09-131-8/+14
|\