Commit Graph

5932 Commits

Author SHA1 Message Date
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
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
Sandro Meier
fe48823538 Merge "Add documentation about pressure to VirtualTouchEvent" 2022-11-18 08:26:42 +00:00
Sandro Meier
1fb38b7b23 Add documentation about pressure to VirtualTouchEvent
The underlying input devices are configured with a pressure range of
0-255. MotionEvent uses a normalized range of 0.0-1.0, which has caused
some confusion. This change adds documentation about the expected range.

Test: Documentation only change
Bug: 259554911
Change-Id: Iddb6cd5b5cd23bb15f75620041d7d3cbf49959db
2022-11-18 08:19:51 +00:00
Kenneth Ford
1629ef75ec Merge changes from topic "rear-display-overlay" into tm-qpr-dev am: 47af12f98c am: f3ed038281
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20469490

Change-Id: I0a482d5542010beed47a8d7720ea7174181e3832
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 08:08:08 +00:00
Kenneth Ford
f3ed038281 Merge changes from topic "rear-display-overlay" into tm-qpr-dev am: 47af12f98c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20469490

Change-Id: Ia278cc43119b6ccdf6e6108d6901e0eed4fe03e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 07:38:28 +00:00
Rupesh Bansal
707cf8cfa8 Merge "Introducing the notion of DisplayBrightnessController, and making it use DisplayBrightnessModeStrategies" 2022-11-18 04:05:57 +00:00
Rupesh Bansal
5909714ea3 Introducing the notion of DisplayBrightnessController, and making it use
DisplayBrightnessModeStrategies

DisplayBrightnessController is expected to handle all the changes that
happens to the brightness of the display. We have also introduced the
notion of DisplayBrightnessModeStrategies, and are making this
controller implement 2 different strategies - DozeBrightnessModeStrategy
and ScreenOffBrightnessModeStrategy. In the future, we will be
introducing more such strategies.

In future, DisplayBrightnessController will also be responsible for clamping the
brightness, and notifying the system about the changes

Test: atest ScreenOffBrightnessModeStrategyTest DisplayBrightnessControllerTest DozeBrightnessModeStrategyTest
Bug: 253226419
Change-Id: I6658ccf778274378194e158b4e9f19fb04dc1d3f
2022-11-18 03:43:56 +00:00
Treehugger Robot
52519acbca Merge "Update onwer file for broadcast radio package" am: ef9646b75b am: 6060eac5bb am: ffe9cb0c8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2304481

Change-Id: I010b0da0811487b0d4401752a5c0125ce0c7d669
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 03:22:53 +00:00
Treehugger Robot
ffe9cb0c8a Merge "Update onwer file for broadcast radio package" am: ef9646b75b am: 6060eac5bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2304481

Change-Id: I54ad4a5822e6ac8dfd903619472b1c12fe1b1cd4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 03:15:15 +00:00
Treehugger Robot
6060eac5bb Merge "Update onwer file for broadcast radio package" am: ef9646b75b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2304481

Change-Id: I74966c7486f73ed4b4110d00e9bab971f2220a8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 02:51:59 +00:00
Treehugger Robot
ef9646b75b Merge "Update onwer file for broadcast radio package" 2022-11-18 02:14:16 +00:00
Shuzhen Wang
40c0748280 Merge "Camera: Make settings override keys optional" 2022-11-18 00:50:53 +00:00
Ilya Matyukhin
10ae7f2e9c Propagate PointerContext for UDFPS touch events
Bug: 218388821
Test: atest FrameworksCoreTests:android.util.RotationUtilsTest
Test: atest FrameworksServicesTests:com.android.server.biometrics
Test: atest SystemUITests:com.android.systemui.biometrics
Change-Id: If41ae8d30c702c1482c0ab5617014d93a656526b
2022-11-17 23:09:56 +00:00
Weilin Xu
83f0a262a8 Update onwer file for broadcast radio package
Bug: 232461611
Test: m -j
Change-Id: I89183421c28ac617d9029f5839e51cdecef13c3c
2022-11-17 22:47:43 +00:00
Kenneth Ford
e65409d819 Adds call to rear display overlay intent
When a request is made to enable rear display
mode, and it's from a process that doesn't
hold the CONTROL_DEVICE_STATE permission, we
should launch the educational overlay to alert
the user of what's about to happen.

