Given we don't support display states and brightness settings when in
the VR mode, removing the logic relevant to that.
Bug: 260555143
Test: atest com.android.server.power
Change-Id: I355060117971a04cec1057d4ed2e1544e1c449af
If a display is disabled, do not share it outside of
DisplayManagerService.
This will help by not creating any unnecessary updates for displays that
are disabled, and also not informing Applications of displays that they
are unable to use.
Also fixing a concurrency issue with DMS.handleLogicalDisplaySwapped
which became apparent with this CL. Deferring the runnable with a
Handler.post() caused the display-state-OFF update to happen after a newer
change to turn the display ON. This caused the device to startup into a
black screen. Removed the unnecessary call (since the displays are now
made to both go into the "transition" state) to update the state and
removed a lot of the redundant code with handleLogicalDisplayChange()
which was called at the end of the method anyway.
Bug: 221071695
Test: atest com.server.android.display
Test: Manually verify display layouts still successfully change, and
also confirm logs no longer hand excessive add/remove
display notifications.
Change-Id: I003fd91567630a447cf030b6fb83e5cb1041bcb5
Required to run validation tests to check device capability
needed to run the preloaded nanoapps.
Bug: 258074235
Test: make update-api
Change-Id: Id39d9f0ee3e73bbd00e31fa03a4d626938d49f5a
Implement the AIDL and HIDL coexist in framework
Bug: 218791946
Test: USB function switch success and AIDL service is running.
atest VtsHalUsbGadgetV2_0HostTest
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I6d9bc861a4aceb753bf6f816daccd039e423994d
The virtual device sensors are handled as runtime sensors internally. They are returned from getSensorsList *iff* the current context in SensorManager is associated with a virtual device, which has a custom sensors policy.
The SystemSensorManager adds a new implementation of getSensorList in order to avoid the cache the per-device sensor lists separately.
The virtual device sensors do not trigger DynamicSensorCallbacks and are removed from the system when the virtual device is closed. The virtual device broadcasts the fact that it's being closed so the SensorManager can clean up any cached lists associated with that device.
Bug: 237278244
Test: atest cts/tests/sensor
Change-Id: I63938377f4eedca32fba14d8e15e09be1b85e460
This basically duplicates the behavior of config_perDisplayFocusEnabled
but via a display flag instead of globally for all displays. The display
must be trusted for the new flag to be set.
This is particularly needed for virtual devices and displays with
navigation-type inputs, for which touching the default display will
cause everything to enter touch mode and therefore the currently focused
view would lose focus.
Bug: 233911853
Bug: 256810557
Test: atest DisplayManagerServiceTest
Test: atest WindowManagerServiceTests
Change-Id: Ie1c3b8a42f512530bf0ce3fabc56f0da236a311c
This feature gives users of STB/OTT devices with built-in or connected speakers the possibility to use it as a proper soundbar for the audio of the TV or other connected devices, supporting the main CEC functionalities for soundbars.
Bug: 237275185
Test: make && atest com.android.server.hdmi
Change-Id: I919eb3c75a89599135d3bb6bf52f0a4488e51dcf
This is precursor to adding new APIs for PK layout selection
implementation which will be handled in KeyboardLayoutManager.
Bug: 259530132
Test: atest KeyboardLayoutChangeTest
Change-Id: I99e396816838c05f28ce57ac50680a3369221921
Change-Id: I4f8ba5350e6affa9f6b2df31262c8aadafc0da05
Introduce the API HdmiControlManager#getPortInfo.
Deprecate HdmiSwitchClient#getPortInfo.
Bug: 237067393
Test: m && atest android.hardware.hdmi.cts.HdmiControlManagerTest
Change-Id: I7a3c16f862c8ffdfd0bc69637469761728be7a8a
VirtualTouchEvent.Builder raises an exception during build() that is not
obvious why it is raised. Adding documentation with explanation.
Test: pure documentation change
Change-Id: I877fd17dd8325ff614ea056aa005740c1a25da1f
This commit is part of a large scale change to fix errorprone
errors that have been downgraded to warnings in the android
source tree, so that they can be promoted to errors again.
The full list of changes include the following, but not all
will be present in any one individual commit:
BadAnnotationImplementation
BadShiftAmount
BanJNDI
BoxedPrimitiveEquality
ComparableType
ComplexBooleanConstant
CollectionToArraySafeParameter
ConditionalExpressionNumericPromotion
DangerousLiteralNull
DoubleBraceInitialization
DurationFrom
DurationTemporalUnit
EmptyTopLevelDeclaration
EqualsNull
EqualsReference
FormatString
FromTemporalAccessor
GetClassOnAnnotation
GetClassOnClass
HashtableContains
IdentityBinaryExpression
IdentityHashMapBoxing
InstantTemporalUnit
InvalidTimeZoneID
InvalidZoneId
IsInstanceIncompatibleType
JUnitParameterMethodNotFound
LockOnBoxedPrimitive
MathRoundIntLong
MislabeledAndroidString
MisusedDayOfYear
MissingSuperCall
MisusedWeekYear
ModifyingCollectionWithItself
NoCanIgnoreReturnValueOnClasses
NonRuntimeAnnotation
NullableOnContainingClass
NullTernary
OverridesJavaxInjectableMethod
ParcelableCreator
PeriodFrom
PreconditionsInvalidPlaceholder
ProtoBuilderReturnValueIgnored
ProtoFieldNullComparison
RandomModInteger
RectIntersectReturnValueIgnored
ReturnValueIgnored
SelfAssignment
SelfComparison
SelfEquals
SizeGreaterThanOrEqualsZero
StringBuilderInitWithChar
TreeToString
TryFailThrowable
UnnecessaryCheckNotNull
UnusedCollectionModifiedInPlace
XorPower
See https://errorprone.info/bugpatterns for more
information on the checks.
Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Merged-In: I19920151701b25e34a1c82af073759d50e3bcc77
Change-Id: If7d7720bd650295d0e8be234ca5221a75cde167f
Band config constructor using band descriptor was updated to
create base band config instance rather than using extended
band config class instance directly.
Bug: 220733218
Test: atest RadioManagerTest
Change-Id: I1d7481c9042e5dd77df2a0bde40cec0f22057cbe
StylusListener detects first usage of a stylus, and
updates the STYLUS_EVER_USED Settings flag.
Bug: 251206662
DD: go/stylus-first-usage-options
Test: StylusListenerTest
Change-Id: I165481d1166e31b5b8560da5c695003d105068ef