Commit Graph

2783 Commits

Author SHA1 Message Date
TreeHugger Robot
1a56d75fb4 Merge "USB permission and resolve activity refactor." 2018-09-05 20:05:50 +00:00
TreeHugger Robot
11e4bd07e1 Merge "Move Viewport types to DisplayViewport" 2018-09-05 19:46:41 +00:00
Kevin Chyn
deb136b00a Merge "Send authentication type from AuthenticationClient to BiometricDialog" 2018-09-02 05:56:32 +00:00
Kevin Chyn
5a2ff5d7a2 Send authentication type from AuthenticationClient to BiometricDialog
Bug: 111461540

Test: Tested with BiometricPromptDemo

Change-Id: Id495dbb7465675a2a5b0b5f99c34a29297f89f55
2018-08-31 17:45:25 -07:00
Chih-hung Hsieh
0b5cc13698 Merge "Use multiple emails in per-file syntax." am: 1d3571cb88 am: f106a9a2c7
am: e9a54af0fc

Change-Id: I4be1978329ebb7976ce42b38c40519d4b2a2bd71
2018-08-31 01:12:23 -07:00
Chih-hung Hsieh
e9a54af0fc Merge "Use multiple emails in per-file syntax." am: 1d3571cb88
am: f106a9a2c7

Change-Id: I08605f6f8def734385e26475625e88eb3b0c31bc
2018-08-31 00:50:51 -07:00
Chih-hung Hsieh
f106a9a2c7 Merge "Use multiple emails in per-file syntax."
am: 1d3571cb88

Change-Id: Iaf7f8d314afe7d03cd119a861f94da10a9666a84
2018-08-31 00:41:58 -07:00
TreeHugger Robot
49fa609ba0 Merge changes from topic "biometric-prompt-service"
* changes:
  Add BiometricPromptService
  Remove common biometric directory
2018-08-31 01:21:07 +00:00
Kevin Chyn
a24e9fd9ac Add BiometricPromptService
The change introduces the following:
  - BiometricPrompt communicatates with BiometricPromptService (new)
    system service. The service does the decision making for which
    biometric modality to use.
  - As a result, a lot of logic is moved from <Biometric>Manager
    to BiometricPrompt. FingerprintManager now does not care about
    BiometricPrompt logic anymore (reverts several P changes).

Face, and all future <Biometric>Service interfaces must be protected by
the signature-only MANAGE_BIOMETRIC permission. Settings, SystemUI, and
BiometricPromptService are their only clients.

Bug: 72825012

Test: BiometricPromptDemo works
Test: Keyguard works
Test: Settings works

Change-Id: I2b7d6eff81bc07950202c50e592d733032523bf0
2018-08-30 14:49:32 -07:00
lgcheng
2992e1c716 USB permission and resolve activity refactor.
Pure refactor of USB code for simple Arc logic injection.
Should have no behavior change for AOSP.

Bug: 74258201
Test: Run USB Accessory and USB Device test.
Change-Id: I8f7dace9155ceb75bc465fbb03a26f52694c8f93
2018-08-30 21:39:59 +00:00
Mathew Inwood
98e9ad1645 Add @UnsupportedAppUsage annotations
For all remaining unannotated code.

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: I67c8b71ea535ebffb10bf577948bd4ccb8ca069d
2018-08-30 13:38:42 +01:00
Michael Wright
ca022f68af Remove links to @removed classes.
We should keep the docs around for system components, but we can't link
to them anymore in the public docs since the permissions are no longer
public.

Bug: 111131054
Test: m -j4 offline-sdk-docs
Change-Id: I6bce56f35c8ff046229ff33a004952bbcc0e48d7
2018-08-28 17:10:37 +01:00
Chih-Hung Hsieh
e5657128e2 Use multiple emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I16349f12fa566ec0772b4744aa33e65b614d054b
2018-08-23 16:00:42 -07:00
Mathew Inwood
c4ac7e0c3f Merge "Remove @UnsupportedAppUsage annotations from generated code." am: 30ea09ab75
am: 37d1e21614

