Zaiyue Xue
4fbd2064d6
Fix b/248686898: Battery Usage list renders items on top of each other after swiping back from an app
...
Root cause: When adding an animation to the hourly chartview which is scolled up out of the page, onBindViewHolder() will be trigered, then UI is refreshed again, and then the animation is added to the hourly charview again. This is a dead loop.
This fix adds animation to the hourly chartview only if the visibility is changed.
http://cs/android/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/BatteryChartPreferenceController.java;l=676;rcl=9f24ea815d637a05e1b7ddf2d4372d716d749229
http://cs/android/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/BatteryHistoryPreference.java;l=102;rcl=9f24ea815d637a05e1b7ddf2d4372d716d749229
Bug: 248686898
Fix: 248686898
Test: manually
Change-Id: I93d4d089f537515d452c1330f5d75a6726b229f8
(cherry picked from commit aabea16898
)
Merged-In: I93d4d089f537515d452c1330f5d75a6726b229f8
2022-10-26 17:31:17 +08:00
Zaiyue Xue
88d876318c
Fix broken battery usage Robolectric tests
...
Bug: 248686898
Test: presubmit
Change-Id: I4f09f9e5af57a62249970cc2170b60dab267488e
Merged-In: I4f09f9e5af57a62249970cc2170b60dab267488e
2022-10-26 17:23:23 +08:00
Weng Su
dcfbccbfbc
Remove Modify popup menu for non-admin
...
- Don't add the Modify ContextMenu if the user is not an admin.
Bug: 237672190
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest
Change-Id: I62e0f5559fa2315450221fcb71e348af59af9549
2022-10-26 16:31:00 +08:00
Chaohui Wang
189c7eee3d
Merge "Add AppLocalePreference for Spa"
2022-10-26 07:05:02 +00:00
Zaiyue Xue
aabea16898
Fix b/248686898: Battery Usage list renders items on top of each other after swiping back from an app
...
Root cause: When adding an animation to the hourly chartview which is scolled up out of the page, onBindViewHolder() will be trigered, then UI is refreshed again, and then the animation is added to the hourly charview again. This is a dead loop.
This fix adds animation to the hourly chartview only if the visibility is changed.
http://cs/android/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/BatteryChartPreferenceController.java;l=676;rcl=9f24ea815d637a05e1b7ddf2d4372d716d749229
http://cs/android/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/BatteryHistoryPreference.java;l=102;rcl=9f24ea815d637a05e1b7ddf2d4372d716d749229
Bug: 248686898
Fix: 248686898
Test: manually
Change-Id: I93d4d089f537515d452c1330f5d75a6726b229f8
2022-10-26 11:22:03 +08:00
Chaohui Wang
3eddcc6703
Add AppLocalePreference for Spa
...
Also let SettingsSpaUnitTests depends on the
mockito-target-extended-minus-junit4 to support mock static methods.
Bug: 236346018
Test: Unit test & Manual with Settings App
Change-Id: Ib7a3022b20e30c8292713f52d29785eb78899c70
2022-10-26 11:01:47 +08:00
Ling Ma
1cbf8c786a
Merge "Convert dataDuringCall to autoDataSWitch"
2022-10-25 23:36:43 +00:00
Diya Bera
f15f443ce5
Merge "Remove flicker during fingerprint enrollment" into tm-qpr-dev am: d66e0c4c75
am: da8c78f093
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20249709
Change-Id: I78baceb039e99545ae5abf9f0c54606188d621b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 21:46:44 +00:00
Diya Bera
da8c78f093
Merge "Remove flicker during fingerprint enrollment" into tm-qpr-dev am: d66e0c4c75
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20249709
Change-Id: If6de61542beed2a43d775a0b3706b11a95b5160b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 21:07:53 +00:00
Diya Bera
d66e0c4c75
Merge "Remove flicker during fingerprint enrollment" into tm-qpr-dev
2022-10-25 20:29:24 +00:00
Betty Chang
50b3bdf7ea
Merge "[LE Audio] Remove the broadcast icon when the device does not support broadcast feature" into tm-qpr-dev am: a7b9107027
am: 6d2a0cdf0d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20271146
Change-Id: Ia8a43105afc093c28f3aa06877b72f7ef9d17ff6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 10:00:54 +00:00
Betty Chang
6d2a0cdf0d
Merge "[LE Audio] Remove the broadcast icon when the device does not support broadcast feature" into tm-qpr-dev am: a7b9107027
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20271146
Change-Id: I742b41599ca0d33c7f6c33bb607a8bf89406cb6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 09:23:57 +00:00
Treehugger Robot
4b705596cf
Merge "Ensure search highlight position when scheduled runnable starts" am: fcd941b4eb
am: c54246e0c8
am: c2a1326104
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2263782
Change-Id: Iab157dbabcc85ce9f3b777729f450b5fa4a104eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 09:10:20 +00:00
Betty Chang
a7b9107027
Merge "[LE Audio] Remove the broadcast icon when the device does not support broadcast feature" into tm-qpr-dev
2022-10-25 08:49:56 +00:00
Treehugger Robot
c2a1326104
Merge "Ensure search highlight position when scheduled runnable starts" am: fcd941b4eb
am: c54246e0c8
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2263782
Change-Id: Ic0349cd744ffc1b32b46838c28d3aba600f7172a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 08:32:48 +00:00
Treehugger Robot
c54246e0c8
Merge "Ensure search highlight position when scheduled runnable starts" am: fcd941b4eb
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2263782
Change-Id: I3d0a338bb220705a255a7abc123d490ee19f44af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 08:01:42 +00:00
Betty Chang
448afb8386
Merge "[LE Audio] Only add main device for LE Audio devices in Take call on list" into tm-qpr-dev am: 3030e61265
am: 70278a9c98
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20265111
Change-Id: I5e84877322566ae68f4d3355c7967a870a24c459
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 07:13:28 +00:00
Betty Chang
70278a9c98
Merge "[LE Audio] Only add main device for LE Audio devices in Take call on list" into tm-qpr-dev am: 3030e61265
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20265111
Change-Id: Ieb9cdefc4fd9f58c0fa75185986e5d71f9a5f495
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-25 06:36:08 +00:00
Betty Chang
3030e61265
Merge "[LE Audio] Only add main device for LE Audio devices in Take call on list" into tm-qpr-dev
2022-10-25 06:07:18 +00:00
Chaohui Wang
851dbecdd4
Merge "Add HibernationSwitchPreference for Spa"
2022-10-25 03:45:09 +00:00
Chaohui Wang
af97082f9b
Add HibernationSwitchPreference for Spa
...
Bug: 236346018
Test: Manual with App Info page
Test: Settings Unit tests
Change-Id: I23140a2a16b3b5a4b569623504b1838a641611fe
2022-10-25 09:08:14 +08:00
Diya Bera
9e1649273f
Remove flicker during fingerprint enrollment
...
Test: m RunSettingsRoboTests -j30 ROBOTEST_FILTER=FingerprintEnrollEnrollingTest
Bug: 247581748
Change-Id: I7e456670fa0a8527f47bd8057fb755c0c2c1eeeb
2022-10-24 22:21:58 +00:00
Tetiana Meronyk
3ade4a3ad7
Disable toggle on managed device with "Disallow add user" or "Disallow switch user"
...
Bug: 244279615
Test: croot && make RunSettingsRoboTests -j40 ROBOTEST_FILTER="com.android.settings.users.MultiUserSwitchBarControllerTest"
Change-Id: I3e89c8fac1828b4c9bb1c7df08687684981bda11
2022-10-24 22:06:57 +00:00
Shaowei Shen
a86576b975
Merge "[Sound Panel] Fix bugs for sound panel slice" into tm-qpr-dev am: 02cf722b24
am: 713aa67d90
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19636172
Change-Id: I02cd0836aca7e7cb6c2583c3aee4b5dadaddf137
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-24 13:53:08 +00:00
Shaowei Shen
713aa67d90
Merge "[Sound Panel] Fix bugs for sound panel slice" into tm-qpr-dev am: 02cf722b24
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19636172
Change-Id: Ia485be78358748e474650b76c3035d8787a3d33d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-24 13:20:55 +00:00
Shaowei Shen
02cf722b24
Merge "[Sound Panel] Fix bugs for sound panel slice" into tm-qpr-dev
2022-10-24 12:43:06 +00:00
changbetty
4f42ca1eac
[LE Audio] Remove the broadcast icon when the device does not support
...
broadcast feature
Bug: 254743785
Test: manual test
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MediaOutputIndicatorWorkerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MediaVolumePreferenceControllerTest
Change-Id: I02e429b3a306e2f9b0e2342118649208617c4944
2022-10-24 12:03:23 +00:00
changbetty
abc69c34de
[LE Audio] Only add main device for LE Audio devices in Take call on
...
list
Bug: 254212589
Test: manual test
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AudioOutputSwitchPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=HandsFreeProfileOutputPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MediaOutputPreferenceControllerTest
Change-Id: I7831f12ca259aac3d60f4370ffc659a32fed3296
2022-10-24 06:52:03 +00:00
TreeHugger Robot
dda18d1d8c
Merge "Add config for Wi-Fi Hotspot Settings hidden" into tm-qpr-dev am: 87d2f6d3cb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20244146
Change-Id: I7b3275ffad2af79bb81c3761b691ab793a61168a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-24 03:26:46 +00:00
TreeHugger Robot
87d2f6d3cb
Merge "Add config for Wi-Fi Hotspot Settings hidden" into tm-qpr-dev
2022-10-24 03:04:59 +00:00
Cole Faust
43ff89802c
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: I29f691a22617b1fc834680ff1cf4ab4244203f06
2022-10-23 12:41:39 -07:00
Bonian Chen
d9ea5b0692
Merge "[Settings] configuration for hidding SIM notification UI"
2022-10-21 13:29:18 +00:00
Bonian Chen
6eb3f717b8
Merge "[Settings] configuration for hidding SIM lock UI"
2022-10-21 13:29:18 +00:00
Bonian Chen
71db4e8732
Merge "[Settings] configuration for hidding SIM remove UI"
2022-10-21 13:29:18 +00:00
Bonian Chen
210fba096f
Merge "[Settings] configuration for hidding SIM provider UI"
2022-10-21 13:29:18 +00:00
Bonian Chen
d07157691e
Merge "[Settings] configuration for hidding SIM settings UI"
2022-10-21 13:29:18 +00:00
Bonian Chen
a4aca19f8f
Merge "[Settings] configuration for hidding SIM related UI"
2022-10-21 13:29:18 +00:00
Chaohui Wang
fd9997f156
Merge "Add DefaultAppShortcuts for Spa"
2022-10-21 11:09:46 +00:00
Bonian Chen
7c3f04aa11
[Settings] configuration for hidding SIM lock UI
...
Hide SIM lock UI based on configuraion.
Bug: 240515161
Test: test cases and local testing
Change-Id: I870c0b53112db56b7bc80bfd585f6f7b3cf82737
2022-10-21 10:59:11 +00:00
Julia Reynolds
1d54859168
Update category to intent action
...
Test: settings unit tests
Bug: 254339351
Change-Id: I6c4bfb474408cd9ab95ae3fbd80a89760a4b7844
2022-10-21 10:09:02 +00:00
Bonian Chen
5dae24208b
[Settings] configuration for hidding SIM related UI
...
Add overriable configuration for hidding SIM related UI.
Bug: 240515161
Test: test cases and local testing
Change-Id: I8d7ddd18861a696830da39f040dfb14b9ed46726
2022-10-21 09:21:59 +00:00
Philip Junker
638693c203
Merge "Only list apps with android.permission.TURN_SCREEN_ON."
2022-10-21 08:13:09 +00:00
Chaohui Wang
a8e19e0f2c
Add DefaultAppShortcuts for Spa
...
Including the following,
- Home app
- Browser app
- Phone app
- Emergency app
- SMS app
Bug: 236346018
Test: Manual with App Info page
Test: Settings Unit tests
Change-Id: I4ceb31ed521b758a6f91d7e86fd34c780442b1ac
2022-10-21 15:43:12 +08:00
Shen Lin
bb2fb2ffd6
Ensure search highlight position when scheduled runnable starts
...
Search highlight function includes two steps: Scroll list to target position first, then notifyItemChanged to it.
We use a Handler.postDelay to implement this. However, when scheduled runnable starts, the original target position could have changed due to preference list update, calling recyclerview's methods after that will be easy to cause an exception.
This CL ensures highlight position every time before calling recyclerView update, which also contribute to origin fix of RecyclerView IllegalArgumentException to a certain extent.
Test: atest, also test some search results, and see the correct behavior
Fixes: 246411107
Change-Id: Ifa758ce3718b047138079246cdfce99fdf66d5b2
2022-10-21 14:01:47 +08:00
Kuan Wang
cbaffa34bc
Add functions of SI DatabaseUtils into Settings DatabaseUtils and remove
...
unused functions.
Bug: 253395332
Test: make RunSettingsRoboTests
Change-Id: I61feee3386d7291f9174acb884d09d7ab8733511
2022-10-21 04:48:14 +00:00
Kuan Wang
c7afa45eac
Clean up unused function getHideApplicationSummary in
...
PowerUsageFeatureProvider.
Bug: 253395332
Bug: 254769892
Bug: 254769770
Test: make RunSettingsRoboTests
Change-Id: I6acf0cbdb7321934e85939e0acee567001107a17
2022-10-21 04:42:06 +00:00
Milton Wu
eff9effb25
Merge "Retry fingerprint or face unlock" into tm-qpr-dev am: c1d0d230d4
am: 96f959737c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20188600
Change-Id: I9c05b7bf43304fead4ae03a23a5106afe55612f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-21 02:12:23 +00:00
Milton Wu
96f959737c
Merge "Retry fingerprint or face unlock" into tm-qpr-dev am: c1d0d230d4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20188600
Change-Id: I24e093bb5dac1fcce152a85b332a19c3df5aa77b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-21 01:41:51 +00:00
Milton Wu
c1d0d230d4
Merge "Retry fingerprint or face unlock" into tm-qpr-dev
2022-10-21 01:08:37 +00:00
Tetiana Meronyk
9183d06d41
Merge "Show other users in storage settings"
2022-10-20 16:20:41 +00:00