Commit Graph

21078 Commits

Author SHA1 Message Date
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
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
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
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
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
a930f5eaf8 Merge "Remove injecting multi-user settings into settings itself" into main 2023-11-23 22:02:30 +00:00
Edgar Wang
40cc58f5a1 Merge "Update SpellCheckerPreference layout to support divider" into main 2023-11-23 07:50:41 +00:00
Edgar Wang
2dfae393c4 Merge "Remove SettingsIntelligence log writer" into main 2023-11-23 03:28:13 +00:00
Edgar Wang
3755ba0f42 Remove SettingsIntelligence log writer
Bug: 259034522
Test: rebuild
Change-Id: I9bc4eee86a251aa30289b2d279bdb84de82d91b1
2023-11-23 09:58:33 +08:00
Weng Su
203931d038 Show Hotspot network in Network & internet settings
- Show Hotspot icons

- Show getAlternateSummary instead of original getSummary

Fix: 308187592
Test: unit test
atest -c InternetPreferenceControllerTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a9ea40dc71362b372c5adc89b82dbe2024253688)
Merged-In: I8afe54edebc904c9ec936f5851a33c6c20f13e29
Change-Id: I8afe54edebc904c9ec936f5851a33c6c20f13e29
2023-11-22 09:58:07 +00:00
Edgar Wang
523d39266c Update SpellCheckerPreference layout to support divider
Bug: 246499664
Test: robotest and visual
Change-Id: I96908f4b566820b20a57e0161d74dfed2c566ea5
2023-11-22 14:59:17 +08:00
Chaohui Wang
28bbbf783b Merge "Reduce flaky of whenIsInstantApp_hasSummaryForInstant" into main 2023-11-22 03:02:30 +00:00
Oli Thompson
c1e33f5080 Merge "Guard against duplicate calls to setQuietModeEnabled" into main 2023-11-21 13:37:03 +00:00
Edgar Wang
6024953f02 Remove injecting multi-user settings into settings itself
- It can improve performance because we use less injected item

Bug: 242152448
Test: robotest
Change-Id: I892e1ac9c3f8297c489fc1fec934e9f5f2e2f5e9
2023-11-21 21:05:54 +08:00
Treehugger Robot
e8f6a7572c Merge "Handle cached bluetooth device with stylus pref" into main 2023-11-21 12:59:39 +00:00
Ajinkya Chalke
dcb5bc6da5 Handle cached bluetooth device with stylus pref
- Checking whether a stylus has a tail button key is not possible when
  the device is cached, so assume that it does.
- Updated StylusDevicesControllerTest to use SwitchPreferenceCompat as
  there were unrelated tests that were failing. The actual test that
  would've caught the bug only started failing after the unrelated test
  failures were fixed.

Bug: 311334474
Test: atest StylusDevicesControllerTest
Flag: N/A
Change-Id: Iee2899bf0a77a70f4a4f76833f485d511d919c40
2023-11-21 11:15:29 +00:00
Chaohui Wang
8a5c1f422c Merge "New SystemUpdateRepository" into main 2023-11-21 09:27:24 +00:00
Zoey Chen
a76af961b2 [Regional Preference] Remove string from metrics
Bug: 296544040
Test: atest NumberingSystemItemControllerTest
Change-Id: I1e1dd678011a15bc22b167ddd12651a22f62dea9
2023-11-21 06:19:01 +00:00
Chaohui Wang
3534061f7b New SystemUpdateRepository
Extract getSystemUpdateIntent, and add unit test.

Bug: 311110616
Test: manual - on "Software updates" page
Test: unit test
Change-Id: Ic7c06490d1d324705f547b2394794605e85485a4
2023-11-21 14:09:57 +08:00
FanWu
45e2bcb8bb Fix ModuleLicensePreferenceTest. The intent may contain multiple flags, so just checking whether the needed one is included
Fix: 215072120

Test: atest
Change-Id: I71707a6e8dc0e728e3c20d2c626c204c63064dae
2023-11-21 01:51:49 +00:00
Fan Wu
a909150e53 Merge "Fix InstalledAppCounterTest" into main 2023-11-21 01:43:17 +00:00
Chris Antol
8e4c2473e8 Merge "Make Mainline Module update intent explicit" into main 2023-11-20 18:39:22 +00:00
FanWu
ea43959d8b Fix InstalledAppCounterTest
The root cause is introduced in ag/25089088 which updated the UserManager source

