Commit Graph

1469 Commits

Author SHA1 Message Date
Svetoslav
fbf0ecabac Add camera app op - framework
Change-Id: I17736a8abe2c6775e990b88fb3eab963f47167d0
2015-05-02 16:23:19 -07:00
Svet Ganov
574f53793d Merge "Add body sensors app op - framework base" into mnc-dev 2015-05-01 23:09:52 +00:00
Svet Ganov
b9d71a6f89 Add body sensors app op - framework base
Change-Id: Idd5cd573fab3405e5b2a6e51d2d9d115650826e9
2015-05-01 13:56:04 -07:00
Ruben Brunk
0f2be13dc6 camera: Update Camera2 API for arbitration.
- Update documentation for new arbitration behavior.
- Ensure an appropriate error is thrown when calling
  open while an existing, higher-priority user holds
  the camera device.

Bug: 19186859
Change-Id: I486193c14b7fd5dc6ce30c1b7471669c009d64b3
2015-05-01 18:28:13 +00:00
Alex Klyubin
24e9e966a8 Fix thread affinity of FingerprintManager.
FingerprintManager internally creates a Handler which needs to be
bound to a Looper thread. Prior to this CL the Handler was bound to
the Looper of the current thread. This caused issues:
* Different instances of FingerprintManager could be bound to
  different Looper threads.
