Commit Graph

2854 Commits

Author SHA1 Message Date
Weng Su
8e2441b764 Fix WifiTetherSecurityPreferenceControllerTest bug
Bug: 389096329
Flag: EXEMPT bugfix
Test: Manual testing
atest -c SettingsUnitTests:WifiTetherSecurityPreferenceControllerTest

Change-Id: I71f55d3b091b744d4d98728ab62491f0b1f8cb22
2025-01-11 01:50:21 +08:00
Jan Tomljanovic
406b5dface Split biometrics resource into three.
Bug: 388476345
Test: Treehugger
Flag: com.android.settings.flags.biometrics_onboarding_education
Relnote: N/a
Change-Id: Ie6761f318e64e1cf2782c538d7b6af5b5094faa1
2025-01-10 17:21:13 +00:00
Julia Reynolds
e62afe5aa9 Merge "Layout improvements for notification pages" into main 2025-01-10 06:28:18 -08:00
Arun Voddu
ca666039d8 Merge "[Satellite] Satellite UX changes in SIM settings as per new UX design." into main 2025-01-10 05:11:45 -08:00
Julia Reynolds
41896428ea Layout improvements for notification pages
Changes for upcoming theming changes in Settings:
- replacing some margins with padding
- merging some (switch pref + info pref) combos into a single preference.
I flagged the one that was already launched, but changed the other directly
- added some section headers (unflagged)
- moved all app wide notification settings to a single section (unflagged)
- changed two plain text prefs into TopIntroPreference, the dedicated pref
type for that sort of UI
- fixed some UI issues with 'Show more categories' appearing too often
- removed a duplicate notifcation channel label (unflagged)
- replaced a button layout preference with ButtonPreference (unflagged)

Test: manual review with is_expressive_design_enabled on and off
Test: atest com.android.settings.notification.app
Flag: EXEMPT this feature is not using aconfig for flagging
Bug: 349652992
Change-Id: I2acd7b2eb9dbcf6929143bfde99cd67163f1f95d
2025-01-09 17:07:53 -05:00
arunvoddu
4da20d24c4 [Satellite] Satellite UX changes in SIM settings as per new UX design.
Bug: 382707562
Flag: EXEMPT UX bug fix
Test: Verified UX on device
Change-Id: I9e600d8f1fd6c273329e05a74079f1e03c209c65
2025-01-09 15:32:20 +00:00
Treehugger Robot
b7e1cc472e Merge "[Catalyst] Add back Wi-Fi switch metrics" into main 2025-01-09 02:45:29 -08:00
Menghan Li
e8dfb5d2fd Merge "fix(ReduceBrightColorsPreferenceController) Different feature configs" into main 2025-01-09 01:16:31 -08:00
Menghan Li
4cbdc3f598 fix(ReduceBrightColorsPreferenceController) Different feature configs
This change updates the tests for ReduceBrightColorsPreferenceController
to account for different combinations of feature flags and
configurations, specifically related to the "Even Dimmer" flag and the
availability of Reduce Bright Colors.

The updated tests ensure that the preference controller correctly
determines its availability based on these factors, improving test
coverage and reliability. This addresses inconsistencies between the
code and test cases, ensuring accurate behavior across various device
configurations.

Bug: 387071233
Test: atest ReduceBrightColorsPreferenceControllerTest
Flag: com.android.server.display.feature.flags.even_dimmer
Change-Id: Ie565ce996c7d4f49e194b119b32bf01a6508393e
2025-01-08 20:47:14 +00:00
Weng Su
cd9af665c3 [Catalyst] Add back Wi-Fi switch metrics
- The original Wi-Fi switch metrics is recorded by WifiEnabler.

- Since the design of Catalyst removes WifiEnabler, the metrics needs to be added to Catalyst preference.

NO_IFTTT=Catalyst only

Bug: 388547699
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiSwitchPreferenceTest

Change-Id: I8819e8f660784b8b04c7958b65f4792b5d4d0919
2025-01-09 03:37:06 +08:00
Treehugger Robot
e28dcd02bc Merge "Fix sim status details not updated after sim hotswap" into main am: e9bc1949a9 am: 066efe6c55
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3431560

