Commit Graph

5941 Commits

Author SHA1 Message Date
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
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