* Callbacks from FingerprintManager were invoked on arbitrary
  threads (or not at all if the Looper was there but wasn't running).
* FingerprintManager couldn't be obtained by apps on most non-main
  threads leading to java.lang.RuntimeException: Can't create handler
  inside thread that has not called Looper.prepare().

This CL fixes the issue by binding the FingerprintManager's Handler to
the Looper running on the main thread.

Bug: 20725228
Change-Id: I4a0382d6e11df9f23b8db9f0deec77369af31b5e
2015-04-30 13:34:58 -07:00
Eino-Ville Talvala
6faa3acaad Merge "Camera2: LEGACY: Support prepare(), sort of." into mnc-dev 2015-04-30 18:10:31 +00:00
Svetoslav
3327f3d688 Merge "Add use fingerprint app op - framework" into mnc-dev 2015-04-30 18:05:18 +00:00
Jim Miller
b62dc82b0c Add javax.crypto.Mac as a supported CryptoObject to Fingerprint
Fixes bug 20660180

Change-Id: I421c246ef776847835ede4be1d72721c35cf951c
(cherry picked from commit 0ecd5c20d9)
2015-04-30 01:53:11 +00:00
Svetoslav
4af76a51d5 Add use fingerprint app op - framework
Change-Id: Ibbd1c70e1fc771b804a8b0099d29d4fbd8360966
2015-04-29 15:43:38 -07:00
Mike Lockwood
c9bb40ea95 UsbDevice: Add support for retrieving version string for a USB device
Change-Id: Ia8630f5ffd05f90347b971110a81f4927060cc4b
2015-04-29 13:05:55 -07:00
Eino-Ville Talvala
be6d985269 Camera2: LEGACY: Support prepare(), sort of.
It doesn't actually do any work, but pretends to.

Bug: 20537146
Change-Id: I48c08936b96ba1a0623cff19eb5c521d1dd50129
2015-04-29 12:55:16 -07:00
Jeff Brown
b957a742b2 Merge changes from topic 'brightness' into mnc-dev
* changes:
  Add code to collect data about auto-brightness adjustments.
  Add float support to binary event log.
2015-04-29 01:18:05 +00:00
Jeff Brown
a576b4d3be Add code to collect data about auto-brightness adjustments.
Write samples of the old and new state to the binary event log whenever
the user modifies the auto-brightness adjustment.  We wait a few seconds
before logging to ensure that the user is satisfied with the adjustment.

Bug: 19786916
Change-Id: I41402decd1034d0839aa0f47495bc00907ab9c08
2015-04-28 17:53:35 -07:00
Eino-Ville Talvala
b6eb52ffc5 Camera2: Fix auto-gen documentation crossreferences.
Also update a few outdated notes.

Bug: 20085848
Change-Id: I1aace2152ee937c6c6a4701af999722fdc2e3da7
2015-04-28 12:38:10 -07:00
Yin-Chia Yeh
5af4cc3922 Merge "Camera: document supported templates" into mnc-dev 2015-04-28 17:55:14 +00:00
Yin-Chia Yeh
0cd24f2c56 Camera: document supported templates
Bug: 20264663
Change-Id: I6fee34a337bccb61aa563903032f9e2c13bf65e0
2015-04-28 10:54:31 -07:00
Zhijun He
513f7c33ea Camera2: add max capture stall for reprocess
Bug: 19988710
Change-Id: I05bf3f72fdd54127d9aaa1583e9b0903be94c310
2015-04-28 17:41:19 +00:00
Aravind Akella
398e11837b Merge "Add hidden SensorManager APIs for injecting sensor data." 2015-04-25 01:40:26 +00:00
Ruben Brunk
998ee16570 Merge "camera: Start/stop preview before clearing surface." 2015-04-25 00:48:26 +00:00
Ruben Brunk
6faf98e235 camera: Start/stop preview before clearing surface.
- Works around HAL issues where preview must be
  explicitely stopped after takePicture call before
  the surface can be reset.

Bug: 20553124
Change-Id: I403d8c09dfee0cd192d4831376f9f8ed3d6ba444
2015-04-24 12:11:30 -07:00
Chien-Yu Chen
e79449aed0 Merge "camera2: validate reprocess request's session" 2015-04-24 17:14:50 +00:00
Aravind Akella
18ebf732b8 Add hidden SensorManager APIs for injecting sensor data.
Change-Id: If49467ced1a719c49bb5ac7ab670e86ff4642eaa
2015-04-23 17:30:04 -07:00
Chien-Yu Chen
7a316f6b1b camera2: validate reprocess request's session
Add a session ID to CaptureResult to indicate the session where
the result comes from. When creating a reprocess capture request
with a capture result, the session ID will be carried over to
the reprocess capture request. Reprocess capture request's session
ID will be used to validate that it matches the session ID when
submitting the reprocess capture request to a session.

Bug: 20263212
Change-Id: I024c1a28ecf0a43909a0ed3814a11360c318417f
2015-04-23 15:21:07 -07:00
Andres Morales
4d41a203a0 Expose getAuthenticatorId API
Change-Id: I112c45d596c66e3f6ebd94fecffcb6bb7c3a335a
2015-04-22 16:55:10 +00:00
Jim Miller
93ea09a376 Merge "Make fingerprint enroll/authenticate haptic feedback part of framework." 2015-04-21 17:45:52 +00:00
Jim Miller
af281ca0d3 Make fingerprint enroll/authenticate haptic feedback part of framework.
Change-Id: Icc2e9ec4b30a6f3a21e3bbe8476efc56361d6944
2015-04-20 19:04:21 -07:00
Jeff Brown
f9978f863f Merge "Fix leaks due to GC circular references." 2015-04-17 22:27:03 +00:00
Jeff Brown
3b4049e79b Fix leaks due to GC circular references.
The DisplayEventReceiver and SensorManager event queue both get
leaked when the Looper thread they are attached to dies because
the Java object holds a strong reference to its native peer and
meanwhile the native peer holds a strong reference to the Java
object through JNI.

Fixed the issue by indirecting through a weak reference as was
done for InputEventReceiver some time ago.

Bug: 12455729
Change-Id: I3d80a2a190192d1a2981bf5ae0cad30f0f7688a5
2015-04-17 15:24:31 -07:00
Eino-Ville Talvala
0b7b03b35f Camera2: Add DEPTH_OUTPUT capability and DEPTH_DEPTH_IS_EXCLUSIVE field.
- Define DEPTH_OUTPUT capability and its requirements.
- Add DEPTH_IS_EXCLUSIVE to support devices that cannot produce color and depth
  for the same capture.

Change-Id: I6e511b7b8625907d9fc751fe8a73a443edeeb2ab
2015-04-17 10:52:42 -07:00
Eino-Ville Talvala
86ea32a68c Camera: Add HIGH_RESOLUTION hardware level.
For camera devices that support very high resolutions, add
a level that allows for those resolutions to operate at lower
capture rates, while ensuring that a reasonable resolution is
still available for high-rate capture.

Change-Id: I4a0d904504ac8a976bd02fba89b238048d55a268
2015-04-17 10:52:41 -07:00
Andres Morales
4062c69d9a Merge "Make CryptoObject constructor public" 2015-04-16 01:08:44 +00:00
Jorim Jaggi
9e682ee383 Make CryptoObject constructor public
Change-Id: I9bfedd5113af7b4717194d99c7c9898753ea2ebd
2015-04-15 17:32:42 -07:00
Jorim Jaggi
053dee7928 Merge "More fingerprint API's for 3rd party apps" 2015-04-15 22:56:09 +00:00
Jorim Jaggi
2aad7ee245 More fingerprint API's for 3rd party apps
- Make isHardwareAvailable public
- Add hasEnrolledFingerprints so apps can check whether to show
fingerprint UI or not.

Change-Id: Iaefd5e9e68bf3bee8305574dc1477ea9bc72b30a
2015-04-15 14:55:43 -07:00
Ruben Brunk
93f593fdef Merge "camera: Add eviction errorcode to Camera1 API." 2015-04-15 19:16:39 +00:00
Ruben Brunk
e91b92546e camera: Add eviction errorcode to Camera1 API.
Bug: 19186859
Change-Id: Ie46150d130e769feb62935ebee8e32e96c0821fd
2015-04-15 12:13:26 -07:00
Eino-Ville Talvala
e9e5a162c0 Merge "Camera2: Add prepare method for output buffer pre-allocation" 2015-04-15 17:56:39 +00:00
Jim Miller
fe6439f02d Several fixes to Fingerprint code after large merge
- route fingerprint enrollment auth token
- replace "processed" event with "authenticated"
- fix type-o in strings.xml

Change-Id: If06b4438c94fd7fca07a8b7b1b5fa16dd94b3831
2015-04-14 20:47:55 -07:00
Eino-Ville Talvala
ad916f7fd3 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
2015-04-14 16:36:50 -07:00
David Christie
b808440014 Ensure GeofenceHardware will return capabilities for old implementations.
New FLP HAL implementations will explicitly return their capabilities,
but old versions won't (the implicit capability in old versions was
GNNS).  Ensure that the getCapabilities feature of GeofenceHardware
will return GNNS for old binaries, so GmsCore doesn't have to worry
about versioning.

