Commit Graph

3079 Commits

Author SHA1 Message Date
Kevin Chyn
e64d74ecaf Update BiometricPrompt API naming
Fixes: 126190552

Test: make -j56 update-api
Test: make -j56
Change-Id: I1c0700106e46b8dbfb825df341a8196a33f8bc83
2019-03-04 22:34:07 -08:00
TreeHugger Robot
1354a960be Merge "Camera: Temporarily add @UnsupportedAppUsage to various Key things." 2019-03-05 02:57:17 +00:00
Eino-Ville Talvala
60331e278d Camera: Temporarily add @UnsupportedAppUsage to various Key things.
To fix compatibility problems with existing devices.

Test: Vendor extension libraries work as expected on Pixel.
      Camera app starts.
Bug: 126901248

Change-Id: Id585eaf7126828093497f0600767381b85d9fb6b
2019-03-04 16:48:00 -08:00
TreeHugger Robot
f80eb9dcde Merge "Camera: Add support for camera access permission callback" 2019-03-04 20:36:37 +00:00
lumark
ec75b42179 Add the check for UID presence to Display#hasAccess()
It would be nice if there is a common & reliable method for both outer
& internal modules to check the UID presense of the display.

Add more check in Display#hasAccess() to ask system if calling UID can
precense on the specific display, to consolidate only few special UIDs
& display flag checking.

Bug: 117347985
Test: atest ActivityManagerMultiDisplayTests
Change-Id: I2f8989598c99c0962e925c5aa65500972b4fc62b
2019-03-04 14:59:41 +08:00
TreeHugger Robot
68ae9ebd4b Merge "Camera: Extend mandatory stream combination annotations" 2019-03-03 20:21:43 +00:00
TreeHugger Robot
ede9ed323b Merge "Camera: Annotate 'getKeysNeedingPermission'" 2019-03-03 20:03:47 +00:00
TreeHugger Robot
726e36e8c5 Merge "Camera: doc improvement for activePhysicalId metadata key" 2019-03-01 21:55:56 +00:00
Amy
f741f34796 Add Nullable annotations for HDMI APIs.
Test: manual
Bug: 126700355
Change-Id: Id9b6f29c1aa58da32a2a81d38e986f496b69086c
2019-03-01 11:16:10 -08:00
Emilian Peev
5389f1aa9f Camera: Annotate 'getKeysNeedingPermission'
CameraCharacteristics.getKeysNeedingPermission() must have
correct nullability annotation.

Bug: 126700407
Test: Camera CTS
Change-Id: I5a4186299fa386c3dcaec1f6fa358e711720a1eb
2019-03-01 07:48:22 -08:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Kevin Chyn
d4596b4ed3 Merge "Add NonNull to remaining BiometricPrompt Builder methods" 2019-03-01 02:40:55 +00:00
Kevin Chyn
400f243eec Add NonNull to remaining BiometricPrompt Builder methods
Test: make -j56 update-api
Test: builds

Fixes: 126799710

Change-Id: Ifc074863b5ffa5c69f7b8edb7aecbad9220faab4
2019-03-01 02:40:08 +00:00
TreeHugger Robot
8338f5177d Merge "More @NonNulls on BrightnessConfiguartion" 2019-03-01 00:01:30 +00:00
Kevin Chyn
f608cfc9ac Merge "Update BiometricPrompt API annotations and comments" 2019-02-28 23:55:53 +00:00
Shuzhen Wang
8f62084f7e Camera: doc improvement for activePhysicalId metadata key
Test: build and read docs
Bug: 125346954
Change-Id: I4e3e89f07701eb76788a84c9580562d09ea5e483
2019-02-28 15:24:02 -08:00
TreeHugger Robot
e21580fc82 Merge "Camera: Add @NonNull annotation for metadata keys" 2019-02-28 23:04:12 +00:00
Kevin Chyn
91688c2d2e Update BiometricPrompt API annotations and comments
Fixes: 126701154
Fixes: 126699531
Fixes: 126190552

Test: make -j56 update-api
Test: make -j56
Change-Id: I8c04fa1232589d1062e9df61e003cce40e2f5974
2019-02-28 12:44:47 -08:00
Kevin Chyn
aab56413e2 Merge "Check for hardware before authenticating" 2019-02-28 20:41:57 +00:00
Emilian Peev
0081bcf103 Camera: Extend mandatory stream combination annotations
Also extend the documentation and clarify the meaning of
mandatory and reprocessable stream combinations.

