Commit Graph

3688 Commits

Author SHA1 Message Date
Marin Shalamanov
f4733dd8ac Merge "Change the type of display port from byte to int" 2020-04-28 12:25:33 +00:00
Marin Shalamanov
41cb66fa00 Change the type of display port from byte to int
Using byte for display port is error prone since ports
are in the range [0, 255] and bytes have the range [-128, 127].
This way we need to downcast from int to byte in order to write a
value to display port and also we need to call Byte.toUnsignedInt
every time we want to consume it.

Test: m services
Bug: 153334857
Change-Id: I4dce87c0a411c5d447f62cc5564eb4b8a8fb75f0
2020-04-27 22:11:29 +02:00
Nick Chalko
c2b6938c2e Merge "Use HdmiProperties class for ro.hdmi.*" 2020-04-26 17:18:44 +00:00
Ytai Ben-tsvi
5ac3773839 Merge "Deliver internal server errors to the client" into rvc-dev am: f7d789b0ed am: 62fa87cbf4 am: 503ee719e1 am: bedc04c1b1
Change-Id: I394e47e9ac387a24169e543f28a899438dc7d7d9
2020-04-25 02:46:16 +00:00
Ytai Ben-tsvi
503ee719e1 Merge "Deliver internal server errors to the client" into rvc-dev am: f7d789b0ed am: 62fa87cbf4
Change-Id: Iafb290d16686ab312326807cf9d2a33f59b0be8f
2020-04-25 02:08:26 +00:00
Ytai Ben-Tsvi
458930753d Deliver internal server errors to the client
Due to a binder limitation (b/150808347), any unexpected exception
thrown by a binder service while processing an RPC call, will be
silently discarded and the client will get back a default-initialized
result parcelable (i.e. in most cases, won't know that anything wrong
happened).

We work around this issue by throwing a ServiceSpecificException,
which does get delivered, having a special code to designate an
internal error. Errors resulting from a HAL malfunctions will result
in a HAL reboot, which leads to recovery.

Bug: 154089179
Test: Manual verification of basic error recovery scenarios by
      injecting HAL error codes and crashes.
Change-Id: Ib5dbe08a362e545501c04204bebad5ab95f5d632
2020-04-24 16:39:36 -07:00
TreeHugger Robot
8f1f941d3c Merge "CEC: Make HDMI CEC volume control configurable" 2020-04-24 17:53:43 +00:00
TreeHugger Robot
e7a355291b Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev am: f0de93d7b2 am: 6cd7f6c60d am: 57e5456ddf am: 5a6aebd974
Change-Id: I61178029bcaf0e2738933059d8da586c59b93ba6
2020-04-24 15:07:02 +00:00
TreeHugger Robot
6cd7f6c60d Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev am: f0de93d7b2
Change-Id: Ie0e9c4b6717e87a1f1057318f93b7bfe9469c4bf
2020-04-24 14:37:20 +00:00
TreeHugger Robot
f0de93d7b2 Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev 2020-04-24 14:24:25 +00:00
Marvin Ramin
309efbc770 CEC: Make HDMI CEC volume control configurable
Add API (backed by Setting) to enable/disable volume changes via HDMI
CEC for HDMI CEC source devices.
This state is persisted via Settings.

If volume control is disabled, no incoming HDMI CEC commands related to
volume will be processed. If disabled, no HDMI CEC volume control
messages will be sent by the device.

Test: atest com.android.server.hdmi
Bug: 149800547

Change-Id: I83ae9b423122b540b9adb156fb1c6f5964dd6105
2020-04-24 16:14:23 +02:00
Marin Shalamanov
90fd0b19f8 Use Arrays.hashCode in DeviceProductInfo
Using arrays in Objects.hash() is error prone. Instead we
call Arrays.hashCode().

Test: m services
Bug: 154302664
Change-Id: Icf00fbaa465ef60951998659ae0333b2faf7042b
2020-04-24 13:02:35 +00:00
TreeHugger Robot
4338456d82 Merge "Camera: Update physical camera request keys documentation" into rvc-dev am: 1a17016c70 am: 9a2db61b88 am: 8fa4061bce am: 6902350871
Change-Id: Ia926c96f1a7f9c0a6a827906e38c89c10e0d8a6b
2020-04-23 17:59:57 +00:00
TreeHugger Robot
8fa4061bce Merge "Camera: Update physical camera request keys documentation" into rvc-dev am: 1a17016c70 am: 9a2db61b88
Change-Id: I7fe48b83772c7b4c59bb5890ed0473cb148b68d3
2020-04-23 17:16:42 +00:00
TreeHugger Robot
81cb6b1d2a Merge "Camera: Update physical camera request keys documentation" into rvc-dev am: 1a17016c70
Change-Id: I59f9cca5ae09b266d1434bdd9f86cc3dc4889d90
2020-04-23 17:01:26 +00:00
TreeHugger Robot
1a17016c70 Merge "Camera: Update physical camera request keys documentation" into rvc-dev 2020-04-23 16:39:11 +00:00
Tarundeep Singh
1ef75267f6 Use HdmiProperties class for ro.hdmi.*
Bug: 141581191
Test: m services.core
Change-Id: Ieb32135d30b60ad04d5f3e673391e469c83b7f84
2020-04-23 07:49:47 -07:00
Emilian Peev
b30f4ef874 Camera: Update physical camera request keys documentation
Align physical camera request key documentation with the
camera service implementation. Specifically remove any
repeating request limitations.

