Commit Graph

5960 Commits

Author SHA1 Message Date
Rupesh Bansal
5e6a03d337 Merge "Remove VR features" 2022-12-03 02:06:02 +00:00
Matthew Sedam
42b8466b01 Merge changes from topic "test-api-preloaded-nanoapps"
* changes:
  Adds a test API to get the list of preloaded nanoapp
  Add queryPreloadedNanoapps Test API to the Context Hub Service
2022-12-02 17:38:04 +00:00
Rupesh Bansal
7996c6b838 Remove VR features
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
2022-12-02 17:24:14 +00:00
Santos Cordon
42460b0bd6 Do not send updates for disabled displays.
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
2022-12-02 10:42:30 +00:00
Ilya Matyukhin
d71de2614a Merge changes from topic "new-udfps-touch" into tm-qpr-dev am: 0672ae40db am: 858442e50d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20550191

Change-Id: I15ceb55ba19a1b07605d80614ca4c538c557cff5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 02:06:40 +00:00
TreeHugger Robot
7b7f8aba2f Merge "usb: Implement the AIDL in framework" 2022-12-01 04:30:30 +00:00
Arthur Ishiguro
afcd38fe12 Adds a test API to get the list of preloaded nanoapp
Required to run validation tests to check device capability
needed to run the preloaded nanoapps.

Bug: 258074235
Test: make update-api
Change-Id: Id39d9f0ee3e73bbd00e31fa03a4d626938d49f5a
2022-11-30 21:06:31 +00:00
Matthew Sedam
c92cb1ebb4 Add queryPreloadedNanoapps Test API to the Context Hub Service
Bug: 258074235
Test: adb shell dumpsys contexthub # shows preloaded nanoapps
Change-Id: Id4f3456f5b46daf6b4a194cdddc0b5f179ee4b1a
2022-11-30 21:04:38 +00:00
Ilya Matyukhin
858442e50d Merge changes from topic "new-udfps-touch" into tm-qpr-dev am: 0672ae40db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20550191

Change-Id: Idad692926ac241f051d6580ddfe1b1318e8cad08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 17:16:07 +00:00
Vladimir Komsiyski
79101e966f Merge changes from topic "virtual-sensors"
* changes:
  Adjust the behavior of SensorManager for virtual device sensors.
  Virtual sensors lifecycle management.
  Virtual sensor API.
2022-11-30 12:41:38 +00:00
TreeHugger Robot
b996c64399 Merge "Annotate GuardedBy in ProgramList" 2022-11-30 10:52:22 +00:00
Vladimir Komsiyski
79ffdd3932 Merge "Add a display flag for maintaining its own focus and touch mode." 2022-11-30 09:10:25 +00:00
Weilin Xu
739e9983c2 Annotate GuardedBy in ProgramList
Bug: 260635403
Test: atest ProgramListTest
Change-Id: If5aad316026b49df62a036e21a517ee1dd50d928
2022-11-30 04:51:05 +00:00
Ricky Niu
74272e2422 usb: Implement the AIDL in framework
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
2022-11-30 11:12:06 +08:00
RD Babiera
ed0abd0287 Merge "Usb non-compliant port partner frameworks api" 2022-11-30 01:39:19 +00:00
Ilya Matyukhin
8698dbdf55 Integrate new touch architecture with UdfpsController
Bug: 218388821
Bug: 218374828
Test: atest SystemUITests:com.android.systemui.biometrics
Change-Id: Ifb32d5f6a94b2b5a1daf9e972414476db4122047
2022-11-29 21:37:42 +00:00
Vladimir Komsiyski
c0acd6cd17 Adjust the behavior of SensorManager for virtual device sensors.
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
2022-11-29 18:13:54 +01:00
Vladimir Komsiyski
702275586e Add a display flag for maintaining its own focus and touch mode.
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
2022-11-29 14:20:40 +01:00
Treehugger Robot
646afca488 Merge "camera2: Fix getConcurrentCameraIds doc formatting" am: 282a29b8ba am: c1a873af37 am: b85edb9ee9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2315784

Change-Id: I6314cda293fe47d3977085340a2c2b340c79e30e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 19:37:45 +00:00
Treehugger Robot
b85edb9ee9 Merge "camera2: Fix getConcurrentCameraIds doc formatting" am: 282a29b8ba am: c1a873af37
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2315784

Change-Id: I138c1c678d81e298fd1986bcf905793aad407ed7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 19:26:00 +00:00
Treehugger Robot
c1a873af37 Merge "camera2: Fix getConcurrentCameraIds doc formatting" am: 282a29b8ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2315784

Change-Id: Ieab341a9883d078bb3f5fbf879ff89fb5f2103b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 18:59:57 +00:00
Treehugger Robot
282a29b8ba Merge "camera2: Fix getConcurrentCameraIds doc formatting" 2022-11-28 18:20:20 +00:00
Paul Colta
6f3a98be8d HDMICEC: Dynamic soundbar mode feature
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
2022-11-28 10:26:45 +01:00
Mary Xia
bbbb94315e Declare new display category and enforce equality match with activity attribute in GWPC
Bug:233910285
Test: atest RestrictActivityTest
Change-Id: I0452fe45d5d5ba360bbfbe4a15586fcea68d2216
2022-11-25 22:25:09 +01:00
Vaibhav Devmurari
a5816ee2a5 Merge "Refactor: Move Keyboard layout related logic out of IMS" 2022-11-25 10:10:33 +00:00
Nathalie Le Clair
cc69ccbb84 Merge "Add setting to enable the eARC feature" 2022-11-24 12:54:56 +00:00
Paul Colța
d567dc56b8 Merge "HDMICEC: Expose HdmiControlManager#getPortInfo API" 2022-11-24 12:14:35 +00:00
Vaibhav Devmurari
c8ff2fb1c2 Refactor: Move Keyboard layout related logic out of IMS
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
2022-11-24 11:29:20 +00:00
Jayant Chowdhary
38ede54c5e camera2: Fix getConcurrentCameraIds doc formatting
Bug: 260248001

