• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/android/hardware/camera2/utils/
History log of /frameworks/base/core/java/android/hardware/camera2/utils/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
inderHolder.aidl
inderHolder.java
ameraBinderDecorator.java
ameraRuntimeException.java
ameraServiceBinderDecorator.java
ecorator.java
ongParcelable.aidl
ubmitInfo.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
ameraBinderDecorator.java
639fffee624302ec5b175503d7bd8a441340a629 30-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Reorganize high-speed recording API slightly

- Split off distinct high speed capture session class from base capture session
- Move createHighSpeedRequestList to CameraConstrainedHighSpeedCaptureSession

Bug: 21664295
Change-Id: I67d705fdeee1eaa6e5e3e1416771d5d0df642843
urfaceUtils.java
e365120aaead97567bdfbc53d3bfc2699bd2f886 20-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix StreamConfigurationMap#isOutputSupportedFor for depth

Need to check the right configuration list if the format is a
depth format.

Also refactor code slightly to use SurfaceUtils when possible.

Bug: 21902551
Change-Id: Icca2e81d8144bede46ad9f117d5e010ed409887c
urfaceUtils.java
0819c75680c81a4e9c8a1ec518ac62cceccf3f56 17-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove HIGH_RESOLUTION level and modify FULL requirements

- Reword requirements for FULL level
- Remove HIGH_RESOLUTION level
- Add StreamConfigurationMap#getHighResolutionOutputSizes
- Clean up StreamConfigurationMap implementation
- Add 5-argument HashCodeHelper

Bug: 20945581
Change-Id: I75ad4b23e902192c96ed501e10c7d55fc0ad72a6
ashCodeHelpers.java
d3e39d16cb4b177e2fa99e7d4e0bb0e6721fe7fc 17-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Do not throw unexpected runtime exception to app

Use a generic CameraAccessException DEVICE_ERROR exception instead

Bug: 21869917
Change-Id: I73581b817cbdcbb4b876c234f050f725a459a29b
ameraBinderDecorator.java
47ac34997b34002a81cfaac3fdf429fdf329220c 10-Jun-2015 Zhijun He <zhijunhe@google.com> Camera2: fix high speed output surface format check

Preview surface default format is not ImageFormat.PRIVATE, the check need to
take this into consideration.

Change-Id: Ib99e64f7781dd15cc5634c66b2d5e5ab2a2d7d6c
urfaceUtils.java
39d1461cf1e1e2b7fdddb206c9ff1f3aff3ad57b 05-Jun-2015 Zhijun He <zhijunhe@google.com> Camera2: fix doc build

Bug: 21645842
Change-Id: Ibd4ce455d9906da858b98f17fd7859016c1730c3
urfaceUtils.java
a7677722304670dc07feef242156b97e6bb51bcd 02-Jun-2015 Zhijun He <zhijunhe@google.com> Camera2: implement high speed video APIs

Bug: 21442271
Change-Id: Ia0ae5bbd3e8c81bad293c29987301a2457817d12
urfaceUtils.java
a78791f22af6c6985d186494737468bb19b69540 01-Jun-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove isLoggable

Change-Id: I83b2c8321ab6b48cf68ef7a4d724559ead1a1790
rrayUtils.java
askDrainer.java
ccf6e88eec6081f83b21e97d930205fa5419583e 28-Jan-2015 Eino-Ville Talvala <etalvala@google.com> Camera2 legacy: Do not advertise NV21 support.

Also reduce logging somewhat for common scenarios.

Bug: 19161738
Change-Id: If96ed7d2bac0229159564072d7969d7bea3fae27
rrayUtils.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
rrayUtils.java
9503785393ba8999473b7a924ede2baf520e367c 14-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Clean up corner case error handling

- If a session is closed, and a new session is created immediately
afterwards, but then fails to be configured, the first session sees an
onUnconfigured call which it wasn't expecting, and throws an
exception on an internal thread, leading to app death.
Add a guard against this case.

- If the lower levels skip a frame (illegal per design), be slightly more
robust to that by accepting any successful result as the latest completed
frame, instead of just incrementing the completed frame count. This will
lead to missing results, but should allow shutdown, etc, to complete
cleanly.

- Convert TIMED_OUT error codes to CAMERA_ERROR CameraAccessExceptions.
This is a common error code returned by waitUntilIdle.

Also, improve debug logging to log a session ID with verbose logging,
and add a few verbose logs.