Change-Id: I4b1c942b0d68d87bfbb18b8c06fd9d8b8f68efa6
2015-04-14 14:54:48 -07:00
David Christie
71bcd2aa5c Merge "Add versioning to FLP HAL." 2015-04-14 21:37:02 +00:00
Jorim Jaggi
7caa691652 Merge "Fix fingerprint API for 3rd party apps" 2015-04-14 21:12:27 +00:00
Jorim Jaggi
ccdfa93f60 Fix fingerprint API for 3rd party apps
Change-Id: Id68d04b4deef9940a683d2b40f1db231845b00e3
2015-04-14 14:02:16 -07:00
David Christie
cfc9b6d6ab Add versioning to FLP HAL.
Retain compatibility with implementations compiled
against old headers or left unchanged from LMP.

Change-Id: I3f7cfaaf0cba8697c312940a805b053c6040caa6
2015-04-14 12:14:03 -07:00
Chien-Yu Chen
7681fbb98e Merge "camera2: add reprocess support" 2015-04-14 17:29:46 +00:00
David Christie
fff30439ca Add ability to flush FLP HAL batched locations buffer.
Currently GmsCore has to guess how many locations to retrieve
based on requested frequency and then demux the output looking
for timestamps (that aren't monotonically increasing).  This
capability gives GmsCore a more graceful solution.

Change-Id: Ie1d71615f699bc0d3c63f8b80aa7b40b9971cf96
2015-04-13 19:13:52 -07:00
David Christie
832017963d Merge "Add a status callback for location batching in FLP HAL" 2015-04-14 01:30:15 +00:00
David Christie
15003f19e5 Add a status callback for location batching in FLP HAL
-Allows GmsCore to know when location is unsuccessful so
 it can switch to a SW solution.

Change-Id: I3d1df7b828f7fb189446881eea87d9a952310614
2015-04-13 17:25:27 -07:00
David Christie
172753e6f8 Merge "Add capability callback for FLP HAL." 2015-04-14 00:09:36 +00:00
Chien-Yu Chen
5398a67680 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
2015-04-13 17:04:04 -07:00