Commit Graph

5601 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Emilian Peev
fa87ee6feb Merge "Fix an issue that the FoldStateListener induces a memory leak" am: 4dd1477d72
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2185395

Change-Id: I138e11602d2c0adb646e2471014f58c2992e9b94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 22:44:45 +00:00
Emilian Peev
4dd1477d72 Merge "Fix an issue that the FoldStateListener induces a memory leak" 2022-10-20 21:41:42 +00:00
Xin Li
a94d90e35d Merge tm-qpr-dev-plus-aosp-without-vendor@9129937
Bug: 248070379
Merged-In: I9a53541e98c0ba596b288ae92fe75f3279aac9cb
Change-Id: I9b1190b0b25e15258fafae83c9d77123e935f96f
2022-10-06 22:37:55 -07:00
Jayant Chowdhary
9ba6398d1d camera2: Add non burst sizes to mandatory streams for ultra high resolution sensors
Bug: 240128812

Test: Vendor testing
Test: RobustnessTest.java on cuttlefish

Change-Id: I92047456a43d49c5354718ead10df2cbd60363e2
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-10-04 21:10:10 +00:00
TreeHugger Robot
e9b1b7819f Merge "Camera: Update API doc for DISPLAY_SYNC timestamp base" into tm-qpr-dev am: 87dd924237
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20056360

Change-Id: I43ec666132de7300943c7fd11a97b27de764ae49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-28 19:43:57 +00:00
TreeHugger Robot
87dd924237 Merge "Camera: Update API doc for DISPLAY_SYNC timestamp base" into tm-qpr-dev 2022-09-28 19:03:21 +00:00
Shuzhen Wang
42efa76749 Camera: Update API doc for DISPLAY_SYNC timestamp base
Now the SurfaceView timestamp override only happens in fixed frame rate
case.

Test: Build
Bug: 239775097
Change-Id: I02cf36ed664a446ba3e8f6f04ce42caafaa5ae90
2022-09-26 13:49:45 -07:00
Kenneth Ford
a1fe0c4b15 Merge changes from topic "base-state-api" into tm-qpr-dev am: d3955eaa8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19798787

Change-Id: I61160121c056fd49c947789be396e2b31537ea0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 03:15:47 +00:00
Kenneth Ford
7f8d5fd451 Introduces requestBaseStateOverride test API
Adds new requestBaseStateOverride on DeviceStateManager
to be used for testing, to provide a similar behavior
to changing the physical configuration of the device.

This is necessary now that the requestState API is being
used for features now, we need a test API that will
be a closer simulation to physical device changes.

Bug: 234336979
Test: DeviceStateManagerGlobalTest
Change-Id: I6ad9e799329f16521aa3c13b248eed762fe0b121
2022-09-21 23:47:04 +00:00
Kenneth Ford
d5fe5cc1ca Adds requestBaseStateOverride method on DeviceStateManagerService
Server side changes to accompany the addition of the
DeviceStateManager#requestBaseStateOverride test API

Bug: 234336979
Test: OverrideRequestControllerTest
 && DeviceStateManagerServiceTest
Change-Id: Ib915b245acd260be1e0d5016d765af5598ea390c
2022-09-20 18:11:27 +00:00
Ilya Matyukhin
b5ce442cd4 Merge "Refactor UDFPS display logic and remove illumination" into tm-qpr-dev am: 1ecaa4d68e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19949884

Change-Id: Ib162b02b868f3befdf8336295c2535ecfeec0ba4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 00:22:06 +00:00
Ilya Matyukhin
6eda3a1d1a Refactor UDFPS display logic and remove illumination
Bug: 243818429
Test: atest SystemUITests
Change-Id: I285f136a75bbd26226a39c544f3c07101ff8eb80
Merged-In: I285f136a75bbd26226a39c544f3c07101ff8eb80
2022-09-19 06:13:06 +00:00
Joshua Mccloskey
452cd82036 Merge "Updated power press strings in enrollment." into tm-qpr-dev am: ce1e8cee95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19889941

