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
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
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
Using arrays in Objects.hash() is error prone. Instead we
call Arrays.hashCode().
Test: m services
Bug: 154302664
Change-Id: Icf00fbaa465ef60951998659ae0333b2faf7042b
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
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
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
Fixing the typo by removing the parameter in the javadoc.
@CallbackExecutor will automatically generate documentation for this
parameter
Test: n/a
Change-Id: Ie78028d0b1fb1b48ee7b07585734a2301135636b
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
* 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
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
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
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
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
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
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
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
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