Bug: 126391833
Bug: 126702075
Bug: 126699529
Test: Camera CTS, docs build without errors
Change-Id: I8773458062a1b661e7eef61df982374b6b8e3092
2019-02-28 18:49:59 +00:00
Shuzhen Wang
1484a21e75 Camera: Add @NonNull annotation for metadata keys
Test: Read Javadoc
Bug: 126700187
Change-Id: Ie73da5423199c805f5f4bfd3430f7402e41d4c22
2019-02-28 10:39:07 -08:00
Andrei-Valentin Onea
94bd7aac42 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 15:21:13 +00:00
Kenny Guy
31eb3783c6 More @NonNulls on BrightnessConfiguartion
Bug: 126699168
Test: builds - just adding annotations to return values.
Change-Id: I3fa0a7c7398ae511b454cd694db6bff17f4ac795
2019-02-28 14:40:51 +00:00
Emilian Peev
0e971f32b2 Camera: Add support for camera access permission callback
Camera availability callbacks must support client
notifications about access priority changes. Such
data can be useful for any client that is actively
waiting for access to a particular camera device.

Bug: 121379978
Test: Camera CTS, successful docs build.
Change-Id: I423960c3a5bc5a2e156ccf3e8623c26d49350131
2019-02-27 16:08:25 -08:00
Kevin Chyn
9c98582dd6 Check for hardware before authenticating
On devices with no hardware, the service is null. We need to return the
correct error in that case.

Fixes: 126392276

Test: Builds
Change-Id: I184bd6afce71bf36b659286cd7dd6aa17d490657
2019-02-27 13:12:30 -08:00
Andrei Onea
da6e570f1e Add @UnsupportedAppUsage annotations
For packages:
  android.database
  android.hardware
  android.hardware.display
  android.hardware.input
  android.hardware.location
  android.location
  android.media
  android.media.tv
  android.media.projection

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: I570c08292f8a9f512c96f9dce13f5337718f112c
2019-02-27 13:31:11 +00:00
Issei Suzuki
ca19e6e3ef Move AmbientDisplayConfiguration class out of internal package.
Test: m droid (run full build), atest SystemUITests
Bug: 126327497
Change-Id: Ife8303924bd02e9639008293bf9028f4871a9b16
2019-02-27 10:34:17 +01:00
Kenny Guy
0a9e341940 Clarify brightness correction API
Add annotations to clarify the brightness
correction API.

Bug: 125347154
Test: atest android.display.cts.BrightnessTest
Test: manual, flash phone, get app using API to push corrections, adb shell dumpsys display
Change-Id: Icbb61bb542a49c49f279b865d69d59a542c0e42b
2019-02-25 17:10:37 +00:00
Kenny Guy
2047db9a4e Add minimum brightness curve to dumpsys
Test: manual, adb dumpsys display and check result
Bug: 125234919

Change-Id: I24e7979b7a8b42041e9f4a36de4c142d70b27422
2019-02-21 14:33:33 +00:00
John Reck
24faae952b Add some @IntRange
IntRange just matches what would have resulted in an
IllegalArgumentException, no new restrictions

Fixes: 124767261
Test: N/A
Change-Id: Iad04587f2c10008798098fc56481e45de4c64c0b
2019-02-20 10:27:02 -08:00
Sam Lin
4c3ac2ba26 Disables display content scaling for foldables
When setting folded area with changes both in width and height (set
0,0,540,1080 to a 1080x2160 device), the content of display will be
auto-scaled to physical display size. It is not an expected behavior
for foldable devices. Disable auto-scale to fix this issue.

1. LogicalDisplay.configureDisplayLocked() scales the contents according
the DisplayInfo.flags.
2. DisplayInfo.flags should not be overridden by design for a logical
display.
3. Adds disableDisplayScaling() for DisplayFoldController to bypass that.

Bug: 123245311
Test: atest WmTests
Test: adb shell wm folded-area 0,0,840,1260
Change-Id: I9a24c5d56799981b4f2cfe82fdf1898d87193681
2019-02-20 20:09:29 +08:00
Tiger Huang
03c20bbf6e Merge "Remove InputForwarder" 2019-02-19 07:18:41 +00:00
TreeHugger Robot
ffdc325ff2 Merge "Update color display javadoc" 2019-02-18 14:36:55 +00:00
Tiger Huang
c0240753f0 Remove InputForwarder
InputForwarder was used by ActivityView. InputForwarder is not used by
anyone now.

