Commit Graph

2755 Commits

Author SHA1 Message Date
Siarhei Vishniakou
759b88f728 DisplayListener.onDisplayChanged documentation
Clarify when onDisplayChanged callback may get invoked. Also link
logical display to android.view.Display for convenience.

Bug: none
Test: none
Change-Id: Ib36c572c3ce5072dee3383e460334420a1b4b861
2018-08-13 09:05:19 -07:00
Mathew Inwood
bcbe440e67 Add @UnsupportedAppUsage annotations
For packages:
  android.hardware.usb
  android.hardware.soundtrigger
  android.hardware.radio
  android.hardware.location
  android.hardware.input
  android.hardware.hdmi
  android.hardware.fingerprint
  android.hardware.display
  android.hardware.cas.V1_0
  android.hardware.camera2.utils
  android.hardware.camera2.params
  android.hardware.camera2.marshal.impl
  android.hardware.camera2.marshal
  android.hardware.camera2.legacy
  android.hardware.camera2.impl
  android.hardware.camera2.dispatch
  android.hardware.camera2
  android.hardware

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I046df307d1065a9692e4e7259c59a93ee8f458ef
2018-08-08 15:42:59 +01:00
TreeHugger Robot
c0819d2066 Merge "Add an optional reason field to vibrator service" 2018-08-07 19:42:58 +00:00
Eino-Ville Talvala
7d1042714c Merge "Camera: Documentation updates for calibration and distortion correction" into pi-dev am: e85115fdb7
am: 7e1ac5121d

Change-Id: I1cfa394bfac978170ecfe75f7b2a4c0debbf0d9d
2018-08-04 16:31:19 -07:00
TreeHugger Robot
4d3c8bcb55 Merge "Camera2: legacy: Fill in default preCorrectionActiveArraySize" 2018-08-03 17:21:25 +00:00
Arthur Ishiguro
95cd0e6581 Fixes a minor typo in ContextHubClient API doc
Bug: 109949216
Test: None
Change-Id: I03f3e05b6e81b9e542daca43ee199bdf9cc64cb8
2018-08-02 16:15:53 -07:00
Eino-Ville Talvala
08bd163e2d Camera: Documentation updates for calibration and distortion correction
- Add more notes on coordinate axes
- Add more text on metadata when distortion correction is active
- Note that poseTranslation needs to be negated in many use cases
- Fix coordinate system references for OIS reporting, add more information
- Note that pixel centers at half-integers for the camera API metadata
  such as lens intrinsics

Bug: 79371566
Bug: 74434422
Bug: 109742048
Bug: 109834325
Bug: 109817371
Bug: 112107924
Test: Manual reading of added text
Change-Id: I450e80b79ef66ce8d82a4dee835db6abd1e598a3
2018-08-02 14:43:44 -07:00
Shuzhen Wang
7b821ce99d Camera2: legacy: Fill in default preCorrectionActiveArraySize
Use default active array size as preCorrectionActiveArraySize.

Test: Camera CTS on legacy device
Bug: 111445301
Change-Id: Ia184a8e68d6c8c0d5d4a648c6b3f4b99c99ccf5b
2018-07-30 23:49:31 +00:00
Alexey Kuzmin
e1f06b88e8 Add an optional reason field to vibrator service
Test: Run vibration test, see reason written to log and trace.
Bug: 109654229
Change-Id: I13db6968c125e7c2b2483a14faad5b6ea9b4cda6
2018-07-27 20:32:53 +01:00
Kevin Chyn
b528d69a65 Forward correct biometric in AuthenticationClient
Fixes: 111609174

Test: fingerprint still works in settings/keyguard

Change-Id: Ibbb0d45e945ce5ccbc93e7057d1bd52e1fb1ca20
2018-07-24 15:29:34 -07:00
Kevin Chyn
d682d740f1 Merge changes from topic "face-settings"
* changes:
  Add hidden negative button constants
  Add secure setting for using face on keyguard
  Add face settings metrics
2018-07-21 01:26:02 +00:00
Kevin Chyn
91e7a3dcff Add hidden negative button constants
The support library was recently merged in frameworks/support, and exposes
the negative button action through an onError message (instead of an
OnClickListener). These change adds a placeholder in frameworks/base
so that the constants are kept in sync.

