Commit Graph

135644 Commits

Author SHA1 Message Date
Chaohui Wang
8c5bd75560 Use BillingCycleRepository in DataUsageList
Unify the enable logic for the "Data warning & limit" page.

Bug: 290856342
Test: manual - on DataUsageList
Test: m RunSettingsRoboTests
Change-Id: I3014461ef21768b5d0eb6d91873a4ba52d20f6bf
2023-09-21 18:27:52 +08:00
Shivangi Dubey
d8d74b29c6 Merge "Add illustrations to fold lock setting" into main 2023-09-21 10:05:11 +00:00
Graciela Putri
e6743f5676 Merge "Change title to aspect ratio (experimental)" into main 2023-09-21 09:37:06 +00:00
Charlotte Lu
eee79f2556 Merge "SettingsExposedDropdownMenuCheckBox requires input index." into main 2023-09-21 09:00:45 +00:00
Yiyi Shen
8e51eeecd2 Merge "Update bug id for feature flag." into main 2023-09-21 09:00:37 +00:00
Yiyi Shen
54b31c30ec Update bug id for feature flag.
Bug: 296507968
Bug: 299405720
Test: Manual
Change-Id: I75df8939cc78cd69d672b974ab6787457fa8350a
2023-09-21 15:23:51 +08:00
Charlotte Lu
f27c23fa79 SettingsExposedDropdownMenuCheckBox requires input index.
Fix: 301354014
Test: Unit Test
Change-Id: I4f5ef9a3cfcd0705687232b5e67da8007bf97aed
2023-09-21 14:25:50 +08:00
Chaohui Wang
c39acee194 Clean up NetworkServices from setTemplate
Not used any more.

Bug: 290856342
Test: manual - on mobile settings
Test: m RunSettingsRoboTests
Test: unit test
Change-Id: I9c8dde2a8812e83e535d15713ccbf25b42f1f303
2023-09-21 12:57:51 +08:00
Chaohui Wang
ba1ec910ac New BillingCycleRepository
Migrate BillingCyclePreference to BillingCycleRepository first, will
also migrate DataUsageList in future cl.

Also fix an issue that the BillingCyclePreference initial enable state
not set.

Bug: 290856342
Test: manual - on mobile settings
Test: unit test
Change-Id: Idd171fefbc30763010afb7bfb68543612f7b9b1a
2023-09-21 12:57:51 +08:00
Yiyi Shen
2b21582fd3 Merge "Quick fix: fix bug when using binary search," into main 2023-09-21 01:41:26 +00:00
Graciela Wissen Putri
bbb58cac69 Change title to aspect ratio (experimental)
Settings > Apps > Aspect ratio (experimental)
Settings > Apps > App info > Aspect ratio (experimental)

Fix: 300219974
Test: Manual && atest SettingsSpaUnitTests
Merged-In: I359c744025232c6a6ebd9628dbf91acac85b53e9
Change-Id: I359c744025232c6a6ebd9628dbf91acac85b53e9
2023-09-20 21:57:57 +00:00
Graciela Wissen Putri
ac2bfce107 Change title to aspect ratio (experimental)
Settings > Apps > Aspect ratio (experimental)
Settings > Apps > App info > Aspect ratio (experimental)

Fix: 300219974
Test: Manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:83b61850f3ed511b42c148b63840b12cff3fe5aa)
Merged-In: I359c744025232c6a6ebd9628dbf91acac85b53e9
Change-Id: I359c744025232c6a6ebd9628dbf91acac85b53e9
2023-09-20 21:45:06 +00:00
Treehugger Robot
ab64754c7c Merge "Fix Notifications SettingsRoboTests" into main 2023-09-20 15:51:50 +00:00
Chaohui Wang
dc10483dc5 Merge "Move SystemUpdateManager.retrieveSystemUpdateInfo" into main 2023-09-20 15:39:37 +00:00
Valentin Iftime
92f268ae91 Fix Notifications SettingsRoboTests
Fix failing Settings Robolectric tests for notifications.

Test: atest SettingsRoboTests:com.android.settings.notification
Test: atest SettingsRoboTests:com.android.settings.notification.app

Bug: 300157932

Change-Id: I068017b5c9bf6beb83ae7c580ae3206807b358e7
2023-09-20 16:48:55 +02:00
Treehugger Robot
bf422dd65a [automerger skipped] Merge "Call detect anomaly in period job only when there is new battery usage data." into udc-qpr-dev am: a72b00a968 am: 9ab25973af -s ours
am skip reason: Merged-In I11c1b41a45e129bcec57b9d18c4affe0de7f1d38 with SHA-1 c3cf254c7d is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24800290

