Commit Graph

21554 Commits

Author SHA1 Message Date
FanWu
4a769ea516 Ignore failing tests under com.android.settings.gestures
Bug: 313541907

Test: atest
Change-Id: Icaf54beca37a17015a849259a1b888a7c9361664
2023-11-28 11:16:22 +08:00
FanWu
b593928ac2 Ignore failing tests under com.android.settings.location
Bug: 313540388

Test: atest
Change-Id: I10eb8818d1a3737702df0eeb6497d3c741ba7972
2023-11-28 10:57:03 +08:00
FanWu
c9eb27c62c Ignore failing tests under com.android.settings.wifi.details
Bug: 313536962

Test: atest
Change-Id: I8f2152e29fe8db0463ea1cbf5ab1e388e17366dd
2023-11-28 10:42:05 +08:00
Chaohui Wang
c3e97122c1 Clean up BackupSettingsHelper.getSummary()
Backup item in System page no longer has summary.

Bug: 310513318
Test: m RunSettingsRoboTests
Change-Id: I0bb3b9114287546c279a5f30b65fb7081af54e44
2023-11-28 02:30:09 +00:00
FanWu
021e3492e7 Ignore failing tests under com.android.settings.users
Bug: 313530297

Test: atest
Change-Id: I946b2276b8be8f1225263e9716a757c770a80ea0
2023-11-28 10:08:38 +08:00
Daniel Norman
126de9691a Use A11yManagerService to check if the A11yService warning is required.
Bug: 303511250
Test: m RunSettingsRoboTests ROBOTEST_FILTER=ToggleAccessibilityServicePreferenceFragmentTest
Change-Id: Ibef748bd82ba166e377be0611df113ac09d052bc
2023-11-28 01:54:21 +00:00
Fan Wu
a808cbe11d Merge "Ignore failing tests under com.android.settings.biometrics" into main 2023-11-28 01:34:27 +00:00
Fan Wu
9b17f30108 Merge "Ignore failing tests under connecteddevice/" into main 2023-11-28 01:34:08 +00:00
Weng Su
129ff9b8fe Fine-tune launch time in Network & Internet settings
- Avoid creating WifiPickerTracker if Hotspot network feature is not enabled

Fix: 312905628
Test: unit test
atest -c InternetPreferenceControllerTest

Change-Id: I5818698ce06244aa7660e90a5f2fd372a3a221bf
2023-11-28 06:51:39 +08:00
Kevin Liu
bc69be0ff6 Merge "Temporarily ignore the tests that time out the execution" into main 2023-11-27 16:53:43 +00:00
FanWu
11ecd1f626 Ignore failing tests under connecteddevice/
Bug: 313362757

Test: atest
Change-Id: Ic9c6c1f071c403c7df5d5539cc44a401ac500774
2023-11-27 15:29:23 +08:00
Chaohui Wang
b848685b8d Merge "Clean up Contextual Wifi card" into main 2023-11-27 06:55:55 +00: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
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