Change-Id: I4f4e917c2cf0460f0689006bc1bb5495c0fad061
2018-08-22 07:25:35 -07:00
Mathew Inwood
37d1e21614 Merge "Remove @UnsupportedAppUsage annotations from generated code."
am: 30ea09ab75

Change-Id: Iecef5e97eb464ab9b609dac79f7b0367aa497837
2018-08-22 06:04:03 -07:00
TreeHugger Robot
ec0d236e76 Merge "Resolve race condition in old API message handler" 2018-08-22 00:08:51 +00:00
Arthur Ishiguro
4508cd5cc2 Resolve race condition in old API message handler
Bug: 110358843
Test: Run CHQTS, verify pass
Change-Id: I51daf13ed1dd2accd82a4a77284089ede72e019b
2018-08-21 13:43:13 -07:00
Mathew Inwood
29ec6e6264 Remove @UnsupportedAppUsage annotations from generated code.
Revert back to using the greylist file for this code, since the annotations
would be lost next time the code is regenerated.

Bug: 110868826
Test: m

Merged-In: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
Change-Id: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
2018-08-21 17:27:35 +01:00
Mathew Inwood
d17eada4e1 Remove @UnsupportedAppUsage annotations from generated code.
Revert back to using the greylist file for this code, since the annotations
would be lost next time the code is regenerated.

Bug: 110868826
Test: m

Change-Id: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
2018-08-21 17:27:10 +01:00
TreeHugger Robot
a2e28a4b86 Merge "Move error delay logic from Manager to Service" 2018-08-21 03:44:31 +00:00
Shuzhen Wang
f48e7e080c Merge "Camera: Documentation update to remove physicalIds" into pi-dev am: 121d4eee01
am: 4d618965f5

Change-Id: I1110b463686aa2c8c46b0b9b2db48e41399168bf
2018-08-16 18:28:39 -07:00
Shuzhen Wang
4d618965f5 Merge "Camera: Documentation update to remove physicalIds" into pi-dev
am: 121d4eee01

Change-Id: I334f150cbd93df5a3b0abcb23c955bcea9367058
2018-08-16 17:29:35 -07:00
Shuzhen Wang
de23d28d07 Camera: Documentation update to remove physicalIds
Public API doesn't see android.logicalcam.physicalIds. Remove it
from public doc.

Bug: 112655222
Test: make offline-sdk-docs
Change-Id: Idf6958fb7c117912e33ece4fbaed04cb8e5e14c0
2018-08-16 22:59:54 +00:00
Kevin Chyn
ed94180f7b Move error delay logic from Manager to Service
For BiometricPrompt, sometimes the error should be delayed. E.g. after
receiving certain signal from the daemon, the UI needs to show the message
for a few seconds before the application should receive the actual error.
The logic was previously added in FingerprintManager and missed a case.
It's cleaner to have it done at the service level, since it will
automatically be inherited for each modality.

Fixes: 78546315
Bug: 77337939
Bug: 78185698

Test: Keyguard (FingerprintManager) errors are not affected

Test: Using BiometricPromptDemo test app, do the following
Test: Starting authentication without FP enrolled returns error immediately
Test: Start authentication, lock device - error returns immediately
Test: User canceled (tapping outside) returns error immediately
Test: User canceled (negative button) returns error immediately
Test: Lockout returns error when dialog dismisses

Change-Id: Ie828e0cf1fd4261ded31bb0b0adb6d93e7692993
2018-08-14 19:29:18 -07:00
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
a79fcdd774 Merge "Add @UnsupportedAppUsage annotations" am: 196eb1d929 am: 83271288ec
am: eaff9b8d78

Change-Id: I659a10f4b65bfe7d7227a049ca4b105ba0ff451b
2018-08-09 09:24:50 -07:00
Mathew Inwood
eaff9b8d78 Merge "Add @UnsupportedAppUsage annotations" am: 196eb1d929
am: 83271288ec

Change-Id: I4d68830f98dece9b77a4ad4cd3769172f00eb0cc
2018-08-09 09:13:59 -07:00
Mathew Inwood
5132cc1c85 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: I7bfe07144a4d581985aa9d4b525b7ca975a2127d
Merged-In: I046df307d1065a9692e4e7259c59a93ee8f458ef
2018-08-08 15:50:55 +01: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