Fixes: 77969138

Test: builds
Change-Id: Ic1d142006c09e1d4b9149540554e4f068e666798
2018-07-19 18:01:11 -07:00
Shubang
ed6fb86391 Add tests for HdmiAudioSystemClient
Bug: 110430593
Test: atest android.hardware.hdmi
Change-Id: Id988ed8180b4728e96423d5d0ca38e017b01a97f
2018-07-19 17:09:25 -07:00
Shubang
2a9993e407 Send audio status at most once per 500 ms
It's recommanded by the spec

Bug: 80297383
Test: make; flashall; local tests
Change-Id: Icf534da48e122d64a8d553bb4e2335caad9eab3a
2018-07-19 17:09:25 -07:00
Shubang
c480a7108c Send <Report audio status> CEC commands when it's changed
According to HDMI CEC specification, an audio system
can report its audio status when System Audio Mode
is on, so that the TV can display the audio status
of external amplifier.

More details can be found in section CEC-13.15 of
HDMI Specification 1.4b

Bug: 80297383
Test: make; flashall; local tests
Change-Id: Id71b709a62add7bf5dccb418489e200350debb8e
2018-07-19 17:09:25 -07:00
Yin-Chia Yeh
4f32014493 Merge "Camera: hardware level related doc update" into pi-dev am: 3d3c6531e1
am: e6ddc0c252

Change-Id: I07bd6fd9e0a4703abe6dc65484300964c3990a51
2018-07-19 09:36:55 -07:00
TreeHugger Robot
3d3c6531e1 Merge "Camera: hardware level related doc update" into pi-dev 2018-07-19 16:12:17 +00:00
TreeHugger Robot
f931eb8fd1 Merge "Support rotation on secondary displays (1/N)" 2018-07-19 14:09:57 +00:00
Nick Chalko
f28c7b5602 Move queryTvSystemAudioModeSupport to HdmiCecLocalDeviceAudioSystem
Bug: 80297382
Test: m -j services.core framework
Change-Id: I58789fdcf5208ac334e0d696fa769527d61847cc
(cherry picked from commit ff23fbf2b33602dcccb9b1460275d2d748c6dd7e)
2018-07-18 11:50:23 -07:00
Nick Chalko
6d9da80f4d Add stub method for detecting System Audio Mode support
Bug: 80297382
Test: m -j; stub only
Change-Id: I74e03909e00f70806e05197d66a0eb30ea4e49c8
2018-07-18 11:50:16 -07:00
Shubang
67373192a9 Add HdmiAudioSystemClient
Bug: 109949458
Test: make;
Change-Id: Id82f5e6d5fd607ec0ffe11317341a02f7357354e
2018-07-18 11:50:16 -07:00
Riddle Hsu
654a6f90b0 Support rotation on secondary displays (1/N)
- Allow to apply rotation animation on non-default display.
- Separate by display:
    Rotation related timeout.
    Pause/resume rotation.
- Able to get/watch non-default display orientation/rotation.

Bug: 111361251
Test: atest FrameworksServicesTests:DisplayContentTests
Test: go/wm-smoke
Change-Id: I9533f1b90b9969d455b6dc235c5318e39f63ab12
2018-07-18 23:48:13 +08:00
Yin-Chia Yeh
c565700b94 Camera: hardware level related doc update
Codegen doc update + CameraDevice manual update about EXTERNAL
hardware level.

Test: check offline-sdk-docs output
Bug: 77861412
Change-Id: I70c87a176cf873cf8bec2037f973a94fe99aef2e
2018-07-13 13:42:43 -07:00
Tomasz Wasilczyk
5f6ba52f59 Export BandDescriptor for AIDL.
Bug: 73950974
Test: it builds
Change-Id: I96321c24c96a848ab01cca47f563d70e4ff99b89
2018-07-12 21:51:01 +00:00
Donghui Han
ebc6cb38a0 Merge "camera2: Treat face detect mode larger than FULL as FULL" into pi-dev am: 2fca393cc1
am: d05d630060

