Commit Graph

21960 Commits

Author SHA1 Message Date
Chaohui Wang
18aa0c353c Merge "Filter out empty phone number" into main 2024-03-15 03:08:16 +00:00
Andy Wickham
07109c158a Allows for system navigation settings to be added dynamically.
This allows for controller-backed preferences to be added or
overridden via xml.

Similarly, if the controllers cause all of the preferences for
2 or 3 button nav to be unavailable, we hide the settings button.

Bug: 324036308
Test: Manual and unit tests
Flag: NA
Change-Id: I2371f3173076172489966728ac69c8767570cd56
2024-03-14 20:07:33 +00:00
Jakub Rotkiewicz
89612e53d7 Refactor Bluetooth Codec settings to dynamic ListPreference
Fetch supported codecs from native and present to user using
ListPreference.

Bug: 305779598
Bug: 311451118
Bug: 323319530
Tag: #feature
Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.AbstractBluetoothListPreferenceController
Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.BluetoothCodecListPreferenceControllerTest

Change-Id: Iedbfd01c0d1b59df8a073f4e9aedca3913e6d45f
2024-03-14 11:00:35 +00:00
Ang Li
800ab6d4cb Update the screenshot of Settings RNG tests.
The screenshot updates comes from two sources:
1. A recent Robolectric library change;
2. The application of Material You Colors.

Test: http://ab/I77900010255425277
Change-Id: I0493b9970a55422ac5302daec6b44a71174c1fde
2024-03-14 10:08:18 +00:00
Chaohui Wang
d85494bd0c Filter out empty phone number
Prevent flicker.

Bug: 318310357
Test: manual - on SIMs
Test: unit test
Change-Id: Ie44ec8bad58b59368099d0fe3f277c12855f8bd4
2024-03-14 17:42:34 +08:00
Kangping Dong
b0c7563cdf Merge "[Thread] use dedicated flag for Thread settings" into main am: 33722b512a am: c19a1094d7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3002558

Change-Id: I1c28a4a870b8ded5aad1b32e1e4e7f505d580138
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-14 06:19:07 +00:00
Chaohui Wang
1377e554df Fix simOnboardingLabelSimImpl_showItem_show3Items
Bug: 318310357
Test: unit test
Change-Id: I189f71d49a866660a1055576b39841db09fa1520
2024-03-14 14:05:48 +08:00
Chaohui Wang
4e56c7a273 Get NetworkRegistrationInfo on background thread
To fix ANR.

Fix: 322943652
Test: manual - on Network Selection
Test: unit test
Change-Id: I9cd7137542de007e5be2830b2ba1cbfaff8b2c05
2024-03-14 04:19:04 +00:00
Wilson Wu
7fe0754011 Fix keyboard vibration settings delay
The default settings observer delay is 10s for
background service. It cause the apps get the
settings update delay and lead a unsync behavior.

Update the settings change without delay.

Bug: 327094397
Test: Manual test with bug steps
Test: atest KeyboardVibrationTogglePreferenceControllerTest
Change-Id: Ib1c23ec9e1442e8397c7a36ffa157594ac64a9b3
(cherry picked from commit f2174611b8)
Merged-In: Ib1c23ec9e1442e8397c7a36ffa157594ac64a9b3
2024-03-14 02:40:12 +00:00
Isaac Chai
00c6677745 Merge "Fix test for MagnificationOneFinger preference test" into main 2024-03-14 02:13:22 +00:00
Isaac Chai
a95f2d3745 Fix test for MagnificationOneFinger preference test
Test: Locally ran and passed
Bug: 329189635, 329188827
Change-Id: I2c4948cb47aac28d403edfc94aa3b8dfe766f6f8
2024-03-13 18:12:19 +00:00
Chun-Ku Lin
958d17bb69 Merge "Reflect QS shortcut changes in a11y pages." into main 2024-03-13 16:02:59 +00:00
Prince
8b02d17db8 Toggle Home controls when user selects Home Control Panel Dream
Test: DreamSettingsTest
Flag: ACONFIG android.service.controls.flags.home_panel_dream STAGING
Fixes: 323887821
Change-Id: Iba7c2ff41e3e0074a28f96c4e5fa1028b80f7a92
2024-03-13 14:51:07 +00:00
Kangping Dong
08dd96fd8f [Thread] use dedicated flag for Thread settings
a larger THREAD_ENABLED_PLATFORM flag which guards all Thread-related
platform changes is used for the Thread settings change. But we need
more flexible control of the UX release timeline. So use a dedicated
THREAD_SETTINGS_ENABLED flag here.