Bug: 16899526
Change-Id: I7a31f0a12effc2611e1f9c2408224ee82c37c912
ameraBinderDecorator.java
6a7d8c42890451e01ca7b4baba03d430808265bc 30-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Implement request templates for LEGACY.

Bug: 15116722
Change-Id: Ic32e2f597997489642e98bfd8c7582a300f6f29b
rrayUtils.java
3fe9eba9044c0b20ed349a4b9094bf1fa7942cdf 24-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add scene and effect mode for LEGACY.

Bug: 15116722

Change-Id: I0797fccb5fdd8b959622c100f25b2950cfe4e115
rrayUtils.java
83d8639e901a24e59c9886dd6910faf3ba7adae1 18-Jul-2014 Igor Murashkin <iam@google.com> camera2: legacy: Add focus support

* Characteristics will list control.availableAfModes
* Request/result for control.afMode and control.afState

(Does not yet support control.afRegions)

Change-Id: I828111425fa587114d5159f7fb2b1e53a2c74e61
rrayUtils.java
aramsUtils.java
bd9b106806f9792be210cc2d9848d8b1f4b9664d 22-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: CameraManager refurbishing and error management

- Invoke availability listeners when first added
- Handle camera service crashes
- Listen to service death
- Attempt to rebind on every call if service died
- If service is still dead, act as if no cameras are connected
- Fix bug in DeviceImpl that prevented proper handling of errors on open
- For clarity, don't UncheckedThrow for exceptions that are already unchecked

Bug: 16514157
Bug: 16483815
Bug: 16483222
Bug: 16561237

Change-Id: I3d54de1204f5a863882cf675fcee6280d53c4039
ameraBinderDecorator.java
ameraServiceBinderDecorator.java
8f8141e24f4d890b4281b8c558ecc60efe5831c4 19-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: add highSpeedVideoConfig wrapper and APIs" into lmp-dev
12da140082323d9aa048b3e928505a0a2adfdda7 15-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: add highSpeedVideoConfig wrapper and APIs

- Add wrapper class for highSpeedVideoConfiguration.
- Add APIs to query high speed video recording configurations in
StreamConfigurationMap
- Fix ColorSpaceTransform unit test in CameraMetadataTest
- Fix a bug in HashCodeHelper

Change-Id: I192e57f6ab5dfbba6d958571352f067a9eaec7b2
ashCodeHelpers.java
d1f113d0f0ce5099f8efba40a88398f7945bb5e0 11-Jul-2014 Ruben Brunk <rubenbrunk@google.com> DO NOT MERGE: camera2: Performance potpourri.

Bug: 16208403
Bug: 15116722

Fixes many of the performance issues in the Camera2 API and
LEGACY mode CPU path, including:
- Only call getParameters/setParameters when the request has changed.
- Cache Request/Result objects.
- Cache object hashes for long-lived CameraMetadata, TypeReference,
and Key objects with frequently used hash methods.
- Switch to Command pattern instead of repeated if/equals calls.
in frequently hit CameraMetadata get/set methods.
- Move string construction for logging behind flags to avoid extra
StringBuilder calls in frequently acquired lock methods.
- Cache results from frequently used JNI calls in object Builders.

Change-Id: I77bc4a023d4fe8bc46efcf771ff18ee268dcb9a9
loseableLock.java
ypeReference.java
3e280b4bb23be4e5e66ea6381fd63c74fdbd927e 10-Jul-2014 Igor Murashkin <iam@google.com> camera2: (Legacy) Implement ae compensation step ranges and ae/awb locks

Characteristics:
* control.aeCompensationRange
* control.aeCompensationStep

Request/Result:
* control.aeExposureCompensation
* control.aeLock
* control.awbLock

Change-Id: I911616c9cf3e0e9a03a0cb383bcf232cab8ca772
aramsUtils.java
7ee78d1ee3ee068897b9313af2ed6446675c1be0 09-Jul-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Implement AF/AE regions for request and result

* Also stop lying about max AE regions (now reports the truth)

Change-Id: I567a1e6c58ed0bfb77cc09787393ea18eba5d613
aramsUtils.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
rrayUtils.java
istUtils.java
aramsUtils.java
izeAreaComparator.java
49b2b135105e5ca5dc9547f4c6de473bebad647d 19-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix deadlocks in shim #close and make #testInvalidCapture pass

