Treehugger Robot
47c6c86015
Merge "Add Instant hotspot preference" into main
2023-08-22 04:25:10 +00:00
Weng Su
b4e4facff4
Restrict ApnEditor settings
...
- Finish ApnEditor settings if user is not an admin
- Finish ApnEditor settings if user has DISALLOW_CONFIG_MOBILE_NETWORKS restriction
Bug: 279902472
Test: manual test
atest -c ApnEditorTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4e18e7414c674a1c5bc69961c03499849b4aefd2 )
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5a17d39db7af7cea46763bfcdb50380bf0da92e3 )
Merged-In: Iecdbbff7e21dfb11e3ba385858747a220cfd3e04
Change-Id: Iecdbbff7e21dfb11e3ba385858747a220cfd3e04
2023-08-22 02:15:17 +00:00
Weng Su
27b3821313
Add Instant hotspot preference
...
- Add Instant hotspot preference to Wi-Fi hotspot settings
- Wait onServiceConnected callback and then getSettingsState
- Use the PendingIntent provided by SharedConnectivitySettingsState to launch Instant hotspot settings
Bug: 268550769
Test: manual test
atest -c WifiTetherSettingsTest
atest -c WifiTetherViewModelTest \
SharedConnectivityRepositoryTest
Merged-In: I343599e6127d9b1cb4af661dcc80a8683589c7b8
Change-Id: I343599e6127d9b1cb4af661dcc80a8683589c7b8
2023-08-21 12:21:25 +00:00
Treehugger Robot
e10d0237c2
Merge "Use Mockito Kotlin" into main
2023-08-21 11:26:14 +00:00
Weng Su
63321a1a83
Add Instant hotspot preference
...
- Add Instant hotspot preference to Wi-Fi hotspot settings
- Wait onServiceConnected callback and then getSettingsState
- Use the PendingIntent provided by SharedConnectivitySettingsState to launch Instant hotspot settings
Bug: 268550769
Test: manual test
atest -c WifiTetherSettingsTest
atest -c WifiTetherViewModelTest \
SharedConnectivityRepositoryTest
Change-Id: I343599e6127d9b1cb4af661dcc80a8683589c7b8
2023-08-21 11:14:04 +00:00
Zaiyue Xue
9f57691d89
Add UI metrics logging for battery tips card.
...
Bug: 291689623
Test: manual
Change-Id: I925e4d887c3435239aed0aa0fde7cda2c3a95b3c
Merged-In: I925e4d887c3435239aed0aa0fde7cda2c3a95b3c
2023-08-21 17:40:28 +08:00
Treehugger Robot
8cfb640bf3
Merge "Add UI metrics logging for battery tips card." into main
2023-08-21 09:21:49 +00:00
Chaohui Wang
8647256269
Use Mockito Kotlin
...
Which has better support for Kotlin unit test.
Bug: 289155281
Test: unit test
Change-Id: Ic98ba7e66c124e8398ad01d3bca7ee3a771b06c4
2023-08-21 17:01:52 +08:00
Zaiyue Xue
f838f5d5fa
Add UI metrics logging for battery tips card.
...
Bug: 291689623
Test: manual
Change-Id: I925e4d887c3435239aed0aa0fde7cda2c3a95b3c
2023-08-21 08:12:03 +00:00
Chaohui Wang
cc2133ba8e
Clean up unused fields from EntityHeaderController
...
Bug: 295260929
Test: manual - on pages with header
Test: robo test
Change-Id: Icebd63dbb5d3d44b4b46d3bececb8b65b30b4883
2023-08-21 13:58:07 +08:00
Angela Wang
6bb80b42bf
Merge "Fix flash notification preview not working for second user issue" into main
2023-08-19 08:38:38 +00:00
Kevin Liu
dad495d745
Merge "Setup external/robolectric for SettingsRoboTests" into main
2023-08-18 21:56:24 +00:00
Hao Dong
6bff9615fc
Fix face delete button rotation not working. am: 94f759230a
am: f55c4be4d4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24484929
Change-Id: I4ac57b657cc5dc8073eb55244f036ac4291cf0e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-18 21:16:01 +00:00
Hao Dong
f55c4be4d4
Fix face delete button rotation not working. am: 94f759230a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24484929
Change-Id: I97275e1f64fa87f615444870d894e05f386c5eda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-18 20:40:19 +00:00
Hao Dong
94f759230a
Fix face delete button rotation not working.
...
Bug: 264503740
Test: make -j64 RunSettingsRoboTests
ROBOTEST_FILTER="FaceSettingsRemoveButtonPreferenceControllerTest"
Change-Id: I28a281ca1ed16940400c44272f9fa78f5eb190af
2023-08-18 18:51:02 +00:00
Oli Thompson
974bb9ba9f
Merge "Add show emergency button call to biometric prompt" into main
2023-08-18 17:54:34 +00:00
Chaohui Wang
2ba1805e27
Merge "Clean up unused NetworkPolicyEditor" into main
2023-08-18 11:43:00 +00:00
Chaohui Wang
aba17fc847
Merge "Convert SimDialogActivityTest to Kotlin" into main
2023-08-18 11:09:51 +00:00
Chaohui Wang
334eb0b111
Merge "Remove DataUsageSummaryPreference unused fields" into main
2023-08-18 10:27:35 +00:00
Chaohui Wang
abe2710dc0
Clean up unused NetworkPolicyEditor
...
From DataUsageSummaryPreferenceController.
NetworkPolicyEditor.read() is not called, so
NetworkPolicyEditor.getPolicy() will always returns null.
Data limit info is already set in getDataUsageInfo().
Bug: 295260929
Test: robo test
Change-Id: I56a40cc906aa95207785886e704b1a59ea344e9c
2023-08-18 17:18:23 +08:00
Chaohui Wang
83e402a412
Remove DataUsageSummaryPreference unused fields
...
Bug: 295260929
Test: robo test
Change-Id: Ie44bc3e3b8b2e123bd51e2f9ee93ca9614ba54d3
2023-08-18 16:39:17 +08:00
mxyyiyi
851d31df23
Update power_anomaly_event proto fields am: 980116be4d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24440948
Change-Id: If97fb080ddead0d37886444e92e1f98e1c235c7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-18 07:30:46 +00:00
mxyyiyi
6b5273f985
Modify the name of power_anomaly_event enum fields
...
Test: manual
Bug: 291689623
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:93112b075979c2829bd3fa14c87160e361f66a82 )
Change-Id: I1df76167548033887a6227d7b643117c28d68125
2023-08-18 06:10:46 +00:00
mxyyiyi
980116be4d
Update power_anomaly_event proto fields
...
- add enum PowerAnomalyType/PowerAnomalyKey
- update the func to get anomaly index
Test: manual
Bug: 291689623
Change-Id: If4e6684c8169dfa3edd4e18a11d518737a3b2840
Merged-In: If4e6684c8169dfa3edd4e18a11d518737a3b2840
2023-08-18 14:10:06 +08:00
Angela Wang
65a9173d57
Fix flash notification preview not working for second user issue
...
When switching to second user and try to preview the flash notification
effect it'll not work. The root cause is the receiver is registered in
system process and the broadcast is sent as second user. Needs to send
the broadcast as system user to let the receiver receive the preview
broadcast.
Bug: 286039180
Test: atest FlashNotificationsPreviewPreferenceControllerTest
Test: switch to second user and test the preview function
Change-Id: I7dd553dac9fd66dab59eaec25849aac9f92989b6
2023-08-18 05:55:33 +00:00
Chaohui Wang
bd139deb91
Convert SimDialogActivityTest to Kotlin
...
Bug: 289155281
Test: unit test
Change-Id: Idf628cbfc0c49ae1bbb8a6c4c319f70f74b505d6
2023-08-18 13:19:06 +08:00
Bharath
7fe45b31db
Add support to configure double line clock in lockscreen [2/2]
...
This keeps the Settings entry under Lockscreen Settings for
Double line clock to be configurable.
As a result, this is now consistent with previous Android versions.
Co-authored-by: Luca Weiss <luca.weiss@fairphone.com >
Bug: 277244307
Test: atest SettingsRoboTests:com.android.settings.display.LockscreenClockPreferenceControllerTest
Change-Id: I08121a1a658cb4045aa30d0bd93e18ca22c3db6d
2023-08-18 09:57:44 +05:30
Xinyi Mao
12f8f5ac7a
Merge "Update power_anomaly_event proto fields" into main
2023-08-18 02:52:18 +00:00
Zaiyue Xue
aa37dd953e
Merge "Battery usage page latency improvement (1-8)" into udc-qpr-dev am: 1dad0bf856
am: d1a0370ddb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24211971
Change-Id: I2e0c1388e423cc18db20bbbb1f14b73d9667199f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-18 02:47:49 +00:00
Zaiyue Xue
d1a0370ddb
Merge "Battery usage page latency improvement (1-8)" into udc-qpr-dev am: 1dad0bf856
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24211971
Change-Id: I5b3b38a62fba34203e0195cdcc510c68f8e12652
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-18 02:39:34 +00:00
Zaiyue Xue
1dad0bf856
Merge "Battery usage page latency improvement (1-8)" into udc-qpr-dev
2023-08-18 02:35:15 +00:00
YK Hung
1b961c35ff
Merge "Impl the detect & show pipeline for PowerAnomalyEventList." into udc-qpr-dev am: 1119c81d10
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24400415
Change-Id: I81f08d96e2867dd70d031bb7ee4a05756daa33ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-18 02:08:40 +00:00
YK Hung
1119c81d10
Merge "Impl the detect & show pipeline for PowerAnomalyEventList." into udc-qpr-dev
2023-08-18 01:35:31 +00:00
Rex Hoffman
3c961e1c0e
Setup external/robolectric for SettingsRoboTests
...
Current failing tests: ab/I64100010182936387
Had to Ignore some of com.android.settings.accessibility tests, which will be fixed separately
Bug: 261728063
Test: atest SettingsRoboTests -- --test-arg com.android.tradefed.testtype.IsolatedHostTest:java-flags:-XX:CompressedClassSpaceSize=3g
Change-Id: I4a0cb992db924936826e0c9808accc78dddb5f30
2023-08-17 22:33:20 +00:00
Joshua Mccloskey
e198ff269b
Merge "Modifying FingerprintSettingsV2 structure" into main
2023-08-17 22:01:58 +00:00
Vania Januar
e2108b4b5b
Merge "Listen to USB_STATE events in the StylusUsbFirmwareController." into udc-qpr-dev am: a928e9202f
am: 728bf8b8b7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24446427
Change-Id: I4d2d00428e09d1f2a07f6a777328b42c146dd183
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-17 13:29:07 +00:00
Treehugger Robot
b01d241023
Merge "Gray out the "Remove account" button when there's a restriction" into main
2023-08-17 09:22:10 +00:00
Vania Januar
728bf8b8b7
Merge "Listen to USB_STATE events in the StylusUsbFirmwareController." into udc-qpr-dev am: a928e9202f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24446427
Change-Id: Ic6326aaf9622027f8347d643b99565165e2b3efc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-17 08:44:37 +00:00
Jason Chiu
b6c2108c93
Gray out the "Remove account" button when there's a restriction
...
Fix: 243011338
Fix: 288887119
Test: robotest, manual
Change-Id: Ie3d6607f69a5e7c66bb750febc4d526d6d209ac6
2023-08-17 16:30:11 +08:00
mxyyiyi
2037b262ff
Impl the detect & show pipeline for PowerAnomalyEventList.
...
Test: make SettingsLibRoboTests
Bug: 293813663
Bug: 296322845
Change-Id: I0c477dc546ec4d00e4c4133afb61bf7d574be9f8
Merged-In: I0c477dc546ec4d00e4c4133afb61bf7d574be9f8
2023-08-17 06:35:49 +00:00
Justin McClain
d971817112
Fixing RemoteAuth Tests breakage
...
Fixing RemoteAuthEnrollFinishTest, RemoteAuthEnrollEnrollingTest, and
RemoteAuthSettingsTest by changing `isDisplayed()` check to the intended
`withEffectiveVisibility()`.
Bug: b/296191086
Test: make RunSettingsRoboTests -j40
Change-Id: I3405fd2709c83a966b83106c804880d00fc4bbf4
2023-08-16 18:45:09 +00:00
Joshua McCloskey
2e0244e323
Modifying FingerprintSettingsV2 structure
...
Test: Verified manually enrollment skeleton works.
Test: atest FingerprintSettingsNavigationViewModelTest
Test: atest FingerprintSettingsViewModelTest
Change-Id: Ifcb8f0bbb2fa83144101661d66772be1434044c9
2023-08-16 15:21:35 +00:00
Vania Januar
d8ee6665f7
Listen to USB_STATE events in the StylusUsbFirmwareController.
...
Test: UsbStylusBroadcastReceiverTest
Bug: 288850921
Change-Id: I415e5ca04d371a235eff31327b086d568bcc00f0
2023-08-16 15:18:40 +00:00
Chaohui Wang
54d8bbcaf5
Merge "Use resource processor for SettingsRoboTestStub" into main
2023-08-16 11:09:09 +00:00
Tetiana Meronyk
3e6c31951c
Merge "Disable multiuser toggle when more than 1 user is created" into main
2023-08-16 10:16:48 +00:00
mxyyiyi
af8fdee7e3
Update power_anomaly_event proto fields
...
- add enum PowerAnomalyType/PowerAnomalyKey
- update the func to get anomaly index
Test: manual
Bug: 291689623
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:356be9109080bc54232ff801b739ec10cab4fdfa )
Change-Id: If4e6684c8169dfa3edd4e18a11d518737a3b2840
2023-08-16 08:56:36 +00:00
Zaiyue Xue
50da7feeb9
Battery usage page latency improvement (1-8)
...
Save battery slot diff data into database in hourly job. Then read the
saved diff data and only calculate the remaining data. This could speed
up the battery usage loading.
Bug: 261163071
Fix: 261163071
Test: manual
Change-Id: Icd4868ca9326b64b17ddbccdb0311e755dc68026
2023-08-16 15:12:04 +08:00
Graciela Putri
ab7f57b17c
Merge "Add opt-out properties for aspect ratio settings" into udc-qpr-dev am: 83c8f47ddd
am: 725efb1a5a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24309274
Change-Id: I5cdb28b8929b0ab8dba829ee6e12d880ca6cc27b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-16 07:04:50 +00:00
Graciela Putri
725efb1a5a
Merge "Add opt-out properties for aspect ratio settings" into udc-qpr-dev am: 83c8f47ddd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24309274
Change-Id: Ic2222519338f30df3d6dd5fea2df5b99bc4eb931
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-16 06:20:48 +00:00
Graciela Putri
83c8f47ddd
Merge "Add opt-out properties for aspect ratio settings" into udc-qpr-dev
2023-08-16 05:31:44 +00:00