Bug: 329384658
Change-Id: Ib5b3ae3c71ccc890fc46af982b021858774938f3
2024-03-13 18:28:45 +08:00
Wilson Wu
ab589363b4 Merge "Fix keyboard vibration settings delay" into main 2024-03-13 08:32:48 +00:00
Angela Wang
0517422918 Merge "Fix logging format and add test cases" into main 2024-03-13 08:27:24 +00:00
Wilson Wu
f2174611b8 Fix keyboard vibration settings delay
The default settings observer delay is 10s for
background service. It cause the apps get the
settings update delay and lead a unsync behavior.

Update the settings change without delay.

Bug: 327094397
Test: Manual test with bug steps
Test: atest KeyboardVibrationTogglePreferenceControllerTest
Change-Id: Ib1c23ec9e1442e8397c7a36ffa157594ac64a9b3
2024-03-13 06:33:08 +00:00
Jacky Wang
081dbac72e Reset app preferences does not trigger backup for App battery usages
Bug: 328712606
Fix: 328712606
Test: UT && Verify logcat when change/reset App battery usages
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ef8a51fac85eedee8f9509b9f7c002281c1ae093)
Merged-In: Ia3917c8dc2654185f5f048c048362fd47379b7d1
Change-Id: Ia3917c8dc2654185f5f048c048362fd47379b7d1
2024-03-13 03:23:50 +00:00
Mike Schneider
3085f01f6f Merge "Fold [GoldenImagePathManager] into [GoldenPathManager] #cleanup" into main 2024-03-12 17:42:03 +00:00
Nino Jagar
720bdde511 Merge "Integrate admin controls for content protection" into main 2024-03-12 17:05:24 +00:00
Joseph Vincent
d003fb1be8 Merge "Show Alert dialog on Hide when locked is enabled" into main 2024-03-12 17:04:44 +00:00
josephpv
1af33733c6 Add entrypoint for Learn More in PS settings & Setup intro
Screenshots:
go/ss/RXhN57DSuSj7aQf.png
go/ss/5xcbx3mWeo2sZ37.png

Bug: 326059389
Test: atest PrivateSpaceFooterPreferenceControllerTest
Change-Id: I72beb1a04ea11909643dd6b455575478cfb5d87c
2024-03-12 16:15:53 +00:00
josephpv
3c97c63d62 Show Alert dialog on Hide when locked is enabled
Bug: 325398789
Test: atest HidePrivateSpaceControllerTest
Change-Id: I6bfa3546b3ba56905918f8fd44c5351bf2d284b8
2024-03-12 10:35:56 +00:00
Treehugger Robot
fb52d69142 Merge "Fix test failure in com.android.settings.wifi.details2" into main 2024-03-12 06:55:42 +00:00
Treehugger Robot
3c26c93bd5 Merge "Add new dialogue when user is going to delete multiple sims where aleast on of them use RAC." into main 2024-03-12 05:45:06 +00:00
Zaiyue Xue
ff8116cc36 Fix test failure in com.android.settings.wifi.details2
Bug: 329046490
Fix: 329046490
Test: manual
Change-Id: Ia8ecdc4e52c57c5491786c5f0741820a94345428
2024-03-12 12:47:09 +08:00
Charlotte Lu
e9ee2c66bb Merge "Add CertificateDetailsPageProvider." into main 2024-03-12 03:31:25 +00:00
Charlotte Lu
470c27b8bd Merge "Add dhcp in advanced settings toggle." into main 2024-03-12 02:32:57 +00:00
Chun-Ku Lin
deba8599d8 Reflect QS shortcut changes in a11y pages.
Bug: 314843909

Test: manual (modify qs tiles in QS panel while the a11y page is open,
verify the a11y page reflect the qs changes)
Test: atest com.android.settings.accessibility
Test: atest com.android.settings.accessibility.shortcuts

Flag: ACONFIG android.view.accessibility.a11y_qs_shortcut

Change-Id: Ie5b46459faab902912a214ca131eb5d0b105a7ef
2024-03-12 01:32:00 +00:00
Rafael Higuera Silva
9ac44b3aae Add new dialogue when user is going to delete multiple sims where aleast on of them use RAC.
Test: make, manually test, atest com.android.settings.network, atest SubscriptionUtilTest
Bug: 328649505
Change-Id: I0c6fb7b5407179ec6850ece47f486b64759e2d1c
2024-03-11 23:29:30 +00:00
Charlotte Lu
458b942a90 Add CertificateDetailsPageProvider.
Test: Unit Test
Fix: 326191189
Change-Id: I542903b26bac589ba67c297d8758ea0a69ebdf23
2024-03-11 17:29:35 +08:00
Jacky Wang
e18a651d89 Merge "Reset app preferences does not trigger backup for App battery usages" into main 2024-03-11 09:11:12 +00:00
Angela Wang
c9563a59da Merge changes from topic "ha-preset" into main
* changes:
  Selects presets in device details page (2/2)
  Selects presets in device details page (1/2)
  Separate category controller out of HearingDeviceControlsController