Change-Id: I176e94c9f718a14d5e4593471fadb1b1ef186dba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-08 04:21:29 -08:00
Treehugger Robot
e9bc1949a9 Merge "Fix sim status details not updated after sim hotswap" into main 2025-01-08 03:15:55 -08:00
hoffc
39d16d7bfb Fix sim status details not updated after sim hotswap
Telephony callback may be removed in onPause during sim hotswap, but they are not re-registered in onResume for sub info still null.

Listen sub info change and re-register telephony callback when need.

Test: function test pass and SimStatusDialogControllerTest unit test pass.

Change-Id: I17e60c9e3441fc593107048494f830408c37ae61
Bug: 384643359
2025-01-08 11:53:26 +08:00
Johannes Gallmann
05f8420d87 Clean up predictive_back_system_anims flag
Bug: 320510464
Test: Presubmit
Test: Manual, i.e. verified system animations enabled on device
Flag: EXEMPT flag cleanup
Change-Id: Ie3b9ecd3355fcf86a1b4f597d45635b3fc794be9
2025-01-03 14:30:26 +00:00
SongFerng Wang
14f0d7e7d0 Encounter unknown error in test
When atest on aosp_cf_x86_64_only_phone-trunk_staging-userdebug,
it said the "java.lang.NoSuchMethodError: No static method getCurrentCarrierNameForDisplay(Landroid/content/Context;)Ljava/lang/CharSequence; in class Lcom/android/settings/network/telephony/MobileNetworkUtils;"

Bug: 370884447
Bug: 370425683
Test: atest MobileNetworkUtilsTest
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dd7e4d27aed0b456ab0254ff821ff568fe335f61)
Merged-In: I76bfc4c1cabaf569d74309e9e9ad6612f5649d9b
Change-Id: I76bfc4c1cabaf569d74309e9e9ad6612f5649d9b
2024-12-29 18:44:18 -08:00
Chaohui Wang
a16f8fcf53 Clean up UiccInfoEntity
It's not used any more.

Bug: 348118234
Flag: EXEMPT clean up
Test: manual - on Mobile Settings
Test: atest DefaultSubscriptionControllerTest
Change-Id: I663efc1bb53230c34bc30641703e78fb170772d8
2024-12-25 10:12:29 +08:00
Daniel Huang
4a580bcda0 Merge "Migrate ToA to the new entry point" into main 2024-12-23 19:37:47 -08:00
Solti Ho
288aa8b183 Merge "Disable ANGLE as system GLES dev option" into main 2024-12-23 19:25:49 -08:00
danielwbhuang
bedf5c3805 Migrate ToA to the new entry point
1. Add the new entry point
2. Use flag to control the migration

Bug: 379962955
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: check hsv and atest TermsOfAddressCategoryControllerTest
Change-Id: Ie78a0f16188f3c4414dcd653189e5772f99ecb4d
2024-12-23 17:56:55 +08:00
Kyle Zhang
a538d07519 Merge "Fix force L3 preference unit test" into main am: 3874c11b94 am: 8d7fc7232b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3426487

Change-Id: I5a86b61ebee69fb52b4bc7bcf83e901d1aeab300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-20 15:26:40 -08:00
Solti
5a3cfb9f0c Disable ANGLE as system GLES dev option
This change prevents the feature from being inadvertently exposed to the
wider user base while it undergoes further refinement and stabilization
for a smoother user experience.

Test: atest SettingsUnitTests:com.android.settings.development.graphicsdriver.GraphicsDriverEnableAngleAsSystemDriverControllerJUnitTest
Test: locally build Husky and confirm the dev option is disabled, even
with the "debug.graphics.angle.developeroption.enable" prop set.
Flag: EXEMPT bugfix
Bug: b/384047927

Change-Id: I160840a25d38bf305871d7e146745df0d56f0227
2024-12-20 23:06:49 +00:00
Weng Su
9d83ce76ba [Catalyst] Refine Wi-Fi preferences
- Use application context to get system services to avoid memory leaks

