Commit Graph

3021 Commits

Author SHA1 Message Date
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
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
Shubang Lu
a6c9e20c26 Merge changes I97f97167,I4bf51c47,I8d3193e0,I224a1616,Ie774b0eb, ...
* changes:
  Adding HDMI_CEC_SWITCH_ENABLE Global property to enable/disable Routing Control feature.
  Fix spelling errors in HdmiCecMessage.toString
  More skeleton code for <RequestShortAuidoDescriptor>
  Add a getPhysicalAddress api to hdmicontrolservice.
  Set System Audio Mode on when switch to Audio Only source
  Call HdmiCecLocalDeviceAudioSystem to report audio status.
  Add a delay state into DeviceDiscoveryAction.
2019-01-16 01:40:24 +00:00
Chavi Weingarten
f9d1062118 Merge "Added turn on/off virtual display" 2019-01-15 23:53:08 +00:00
Christine Franks
9114f46d36 Move a11y color transforms to ColorDisplayService
Bug: 111215474
Test: atest FrameworksServicesTests:ColorDisplayServiceTest and
atest FrameworksServicesTests:AccessibilityManagerTest
Change-Id: I264192f23fa3eeb821e1570be5c016824f3c3215
2019-01-14 14:13:14 -08:00
Amy
d58d0aa450 Add a getPhysicalAddress api to hdmicontrolservice.
ag/5309322

This is helpful when other services need physical address to get the
index of the port according to the physical address reported from the
device connected(not necessarily directly) to the current device.

Test: local tested.
Change-Id: I224a16166e4dabccf81dc34eb479e469c29ac3a0
2019-01-14 11:35:46 -08:00
Amy
4ad4e78c38 Set System Audio Mode on when switch to Audio Only source
ag/5298361

Test: local tested.
Bug:80296134
Change-Id: Ie774b0ebe9a147dd650ff92c7af62439d9ae9af0
2019-01-14 11:33:18 -08:00
Shubang Lu
726a71c0db Merge changes Iac5d191d,Ia090bd70,I61f7bf38,Ibc9b7071,I889b6cdc, ...
* changes:
  Add launchDeviceDiscovery when devices just plugged into the current device or the current device just conneted to a TV.
  Fix pathToPort logic in HdmiControlService
  Update the power status of an existing hdmi device with TIF once receive Report Power Status or Active Source from the existing device.
  Add HDMI device info into TIF once receive report Physical Address or Set Osd Name from a new device.
  Change the pathToPort(int path) method in HdmiControlService to apply to not only TV device.
  Modify on hotPlug logic for Audio devices
  Add array and add/remove methods to track connected device info
  Modify doManualPortSwitching logic in Audio System
  Add HdmiSwitchClient and move isSwitch property to system ro property
  Wake up device when device is in dozing but CEC power status is on.
2019-01-14 18:17:43 +00:00