Commit Graph

2804 Commits

Author SHA1 Message Date
kopriva
eac0905c11 docs: fixed instances of typo in 'overridden' am: debd4ee72d
am: 9b641cbc71

Change-Id: I071643e73656a2a17a3c0ab89ffacda9c1bfec80
2018-09-13 15:11:27 -07:00
kopriva
9b641cbc71 docs: fixed instances of typo in 'overridden'
am: debd4ee72d

Change-Id: Idde6240486463dee51cdc27b8cd066a80fb869e0
2018-09-13 14:57:25 -07:00
Shuzhen Wang
9a68b06f23 Merge "Camera: Add support for hidden physical camera ID" 2018-09-13 19:57:49 +00:00
kopriva
debd4ee72d docs: fixed instances of typo in 'overridden'
This affects several files beyond those mentioned in the bug.

I didn't fix some instances because the files had code
problems that blocked presubmit checks.

Test: make ds-docs

Bug: 37094741

Change-Id: I642f0384fef2b267ebc970bae1b4fb90bae667e7
Exempt-From-Owner-Approval: Docs-only change
2018-09-13 11:40:59 -07:00
TreeHugger Robot
966e191ab7 Merge "Camera: Tag and return camera characteristics needing permission" 2018-09-13 17:22:28 +00:00
Emilian Peev
a7fea4c61c Camera: Tag and return camera characteristics needing permission
A certain subset of the supported camera characteristics
will be accessible only by clients that acquired the camera
permission. Advertise the metadata keys that will need
the camera permission.

Bug: 112160024
Test: Camera CTS

Change-Id: I92b0b8d6e6035f15f4f1039bcc175f6a9fa0edcc
2018-09-13 10:16:47 +01:00
Shuzhen Wang
123deefc2c Camera: Add support for hidden physical camera ID
Add the support where characteristics of a hidden physical camera ID can be
queried by getCameraCharacteristics, but openCamera() cannot open that
camera.

Test: make offline-sdk-docs
Test: Camera CTS
Bug: 79523700
Change-Id: I0876f924da13e0e70ed0bf09ad937f08b076d492
2018-09-12 09:53:46 -07:00
TreeHugger Robot
fce28b5110 Merge "Camera: Fix documentation typo" 2018-09-12 14:15:12 +00:00
Emilian Peev
2b85bca571 Camera: Fix documentation typo
Bug: 115299127
Test: make docs
Change-Id: I493f96f94df04c141f1118fdd851574ad2f3b419
2018-09-12 09:37:46 +01:00
Kenny Guy
d62c3cfcc3 Remove 0 param BrightnessConfiguration.Builder constructor
Tidy up constructor that was hidden rather than removed
to allow pre-release versions of zebedee to work.

Test: atest BrightnessMappingStrategyTest
Test: atest android.display.cts.BrightnessTest
Test: atest BrightnessConfigurationTest
Change-Id: I89989d426ba84232843ddd45f614b837d47086a6
2018-09-11 17:57:46 +01:00
Daichi Hirono
f98d5cb38b Merge "Stop invoke initAppOps in Camera default constructor."
am: 0890a2b51e

Change-Id: I6ed52f595757c3ca7308969105f05e6bd55dee65
2018-09-10 20:00:30 -07:00
Treehugger Robot
0890a2b51e Merge "Stop invoke initAppOps in Camera default constructor." 2018-09-11 01:32:53 +00:00
Ryan Prichard
66e6f61bb1 Merge changes from topic "b113052379-cp-from-pi-dev-p2"
am: c9fc995e0e

Change-Id: Ia83844fa93a02234178042be85cc99eaeaca221f
2018-09-06 14:37:27 -07:00
Eino-Ville Talvala
e0641b2619 Camera: Documentation updates for calibration and distortion correction
am: 96024af857

Change-Id: Ie07f7074a0347f63cd8c6f2bb715efbdba8b717f
2018-09-06 14:30:42 -07:00
Ryan Prichard
c9fc995e0e Merge changes from topic "b113052379-cp-from-pi-dev-p2"
* changes:
  Camera: Documentation update to remove physicalIds
  Camera: Documentation updates for calibration and distortion correction
2018-09-06 20:35:24 +00:00
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
Daichi Hirono
2dba5c8417 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
Merged-In: Id738c4d46a8e3625bc3b1142b11acac9cfb0b603
(cherry picked from commit cb63c640cd)
2018-09-05 01:51:59 +00:00
Ryan Prichard
3cd4b66ceb Merge changes from topic "b113052379-cp-from-pi-dev-p1"
* changes:
  Camera: hardware level related doc update
  Camera: codegen doc update
2018-09-04 20:20:17 +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
Eino-Ville Talvala
96024af857 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
Bug: 113052379
Test: Manual reading of added text
Change-Id: I450e80b79ef66ce8d82a4dee835db6abd1e598a3
Merged-In: I450e80b79ef66ce8d82a4dee835db6abd1e598a3
(cherry picked from commit 08bd163e2d)
2018-08-30 16:42:19 -07:00
Shuzhen Wang
44397643f4 Camera: Documentation update to remove physicalIds
Public API doesn't see android.logicalcam.physicalIds. Remove it
from public doc.

Bug: 112655222
Bug: 113052379
Test: make offline-sdk-docs
Change-Id: Idf6958fb7c117912e33ece4fbaed04cb8e5e14c0
Merged-In: Idf6958fb7c117912e33ece4fbaed04cb8e5e14c0
(cherry picked from commit de23d28d07)
2018-08-30 16:42:19 -07:00
Yin-Chia Yeh
a8cfb0ae93 Camera: hardware level related doc update
Codegen doc update + CameraDevice manual update about EXTERNAL
hardware level.

Test: check offline-sdk-docs output
Bug: 77861412
Bug: 113052379
Change-Id: I70c87a176cf873cf8bec2037f973a94fe99aef2e
Merged-In: I70c87a176cf873cf8bec2037f973a94fe99aef2e
(cherry picked from commit c565700b94)
2018-08-30 16:42:18 -07:00
Yin-Chia Yeh
c925656a1e Camera: codegen doc update
Test: N/A. Doc update
Bug: 109666939
Bug: 113052379
Change-Id: I2bd176a7f5ada755c8a79201d142a98131e2e82c
Merged-In: I2bd176a7f5ada755c8a79201d142a98131e2e82c
(cherry picked from commit 6c73e409fc)
2018-08-30 16:42:18 -07: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