Change-Id: I5455fb08027f2ecd21643895e42802f44de958cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 13:14:01 +00:00
Treehugger Robot
9ab25973af Merge "Call detect anomaly in period job only when there is new battery usage data." into udc-qpr-dev am: a72b00a968
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24800290

Change-Id: I7a24ea9b18c421a7de2d2752bfc5158e21aa324e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 12:16:43 +00:00
dshivangi
0f4ec2b1b7 Add illustrations to fold lock setting
Added illustrations to fold lock setting for all respective fold lock
setting values.
The illustrations can be found here: https://docs.google.com/presentation/d/1hSDuwaX0fqDSXO7LFmtgNcodaLftqUrgVT1cvfffp_Q/edit?resourcekey=0-ZJ0UdziPYZgD43a8I-cdIw#slide=id.g239e21e8ec8_0_0

Bug: 294194379
Test: Flash device with this change.
* Set diffrent values of fold lock setting
* Verify correct illustration is showed for respective setting value

Change-Id: I16af550b70e951d29bf5e0e2c9e8513473461528
2023-09-20 11:47:19 +00:00
Treehugger Robot
a72b00a968 Merge "Call detect anomaly in period job only when there is new battery usage data." into udc-qpr-dev 2023-09-20 11:01:27 +00:00
Yiyi Shen
9a05a180fa Quick fix: fix bug when using binary search,
Bug: 296507968
Test: Manual
Change-Id: I644160cf97e4873a2cf7c88dc2ff1fd6c0c94d33
2023-09-20 18:33:55 +08:00
Treehugger Robot
c3ff29b124 Merge "Call detect anomaly in period job only when there is new battery usage data." into main 2023-09-20 09:56:12 +00:00
Zaiyue Xue
c3cf254c7d Call detect anomaly in period job only when there is new battery usage data.
- Reduce the memory usage of call anomaly detection
 - Remove redundant condition for low battery banner

Bug: 300446490
Bug: 284893240
Fix: 300446490
Test: presubmit
Change-Id: I11c1b41a45e129bcec57b9d18c4affe0de7f1d38
2023-09-20 17:04:31 +08:00
Zaiyue Xue
8371d08595 Call detect anomaly in period job only when there is new battery usage data.
- Reduce the memory usage of call anomaly detection
 - Remove redundant condition for low battery banner

Bug: 300446490
Bug: 284893240
Fix: 300446490
Test: presubmit
Change-Id: I11c1b41a45e129bcec57b9d18c4affe0de7f1d38
Merged-In: I11c1b41a45e129bcec57b9d18c4affe0de7f1d38
2023-09-20 17:04:01 +08:00
Charlotte Lu
4b453bad21 Merge "Add SettingsExposedDropdownMenuBox and SwitchPreference." into main 2023-09-20 07:02:19 +00:00
Angela Wang
e0313e1abe Merge "Hide pair other ear button after device connected via CSIP" into main 2023-09-20 05:59:08 +00:00
Chaohui Wang
feda805041 Merge "New NetworkOperatorSettingsTest" into main 2023-09-20 04:22:54 +00:00
Charlotte Lu
b0d09d2ad2 Add SettingsExposedDropdownMenuBox and SwitchPreference.
Bug: 298906796
Test: Munual
Change-Id: I666c51b79589b9529b623c81c156a545af269e03
2023-09-20 12:22:19 +08:00
Chun-Ku Lin
74cf9db43f Merge "Fix ScreenFlashNotificationColorDialogFragmentTest by launching the fragment in modern way." into main 2023-09-20 03:42:54 +00:00
XingHai Lu
09b7b127e5 Merge "Add flag for B&R sound settings" into main 2023-09-20 01:59:30 +00:00
Becca Hughes
dce410276c Merge "Use isPrimary bit when determining settings data change" into main 2023-09-19 22:08:30 +00:00
Jason Chang
ba14b4b5c2 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev am: 7c1b1fc934 am: 0e850e9d73
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24399253

Change-Id: Icb44d81e49551a43374eceadc709a1c1d680c8a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 16:49:47 +00:00
Becca Hughes
640b9958b3 Merge "Fix crash in settings page (enterprise)" into main 2023-09-19 16:40:01 +00:00
Jason Chang
0e850e9d73 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev am: 7c1b1fc934
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24399253

