History log of /frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0e04e910a6b0d8a7464df9721535dfba21527c37 01-Mar-2017 Eino-Ville Talvala <etalvala@google.com> CameraDevice: Add hidden createCustomCaptureSession

This exposes a direct route to selecting the operating mode, instead
of only allowing normal and high-speed modes.

Test: Compiles
Bug: 34853980
Change-Id: Ib4f833399834c9bacb9de666560e909109aa5af9
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
4bd7abe72a647ceb2175a4fe66aa640815c116f8 11-Jan-2017 Shuzhen Wang <shuzhenwang@google.com> Camera2: Combine API for deferred surface and shared surface

- Unhide API to enable sharing surfaces via OutputConfiguration.
- Combine the APIs for deferred surface and shared surfaces so that
same functions can be used for both use cases.
1. setDeferredSurface becomes addSurface.
2. finishDeferredConfiguration becomes finalizeOutputConfiguration.
- Better documentation on shared surface use cases.

Test: Camera CTS, and preview/video/capture with GCA
Bug: 33777818
Change-Id: I528b221492e07888a2da96658aaf8e7b9c4d1640
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
88f1af241045d446358c692e183e5ecb152bad91 30-Sep-2016 Shuzhen Wang <shuzhenwang@google.com> Camera2: Add onCaptureQueueEmpty callback

onCaptureQueueEmpty indicates that the non-repeating
capture request queue of camera device is empty, and
is ready to process a new request.

Test: testMultipleCapture in PerformanceTest.java

Bug: 29006447
Change-Id: If245ff6abf352548ca13a10fcfbd1550b92c1224
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
c8b181e95d17c00f9fe4a8338c4cdd0eeac3a0dc 30-May-2016 Zhijun He <zhijunhe@google.com> Camera2: add deferred output config support

Allow surfaces to be deferred during session creation. Once the surfaces are ready,
the application can finish the deferred output configuration to be able to submit
requests with these surface targets.

Bug: 28323863
Change-Id: Id6634c3ef2ecc84422a88f63de0a19a0cb496e96
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
2da496f1ce63548486fe28e074f6af90c970db8c 14-Apr-2016 Chien-Yu Chen <cychen@google.com> Camera2: Stop repeating request for abandoned output

Stop repeating request if any of its output stream is abandoned
and notify that repeating request has been stopped.

Update binder tests for binder interface changes.

Update CameraDeviceImpl to expect an exception when canceling
a repeating request that is already stopped.

Bug: 21270879
Change-Id: I9fa72ae7218948aac88cb1a8e57839bd022c4a5e
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
385f9e2146d2600ae9fd20053aab8ee5abcac9a6 01-Apr-2016 Eino-Ville Talvala <etalvala@google.com> Camera: Add proper buffer drop errors to LEGACY mode

The correct stream ID is required to be sent along with buffer drop
errors, and LEGACY mode was putting in a placeholder. This would
cause an error in the client-side implementation, triggered by
abortBuffers (Which is the only source of buffer drops from LEGACY).

Bug: 27828602
Change-Id: If3fba7a76f7aa0ff305efa4cce6c225eb720b30e
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
5d2d7788f1759b0f3d2c057af0b3ea61b0354fee 18-Dec-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Switch to auto-gen C++ binder interfaces

- Move camera AIDL files to frameworks/av
- Update makefiles to point to new AIDL locations
- Adjust camera2 implementation to match modifications to AIDL needed
for native AIDL auto-generation
- Move Surface.aidl to frameworks/native to allow use in
native AIDL. Use android::view::Surface in Surface JNI to
serialize Surface objects to ensure parceling compatibility.
- Adjust service binder tests to new interface

Bug: 25091611
Change-Id: I85b817374b34a4540fa145328dbe4bbf7f746baf
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
8ea56f68517ffa42bd5f43ab67f4ebfcfcb0cd23 07-Jul-2015 Lazar Trsic <Lazar.Trsic@imgtec.com> Replace hard-coded errno values with OsConstants

Errno values have been hard-coded inside java code. On the native side
however, bionic's errno.h is used (through utils/Errors.h). Some of
the numbers are architecture dependent (EOPNOTSUPP, ETIMEDOUT...).