Change-Id: I72eb5f366a5277378eb7f5790a109cc4f02696e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 23:35:23 +00:00
Joshua Mccloskey
ce1e8cee95 Merge "Updated power press strings in enrollment." into tm-qpr-dev 2022-09-13 23:12:40 +00:00
Treehugger Robot
b0b9c8e690 Merge "Fix sticky firstEventAfterDiscontinuity setting" am: f63f20af72 am: 3906d1422e am: d9bbd3cc42 am: 8dd8b6e9b3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2213744

Change-Id: Ic9c3c80c453bef5b018b1c805fa58b417184ea79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 02:29:25 +00:00
Treehugger Robot
8dd8b6e9b3 Merge "Fix sticky firstEventAfterDiscontinuity setting" am: f63f20af72 am: 3906d1422e am: d9bbd3cc42
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2213744

Change-Id: Ieb66e41ce87b411d41b9b6b1cb0266c4cb72c212
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 01:47:08 +00:00
Brian Duddie
9c7e48eb1e Fix sticky firstEventAfterDiscontinuity setting
This value needs to be explicitly set to false to prevent re-using a
stale "true" value.

Fixes: 245965753
Test: CTS SensorHeadTrackerTest#testDiscontinuity (pending upload)
Change-Id: Icd018e0cab9e30b0677970760a38a390d9dd2a3c
2022-09-09 22:51:38 +00:00
Joshua McCloskey
15fd68227e Updated power press strings in enrollment.
Test: Manual.
Test: atest FingerprintEnrollClientTest
Fixes: 245150708
Change-Id: Icdf83c3c46d12b6241a3695f3151528b412b2ccd
2022-09-09 17:52:57 +00:00
TreeHugger Robot
e766e4e525 Merge "Camera: Clarify doc for onPhysicalCameraUnavailable" into tm-qpr-dev am: 0a9fbfe94c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19784829

Change-Id: I3c8f2c3162bf1bb68e4e7b9e2fb355e97e76fa6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 17:11:45 +00:00
TreeHugger Robot
0a9fbfe94c Merge "Camera: Clarify doc for onPhysicalCameraUnavailable" into tm-qpr-dev 2022-09-02 17:03:49 +00:00
Joe Bolinger
33e1463496 Merge "Move ALS auth logging triggers to wakefullness events." into tm-qpr-dev am: 40db12e7c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19775212

Change-Id: I773e5885a49273e1d335165fba8afecbcb157410
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 20:14:06 +00:00
Joe Bolinger
40db12e7c7 Merge "Move ALS auth logging triggers to wakefullness events." into tm-qpr-dev 2022-09-01 19:27:04 +00:00
Shuzhen Wang
d216f25f6b Camera: Clarify doc for onPhysicalCameraUnavailable
Clarify that no physical camera availability callbacks will be called
if the parent logical camera becomes unavailable.

Test: Build doc
Bug: 243738805
Change-Id: I339b7cedf1df10f89aa6ead0c67ed9f2bda9ed0c
2022-09-01 11:21:16 -07:00
Grace Cheng
45038c6e7b Merge "Implement SFPS guided enrollment for T6" into tm-qpr-dev am: 6562716382
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19561857

Change-Id: Ib7b7a95f979c4fc30b0c1d7cf2c31475b6c396b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 01:13:36 +00:00
Joe Bolinger
cfd4d10f91 Move ALS auth logging triggers to wakefullness events.
These were orignally tied to pointer up/down events, but change I4a217ef4a068c8b2cae0f345856912028f9a9525 removed these events entirely on many devices and left these triggers unreliable.

Bug: 243836005
Test: atest FingerprintAuthenticationClientTest BiometricContextProviderTest AuthControllerTest
Test: manual (verify on lockscreen via adb shell dumpsys sensorservice | grep -i Biometric)
Change-Id: I2db34ca561850eb1eddcc65c08c617a46dd3d845
Merged-In: I2db34ca561850eb1eddcc65c08c617a46dd3d845
2022-08-30 22:08:43 +00:00
Cole Faust
9b3a5fc03b Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I7052a1f7391ed6701fe0e1036c27368609032e35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:44:00 +00:00
Grace Cheng
7957047dd8 Implement SFPS guided enrollment for T6
Reduces perception of long enrollment process by introducing new enrollment layout and stages for SFPS. Also adds user feedback via new animated assets with dynamic colors, and all associated strings and a11y labels.

