Commit Graph

137291 Commits

Author SHA1 Message Date
Chaohui Wang
b848685b8d Merge "Clean up Contextual Wifi card" into main 2023-11-27 06:55:55 +00:00
Chaohui Wang
357076d03d Merge "Remove injecting developer options into Settings itself" into main 2023-11-27 06:49:55 +00:00
Chaohui Wang
30c8254cfd Merge "Clean up unused SummaryProvider" into main 2023-11-27 06:49:47 +00:00
Charlotte Lu
c776835da5 Automatically save on return
Test: Visual Test
Fix: 313008844
Change-Id: I795807d1984bbd170db3fdc9e54de700ff85ec69
2023-11-27 14:48:15 +08:00
Chaohui Wang
34c4deb6c9 Clean up Contextual Wifi card
Bug: 245854887
Test: m RunSettingsRoboTests
Change-Id: I3b4ccc076a68eadc11e9fb3d2967a34fe0396cf9
2023-11-27 13:59:33 +08:00
Chaohui Wang
ee7139a889 Remove injecting developer options into Settings itself
- It can improve performance because we use less injected item
- Also use RestrictedPreference instead just checking restrictions,
  so we follow policy transparency.

Note: Renamed DevelopmentSettingsDashboardActivity to
DevelopmentSettingsActivity,
because DevelopmentSettingsDashboardActivity could in disabled state
even after Settings upgrades, use a new name to prevent this issue.

Bug: 311604902
Test: manual - turn on / off Developer Options
Test: unit test
Change-Id: I17be117ae59e59410687e6d08fd5edd034d0508f
2023-11-27 05:12:13 +00:00
Chaohui Wang
c9ccf861c6 Merge "Clean up unused MobilePlanPreferenceController" into main 2023-11-27 05:11:53 +00:00
Chaohui Wang
7c4b3a3477 Clean up unused SummaryProvider
Remove unused content provider to improve latency.

Bug: 311604902
Test: manual - on System page
Change-Id: I3208a2fe341337c2648733b5e11159b96f5e6908
2023-11-27 12:26:48 +08:00
Treehugger Robot
fb431d863f Merge "Temporary failing tests under com.android.settings.bluetooth" into main 2023-11-27 04:04:27 +00:00
FanWu
804dfb4fe1 Ignore failing tests under com.android.settings.biometrics
Bug: 313342682

Test: atest
Change-Id: Id16d407983c0cc323418a8765cadae2be0fd453a
2023-11-27 11:40:45 +08:00
Kevin Liu
3544c76c56 Temporarily ignore the tests that time out the execution
Fix timeout issue that cause v2/android-settings/apps/robolectric_settings_test with no result on CI

Bug: 300134365
Test: atest SettingsRoboTests
Change-Id: Ied94c6f6357d1919c37ceeca27fc1b9cb726c502
2023-11-24 23:51:55 +00:00
Manish Singh
51f1321b1e Put stricter flag checks
Also removed a log which gives away flag.

Bug: 312976400
Test: manual
Change-Id: I4a989de8b6b920666aabf0cc9311e28becc4d862
2023-11-24 18:51:27 +00:00
Treehugger Robot
b76f32ef3e Merge "Hide search results when Battery info page is disabled." into main 2023-11-24 16:50:20 +00:00
Yi-Ling Chuang
43260f6f28 Hide search results when Battery info page is disabled.
Fixes: 312639417
Test: robotest
Change-Id: I04279c4068ebb0e06b575ae2df44836d193f9bac
2023-11-24 23:56:08 +08:00
Chaohui Wang
a39905eabd Clean up unused MobilePlanPreferenceController
Which can improve the latency of "Network & internet" page.

Bug: 311604902
Test: manual - on "Network & internet" page
Change-Id: If306e93491402278ede4f20591296765b30bde37
2023-11-24 23:55:14 +08:00
Treehugger Robot
f122a93efc Merge "Add power consumption footer in screen timeout page." into main 2023-11-24 09:59:58 +00:00
mxyyiyi
027db802fe Add power consumption footer in screen timeout page.
- show this footer when there's no footer about work profile
Screenshots:
[without work profile]: https://screenshot.googleplex.com/5pAD2xBvP6QSBvY
[with work profile]:  https://screenshot.googleplex.com/7BRd6ToAjFN9QZx

Bug: 300245790
Test: manual
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.ScreenTimeoutSettingsTest"
Change-Id: I6df018d7758fbec3277179358b17eb11fa1aee34
2023-11-24 17:11:15 +08:00
Yiyi Shen
ae728039ac [Audiosharing] Enable/disable the main switch base on BT state.
Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I48bf0c6fb40ff629610e6e1a48e209fea44ebdde
2023-11-24 15:41:43 +08:00
FanWu
73f3015961 Temporary failing tests under com.android.settings.bluetooth
Bug: 313014781
Bug: 293405483
Test: atest
Change-Id: Ib2f4504dacd8f16acd23871e3ff26e87cab99e65
2023-11-24 07:29:37 +00:00
YK Hung
e5dc6a5cba Merge "Reset the dynamic set denylist after reboot the device" into main 2023-11-24 07:05:42 +00:00
ykhung
65260c7f5e Reset the dynamic set denylist after reboot the device
Reset the uids which are set into the POLICY_REJECT_METERED_BACKGROUND
from the dynamic configured mechanism, rather than set by users
manually, to avoid it still take effect after rebooting the device.

