Commit Graph

3090 Commits

Author SHA1 Message Date
TreeHugger Robot
63d37cc4bd Merge "Camera: Update priority callback documentation" 2019-03-12 22:57:58 +00:00
Emilian Peev
c474a8b320 Camera: Update priority callback documentation
Describe the callback purpose so it is consistent
with the rest of the callbacks.

Bug: 128427361
Test: Successful build
Change-Id: Ia97dbd33eb65f8166865ce0b297a83d4728507ff
2019-03-12 12:04:46 -07:00
David Brazdil
3f6c596f0a Merge "Move Camera.EventHandler constructor to greylist" am: b31032b3b0 am: 7746e7c553
am: 847b02cac4

Change-Id: I24e65e05fcf46b584af80c732330623ec521870f
2019-03-08 07:45:34 -08:00
Treehugger Robot
b31032b3b0 Merge "Move Camera.EventHandler constructor to greylist" 2019-03-07 23:16:40 +00:00
David Brazdil
982df3ba83 Move Camera.EventHandler constructor to greylist
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 122331906
Test: m appcompat
Change-Id: I3abc8221706bd69668c90aa61b8ca5f137a88bb9
2019-03-07 17:44:10 +00:00
Eino-Ville Talvala
e739064b74 Merge "Camera: Annotate the Key constructors with nullability." 2019-03-07 00:25:36 +00:00
Eino-Ville Talvala
79d4aac39b Camera: Annotate the Key constructors with nullability.
Test: Builds
Bug: 126699273
Change-Id: Ifd14a79ff6ffbb19ef1a45ac0da45efa2be748b1
2019-03-06 14:26:10 -08:00
Kevin Chyn
f2f31c212b Merge "Update framework together with IBiometricsFace.hal" 2019-03-06 19:29:58 +00:00
Andrei Onea
8c2fb5b99b Add @UnsupportedAppUsage annotations
For packages:
  android.database
  android.hardware.display
  android.hardware.input
  android.hardware.location
  android.location
  android.media
  android.media.projection
  android.media.tv

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
Merged-In: I570c08292f8a9f512c96f9dce13f5337718f112c
Change-Id: I1d6c60fcb53f404d5775163bf6929395921f5a45
2019-03-06 15:39:19 +00:00
Kevin Chyn
b95f152910 Update framework together with IBiometricsFace.hal
Bug: 123262389

Test: Builds
Change-Id: I7d6f874e93180cb41f30cf02dd7f47c57dd6bb92
2019-03-05 17:41:12 -08:00
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
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -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