Commit Graph

2985 Commits

Author SHA1 Message Date
Christine Franks
88ec096b72 Merge "Move a11y color transforms to ColorDisplayService" 2019-01-18 23:08:37 +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
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
TreeHugger Robot
11d70db8d5 Merge "Update Active Group before creating AuthClient" 2019-01-12 05:13:44 +00:00
Kevin Chyn
747e29ba94 Update Active Group before creating AuthClient
Change-Id: Ic41c97ca2735eb03629610ef725e0dd5691cfd4e
Fixes: 122582871
Test: follow comment #11 in bug linked above
2019-01-11 17:26:23 -08:00
Amy
17ee20fc66 Add HdmiSwitchClient and move isSwitch property to system ro property
ag/5246742

Test: local tested
Bug:112478040
Change-Id: I62b33b0a4c69a0c4b3760706b48b63cf858e435b
2019-01-11 16:20:56 -08:00
Kevin Chyn
e4d655137a Update BiometricManager constants to be more clear
Change-Id: I30c2a4a1e69711588019e9c264ee3810d5a5aaf3
Fixes: 122694026
Test: Ran CTS and verifier tests
2019-01-11 13:43:04 -08:00
Christine Franks
cf42497af1 Merge "Move global grayscale to ColorDisplayService" 2019-01-11 20:35:09 +00:00
Christine Franks
09c229e6bb Move global grayscale to ColorDisplayService
Bug: 111215474
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: I9b72d53b2614f225422f15f3b4018383d75071cd
2019-01-11 09:36:48 -08:00
Kevin Chyn
e77b0596e8 Expose BiometricPrompt setRequireConfirmation API
Bug: 111461540

Test: make -j update-api
Test: CtsVerifier BiometricPromptBoundKeysTest

Change-Id: I36b851a9e84ac6c6ef2bef09bd1ae83a8cab7558
2019-01-10 19:16:01 -08:00
Kevin Chyn
1bafe67c78 Merge changes from topic "face-small"
* changes:
  2/n: Add BiometricPrompt implicit UI
  1/n: Add BiometricPrompt#setRequireConfirmation(bool) API
2019-01-10 22:50:08 +00:00
Dan Gittik
a5a2d6390e Fixed application info null pointer exception.
Test: manual.
      Set up work profile and open an app that's only installed
      there. This should change the user ID without triggering a
      system-wide global switch, in which case the application info
      would be null and cause the system service to crash.
      In the current implementation, this shouldn't happen, and in
      fact the foreground app should be properly inferred regardless
      of the user. This can be visible by enabled and checking the
      AutomaticBrightnessController logs with:

      adb shell cmd display ab-logging-enable
      adb logcat | grep AutomaticBrightnessController

Fixes: 122107873

Change-Id: I8161414a766c494ab0efadaa20fe6fcdf5067948
2019-01-09 16:26:34 +00:00
Kevin Chyn
158fefb72d 1/n: Add BiometricPrompt#setRequireConfirmation(bool) API
Test: BiometricPrompt behaves as expected

Bug: 111461540
Change-Id: I84a298dedba368a9dade2835b71e641e524f45f4
2019-01-08 12:34:54 -08:00
TreeHugger Robot
97e54a0113 Merge "Forward volume keys when system audio mode off and property set" 2019-01-05 02:56:24 +00:00
Sudheer Shanka
2cf41e4fbf Merge "Revert "Added app context to smart screen brightness."" 2019-01-05 00:22:14 +00:00
Shubang Lu
00b976a7df Forward volume keys when system audio mode off and property set
cherry-pick ag/4968405

Bug: 80296335
Test: make; local tests
Change-Id: I04b7cd0958c9300a76f6337ee891b5f4947484ad
2019-01-04 22:11:05 +00:00
Sudheer Shanka
b3f60657a3 Revert "Added app context to smart screen brightness."
This reverts commit 54478d9cab.