NO_IFTTT=Catalyst only

Bug: 385116691
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiHotspotSwitchPreferenceTest \
         WifiSwitchPreferenceTest

Change-Id: I4340136d8d0118801ef450809424127f84afbb92
2024-12-20 21:45:49 +08:00
Kyle Zhang
3d84ccf8a2 Fix force L3 preference unit test
Bug: 385101776
Change-Id: I898b7855d3922636c09c99414cdaefee236fc71f
2024-12-19 16:02:45 -08:00
Graciela Putri
554684444a Merge "Clean up app default flag" into main 2024-12-18 05:38:14 -08:00
Daniel Huang
7b0e140dc5 Merge "Create language and region settings page" into main 2024-12-16 18:17:07 -08:00
Menghan Li
fe13deda24 Merge "fix(ReduceBrightColorsPreferenceController) Different feature configs" into main 2024-12-16 18:06:20 -08:00
danielwbhuang
f70abd2680 Create language and region settings page
1. Use flag to control the UI migration
2. Create language_and_region_settings.xml for new UI migration.

Bug: 379962955
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: check hsv and atest LanguagePreferenceControllerTest
Change-Id: If8d2303a2a3061231e69d1a45ad432c061da3545
2024-12-16 14:07:33 +08:00
SongFerng Wang
30192ba936 Disable failed tests from CellInfoUtilTest
These tests are currently failing and breaking builds.

Bug: 383858953
Change-Id: Idcb2f1f122b4e03990e7242b938438e1d8bb5367
Test: NA
Flag: EXEMPT bugfix
2024-12-15 19:38:54 -08:00
Graciela Wissen Putri
8cf4dabb7c Clean up app default flag
Flag: EXEMPT clean up flag
Bug: 375291719
Test: atest UserAspectRatioManagerTest
Change-Id: I00cd2677aaca14f01f1a04b736151c74b97e3179
2024-12-13 14:40:34 +00:00
Menghan Li
2e10dc109f fix(ReduceBrightColorsPreferenceController) Different feature configs
This change updates the tests for ReduceBrightColorsPreferenceController
to account for different combinations of feature flags and
configurations, specifically related to the "Even Dimmer" flag and the
availability of Reduce Bright Colors.

The updated tests ensure that the preference controller correctly
determines its availability based on these factors, improving test
coverage and reliability. This addresses inconsistencies between the
code and test cases, ensuring accurate behavior across various device
configurations.

Bug: 383076111
Test: atest ReduceBrightColorsPreferenceControllerTest
Flag: com.android.server.display.feature.flags.even_dimmer
Change-Id: Iec53b416ec69a74f1f353f684358f265b022456f
2024-12-13 13:30:38 +00:00
Treehugger Robot
9082aa03a3 Merge "Mock method to avoid exception." into main 2024-12-11 05:32:56 +00:00
tomhsu
2c5682719f Mock method to avoid exception.
- TelephonyManager#getVoiceNetworkType()

Flag: EXEMPT bug fix
Fix: 383209846
Test: atest pass
Change-Id: Iedb971b58cea6ff5844eb4268a53b0d8f0d41062
2024-12-11 03:50:02 +00:00
Olivier Nshimiye
bda181160f Merge "Set Private Space usehandle to null if we receive ACTION_PROFILE_REMOVED for PS user" into main 2024-12-10 01:52:22 +00:00
tomhsu
48895aaf03 Ignore test due to test failed.
- Will update the test CL later

Flag: EXEMPT bug fix
fix: 382998226
Test: atest pass.
Change-Id: Icf82dab5a497304df9c3e6a8159e5806ac687445
2024-12-09 23:52:03 +00:00
Olivier Nshimiye
24b05b053d Set Private Space usehandle to null if we receive ACTION_PROFILE_REMOVED for PS user
Flag: EXEMPT bugfix

Bug: 376044598
Test: Manually verified on a test device