This causes Camera app to crash on MIPS devices. There is a check for
expected errors, in CameraBinderDecorator.throwOnError, but the error
(EOPNOTSUPP) is not recognized and an exception is thrown.

Change-Id: I8bcac8f1ced50c76614f566a6e624967a18a25e1
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
7ed1aaa369b6a459c776a9a6e96c33014b30f278 14-Aug-2015 Ruben Brunk <rubenbrunk@google.com> Add experimental camera session prepare API.

Bug: 18949148
Change-Id: I35fde35436ae5bebab3c912243e621285307c211
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
14c09fa3c5371b977c77e5813eabb81941040627 16-Jul-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Add hidden experimental tearDown method

Bug: 18949148
Change-Id: I6264d95a26ebf51cce6114c9a86b9561f7c60ab5
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
76233f068bde3c19d1d0986efee4fb21df973ed5 06-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Legacy: Do not remap EACCES error code to PERMISSION_DENIED" into mnc-dev
db70a9785315a29c1d0d1233d883062b8d07c46f 04-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Legacy: Do not remap EACCES error code to PERMISSION_DENIED

This remap causes non-Legacy and Legacy devices to have different
error behavior when the camera permission is removed from a pre-M
application.

Without the remap, both routes map to CameraAccessException with
code CAMERA_DISABLED.

Bug: 21604925
Change-Id: I4ab18dca961cc7cedaccba0531253c9c4ef1d60e
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
a7677722304670dc07feef242156b97e6bb51bcd 02-Jun-2015 Zhijun He <zhijunhe@google.com> Camera2: implement high speed video APIs

Bug: 21442271
Change-Id: Ia0ae5bbd3e8c81bad293c29987301a2457817d12
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
a78791f22af6c6985d186494737468bb19b69540 01-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove isLoggable

Change-Id: I83b2c8321ab6b48cf68ef7a4d724559ead1a1790
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
be6d98526988f914365a2999b8d3ca11e24e5aeb 29-Apr-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: LEGACY: Support prepare(), sort of.

It doesn't actually do any work, but pretends to.

Bug: 20537146
Change-Id: I48c08936b96ba1a0623cff19eb5c521d1dd50129
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
ad916f7fd3fbb202f2993fea04b0bdad3dcd6de6 11-Apr-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Add prepare method for output buffer pre-allocation

Normally, buffers for camera output Surfaces are allocated as
needed. This minimizes memory overhead and time to first frame.

However, if allocation takes a long time, as it can do for full-resolution
output buffers, full frame rate may not be maintainable with the added
allocation overhead.

The prepare() method allows an application to indicate that buffers for
a given output Surface should be preallocated by the camera device.
Once the allocation is complete, the onSurfacePrepared callback is invoked.
The application may then use the prepared Surface without concerns about
allocation-caused delays.

Change-Id: I4f616dc87dd4346f408cf1ea37d48a642ceb57da
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
5398a676809faaf3c6c2875edc1907ad6b8e1c89 19-Mar-2015 Chien-Yu Chen <cychen@google.com> camera2: add reprocess support

Add reprocess API and implementation to support creating reprocess
capture sessions, reprocess requests, and receiving reprocess capture
results.

Change-Id: I4c1c02f41d1712f65e729ea3ba09592a27ffe86d
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
bfbbee756663aeeb38706bb1bd4841dcd050f91b 12-Mar-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: update createStream API to add new rotation field

Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
864005b02625fb9a82336b736bf1ca81b1fa77f2 24-Feb-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove unused parameters in ICameraDeviceUser#createStream

- width, height, format are unused

Change-Id: I26540aab1118108b0325df69cfa2dd23da41849b
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
eecc904f13e7a105f5548c953e4caa306fe06f0d 24-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2 legacy: Improve robustness to camera service crashes

When the camera service dies, the getParameters call is often the first
to fail, and on legacy mode, this frequently happens in a background thread.
Catch the runtime exceptions and convert to device errors, instead of killing
the process.

Bug: 17587496

Change-Id: I6757961e7c0387defd368a13cb7c343950602400
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
3084c2f5191e560c10a0011f2f77e6d0e3396f92 23-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update EACCES to throw correct exception in LEGACY.

