Commit Graph

3027 Commits

Author SHA1 Message Date
TreeHugger Robot
ecc418c4cb Merge "Fix acquire comments" 2019-02-02 00:49:51 +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
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
Brian Duddie
cfa5b5b63c Revert "Remove Activity Recognition from the Android Code."
This reverts commit e24f1b095b.

Reason for revert: b/123172409

Change-Id: Ic5863a8e8b36c8c4d8636cc4c004ad9606a3f523
2019-01-22 18:02:36 +00:00
Christine Franks
55194dc1a2 Add supported color transform capabilities
Bug: 111215474
Test: atest FrameworksServicesTests:ColorDisplayServiceTest

Change-Id: Iced2dab2da73647cd7d56905e2ff6864a7b9fe88
2019-01-21 12:29:58 -08:00
TreeHugger Robot
b9b4f9c3b5 Merge "Remove Activity Recognition from the Android Code." 2019-01-19 01:26:41 +00:00
Christine Franks
88ec096b72 Merge "Move a11y color transforms to ColorDisplayService" 2019-01-18 23:08:37 +00:00
Ashutosh Joshi
e24f1b095b Remove Activity Recognition from the Android Code.
Removing AR from the Android code base. We had already severed the
connection to the AR HAL in Android Oreo. This change simply removes all
unused references and uses of the stubs.

Test: Build compiles. Ensure that clients that provide AR through other
channels continue to work.

Change-Id: I79d19c0bd2b80962cdecc8ad88065911fd6311ac
2019-01-18 22:31:53 +00:00
Christine Franks
5daa35687a Merge "Add per-app grayscale to CDS" 2019-01-18 17:13:24 +00:00
Christine Franks
f3529b2f24 Add per-app grayscale to CDS
Bug: 111215474
Test: atest FrameworksServicesTests:ColorDisplayServiceTest and
atest FrameworksServicesTests:AppSaturationControllerTest

Change-Id: I1c59317c668d4caf01847f3b66411709b9d5459e
2019-01-17 12:43:49 -08:00
Kenny Guy
9524ff9de9 Add @TestApi to brightness @SystemApis
Expose the current @SystemApis as @TestApi
so they can be used from CTS.
Add missing equals to BrightnessCorrection
so that equals on BrightnessConfiguration works.

Test: atest android.display.cts
Bug: 122988010
Bug: 122954284

Change-Id: Ifdb79bd6bb8e3fcd3aa783aad09b08f81c73f433
2019-01-17 15:35:06 +00:00
Shubang Lu
7e355f522e Merge changes Ibcebfcc2,Ic2e63185,I90def978,I30031fc9,I0cfa1989
* changes:
  Fix hdmi framework tests.
  Use the Short Audio Descriptor xml parser to get config when receive request short audio descriptor message.
  Add parser for Short Audio Descriptor xml config
  Add an API for clients to know if a target device is connected to the current device.
  Add TV_INPUT_ALLOW_3RD_PARTY_INPUTS to settings
2019-01-17 03:19:05 +00:00
shubang
19ccf61302 Deprecate isConnectedToHdmiSwitch
ag/5655140

Bug: 120108729
Test: make; local tests
Change-Id: I889e267ec120f8e6fedc8cd8ab80b68b3a6fb6f5
2019-01-16 15:24:40 -08:00
Amy
ff115f167f Add an API for clients to know if a target device is connected to the
current device.

ag/5583395

Note the API also returns true if the current device itself is the
target device.

Test: manual
Change-Id: I30031fc98f4e6547bbe3492b22a65b6e11b6efda
2019-01-16 14:42:16 -08:00
TreeHugger Robot
46894e7ac2 Merge "Update BiometricManager constants to be more clear" 2019-01-16 19:55:26 +00:00
Kevin Chyn
922901849c Merge "Expose BiometricPrompt setRequireConfirmation API" 2019-01-16 19:51:12 +00:00
Amy
6f031afecf Add APIs to expose some cec control to other services.
ag/5398143

We exposed Power on/Power off/Device select/Connected device list
query from HdmiControlManager.

Test: local tested
Bug: 117775357
Change-Id: Iee495e7131f44282a60e83ad827faa1431a30389
2019-01-15 18:02:34 -08:00