Change-Id: Id7e3caed8bbe3afe301a3c29a70ba5ec77c90116
2024-12-09 22:04:14 +00:00
Jacky Wang
dc1a52a2ee [Catalyst] Simplify KeyValueStore API calls
NO_IFTTT=Catalyst only

Bug: 325144964
Flag: com.android.settings.flags.catalyst
Test: atest
Change-Id: I518b9c861eac6d515dfc7f0ac2d028f9395e06a1
2024-12-08 19:22:18 +08:00
Treehugger Robot
50a43ea47a Merge "Improve satellite category visiblity logic." into main 2024-12-06 16:43:13 +00:00
Treehugger Robot
a543a5791b Merge "[Catalyst] Make AirplaneModePreference final" into main 2024-12-06 16:18:54 +00:00
tomhsu
ef835bb57d Improve satellite category visiblity logic.
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: b/378408877
Test: make pass
Test: manual test
Change-Id: If5df345a631006e7efc41471b6cd6419ca4b3d79
2024-12-06 14:47:47 +00:00
Jacky Wang
858fbdb759 [Catalyst] Make AirplaneModePreference final
NO_IFTTT=Catalyst only

Bug: 375925972
Flag: TEST_ONLY
Test: atest
Change-Id: Ieea0e0e770d93d8bbe6f1f7a608541d5ba42c9cc
2024-12-06 22:20:37 +08:00
tomhsu
63469da6f6 Remove Satellite SOS entry from AOSP
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: b/378408877
Test: make pass
Test: Manual test
Change-Id: If47081be0ed0734be841b2fe9129d22a76ed8e1b
2024-12-06 11:57:15 +00:00
Treehugger Robot
aa2379967c Merge "Remove replicated page of Satellite SOS." into main 2024-12-06 05:06:04 +00:00
tomhsu
c2d25241a1 Remove replicated page of Satellite SOS.
Flag: EXEMPT bug fix.
Bug: b/370509415
Test: make pass
Change-Id: Iff96dd09f8c0876a32064853629f64b0db173099
2024-12-06 03:06:52 +00:00
Weng Su
efbe144a9a [Catalyst] Migrate Airplane Mode preference
NO_IFTTT=Catalyst only

Bug: 375925972
Flag: com.android.settings.flags.catalyst_network_provider_and_internet_screen
Test: Manual testing
atest -c AirplaneModePreferenceTest \
         NetworkDashboardFragmentTest
atest -c NetworkDashboardScreenTest

Change-Id: Ie63f2208a64cadf5faaa274fd4e069d839da850e
2024-12-05 09:10:54 +00:00
tomhsu
f0e06b6cab Fix crash due to resource not found.
Flag: EXEMPT bug fix
Fix: b/382071330
Test: atest pass.
Change-Id: I18ddeea7a9d077444838f39b07ffb2ebc5eb974d
2024-12-04 05:47:42 +00:00
Riley Jones
6d1c378972 Merge "Cleaning up quick settings flag in Settings app" into main 2024-12-03 22:03:04 +00:00
Treehugger Robot
351f6258d8 Merge "Satellite UX - Add learn more into Footer" into main 2024-12-03 12:57:03 +00:00
tomhsu
ceac8c1dde Satellite UX - Add learn more into Footer
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: 378408877
Test: atest pass
Test: Manual test pass.
Change-Id: I27f2c82fe5d6c34cf204472c4199538326d6aec4
2024-12-03 11:21:18 +00:00
Treehugger Robot
0496fc2de5 Merge "[Catalyst] Migrate Wi-Fi switch preference" into main 2024-12-03 08:31:30 +00:00
Weng Su
9faf231dc4 [Catalyst] Migrate Wi-Fi switch preference
NO_IFTTT=Add Catalyst preference

Bug: 372733639
Flag: com.android.settings.flags.catalyst_internet_settings
Test: Manual testing
atest -c NetworkProviderSettingsTest \
         NetworkProviderScreenTest
atest -c WifiSwitchPreferenceTest

Change-Id: Ic6023907608e831d0a946005dd0eb6fd88b301c0
2024-12-03 06:51:18 +00:00