Test: Observe new guided enrollment process on T6
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FingerprintEnrollEnrollingTest
Fixes: 232024488
Fixes: 233091341
Fixes: 241165082
Fixes: 242218240
Fixes: 243813773
Change-Id: Ifa8788e78dce4c682ec4a9e2fe2c077418f8bddb
2022-08-30 20:11:32 +00:00
Cole Faust
6a79ae2567 Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I931e692e6d170d19a7492e44cc1333c10e96c897
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:00:09 +00:00
Cole Faust
584140c83a Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
2022-08-25 10:57:12 -07:00
TreeHugger Robot
6f988c39c5 Merge "Remove SoundTriggerMiddleware death notification" into tm-qpr-dev am: ee9494914b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19668917

Change-Id: I16b18ee3086f1d249da3f490bef7899a2e81a5f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 20:42:23 +00:00
Atneya Nair
e6ac0c57d7 Remove SoundTriggerMiddleware death notification
The death notifier for the middleware service is unnecessary
- We don't use mService elsewhere (nor check its nullity)
- We re-query the service upon each call

Additionally, creating a new death notifier on each query is redundant,
and results in memory leaks (since each notifier takes state, and we
never unlink to death).

Test: Compiles
Bug: 237968209
Change-Id: Ib53ec65235d4284357e0f6649bb6f65b2de83b99
2022-08-18 18:04:07 +00:00
Kwangkyu Park
eb11b2401b Fix an issue that the FoldStateListener induces a memory leak
FoldStateListener is non-static inner class and keeps reference to
the outer class which is CameraManager. As CameraManager also keeps
context with mContext, memory leak could exist.

Changing FoldStateListener to static inner class, so that the class
won't keep the reference.

Bug: 242264787
Test: Manual test with memory profiling
Change-Id: I77652bd94b50eabc80041e13274b619c0da36601
2022-08-12 16:39:08 +09:00
Jayant Chowdhary
4bcb7914b8 Merge "Fix spacing for preview stabilization mandatory streams docs." into tm-qpr-dev am: 23ac6aceca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19572800

Change-Id: Ibe4864a2f0b239f0ff8d3d642dbe5da01bfb0186
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:42:54 +00:00
Jayant Chowdhary
b723541a6e Fix spacing for preview stabilization mandatory streams docs.
Bug: 237717894

Test: Check output of make doc-comment-check-docs

Change-Id: Ia389f18746fd6c4c534a87ae6ad89261bdd8cc3a
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-08-10 00:10:37 +00:00
TreeHugger Robot
3d698aabaa Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6 am: 5c002a64a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: I980d941daf2be5aef08b9695e993dbb76edffc3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 17:59:25 +00:00
TreeHugger Robot
5c002a64a5 Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: I7d641cea03f9f35889d0ebdcf66e9bf7a0f35609
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 17:51:59 +00:00
TreeHugger Robot
13dd5971c4 Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: Ie2118964e3072a9c3cf7b45a296b1aa4674084af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 17:51:57 +00:00
Emilian Peev
671d613bcb Camera: Avoid NPE when extension results are not supported
Bug: 240017175
Test: atest -c -d cts/tests/camera/src/android/hardware/camera2/cts/CameraExtensionSessionTest.java#testRepeatingAndCaptureCombined
Change-Id: I0b82039a103ac2a55f71a6aea505d7c7c696d7be
2022-07-27 22:46:59 +00:00
Rucha Katakwar
81d5ed723b Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02 am: 77f3fe5709
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: I8cc7c95e80e21ad68847b749dd9f0b0d36bbf27b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 19:00:10 +00:00
Rucha Katakwar
ff800ef92c Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: Icf0a904563a9267e19c8efdc15bae4e29e39e392
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 18:37:46 +00:00
Rucha Katakwar
77f3fe5709 Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: Idc09acf8b2b185f873b45b7bad70e0a32fab5ac3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 18:37:45 +00:00
Rucha Katakwar
7cdfd75b02 Merge "Update torch brightness max level description." into tm-d1-dev 2022-07-27 18:14:04 +00:00
Joshua Mccloskey
315f6f124d Merge "SideFPS UX updates" into tm-qpr-dev am: 2ff2a64cfe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19039844

Change-Id: I0e5645ff7a507ebd9c8c29f347ed6e45f3f365d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 20:56:14 +00:00