* Also fixes configureOutputs to allow it to unconfigure
* Adds IAE checks in a few spots to validate surfaces aren't null

Bug: 15116722
Change-Id: I9ec88bccb3600eb12747d84436ead27952e87646
loseableLock.java
4961bc88d7bab869a5296789d26fcfa31ad5f644 17-Jun-2014 Igor Murashkin <iam@google.com> camera2: Map camera characteristics in the managed layer

Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401
ameraBinderDecorator.java
e1442204c1a2e8c6697d0640df06dc6314ed7113 10-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix session-related CTS test failures

Bug: 15474402
Change-Id: I4ae86166b5ce99a854c754c8ac6d6c23c683b14a
askDrainer.java
0b27d3453d5e257594792e9177c5fedb1bc6f9e9 30-May-2014 Igor Murashkin <iam@google.com> camera2: Implement most of CameraCaptureSession

Bug: 14964443
Change-Id: I8203842c77a94a3a6e5f89494fce658b00a4160d
askDrainer.java
askSingleDrainer.java
ncheckedThrow.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
ameraBinderDecorator.java
9c595174ccaaf3d36315c4a100e47ee4369073f6 12-May-2014 Igor Murashkin <iam@google.com> camera2: Use StreamConfigurationMap for format/size/duration lookup

* Also @hide/@deprecate a bunch of other keys
* Move some classes into android.hardware.camera2.params

Bug: 14628001
Change-Id: I2db490a0849680a133a901403477a147b004fb28
ongParcelable.aidl
ongParcelable.java
3c40a046cf0ea7b6af01ec93e5276eccb3234bfe 23-Apr-2014 Igor Murashkin <iam@google.com> camera2: Update native<->managed camera metadata marshalers

* Improve existing marshalers:
- each managed/native type combination can be queried marshal support
- marshalers can recursively call other marshalers for nested types
- support marshaling/unmarshaling generic classes by using super type tokens

* Add new marshalers for:
- ColorSpaceTransform
- MeteringRectangle
- Parcelable
- Range<T>
- ReprocessFormatsMap
- RggbChannelVector
- SizeF
- StreamConfiguration
- StreamConfigurationDuration

Batteries included; so are unit tests.

Bug: 14628001
Change-Id: I38d3e646ccfb3953898cd6f750c33e4097328482
ashCodeHelpers.java
ypeReference.java
85c4388de1fea3d45783f07895c2b113c4cc1ba5 22-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Pass vendor tags through binder.

Bug: 12134423

Change-Id: Icef3fe9e67160767bdb8244ac49c85b68b497123
ameraBinderDecorator.java
9bd5f1e6dff31e2299c065157ba3a43bc79a9d48 23-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: replace EDQUOT with EUSERS

Bug: 10838065
Change-Id: Ib450fcfffecec210c7f11842bf024abd7889bad7
ameraBinderDecorator.java
68ebc1a7b4c18d587612891250f17f36edfe1bc1 15-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: Add MAX_CAMERAS_IN_USE error case handling

Throw CAE with reason MAX_CAMERAS_IN when the error code is EDQUOT.

Bug: 10749544
Change-Id: I6820de8b95662a55bb37f099746ea2cbe5056f24
ameraBinderDecorator.java
6462be7fa0234ca1a285f4f40089f9be1fed8316 04-Sep-2013 Ruben Brunk <rubenbrunk@google.com> Fix CameraService error flag when running HAL1 with API2.

Bug: 10620944
Change-Id: I72517a25bfe0e891ed150c568c37e04a9d6cc38c
ameraBinderDecorator.java
66ef64514464a1bb9c7931993cc8db3d7539f39a 08-Aug-2013 Ruben Brunk <rubenbrunk@google.com> Refactor CameraService to handle errors properly.

Bug: 10361136

- Connect calls now return status_t error flags.

Change-Id: Ibce9ab047348cfcade7e70a2ef03f5a833e13af8
inderHolder.aidl
inderHolder.java
ameraBinderDecorator.java
2f1a2e423e0fbb64467d6fcfa4e82c6384f31210 26-Jul-2013 Eino-Ville Talvala <etalvala@google.com> Camera2 API: Rename package to android.hardware.camera2

Change-Id: I77b7939e199f9fe8e12a59393c24cff08097448c
ameraBinderDecorator.java
ameraRuntimeException.java
ecorator.java
ncheckedThrow.java
ackage.html