Change-Id: I3947264d88d0c558f8c7fb5ee22160af934e411e
2018-07-12 11:19:07 -07:00
Donghui Han
2fca393cc1 Merge "camera2: Treat face detect mode larger than FULL as FULL" into pi-dev 2018-07-12 17:19:36 +00:00
Arthur Ishiguro
78c1e790b3 [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4 am: 77e6e34644 am: 49e97ea1dc am: c2cfe453f2 am: cab2fa779e am: bf8733b162 am: e9b67d2b22 am: 267b960dab
am: b9912a254a

Change-Id: Ic85c323a3b706808616e1cf9d3e30a95ca2c37f6
2018-07-11 15:44:51 -07:00
Arthur Ishiguro
267b960dab [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4 am: 77e6e34644 am: 49e97ea1dc am: c2cfe453f2 am: cab2fa779e am: bf8733b162
am: e9b67d2b22

Change-Id: Ia3222d7b97b2d1083404d607738fc15d2646999c
2018-07-11 14:40:57 -07:00
Arthur Ishiguro
e9b67d2b22 [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4 am: 77e6e34644 am: 49e97ea1dc am: c2cfe453f2 am: cab2fa779e
am: bf8733b162

Change-Id: I4fe6469031d7ef6fcc6d9b46da4dbc5845ea62d2
2018-07-11 14:27:45 -07:00
Arthur Ishiguro
bf8733b162 [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4 am: 77e6e34644 am: 49e97ea1dc am: c2cfe453f2
am: cab2fa779e

Change-Id: Ifdd69396d202951f8b9ed5fe6e5766133955a5e5
2018-07-11 14:13:30 -07:00
Donghui Han
5f967a3941 camera2: Treat face detect mode larger than FULL as FULL
This change treats any face detect mode larger than FULL mode
in the capture result as FULL mode. So in case the face detect
mode is larger than FULL, it is assumed that the FULL mode
STATISTICS_FACE is supported in the capture result.

Bug: 111131913
Test: CTS, GCA
Change-Id: I3a6a29ce8d9d8ab66918baaea3162797e18276d2
2018-07-11 15:47:44 +00:00
Android Build Merger (Role)
cab2fa779e [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4 am: 77e6e34644 am: 49e97ea1dc am: c2cfe453f2
Change-Id: I6e3461125290f2835ff1f9a996beb92e64172386
2018-07-06 22:55:21 +00:00
Android Build Merger (Role)
c2cfe453f2 [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4 am: 77e6e34644 am: 49e97ea1dc
Change-Id: I19c512999a0eae233e2cc7c4d31d0c62556e4ffd
2018-07-06 22:55:14 +00:00
Android Build Merger (Role)
77e6e34644 [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a am: 2895b320b4
Change-Id: I26b97af90ef6ea8b640ff7198b2883297d4fb03e
2018-07-06 22:55:02 +00:00
Android Build Merger (Role)
2895b320b4 [automerger] Resolve inconsistent parcel read in NanoAppFilter am: abe5a73a4a
Change-Id: Ieb925f073b80e4d624552e738d49b0996f0485ae
2018-07-06 22:54:55 +00:00
Arthur Ishiguro
abe5a73a4a Resolve inconsistent parcel read in NanoAppFilter
Bug: 77599679
Test: Compile only
Change-Id: Ib417a5cb4d51744442d2fb14437cabbe5fd1c266
2018-07-06 22:54:52 +00:00
Kevin Chyn
8277f00eed Remove unused parameter in FaceManager
Bug: 111079696
Bug: 110589286

Test: builds
Change-Id: I7a6fc864b147da41be77a72c2d15992b4c01db05
2018-07-02 16:38:10 -07:00
Kevin Chyn
082c201438 Merge "FaceManager removal callback should propagate remaining" 2018-06-30 00:56:32 +00:00
Kevin Chyn
7e88d113d6 FaceManager removal callback should propagate remaining
Fixes: 110994796

Test: builds
Change-Id: I9a82a50a8bbd4b0c21a2acef33c9ec3fdff5c7f8
2018-06-29 12:57:01 -07:00
TreeHugger Robot
43ef2a1b69 Merge "Stop invoke initAppOps in Camera default constructor." 2018-06-28 03:28:32 +00:00
Kevin Chyn
02bcebede4 Merge "6/n: Have FaceService extend BiometricService" 2018-06-27 22:09:01 +00:00
Kevin Chyn
a56dff7339 6/n: Have FaceService extend BiometricService
In the Service layer, this change is pretty much the same as ag/4340638.
FingerprintService already extends BiometricService which contains all
of the common code. FaceService now does the same after this change.

Updated the Manager layer to use the infrastructure added in P, namely
  - Private APIs for BiometricPrompt
  - Removed FaceManager#CryptoObject, use biometrics/CryptoObject directly
  - Few other BiometricAuthenticator things

Bug: 110387294

Test: enrolling FP still works
Test: removing FP still works
Test: changing FP name persists across reboots
Test: enumerating still works (extra framework fp, extra hw fp)
Test: keyguard still receives lockout reset callbacks

Change-Id: I2195b08e28d024a120df56fe87b0dd4f9b96505a
2018-06-27 11:31:03 -07:00
Daichi Hirono
cb63c640cd Stop invoke initAppOps in Camera default constructor.
Camera default constructor does not create the underlying native camera
object. Thus calling _enableShutterSound after the default constuctor
causes application crash.

Bug: 80498247
Test: Manually modify the code to return MODE_IGNORED for
      AppOpsService#checkAudioOperation() and to return false for
      CameraManager#supportsCamera2ApiLocked. Then start voice call in
      Hangouts.

Change-Id: Id738c4d46a8e3625bc3b1142b11acac9cfb0b603
2018-06-25 02:23:13 +00:00
Emilian Peev
18333503de Merge "Camera: Update surface sharing format restrictions" into pi-dev am: a749cd584e
am: 8544a07eac

Change-Id: I4da1d84141de7fa5974ff7594318bfa237b7850c
2018-06-22 17:31:37 -07:00
TreeHugger Robot
a749cd584e Merge "Camera: Update surface sharing format restrictions" into pi-dev 2018-06-23 00:11:04 +00:00
TreeHugger Robot
abe78cd313 Merge changes from topic "biometrics-face"
* changes:
  5/n: Move FaceService to biometrics directory
  4/n: Add face authentication framework
2018-06-22 18:44:27 +00:00
Gilad Bretter
cb51b8b847 4/n: Add face authentication framework
This change is cherry-picked and rebased from AOSP
https://android-review.googlesource.com/c/platform/frameworks/base/+/660242

Add face recognition as an identification method, following fingerprint
design. Unlike fingerprint, only one face template can be enrolled per
user, and a vendor message is passed from the HAL all the way to the
client callback to allow GUI indication about the enrolled face
templates.

Add FaceAuthenticationManager and FaceService.
Add face authentication capability to TrustManager and Keyguard.
Modify TrustManager and KeyguardUpdateMonitorCallback fingerprint code
to support generic biometric method to eliminate duplications.
Add BiometricSourceType enum to keep track of the specific biometric
method.

Test: biometric authentication still works on the device

Fixes: 110385761

Change-Id: I5d04fe69a112c13d3ef7330b9c08c146e36c5335
Signed-off-by: Gilad Bretter <gilad.bretter@intel.com>
2018-06-21 17:00:07 -07:00
Yuriy Romanenko
eeb19d2563 camera2: Fixed typos in StreamConfigurationMap.java
Test: Looks better

Change-Id: I1fb78275d992423dfba892c471a17d02d69b2087
2018-06-19 19:12:54 -07:00
Android Build Merger (Role)
b7d1130901 [automerger] Merge "Camera: codegen doc update" into pi-dev am: 941189bf28 am: f1558d2929
Change-Id: Iad180583db4457b41dc9c30a6a80ce46ef28a085
2018-06-19 20:37:58 +00:00
Emilian Peev
470c698c5a Camera: Update surface sharing format restrictions
Surface sharing supports all formats except jpeg and
RAW private.

Bug: 110412079
Test: documentation builds without errors.
Change-Id: I72c5d744fed1b62eedd7a83522021ebad17e49b7
2018-06-19 18:27:59 +01:00