Reason for revert: Broke work profile apps (http://b/122107873)

Bug: 111425369
Bug: 122107873
Change-Id: I7e3bf97725d542eb92a04bc75662ca6680287ba2
2019-01-04 21:34:58 +00:00
Christine Franks
83ddf8e8be Merge "Add ColorDisplayServiceInternal local service" 2019-01-03 16:25:28 +00:00
Christine Franks
245ffd4bc6 Add ColorDisplayServiceInternal local service
For display white balance and grayscale

Bug: 111215474
Test: atest FrameworksServicesTest:ColorDisplayServiceTest
Change-Id: I5c7b6543665e520b4e167ac8e6719f337018f172
2019-01-02 10:30:54 -08:00
Kevin Chyn
ffef714cfb Move null check
Bug: 111548033
Test: messages are received
Change-Id: I16d0c9eff4824c0c72e20cf06ce1a4eb5eeb5ba2
2018-12-27 16:28:48 -08:00
chaviw
da4c694bff Added turn on/off virtual display
VirtualDisplays are considered on if they have a surface and off if they don't.
This causes problems for displays that don't have a surface. Instead,
create a separate API to allow the client to request the surface be on
or off.

To ensure backwards compatibility for VirtualDisplays, set the display
to on or off when the surface is added or removed.

Change-Id: If9d8db94a66d6484ac492a53c1cd8fb7da851b88
Fixes: 119209373
Test: Created surfaceless virtual display that can be manually turned on or off
2018-12-26 17:39:13 -08:00
Philip P. Moltmann
bee3e3347c Merge "Expose UsbPort and UsbPortStatus as system API" 2018-12-19 19:10:06 +00:00
Philip P. Moltmann
0ee6ee0a92 Expose UsbPort and UsbPortStatus as system API
This is needed by making the setup wizard use only system-api.

Test: Built, switched USB port state
Change-Id: I8e56859a5b36e7de91691522a34f7d6f62dcbb20
Fixes: 115301401
2018-12-18 08:50:46 -08:00
Dan Gittik
54478d9cab Added app context to smart screen brightness.
Smart screen brightness learns the user brightness preferences from
user interactions with the brightness slider, but doesn't take into
account the foreground app's package name or category.
This CL adds:
- A BrightnessCorrection class,
- A mapping of package names and categories to brightness corrections
  in the BrightnessConfiguration,
- Tracking of the foreground app's package name and category in the
  AutomaticBrightnessController,
- Brightness correction depending on the foreground app's package
  name and category in the BrightnessMappingStrategy.

Test: manual - force turbo app to learn brightness preferences for
      specific packages/categories and see that they are applied.

      To make sure package/category switches are handled correctly,
      you can actually hardcode corrections and simulate edge cases
      such as rapid switches, multiple windows, etc.

Fixes: 111425369

Change-Id: Ic9516c75dbf63ea21f0ae780f9c35e8c85dbbe5b
2018-12-18 16:21:43 +00:00
Michael Groover
f1a5b6e0bf Merge changes from topic "SensorPrivacyMode"
* changes:
  Add SensorPrivacy constants to SettingsBackupTest
  Prototype Spaceship mode qstile
2018-12-15 18:07:26 +00:00
Chad Brubaker
90f391fe87 Prototype Spaceship mode qstile
Initial prototype disabling location/sensors and enabling airplane mode.
Camera/Mic will come in a followup.

Test: manual
Bug: 110842805
Change-Id: I26132fcc9ffea83e3e78a0e54882d23c99ee590c
2018-12-14 20:46:04 +00:00
Emilian Peev
3be63a3f65 Camera: Implement legacy device stream combination query
Use the legacy stream configuration logic to check for
support of a given session configuration.

Bug: 111593096
Test:
runtest -x
cts/tests/camera/src/android/hardware/camera2/cts/MultiViewTest.java
runtest -x
cts/tests/camera/src/android/hardware/camera2/cts/RobustnessTest.java -m
testMandatoryOutputCombinations
runtest -x
cts/tests/camera/src/android/hardware/camera2/cts/RobustnessTest.java -m
testBadSurfaceDimensions
runtest -x
cts/tests/camera/src/android/hardware/camera2/cts/RobustnessTest.java -m
testMandatoryReprocessConfigurations
runtest -x
cts/tests/camera/src/android/hardware/camera2/cts/SurfaceViewPreviewTest.java
-m testDeferredSurfaces

Change-Id: I921f94be8212a55fa90150cb35ea06e488dc0b29
2018-12-13 15:05:38 +00:00
Emilian Peev
275da0ba0d Camera: Add reprocessable mandatory stream combinations
Mandatory reprocessable stream combinations must include
at least one input stream and one ZSL output with the same
format and size.

Bug: 111593096
Test: Camera CTS
Change-Id: I4bdfb8b540ccce583b01ea200d8c7e252dd72b12
2018-12-13 15:05:38 +00:00
Emilian Peev
423cbd7107 Camera: Add support for mandatory stream combinations
Generate static mandatory stream combinations according
to the camera device capabilities.

Bug: 111593096
Test: Camera CTS
Change-Id: I18014575090baa61785f213afded46a857928bc8
2018-12-13 15:05:27 +00:00
TreeHugger Robot
c4b8527dcd Merge "Update framework together with HIDL for accessibility" 2018-12-12 20:07:40 +00:00
Kevin DuBois
3ec307b262 Merge "DisplayManager: Add color sampling hardware query" 2018-12-12 15:27:01 +00:00
Kevin Chyn
1f16c2db3c Update framework together with HIDL for accessibility
Bug: 120578823

Test: Builds
Change-Id: Idbd097bbf9d5c08dbab614d5f30ec66631b6b0f5
2018-12-11 19:48:15 -08:00
Kevin DuBois
bf76b11bd2 DisplayManager: Add color sampling hardware query
Add calls to SurfaceControl JNI interface that allow
the DisplayManager to drive color histogram functionality.

Fixes: 112756444

Test: Boot
Test: additional test in 'atest FrameworksServicesTests:DisplayManagerServiceTest'
Change-Id: Ifa46dab53b09db62da79ad82e9687d9155ddc6da
2018-12-10 16:52:26 -08:00
TreeHugger Robot
b78f929508 Merge "Reset lockout using BiometricManager" 2018-12-07 06:00:57 +00:00
Kevin Chyn
6adb3a1d24 Reset lockout using BiometricManager
Bug: 120572933

Test: lockout count is reset when pin/pattern/pass is confirmed

Change-Id: I64389dea38636cc6d4e3f4946a8098d625b489df
2018-12-06 19:46:42 -08:00
TreeHugger Robot
3a6306d4e4 Merge "Camera: Add support for SessionConfiguration queries" 2018-12-06 12:33:31 +00:00
Denis Hsu
ec3c656cd6 Merge "Catch egl errors when drawIntoSurfaces" am: 7604961e1d am: 3bfa2ca8ea
am: 8721af8b15

Change-Id: I5c37f68e07bdd9bd9a9febf99b18893fde4ab8ac
2018-12-06 00:42:18 -08:00
Denis Hsu
8721af8b15 Merge "Catch egl errors when drawIntoSurfaces" am: 7604961e1d
am: 3bfa2ca8ea

Change-Id: Ia44f88a6924aaf3f58661783b797f1d64da2f5ad
2018-12-06 00:26:51 -08:00