Bug: 306329984
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: Idc0c21350cad7e48e6a5c7190565d5364236c2cd
2023-11-24 13:59:20 +08:00
Chelsea Hao
fe934dd097 Merge "[Audiosharing] Hide / show audio streams category." into main 2023-11-24 05:21:00 +00:00
YK Hung
0b30f6a2e2 Merge "Replace the isWorkProfile method from the SettingsLib" into main 2023-11-24 05:07:31 +00:00
ykhung
7007b11228 Replace the isWorkProfile method from the SettingsLib
Replace the isWorkProfile() in the Settings with the common method
defined in the SettingsLib to avoid duplicate code

Bug: 306329984
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: Ic9b18e6b80c23f9d4fc200080224daa27cbf4a4d
2023-11-24 11:08:06 +08:00
YK Hung
ba6a19ea21 Merge "Dump the DynamicDenylistManager stored data into bugreport" into main 2023-11-24 03:03:13 +00:00
ykhung
072ccdd06a Dump the DynamicDenylistManager stored data into bugreport
Bug: 306329984
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.datasaver"
Change-Id: If512f561b3b376ea56e0dc78c339bf254ff20060
2023-11-24 10:01:59 +08:00
Edgar Wang
58bed09373 Refactor AppPicker to adopt the latest UX
- get rid of ListActivity
- add aconfig

Bug: 299195099
Test: manual
Change-Id: I922ffb46f3132d117b0f682d8076f9e975d02b2c
2023-11-23 22:17:12 +00:00
Edgar Wang
a930f5eaf8 Merge "Remove injecting multi-user settings into settings itself" into main 2023-11-23 22:02:30 +00:00
Olivier Nshimiye
02399366cd Merge "Update the getHideInSettingsInQuietMode to getHideInUiInQuietMode" into main 2023-11-23 15:53:28 +00:00
Haijie Hong
e3d823cffd Merge "Skip authentication in Wifi sharing if the device is unlocked recently" into main 2023-11-23 11:42:52 +00:00
chelseahao
78a667e7ca [Audiosharing] Hide / show audio streams category.
Only show when there is an active LE buds connecting, and the source is
not currently broadcasting.

Bug: 308368124
Test: Manual
Change-Id: I2cc172a66648901ac8a7e49c5aac734b6bbc7e33
2023-11-23 11:03:16 +00:00
Haijie Hong
ec1b13eb72 Skip authentication in Wifi sharing if the device is unlocked recently
BUG: 311168955
Test: atest com.android.settings.wifi.dpp.WifiDppConfiguratorAuthActivityTest
Change-Id: I59674788e04d843541e8fcc3f3305ba295e8d8b1
2023-11-23 10:49:04 +00:00
Yiyi Shen
6ab64aa71f Merge "[Audiosharing] Set earlist connected device active in sharing." into main 2023-11-23 09:39:44 +00:00
Edgar Wang
40cc58f5a1 Merge "Update SpellCheckerPreference layout to support divider" into main 2023-11-23 07:50:41 +00:00
Yiyi Shen
b82f290fce [Audiosharing] Set earlist connected device active in sharing.
Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I8e0132f3d982fe2723581cd2aafd3cb9a9ed409c
2023-11-23 15:40:50 +08:00
chelseahao
1e0301d70f [Audiosharing] Move getSummary to a bg thread.
Bug: 308368124
Test: Manual
Change-Id: I6d521681ce8835e5187c43f6ec930fb119f46674
2023-11-23 05:41:06 +00:00
Edgar Wang
2dfae393c4 Merge "Remove SettingsIntelligence log writer" into main 2023-11-23 03:28:13 +00:00
Chelsea Hao
73a95d165a Merge "[Audiosharing] Create preference for audio streams" into main 2023-11-23 03:19:40 +00:00
Edgar Wang
3755ba0f42 Remove SettingsIntelligence log writer
Bug: 259034522
Test: rebuild
Change-Id: I9bc4eee86a251aa30289b2d279bdb84de82d91b1
2023-11-23 09:58:33 +08:00
Bill Yi
9d45161d63 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1c2f669606 -s ours am: 875ae1db39 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iecf78fafc8adc4ee548a7b502a1a99731c929ae9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-22 23:16:00 +00:00
Treehugger Robot
4897aa1915 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2023-11-22 21:13:29 +00:00
Treehugger Robot
94bc38cc91 Merge "Migrate Force L3 fallback to SwitchPreferenceCompat" into main 2023-11-22 20:18:41 +00:00
Bill Yi
3bbe3385f9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I83784603dfeb75f677e9ab3d4fffd4ef8c87f48c
2023-11-22 12:10:34 -08:00
Bill Yi
875ae1db39 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1c2f669606 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I975b2f9be421bef7e15e811e91a4ec0e286dd85e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-22 19:49:02 +00:00
Bill Yi
315fd6c450 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 03110c25cf -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic07011650702b1b8d9018754c355289dab058898
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-22 19:20:50 +00:00
Bill Yi
f64a39a4f3 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2023-11-22 19:01:02 +00:00
Chaohui Wang
981829067e Migrate Force L3 fallback to SwitchPreferenceCompat
For Material3 migration.

Bug: 306658427
Test: visual - on Widevine settings
Change-Id: Ieb7d3fd61e4d13f3518af61763ab3ec68066d89d
2023-11-22 21:51:37 +08:00
Treehugger Robot
30c908c871 Merge "Show Hotspot network in Network & internet settings" into main 2023-11-22 13:01:07 +00:00
Yiyi Shen
f4d4683a3c Merge "[Audiosharing] Add device volume controls." into main 2023-11-22 12:57:20 +00:00
chelseahao
1cf98e0046 [Audiosharing] Create preference for audio streams
This preference will optionally show a lock icon on the right.

Bug: 308368124
Test: Manual
Change-Id: Ifd899da48a499e4d963f0b8981f8d5f55070d46f
2023-11-22 10:57:28 +00:00