Test: Inspect make doc-comment-check-docs output

Change-Id: I2d97559da698cbcfe6e5bbe84085cb2b5fd064d5
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-11-24 01:14:23 +00:00
Vania Januar
33d3ca7f96 Merge "Implement StylusListener SystemUI CoreStartable." into tm-qpr-dev am: 7cf9a10a4e am: f1b8606c17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20007686

Change-Id: I1f5318c74416c83df6faca4c975611a1c153a871
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 18:00:36 +00:00
Nathalie Le Clair
bee249cd4b Add setting to enable the eARC feature
Test: make, CTS Pending
Bug: 240386970
Change-Id: Ic694f7d83357efd1db7974d3cc1bd1a3ccf57dbd
2022-11-23 15:02:48 +01:00
Paul Colta
200bbee338 HDMICEC: Expose HdmiControlManager#getPortInfo API
Introduce the API HdmiControlManager#getPortInfo.
Deprecate HdmiSwitchClient#getPortInfo.

Bug: 237067393
Test: m && atest android.hardware.hdmi.cts.HdmiControlManagerTest
Change-Id: I7a3c16f862c8ffdfd0bc69637469761728be7a8a
2022-11-23 10:09:17 +01:00
Vania Januar
f1b8606c17 Merge "Implement StylusListener SystemUI CoreStartable." into tm-qpr-dev am: 7cf9a10a4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20007686

Change-Id: I4aa68556e51690a051718f9c2b9b4b8f51aa2603
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 08:58:24 +00:00
Vania Januar
7cf9a10a4e Merge "Implement StylusListener SystemUI CoreStartable." into tm-qpr-dev 2022-11-23 08:15:32 +00:00
Shuzhen Wang
7fcfdd40d4 Merge "Camera: Fix up STREAM_CONFIGURATION_MAP doc" into tm-dev am: 945f5b8839 am: 1f5343026b am: 6a110d68fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20536797

Change-Id: Iaef2dcbeeb0841196dfc173cfb24a6750371eec4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 06:27:54 +00:00
Shuzhen Wang
6a110d68fd Merge "Camera: Fix up STREAM_CONFIGURATION_MAP doc" into tm-dev am: 945f5b8839 am: 1f5343026b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20536797

Change-Id: I794e6fcede53524862f8727f3b2a4d930522d84d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 06:03:27 +00:00
Shuzhen Wang
d271296756 Merge "Camera: Fix up STREAM_CONFIGURATION_MAP doc" into tm-dev am: 945f5b8839 am: 272793948c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20536797

Change-Id: I7202d208300ab8511b88cf7cd1d1d448c0f3baab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 06:03:11 +00:00
Shuzhen Wang
1f5343026b Merge "Camera: Fix up STREAM_CONFIGURATION_MAP doc" into tm-dev am: 945f5b8839
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20536797

Change-Id: I375d677cf00d760f66bb21d956ffdf3aa52fdbb7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 05:33:40 +00:00
Sally Qi
d2fbea3097 Merge "Plumb overlayPropertes into DMS side." 2022-11-22 18:20:49 +00:00
Shuzhen Wang
a80b1542c8 Camera: Fix up STREAM_CONFIGURATION_MAP doc
The table within STREAM_CONFIGURATION_MAP wasn't formatted properly.

Test: Read Java doc
Bug: 259320974
Change-Id: I1c7932eae94b51b455933aea04881481292dba33
2022-11-21 23:24:38 +00:00
Weilin Xu
2f3f785678 Merge "Fix BandConfig constructor inconsistency" 2022-11-21 18:48:57 +00:00
Treehugger Robot
a79b2e1e31 Merge "Fix errorprone warnings that should be errors" am: 654e9d6dfc am: 204e2c0743
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2308090

Change-Id: If1e5e7d18c7b5bb9f86e7b8fa93ddd6baa854b67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21 16:07:11 +00:00
Treehugger Robot
204e2c0743 Merge "Fix errorprone warnings that should be errors" am: 654e9d6dfc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2308090

Change-Id: I85bfbb51726113153e8ac1c32ccc72e88ad79182
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21 15:41:26 +00:00
Sandro Meier
5c2bd27f77 Merge "Improve documentation of VirtualTouchEvent" 2022-11-21 14:04:17 +00:00
Sandro Meier
70ef8a99fb Improve documentation of VirtualTouchEvent
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
2022-11-21 07:47:39 +00:00
Ravneet Dhanjal
4c29639bb4 Merge "Camera Extensions: Add OutputSurfaceConfiguration class to retrieve surface outputs" 2022-11-20 21:25:35 +00:00
Cole Faust
4b5766ff13 Fix errorprone warnings that should be errors
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
2022-11-18 22:40:01 -08:00
Weilin Xu
f73eda0f2f Fix BandConfig constructor inconsistency
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
2022-11-18 22:25:48 +00:00
Ilya Matyukhin
57041df3a5 Merge "Propagate PointerContext for UDFPS touch events" 2022-11-18 22:19:29 +00:00
Vania Januar
1191ce4d2c Implement StylusListener SystemUI CoreStartable.
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
2022-11-18 17:57:15 +00:00