Bug: 154673381
Test: Successful doc build
Change-Id: I563542e819ef57a99f762d7cfd653cced2423ebb
2020-04-22 09:11:01 -07:00
Marin Shalamanov
939dacea86 Merge "Add relative address to DeviceProductInfo." 2020-04-22 12:52:03 +00:00
Jacky Kao
cebd109abb Merge "Obtain correct screenshot based on device orientation" 2020-04-22 00:41:54 +00:00
Jacky Kao
4b4eec7813 Obtain correct screenshot based on device orientation
When taking the screenshot, passing the width and height
of the display, and the rotation according to the current
device orientation.

Bug: 153173726
Test: a11y CTS & unit tests
Test: manual test
Change-Id: I19eea2046da282155719b1dfdf9a3f53ad95e13b
2020-04-22 08:33:49 +08:00
Jacky Kao
ca6b2ab591 Merge "Obtain correct screenshot based on device orientation" into rvc-dev am: 538ee89f2b
Change-Id: I5b46e2f85dc074bbf0f835c6b7332eb5f36ade2d
2020-04-22 00:21:05 +00:00
Jacky Kao
538ee89f2b Merge "Obtain correct screenshot based on device orientation" into rvc-dev 2020-04-22 00:19:35 +00:00
Jacky Kao
333de4e7c3 Obtain correct screenshot based on device orientation
When taking the screenshot, passing the width and height
of the display, and the rotation according to the current
device orientation.

Bug: 153173726
Test: a11y CTS & unit tests
Test: manual test
Change-Id: I19eea2046da282155719b1dfdf9a3f53ad95e13b
2020-04-22 00:19:12 +00:00
TreeHugger Robot
75836b7847 Merge "Fix typo in HdmiSwitchClient documentation" 2020-04-21 06:53:48 +00:00
Jacky Kao
5dc99c6f58 Merge "Supporting multi-display for takeScreenshot() on master" 2020-04-20 23:35:58 +00:00
Marvin Ramin
9c98c368ef Fix typo in HdmiSwitchClient documentation
Fixing the typo by removing the parameter in the javadoc.
@CallbackExecutor will automatically generate documentation for this
parameter

Test: n/a
Change-Id: Ie78028d0b1fb1b48ee7b07585734a2301135636b
2020-04-20 20:17:14 +00:00
Kevin Chyn
dd094dd83a Merge changes I1597d000,I18026e79
* changes:
  Add BiometricService to dumpsys
  Split IBiometricServiceReceiverInternal between sensor and sysui
2020-04-18 23:05:11 +00:00
Nicholas Ambur
ac42a7c999 Merge "add KeyphraseEnrollmentInfo to TestApi" into rvc-dev am: 01b4d5cb13
Change-Id: I316ee034119f08155ac51cfc4a6e38a4287a4e35
2020-04-18 02:25:09 +00:00
Nicholas Ambur
d3c1f27b0c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
Merged-In: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-17 22:12:13 +00:00
Nicholas Ambur
b766f2d8bf Merge "add KeyphraseEnrollmentInfo to TestApi" 2020-04-17 22:04:29 +00:00
Kevin Chyn
3be2c08966 Split IBiometricServiceReceiverInternal between sensor and sysui
Fixes: 151967372

Test: CtsVerifier
Test: atest com.android.server.biometrics
Test: atest com.android.systemui.biometrics

Change-Id: I18026e797abeac009e7993e3486368f0607a829d
2020-04-17 13:39:51 -07:00
Kevin Chyn
d684814073 Merge changes from topic "biometric-id"
* changes:
  7/n: BiometricService is the source of truth for sensor strength
  Add biometric tests to presubmit
  6/n: Key by Biometric ID instead of Modality
  5/n: Rename sessionId to operationId
  4/n: AuthContainerView should filter out non-biometric modalities
  3/n: Add IntDefs for several biometric-related constants
  2/n: Move AuthenticatorWrapper its own file
  1/n: Move BiometricService.AuthSession to its own class
2020-04-17 18:52:52 +00:00
Kevin Chyn
68b19ae969 7/n: BiometricService is the source of truth for sensor strength
Individual sensor services only need to keep track of their
ID. When doing things that require knowledge of current strength,
query BiometricService.

Bug: 149067920
Fixes: 151953729

Test: atest com.android.server.biometrics
Test: BiometricPromptDemo

Change-Id: Id2b7cd4e02c1a4b4707950285923f8166b8f46e1
2020-04-16 23:15:38 -07:00
Kevin Chyn
755f66a68c 6/n: Key by Biometric ID instead of Modality
This change contains the following major changes:
1) Moves checkAndGetAuthenticators and most of its logic into
   a new modular class (PreAuthInfo), which has takes API parameters,
   biometric sensor status, user/system settings, etc and generates
   preliminary info for client requests (canAuthenticate
   authenticate APIs).
