Commit Graph

3051 Commits

Author SHA1 Message Date
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
TreeHugger Robot
ecc418c4cb Merge "Fix acquire comments" 2019-02-02 00:49:51 +00:00
Amy
bd8b4fa1ae Add sendVolumeKeyEvent API to handle forwarding volume key separately.
Note that we handle volume key the same way as other keys before when
forwarding them to other cec devices. But the destination device of
volume key might be different from other function keys.

We might need to take the System Audio Control logic into this
forwarding proccess to find the proper audio receiver address.

Test: make -j44
Bug: 123369653
Change-Id: I6c9dba2b333e7eaa5137a8d2f5bfed506ae8554b
(cherry picked from commit 5db0138297836baf570f354c0b2ecb988d30936b)
2019-02-01 19:13:27 +00:00
Kevin DuBois
a28aa5e6ec Merge "Pipe through color sampling to BrightnessChangeEvent" 2019-02-01 17:42:00 +00:00
TreeHugger Robot
3bed6481d6 Merge "Update BiometricPrompt documentation" 2019-02-01 04:28:46 +00:00
Kevin Chyn
39ebee41d4 Update BiometricPrompt documentation
Test: Builds
Change-Id: Ic4d9505d63f6d5e3885a1de86d1e704e0e7a7cc8
2019-01-31 16:24:46 -08:00
Kevin Chyn
2446ea7a01 Fix acquire comments
Bug: 123262389

Test: Builds
Change-Id: I3337aa596db01be964ec35881feddf548e526757
2019-01-31 16:18:43 -08:00
TreeHugger Robot
8b7275695a Merge "Add SystemService annotation to BiometricManager" 2019-01-31 22:07:43 +00:00
Kevin Chyn
695c6e2d21 Add SystemService annotation to BiometricManager
Fixes: 123661342

Test: builds
Change-Id: I169fad27b999ed7d586d2f8660056f4f2db47034
2019-01-31 11:29:06 -08:00
Kenny Guy
908108aa4b Pipe through color sampling to BrightnessChangeEvent
Change brightness tracker to enable / disable color
sampling on screen on / off.
Add value channel to BrightnessChangeEvent if available.

Bug: 112756444
Test: atest BrightnessTrackerTest
Test: atest android.display.cts.BrightnessTest
Test: manual checked pixel3 which supports this and pixel2 which doesn't

Change-Id: I94384752235d891cee975b01f933c0bc0b4572a9
2019-01-31 16:33:06 +00:00
Peiyong Lin
a0baea28b7 Merge "Replace createHardwareBitmap with wrapHardwareBuffer." 2019-01-31 15:37:56 +00:00
Jayant Chowdhary
d88b48346a Add SECURE camera capability.
Bug: 123046494

Test: builds

Change-Id: I5ee5203508436fd59590a78d633155c5a62d6c72
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2019-01-30 15:34:04 -08:00
Peiyong Lin
9d4274005e Replace createHardwareBitmap with wrapHardwareBuffer.
The bitmap.createHardwareBitmap doesn't take a ColorSpace as input, as a result
the returned bitmap is always in SRGB color space. Given that we want to remove
the assumption of SRGB color space, we replace the usage of
createHardwareBitmap with wrapHardwareBuffer which takes an extra argument
ColorSpace. As a result, we will be able to also fix SurfaceControl and various
other places that use screenshot in follow up patches.

BUG: 120904891
Test: CtsUiRenderingTestCases
Change-Id: I57fc0c85d68df43b0e69f9a1ebac00d2ba39554d
2019-01-30 15:22:54 -08:00
TreeHugger Robot
6296773cd0 Merge "Camera: Unhide Key constructors" 2019-01-29 22:35:45 +00:00
TreeHugger Robot
6dde2b0562 Merge "Add ACQUIRED_START message" 2019-01-29 01:32:15 +00:00
Eino-Ville Talvala
1cf59fde35 Camera: Unhide Key constructors
These are useful for testing by apps, or for vendor extension points
in vendor SDKs.

Test: atest cts/tests/camera/src/android/hardware/camera2/cts/SimpleObjectsTest.java
Bug: 116298360
Change-Id: Icaa5d789e950a9379d72e784eedfa18a37cb71d6
2019-01-28 16:56:14 -08:00
TreeHugger Robot
5e55e809a7 Merge "Camera: Add support for dynamic depth image format" 2019-01-28 22:21:46 +00:00
Kevin Chyn
aad80b109b Add ACQUIRED_START message
Change-Id: I59ca30d9c1ba9634b6af0c0a13776ae54456f925
Fixes: 123520106
Bug: 117060268
2019-01-28 12:46:22 -08:00
John Reck
e98248eb05 Merge "Fix ImageReader#newInstace with usage" 2019-01-28 20:17:25 +00:00
Peiyong Lin
b20446f6bd Merge "Add Display.getPreferredWideGamutColorSpace()." 2019-01-26 22:10:16 +00:00
Kevin Chyn
71ae5ba4c9 Merge changes from topics "cc-implicit-2", "cc-implicit"
* changes:
  Deprecate CC and add BP#buildIntent()
  Revert "Add plumbing for setRequireConfirmation to CC"
2019-01-26 04:27:00 +00:00
Kevin Chyn
1b2137cf42 Deprecate CC and add BP#buildIntent()
To ensure future BP builder changes don't require a 1:1 addition to the
CC API, we're deprecating CC and moving the API to BP.

Since CDC is an activity, and BP can't receive onActivityResult from CDC,
we need to have BiometricService launch CDC. CDC will return auth/reject
results to BiometricService using a private protected aidl method, which
can then forward the reuslt to BP/app.

Bug: 111461540

Test: builds
Test: demo app, receives correct callbacks

Change-Id: I7111ca2842534a596302fe0eb7338fbfaca72eec
2019-01-25 18:09:03 -08:00
Kevin Chyn
97bd994bb0 Merge "Add additional acquired constants" 2019-01-26 01:47:06 +00:00
Peiyong Lin
277eaff438 Add Display.getPreferredWideGamutColorSpace().
Add Display.getPreferredWideGamutColorSpace() to return the preferred wide
color space that the rendering and composition pipeline prefers.

BUG: 120904891
Test: atest android.display.cts.DisplayTest#testGetPreferredWideGamutColorSpace
Change-Id: I1bcd9db72689a734b2a7c097b99a01464810994a
2019-01-25 17:15:26 -08:00
John Reck
4d312b212c Fix ImageReader#newInstace with usage
Need to actually respect the given usage or the API doesn't
work. Shift the default to be done Java-side where it's clear
if usage was user-provided or not. Remove the incorrect
validations and assertions around usages.

Add missing HardwareBuffer#isSupported to let users
check if a usage & format combination is supported.

Change-Id: I70bfe6e6c41e78425a38af6b17d421f0e80e818b
Fixes: 123423319
Test: HardwareBuffer CTS tests
2019-01-25 16:03:58 -08:00
TreeHugger Robot
0969d6ec11 Merge "Unhide APIs of Android HDMI Framework for Q." 2019-01-25 00:45:37 +00:00
Christine Franks
69aab0df31 Merge "Move color modes to ColorDisplayService" 2019-01-24 22:54:09 +00:00
Christine Franks
0ae3740d43 Merge "Make night display auto mode system API" 2019-01-24 21:22:19 +00:00
Amy
9444cdd8ea Unhide APIs of Android HDMI Framework for Q.
Test: manual
Bug: 110094868
Change-Id: I4f8d992a1dc7be7e52710153d5d093ca2b82abd6
2019-01-24 13:08:19 -08:00