Change-Id: I204498f1e2f580d5d8f7ce8a64e904a780b9e25a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 15:51:56 +00:00
Jason Chang
7c1b1fc934 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev 2023-09-19 15:15:24 +00:00
Treehugger Robot
8a1fc230f2 Merge "Fixed the robo test failed in AmbientDisplayAlwaysOnPreferenceControllerTest" into main 2023-09-19 13:46:21 +00:00
SongFerng Wang
176d358c32 Merge "Remove the cached display name" into udc-qpr-dev am: 26a1866b8d am: c7ea38203a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24793547

Change-Id: If9ddb12284b6e4022c18bd54095eb67b8809d985
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 13:17:07 +00:00
Sunny Shao
cd75cad83e Fixed the robo test failed in AmbientDisplayAlwaysOnPreferenceControllerTest
- Change the test name because the function content was swapped
  between isPublicSlice and isSliceable.

Fixes: 300376009
Test: atest AmbientDisplayAlwaysOnPreferenceControllerTest
Change-Id: I922810c81a44d6954cd167097c62cdc798238e2e
2023-09-19 20:27:23 +08:00
SongFerng Wang
c7ea38203a Merge "Remove the cached display name" into udc-qpr-dev am: 26a1866b8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24793547

Change-Id: I0c006b215c02acda9a44e717165249fbbd8f353a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 12:22:25 +00:00
SongFerng Wang
26a1866b8d Merge "Remove the cached display name" into udc-qpr-dev 2023-09-19 11:41:38 +00:00
Chun-Ku Lin
186644aa6e Fix ScreenFlashNotificationColorDialogFragmentTest by launching the
fragment in modern way.

Fix: 300158485
Test: atest ScreenFlashNotificationColorDialogFragmentTest
Change-Id: I3396b05ad78501b38e68360e25389966d379aacb
2023-09-19 08:40:36 +00:00
Treehugger Robot
ed05dd4994 Merge "Move spatial_audio_speaker to res-product" into main 2023-09-19 08:18:03 +00:00
Treehugger Robot
d7d8184bb7 Merge "Use system properties for the le audio toggle ui config instead" into udc-qpr-dev am: 2d7a469264 am: b15719119e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24768698

Change-Id: I88024462c4587db39a5e6671223504a5b7938c49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 08:00:32 +00:00
Treehugger Robot
b15719119e Merge "Use system properties for the le audio toggle ui config instead" into udc-qpr-dev am: 2d7a469264
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24768698

Change-Id: Ie138a425906541eb2bc8f1c08a8956636363a141
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 07:05:06 +00:00
Chaohui Wang
3cba8ab408 Move spatial_audio_speaker to res-product
Bug: 289155281
Test: m Settings
Change-Id: I72582965c18e5ba4850a1dbd3f54421b71ddd9a9
2023-09-19 14:57:18 +08:00
Chaohui Wang
cda836fff7 Move SystemUpdateManager.retrieveSystemUpdateInfo
Into Kotlin Coroutine for true async.

Bug: 300851543
Test: manual - on system page
Test: unit test
Change-Id: Ibec5c9d0934d71ed1a5808cadf3b3542eb3d5fa0
2023-09-19 14:54:41 +08:00
Treehugger Robot
47a587ae36 Merge "Clean up ChartDataUsagePreference.setColors()" into main 2023-09-19 06:47:13 +00:00
Treehugger Robot
2d7a469264 Merge "Use system properties for the le audio toggle ui config instead" into udc-qpr-dev 2023-09-19 06:31:29 +00:00
SongFerngWang
d21f14a002 Remove the cached display name
If the display name is changed, then the Settings should remove the
cached display name.

Bug: 296157273
Test: [pass] atest SubscriptionUtilTest  [pass]Build and manual test
Change-Id: I3b1297ddddf9f9051dd16523b97fc27255cf3923
2023-09-19 06:25:33 +00:00
Chaohui Wang
e5f9d27690 Merge "Add ApnData class and SettingsOutlinedTextField." into main 2023-09-19 06:24:32 +00:00
XingHai Lu
990412f23a Add flag for B&R sound settings
Bug: 278975761
Test: adb shell device_config put onboarding_experience com.android.settings.flags.enable_sound_backup true
Change-Id: Ia774b1d5f3740b4964eb3cb1501ea4779f203956
2023-09-19 14:06:58 +08:00