Bug: 293405483

Test: atest
Change-Id: I380e70c8a774e972153a27ca096cd3b7f8236304
2023-11-20 15:48:02 +08:00
Roy Chou
5d9571bcee Merge "fix(text preference): fix preview block ui broken in SUW" into main 2023-11-20 03:11:29 +00:00
Roy Chou
004238d7f8 fix(text preference): fix preview block ui broken in SUW
As previous cl ag/25185014 we increased the preview block horizontal padding when landscape mode. However, in setup wizard it uses GlifPreferenceLayout so the settings page only has half screen width when landscape mode, so the preview block ui is squished due to limited width. Also, setup wizard package has overlay the paddings to larger than our prevoius adjust. Therefore, we rollback the changes in accessibility_text_reading_preview.xml to get the default padding, then add checker to increase the paddings if needed at runtime.

Bug: 309590083
Test: manually
Test: atest TextReadingPreviewPreferenceTest
Test: atest TextReadingPreferenceFragmentForSetupWizardTest
Change-Id: Ib907f4182eed272b84a4ab6208ea2d8a89ba96c4
2023-11-20 03:10:33 +00:00
Oli Thompson
ae10f49ab8 Guard against duplicate calls to setQuietModeEnabled
check if quiet mode is already in the desired state before calling
setQuietModeEnabled

Bug: 303722527
Bug: 293441361
Test: atest WorkModePreferenceControllerTest, atest
ManagedProfileQuietModeEnablerTest

Change-Id: I6a809b6f1b9a78382dccb1cc8b0ae4d8c88fa51a
2023-11-17 15:06:07 +00:00
Chaohui Wang
8b7e6c28bc Check isSimHardwareVisible earlier
In SimEidPreferenceController, to reduce flaky on no SIM devices.

Bug: 304560734
Test: manual - on "About phone / tablet" page
Test: unit test
Change-Id: I07ae9b785d0fbe24a866883080a466a2110ca68f
2023-11-17 07:18:44 +00:00
Wa Gao
f610b1938b Merge "Refactor to use the utils class." into main 2023-11-17 03:29:12 +00:00
Wa Gao
b9835cea12 Refactor to use the utils class.
Bug: 298076922

Change-Id: I0085fdf7594d0ba9243a7b44600252d8c5b21608
2023-11-16 19:46:27 +00:00
YK Hung
e43645952f Merge "Update setDenylist() input structure" into main 2023-11-16 08:02:58 +00:00
Wesley Wang
24278e7a92 Update setDenylist() input structure
- Change the input type from list of String to Integer
 - Update test case

Bug: 306329984
Test: make SettingsRoboTests
Change-Id: I018ef49523810577b17375628e45c24270a3bdf4
2023-11-16 07:07:52 +00:00
Chaohui Wang
1a2bf18eae Merge "Fix restriction to configure Calls & SMS" into main 2023-11-16 03:32:37 +00:00
Chun-Ku Lin
e0852d25f7 Merge "Don't show quick settings tooltip if the user is in the Setup Wizard, since the user can't access the Quick Settings Panel." into main 2023-11-16 03:03:57 +00:00
Wa Gao
3185a36b90 Update the unit test and add key to fragment.
Bug: 298076922
Change-Id: I8ed880c4f81bd76adc27af9bc3ba66f0b4697f74
2023-11-15 23:44:11 +00:00
Chris Antol
54f6b164fa Make Mainline Module update intent explicit
Change-Id: Iaacbebcb5328d50f0bdaa554782144315140e143
Test: Existing unit test
Test: on-device verified tapping UI element still navigates to Play's update screen (About phone > Android version > Google Play system update)
Bug: 278987474
2023-11-15 19:50:48 +00:00
Manish Singh
aa91f1db3a Merge "Reset Private Space settings on new space creation" into main 2023-11-15 13:55:12 +00:00
Manish Singh
7a556b851c Reset Private Space settings on new space creation
Also added PrivateSpaceMaintainerTest

Bug: 310217645
Test: atest PrivateSpaceMaintainerTest
Test: atest HidePrivateSpaceControllerTest
Test: manual
Change-Id: Ic1096fd652d23ae6aa9da1421017c08f6bc480aa
2023-11-15 12:54:20 +00:00