2024-03-11 08:33:46 +00:00
Charlotte Lu
08f8f0ce9e Add dhcp in advanced settings toggle.
Test: Unit Test
Fix: 329002870
Change-Id: I5c57deb1e8ed0dd59a7699b56f5eb99ca29876b8
2024-03-11 06:47:38 +00:00
Jacky Wang
ef8a51fac8 Reset app preferences does not trigger backup for App battery usages
Bug: 328712606
Fix: 328712606
Test: UT && Verify logcat when change/reset App battery usages
Change-Id: Ia3917c8dc2654185f5f048c048362fd47379b7d1
2024-03-11 13:41:03 +08:00
Fan Wu
c8d5701ab5 Merge "Fix AppInfoWithHeaderTest" into main 2024-03-11 04:06:35 +00:00
Aditi Katragadda
d983741f07 Merge "Enable Bluetooth stack logging from Developer Options UI Element" into main 2024-03-08 19:17:04 +00:00
Treehugger Robot
0003443c3d Merge "Fix Settings profile selector on HSUM" into main 2024-03-08 18:36:27 +00:00
Chun-Ku Lin
9cf7f6e861 Merge "Show QS shortcut option if the a11y feature provides a tile." into main 2024-03-08 17:20:15 +00:00
Wilson Wu
81f2587fd4 Add fixed amplitude check for keyboard vibration
Make sure the keybaord vibration settings only show
up when fixed amplitude provided to avoid any unsync
behavior with platform.

Bug: 326027376
Test: atest KeyboardVibrationTogglePreferenceControllerTest
Change-Id: I3b4e06660e3eaa6ce537b72831073f092cba37e2
2024-03-08 11:22:34 +00:00
Mike Schneider
b7c80a5491 Fold [GoldenImagePathManager] into [GoldenPathManager] #cleanup
These are required changes sto be submitted together with ag/26486827.

Bug: 322324387
Test: Test-only change, covered by existing unit tests
Change-Id: I5287c8ed485ff818f5714759663b64f157951897
2024-03-08 11:06:01 +01:00
Aditi Katragadda
5c98e0fbcc Enable Bluetooth stack logging from Developer Options UI Element
The goal is to be able to enable different log levels for Bluetooth
stack logging from Developer Options in Settings. This is done by
creating a Bluetooth property which houses the current state of the log
level, adding the required UI elements and linking the two together.

Tag: #feature
Bug: 307330446
Test: atest BluetoothStackLogPreferenceControllerTest
Change-Id: I8665b17622218743aa00250118b718d5cabdb9fc
2024-03-07 23:59:10 -08:00
Chaohui Wang
25d68d845a Merge "Fix flicker of "App data usage"" into main 2024-03-08 02:54:39 +00:00
Nino Jagar
65eb00f0f3 Integrate admin controls for content protection
Bug: 323038631
Test: End-to-end with TestDPC, new units
Change-Id: I98d52fdd95fca023b8eb576c97d563a1f3cab464
2024-03-07 22:56:09 +00:00
Sudheer Shanka
34bd0481df Merge "Remove the developer option to control Quarantine app state." into main 2024-03-07 19:39:55 +00:00
Liahav Eitan
0f37c7463b Fix Settings profile selector on HSUM
Currently Settings ProfileSelectorFragment uses isSystem() to identify
the personal user. This change migrates it to use isMain() in line with
HSUM architecture.

Test: atest SettingsRoboTests:com.android.settings.dashboard.profileselector.ProfileSelectFragmentTest
Fixes: 327610266, 327600527, 327585940, 326574736
Change-Id: I064b2fb295b89cffcd556e151fe1bf4484caf384
2024-03-07 14:41:07 +00:00
Chaohui Wang
4b0090700a Merge "Migrate the "Use this SIM" preference" into main 2024-03-07 12:43:52 +00:00
Graciela Wissen Putri
aed31bb8bd Follow config overlay's order of aspect ratio options am: a0f573a35e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26456385

Change-Id: I30ff221caba3be36834acb44958cf2aed30c17d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-07 12:11:14 +00:00
Olivier Nshimiye
b816437d39 Merge changes from topic "add-ps-features-flag" into main
* changes:
  Add Private Space features flag check to Settings tests
  Add an additional flag guard for Private Space implementation
2024-03-07 10:48:58 +00:00
Chaohui Wang
186629aad4 Migrate the "Use this SIM" preference
This will fix the toggle flicker issue.

Fix: 262179656
Test: manual - on Mobile Settings
Test: unit test
Change-Id: Ided2445034a83a8efc11dc97bab8719686d63712
2024-03-07 17:48:09 +08:00