Commit Graph

3041 Commits

Author SHA1 Message Date
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
Kevin Chyn
7fbeccc195 Add additional acquired constants
Bug: 123101870

Test: Builds
Change-Id: If1daec36c2843efaa7fa0a347ef117b2e5baa1b1
2019-01-24 11:20:48 -08:00
Christine Franks
d154fe5dbf Move color modes to ColorDisplayService
Bug: 123352608
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: Iee9034721366723a7b2faba0ea2adc9479c6fec5
2019-01-24 10:58:00 -08:00
Christine Franks
79ea8c34a1 Merge "Move Night Display methods to ColorDisplayManager" 2019-01-24 17:05:39 +00:00
Badhri Jagan Sridharan
7e60f8efe0 Merge changes from topic "117330206"
* changes:
  UsbContaminant dialog
  Add test commands to spoof presence of contaminants
  Contaminant detection notification
  Support USB V1.2 HAL
2019-01-24 02:03:20 +00:00
Shuzhen Wang
ac1c15821c Merge "Camera: Add support for dynamic physical camera switch" 2019-01-24 01:55:20 +00:00
Christine Franks
44ba4ff06d Make night display auto mode system API
Bug: 111215474
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: I436300b40ffc24dccc58b0420e9e30aa800af05d
2019-01-23 13:43:33 -08:00
Christine Franks
83cc5410a8 Move Night Display methods to ColorDisplayManager
Bug: 111215474
Test: atest FrameworksServicesTest:ColorDisplayServiceTest
Change-Id: Idb16af8dfa1c65bb638b2537e4a162b624069430
2019-01-23 13:43:27 -08:00
Badhri Jagan Sridharan
e966a38b67 Support USB V1.2 HAL
USB V1.2 HAL supports contaminant detection interface.

Bug: 119642987
Bug: 117330206
Bug: 77606903

Test: Manually tested for notification pop-up
Change-Id: I304fb4933ba8b8eaa08c32c9e8c116cba7aa6380
2019-01-23 10:41:02 -08:00
Shuzhen Wang
61aaa32671 Camera: Add support for dynamic physical camera switch
- Add activePhysicalId metadata tag for logical camera to indicate current
active physical camera backing logical camera.
- Clarify synchronization between optical and digital zoom controls.
- Specify metadata tags behaviors when active physical camera switches.

Test: Camera CTS for Pixel 3 logical camera
Bug: 77915333
Change-Id: I0cdb523587e8eef324cb1043914c774824d71159
2019-01-22 14:01:44 -08:00
TreeHugger Robot
697fc4ca36 Merge "Deprecate isConnectedToHdmiSwitch" 2019-01-22 21:34:38 +00:00