Bug: 17595068
Change-Id: I1a88568822237d3609c3342a21e2ca81ca935408
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
e663cb77281c4c76241b820f6126543f1c2d859f 16-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: refactor LEGACY mode error handling.

Bug: 17431462
Bug: 17407537

- Add Surface format/size validation during configure.
- Update exception error codes used in binder calls.
- Report dropped requests, frames, captures, and device
errors in binder callback properly.
- Fixes CameraDeviceTest errors for incorrect metering
rectangle weight in template tests.
- Fixes CameraDeviceTest errors for missing
noiseReductionMode field in template tests.
- Implement flush call.

Change-Id: I0da803bccf2bfb9b4c0cf61208e160a86c577497
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
acc0095bc84914d3ce41ad8298f698c37935b8a8 06-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Correct error handling

- Report capture failures from service to application
- Only go to error state for device-level errors
- Adjust binder interface method names to match the service side names
- Reduce failed session creation logging
- Don't fire CaptureSession.onActive for CameraDevice.onBusy
- Check with session to determine capture failure reason

Bug: 17160301
Bug: 15524101
Bug: 14448494
Bug: 11272459

Change-Id: I9dd606004fd7845910dc865738fbe17f1640f07d
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
6653362f6b5c5854bd88244bcecad72d11bf9404 19-Aug-2014 Igor Murashkin <iam@google.com> camera2: legacy: disable shutter sounds unconditionally via camera2 api

Bug: 17109582
Change-Id: Ieb3fc61ff111d792cc657c018e278349c25472cf
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
2f75e7d7ef2ef29ac4b1287dc44cf62cfbaf50b3 15-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix callback operation

- Remove CloseableLock use; looks to be incompatible with invocations during callbacks
- Replace with basic interface lock to be thread-safe
- Add intermediate callback thread to legacy mode to match cross-process one-way Binder
semantics

Change-Id: Iecd4ff6cf260c5a13bd11b850177ccea93e25933
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
df6242e374b81e802a38cb891477f05d3e4b3cbc 02-Jul-2014 Igor Murashkin <iam@google.com> camera2: Add crop region support and some other AE tags to legacy

Change-Id: If7a87b210a57ea13d6329bb363b1c7ecdadc52e8
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
a296fece2b974a11bc624fd67b275863f17df867 23-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix cts test StillCaptureTest#testTakePicture

* Introduce 'fake' metadata for 3A+flash (hardcoded to support nothing)
(will be removed in a later release)

* Open the camera1 device in its own thread, so that the looper it
captures is also our own (and not the main looper)

* Set the picture size based on the size of the JPEG surface outputs

Change-Id: Iaeb5031c6b352115b73d2261a39d65347d75fdc8
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
60679f6b7d45c45be5bd0a44026711890f6ff291 20-Jun-2014 Igor Murashkin <iam@google.com> Merge "camera: Get detailed error reporting from api1 Camera if open fails"
a1d662716b3da384dfe3a758f079e0cbd089784a 20-Jun-2014 Igor Murashkin <iam@google.com> camera: Get detailed error reporting from api1 Camera if open fails

* Also maps camera2 open errors the same for shim/nonshim paths

Change-Id: I08d9d1e30e72025c41bd54b702d7ae95b32257be
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
5776aafc7e70c0b79c4bee2bc50f44121b37c962 19-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add AE antibanding + fps range metadata.

Bug: 15116722
Change-Id: I627748e162f26c42f6bbcfc21ee4b1081e1f25ad
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
3e4fed203fe7c945c53c6d6bb9f160932a1d15b3 19-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add shim frame duration and stall characteristics.

Bug: 15116722
Change-Id: Ief8b05d46fa12f63cf6a5d41e312c94d5a033553
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java
feb50af361e4305a25758966b6b5df2738c00259 10-May-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add HAL1 compatibility shim skeleton.

This adds basic support for running the Camera2 API on a device running
a camera HAL version lower than CAMERA_MODULE_API_VERSION_2_0.

This CL includes support for:
- N-way preview output streams
- N-way jpeg output streams
- CameraDevice emulation at the binder interface
- Basic camera metadata querying in the CameraManager

Bug: 15117269
Bug: 15116722

Change-Id: I8322955034c91f34bb348d4b28c2b774dbef38f6
/frameworks/base/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java