Bug: 120675821
Test: Manual test with ActivityViewTest
Test: atest CtsActivityManagerDeviceTestCases:ActivityViewTest
Change-Id: I6bd2338c921e6dfb1dfe357decb878d558df8bfd
2019-02-18 20:02:18 +08:00
Christine Franks
8a08a922e5 Update color display javadoc
Bug: 124506793
Test: n/a
Change-Id: I7cc7f0d80f40a7c280a4fb086439e6fe587218fa
2019-02-15 15:02:32 -08:00
Kevin Chyn
a38653cb34 Actually use HardwareAuthToken to resetLockout where applicable
Lockout reset now happens at the source of truth, where the HAT is received
from Gatekeeper.

Fixes: 121198195

Test: Lockout is reset properly

Change-Id: Icd72a20494a65f0e48cff1258109d82fb58cdc98
2019-02-13 21:17:01 -08:00
Kevin Chyn
6737c57987 Add enumerate functionality for FaceService
Most common code is now in BiometricServiceBase

Fixes: 122118421

Test: Unknown templates in Framework and HAL are cleaned as expected

Change-Id: Ia35efa5c2dac26d66b6f2813dd98fbdbb674f605
2019-02-13 20:51:49 -08:00
Siarhei Vishniakou
837e276695 Ensure looper is non-null in DisplayManagerGlobal
Looper.myLooper() can return null, according to the docs.
But in the DisplayManagerGlobal code, this method is assumed to return
non-null looper.

To ensure that a looper is available, use the main thread looper if the
looper for the current thread is null.

Test: atest cts.ViewGroupTest
Bug: 123592612
Change-Id: I80aaf5703e62837720395bfac4d95144cd6ab9f0
2019-02-12 16:32:23 -08:00
Christine Franks
ade169ae15 Merge "Add isSaturationActivated" 2019-02-11 19:34:27 +00:00
Kevin Chyn
eb8c06d65d Merge "Rename setEnableFallback to setAllowDeviceCredential" 2019-02-09 00:37:44 +00:00
Kevin Chyn
45d1f9d311 Rename setEnableFallback to setAllowDeviceCredential
Also adds BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL constant

Fixes: 123725101

Test: Demo app
Test: CtsVerifier Biometric Test
Change-Id: Ib4d25438946c0ce476de8ef416d07e3c58152da9
2019-02-08 11:34:42 -08:00
Kevin Chyn
8402318533 Merge "Add missing face acquired strings" 2019-02-08 06:29:18 +00:00
Kevin Chyn
68823b08e1 Add missing face acquired strings
Fixes: 123782396

Test: Builds
Change-Id: I515b7947061e6278b5b68861ef1e35aa4b3c2889
2019-02-07 20:35:32 -08:00
Christine Franks
6d21d34af0 Add isSaturationActivated
Bug: 118387886
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: Iad8427de494375381edced8438be9b7cfb879cbc
2019-02-07 15:10:50 -08:00
Shuzhen Wang
ebd10b8fcf Merge "Camera: Add HEIC format output" 2019-02-07 19:15:32 +00:00
Christine Franks
a5c5ced49f Merge "Replace ColorDisplayController references" 2019-02-07 16:11:14 +00:00
Shuzhen Wang
f655b1c876 Camera: Add HEIC format output
- Add HEIC ImageFormat.
- Add HEIC related camera static metatadata.
- Handle BlobID and BlobSize properly for HEIC format.

Test: Camera CTS
Bug: 79465976
Change-Id: I8606711b036e695e23671c4563364c24aad9ed84
2019-02-06 10:11:20 -08:00
Jayant Chowdhary
1722c40350 Merge "Add SECURE camera capability." 2019-02-05 17:55:02 +00:00
Christine Franks
71e003eb84 Replace ColorDisplayController references
with ColorDisplayManager, where possible

Bug: 123352608
Test: atest FrameworksServicesTests:ColorDisplayServiceTest

Change-Id: I4feb67197462d49002582931aee285abe85054e6
2019-02-04 14:28:55 -08:00
Shubang Lu
38a701701d Merge "Add sendVolumeKeyEvent API to handle forwarding volume key separately." 2019-02-04 18:47:15 +00:00