2) Sensor state during authentication sessions are now tracked
   within BiometricSensor (used to be floating around in
   BiometricService)
3) BiometricPrompt (above system server) is responsible for
   handling any combination of modality errors now. As such,
   updated selection logic and also added a catch-all string

Bug: 149067920

Test: atest com.android.server.biometrics
Test: CtsVerifier biometric section on face and fingerprint devices

Change-Id: I030593de2c350824bc961f92a75895f49a9c7996
2020-04-16 23:15:38 -07:00
Nicholas Ambur
d94f1f7c3c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-16 22:02:20 -07:00
Kevin Chyn
25a5680d91 5/n: Rename sessionId to operationId
sessionId was a leftover misnaming from a long time ago. This
parameter is actually the operationId for the keystore
cryptographic operation to be unlocked after authentication
succeeds.

Bug: 149067920

Test: Builds
Change-Id: Id27a9379316980fae21e0f10433cb35459891f85
2020-04-16 18:53:19 -07:00
Kevin Chyn
4efee6d85f 3/n: Add IntDefs for several biometric-related constants
Bug: 149067920

Test: Builds
Change-Id: I54ecc53a49f3545c14340b5471cc757adece5bc0
2020-04-16 18:05:33 -07:00
Jacky Kao
3ff343554a Supporting multi-display for takeScreenshot() on master
Based on the change of this patch, ag/10633571,
Convert ScreenshotGraphicBuffer to ScreenshotHardwareBuffer, on
master branch only, re-porting this CL, ag/10700743, from rvc-dev
to master.

Bug: 153398112
Test: a11y CTS & unit tests
Change-Id: Iee1ed715f8912569c8db4a7297ee5ef4990e9e70
2020-04-17 07:46:26 +08:00
TreeHugger Robot
b6b2763540 Merge "Camera: Hook up zoom ratio in legacy camera2 shim" into rvc-dev am: 27e6f4ebf7 am: 94d5cf3d3e am: 95959726c4 am: 3dd9cdb59c
Change-Id: I5dd431059a41ca351348fa7fac43a9e9ddcf1ba1
2020-04-16 07:26:05 +00:00
TreeHugger Robot
94d5cf3d3e Merge "Camera: Hook up zoom ratio in legacy camera2 shim" into rvc-dev am: 27e6f4ebf7
Change-Id: I97439d51ed0fd7046a766f48826d1f1946317486
2020-04-16 06:27:52 +00:00
Shuzhen Wang
f807a41008 Camera: Hook up zoom ratio in legacy camera2 shim
Map the camera2 CONTROL_ZOOM_RATIO to legacy zoomRatio in Camera.Parameters.

Test: Force Pixel 2 HAL to HAL1, and run testZoomRatioTest
Bug: 149052011
Change-Id: I888c919ae10d3e2882f3df797524a06e2b3be259
2020-04-15 18:01:29 -07:00
Marin Shalamanov
5853c33be5 Add relative address to DeviceProductInfo.
This CL adds a field relativeAddress to DeviceProductInfo which
contains the device address in the display network. For example,
for HDMI connections the field is populated with the physical address.

Bug: 147994746
Test: adb shell dumpsys display
Change-Id: I87d9fd00bd16abc7594dc3f6b6d4e00c8968af07
2020-04-15 21:28:24 +02:00
Marin Shalamanov
fbf3722d71 [RESTRICT AUTOMERGE] Add relative address to DeviceProductInfo. am: 443c4d047a
Change-Id: I90920b787e4dcb7b81008b6080116acec825061d
2020-04-14 16:38:58 +00:00
TreeHugger Robot
c74baf480d Merge "[RESTRICT AUTOMERGE] Add relative address to DeviceProductInfo." into rvc-dev 2020-04-14 16:30:28 +00:00
Marin Shalamanov
443c4d047a [RESTRICT AUTOMERGE] Add relative address to DeviceProductInfo.
This CL adds a field relativeAddress to DeviceProductInfo which
contains the device address in the display network. For example,
for HDMI connections the field is populated with the physical address.

Bug: 147994746
Test: adb shell dumpsys display
Change-Id: I87d9fd00bd16abc7594dc3f6b6d4e00c8968af07
2020-04-14 16:52:11 +02:00
TreeHugger Robot
5f991ce6f1 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev am: 72a3d44773 am: ec138e6171 am: de8a4f14f8 am: 994cd92800
Change-Id: I18c7d4b11612a8e7236afacf508c71b139b4fdb3
2020-04-11 03:38:35 +00:00
TreeHugger Robot
de8a4f14f8 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev am: 72a3d44773 am: ec138e6171
Change-Id: Idd6a9311c5b138a7be6e3384b298e7544ed96773
2020-04-11 02:58:58 +00:00
TreeHugger Robot
bfde8d1d56 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev am: 72a3d44773
Change-Id: Ica8dff14fbd3e0968eac6010cfa52d3d0704115a
2020-04-11 02:40:04 +00:00
TreeHugger Robot
72a3d44773 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev 2020-04-11 02:19:12 +00:00