This change also introduces a method on
DeviceStateManagerGlobal and Service to allow
the overlay activity to communicate back to the
system service if the overlay has been dismissed
or acted on

Bug: 207686851
Test: DeviceStateManagerServiceTest
 && DeviceStateManagerGlobalTest
Change-Id: Ife7d642563005a2571bdeacbd7a3baaa9aad5e25
2022-11-17 22:36:42 +00:00
Bharatt Kukreja
d91cb407b4 Merge "Camera: Add autoframing API" 2022-11-16 23:34:45 +00:00
Shuzhen Wang
5bed54d6a6 Camera: Make settings override keys optional
If the camera device doesn't support settings override, the value
of the key will be null.

Test: Build
Bug: 239822823
Change-Id: I48fc587341c98be1803f34ce7034e5d359c56094
2022-11-16 02:23:30 +00:00
Bharatt Kukreja
d0793c50fa Camera: Add autoframing API
The new API can be used to keep objects in the frame's fov.
Auto-generated files from changes in metadata_definitions.xml

Bug: 234004829
Test: Successful build
Change-Id: I4e4cf5a3e20c162be4663bf5bcca41cf830dcfb3
2022-11-15 20:53:34 +00:00
Cole Faust
e4abcbec1d [conflict] Merge "Fix errorprone warnings that should be errors" am: 677d6cd780 am: f9df26ae3c am: d3c499dabc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I84d67fdfcc99f9f6fca218d4264ab8e0bc1f1653
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:47:41 +00:00
Cole Faust
d3c499dabc Merge "Fix errorprone warnings that should be errors" am: 677d6cd780 am: f9df26ae3c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I8090e254f06a3b5fc7e9b23fdae6c5bd3db230c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:37:15 +00:00
Cole Faust
f9df26ae3c Merge "Fix errorprone warnings that should be errors" am: 677d6cd780
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I0e9c5077610407a117ee34ff688b40b52e161a03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:11:55 +00:00
Sally Qi
fed0301271 Plumb overlayPropertes into DMS side.
- Implement OverlayProperties JNI class
- Call getOverlaySupport() on Diaplay Manager. Inside, provide
  SurfaceControl#getOverlaySupport api to call AIDL function in the back
  end.

Bug: 242588489
Test: build and flash
Change-Id: I23819d21063cd191a06d92295af2be9132bfe1df
2022-11-15 11:08:28 -08:00
Prabir Pradhan
f418178215 Merge "InputManager: Expose pilferPointers API" into tm-qpr-dev am: 7b80934cc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20416177

Change-Id: If27a1de2fe51e04b936a8a45bb2356061cbaece9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 18:17:15 +00:00
Ravneet Dhanjal
c86d13c308 Camera Extensions: Add OutputSurfaceConfiguration class to retrieve surface outputs
- Add OutputSurfaceConfiguration class to get the surface outputs in
the advanced extensions to reduce output surface parameters in
initSession for the addition of future surfaces

Test: CTS Tests
Bug: 258296845
Change-Id: Iebaf37e5298f0fb5c2da6aae480f52df55210413
2022-11-15 02:33:41 +00:00
Cole Faust
7da659bb6c 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
Change-Id: I8446f9076a45ebf7e7ffa06cb0d4ddb1001b6c00
2022-11-14 17:57:30 -08:00
Prabir Pradhan
1693a3132f InputManager: Expose pilferPointers API
We can only migrate existing gesture monitors to spy windows if we allow
pilfering from these spy windows. Expose the pilferPointers API so that
other processes can pilfer from arbitrary input windows.

The pilferPointers API is guarded with the MONITOR_INPUT signature
permission.

Bug: 257977069
Test: Build
Change-Id: Ice43ed420502ce3b5e5d37d9ac9e810a51ed07bc
Merged-In: Ice43ed420502ce3b5e5d37d9ac9e810a51ed07bc
2022-11-14 23:16:40 +00:00
Jing Ji
58bf68c2b2 Add internal APIs to check if a given app has USB permission or not
Bug: 254662522
Bug: 246792057
Test: CtsAppFgsTestCases from follow-up CLs
Change-Id: I943a6df64ae0b58ffd25e745b68d11e18f00b16b
2022-11-09 23:15:36 -08:00
TreeHugger Robot
7c952e8bfd Merge "Camera: Add support for extension progress callbacks" 2022-11-08 22:23:47 +00:00