Commit Graph

21392 Commits

Author SHA1 Message Date
Chaohui Wang
c909b37221 Merge "Make MoreOptionsScope abstract class" into main 2024-01-23 23:31:28 +00:00
Ling Ma
b6e28eeda5 Merge "Wrap subManager creation with createForAllProfiles" into main 2024-01-23 18:03:11 +00:00
Anubhav Kakkar
1a2774e3d8 Add trunk flag check to prevent changing the special app access settings for 'Change media output' for direct intent based entry when trunk flag is not enabled.
Bug: 321905521
Test: Ensure trunk flag is disabled > Open app specific settings for 'Change media output' > Ensure that settings should not be changeable
Change-Id: Iedfd82d97eb49fc65c56d332bde815ff41e24736
2024-01-23 16:43:16 +00:00
Treehugger Robot
00f4225c2c Merge "Update ShadowStorageManager" into main 2024-01-23 16:23:31 +00:00
Pajace Chen
c10be7c186 Merge "Update string for incompatible charging" into main 2024-01-23 14:14:18 +00:00
Chaohui Wang
97d36b771a Make MoreOptionsScope abstract class
Bug: 321724969
Test: m Settings
Test: unit test
Change-Id: Iced9df83f600c86cc409abc040fb9ace0dcedf1e
2024-01-23 13:59:45 +00:00
Pajace Chen
b42074b6ae Merge "Delete DockDefenderTip and Detector" into main 2024-01-23 11:26:11 +00:00
Ze Li
41b12fe8eb [Connected devices page] Reorder devices by most recently used.
Order the saved bluetooth devices by most recently connected in connected devices settings page.

Test: atest: com.android.settings.connecteddevice.SavedDeviceGroupControllerTest, com.android.settings.connecteddevice.PreviouslyConnectedDevicePreferenceControllerTest
Bug: 306160434
Change-Id: Id5ad8555a026d775d96ada37f989b4346336af93
2024-01-23 08:14:29 +00:00
Treehugger Robot
b35f828bfa Merge "Try to fix event_id missing by changing battery anomaly tips card metrics log method." into main 2024-01-23 08:02:33 +00:00
Treehugger Robot
9df98ee6b3 Merge "Migrate battery optimization mode app list to SPA." into main 2024-01-23 07:53:52 +00:00
pajacechen
98a522c45c Delete DockDefenderTip and Detector
- remove dock defender
- remove unused string

Test: atest SettingsRoboTests
Bug: 315748218
Flag: NA
Change-Id: Ida4bb1d36a653d1787595212aac167d2f4dd3438
2024-01-23 15:26:53 +08:00
Zaiyue Xue
dbe4a08c51 Try to fix event_id missing by changing battery anomaly tips card metrics log method.
Bug: 321866714
Fix: 321866714
Test: presubmit
Change-Id: I56073913227af120033bec7f3ef983432459ba9a
2024-01-23 15:01:51 +08:00
mxyyiyi
8dccd6947f Migrate battery optimization mode app list to SPA.
Bug: 284033422
Bug: 304923046
Test: manual
Change-Id: I7549b8a95508500bce098b42da04036869431060
2024-01-23 14:54:20 +08:00
Weng Su
3d34250209 Merge "Fix Wi-Fi anonymous ID UI issue" into main 2024-01-23 04:13:12 +00:00
pajacechen
846be63c9c Update string for incompatible charging
Update string and icon for incompatibe charger settings banner tip

Dark theme: https://screenshot.googleplex.com/6fpK5z6PQ6yGnNU.png
Light theme: https://screenshot.googleplex.com/ASWf6CzF2f9Qfg8.png
Figma design: https://screenshot.googleplex.com/7yBoAW7jHxhHsEg.png

Bug: 315748218
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batterytip.tips.IncompatibleChargerTipTest
Change-Id: I10498aaf820ab1c2123d80051f09b2f11560f33a
2024-01-23 01:40:47 +00:00
Weng Su
dd1947c078 Fix Wi-Fi anonymous ID UI issue
- Do not reset the anonymous default ID after retrieving the previous value from WifiConfiguration.

Fix: 267517525
Flag: None
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigController2Test

Change-Id: Ic10d6953f6657836e18eab6884df2af0f35a20c4
2024-01-23 06:44:46 +08:00
Ling Ma
ae8b9b5fe2 Wrap subManager creation with createForAllProfiles
Since U, a sub can be associated with a particular profile, and thus in V we enforce filtering on the caller and only show the subs that are associated with the caller.
However, in some cases the caller indeed needs to see all subs regardless of its association, e.g. sysUI. Therefore, a param isForAllProfile is added to indicate whether the caller intends to see all subs.

Bug: 296076674
Test: voice call + data browsing
Flag: ACONFIG com.android.internal.telephony.flags.enforce_subscription_user_filter
 DEVELOPMENT
Change-Id: I88e29b445a11f36e1a3db80368bb9e46ef06eac3
2024-01-22 22:14:08 +00:00
Ling Ma
63f74b8567 Wrap subManager creation with createForAllProfiles
Since U, a sub can be associated with a particular profile, and thus in V we enforce filtering on the caller and only show the subs that are associated with the caller.
However, in some cases the caller indeed needs to see all subs regardless of its association, e.g. sysUI. Therefore, a param isForAllProfile is added to indicate whether the caller intends to see all subs.

Bug: 296076674
Test: voice call + data browsing
Flag: ACONFIG com.android.internal.telephony.flags.enforce_subscription_user_filter
 DEVELOPMENT
Change-Id: I7dfb324d7e08fc4c845c44cd93e6ddf7d0368c1f
2024-01-22 22:02:00 +00:00
Treehugger Robot
b4e65e6e71 Merge "Fix ProfileSelectDialogTest" into main 2024-01-22 15:59:11 +00:00
Haijie Hong
a8ea8e0ed7 Merge "Add bluetooth profile toggle visibility checker" into main 2024-01-22 10:20:59 +00:00
Haijie Hong
82688cc1d3 Add bluetooth profile toggle visibility checker
Bug: 321178209
Test: atest BluetoothDetailsProfilesControllerTest
Change-Id: Ic6c040a5a500d51945893061623526271eba94c7
2024-01-22 17:32:09 +08:00
SongFerng Wang
4601261f81 Merge "Add the UI of dual sim onboarding" into main 2024-01-22 08:40:49 +00:00
Charlotte Lu
e5aff32142 Merge "Change apn type into ExposedDropdownMenuCheckBox" into main 2024-01-22 08:39:59 +00:00
Fan Wu
82d3e10530 Fix ProfileSelectDialogTest
Bug: 313569889

Test: atest
Change-Id: I7ac99c5c0021866aea3902f5d9377782633e6856
2024-01-22 16:21:50 +08:00
SongFerngWang
4713fd6baa Add the UI of dual sim onboarding
This is the first version.

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
atest SimOnboardingLabelSimTest
atest SimOnboardingPageProviderTest
atest SimOnboardingPrimarySimTest
atest SimOnboardingSelectSimTest

Change-Id: I195bd6b03ab0e881fdd67272c2476ef2b1fcd3ed
2024-01-22 07:47:51 +00:00
Ling Ma
9c3ad34d6e Wrap subManager creation with createForAllProfiles
Since U, a sub can be associated with a particular profile, and thus in V we enforce filtering on the caller and only show the subs that are associated with the caller.
However, in some cases the caller indeed needs to see all subs regardless of its association, e.g. sysUI. Therefore, a param isForAllProfile is added to indicate whether the caller intends to see all subs.

Bug: 296076674
Test: voice call + data browsing
Flag: ACONFIG com.android.internal.telephony.flags.enforce_subscription_user_filter
 DEVELOPMENT
Change-Id: Ib5ccc841029a32ae9cf25d7a65b156e363d6b139
2024-01-20 05:28:14 +00:00
Becca Hughes
87117b0183 Merge "Add buttons for new settings design" into main 2024-01-19 22:05:14 +00:00
Becca Hughes
782fcb9bd5 Add buttons for new settings design
This adds a new class called PrimaryProviderPreference
which is responsible for laying out the old cog view if
the feature is disabled and the new button view if it
is enabled.

Screenshots:
https://hsv.googleplex.com/5109836204212224
https://hsv.googleplex.com/5574754636398592
https://hsv.googleplex.com/6737135727017984

Change-Id: I1ad0c59a4afc5be3694b499f66bbd7306dfbee69
Test: Manual test with flag on + off & unit tests
Bug: 300979487
2024-01-19 19:42:14 +00:00
Hao Dong
5a16a076f3 Merge "Show generic ChooseLockPattern title for suw." into main 2024-01-19 19:08:50 +00:00
Chaohui Wang
5255867976 Migrate AppPermissionSummary to flow
Bug: 321163306
Test: manual - on App Info
Test: unit test
Change-Id: I36f6a479d530fc646a55f68fbaf681b72eff00dd
2024-01-19 15:33:06 +00:00
Fan Wu
e4ebee595d Update ShadowSecureSettings to extend from robolectric library
Bug: 320820008

Test: atest SettingsRoboTests
Change-Id: I278b2013e3876c461beedce7c29189df63375171
2024-01-19 08:00:43 +00:00
Charlotte Lu
0f577f7ddd Change apn type into ExposedDropdownMenuCheckBox
Test: Visual Test
Fix: 320891903,320621937
Change-Id: Ia6e4dbbcb568afae04776658a025e30c69e1ddd8
2024-01-19 07:15:13 +00:00
Fan Wu
825bb2d367 Update ShadowStorageManager
Bug: 320820008

Test: atest SettingsRoboTests
Change-Id: I550bcade31f5d9ed8d2d9dd5be3a6c1eed5f1f0b
2024-01-19 12:11:02 +08:00
Chaohui Wang
739f6ff69a Merge "Avoid empty line for storage summary" into main 2024-01-19 03:06:14 +00:00
Hao Dong
62fddbf478 Show generic ChooseLockPattern title for suw.
Test: atest SetupChooseLockPatternTest
Bug: 301260673
Change-Id: I7df499015a1f4c0559f425ad47042dd2a459d1df
2024-01-18 23:58:58 +00:00
Omer Ozer
b34e67228f Merge "Add factory reset wizard test coverage to factory reset preference controller" into main 2024-01-18 18:59:46 +00:00
Mark Kim
fad6a491d0 Merge "Remove flag parameter from requestArchive method" into main 2024-01-18 17:19:15 +00:00
Chaohui Wang
ca0542d2d7 Avoid empty line for storage summary
Bug: 292036686
Test: manual - on All Apps
Test: unit test
Change-Id: Id5069b8172191f3277b825f82407551f6eb4e202
2024-01-18 17:00:07 +08:00
Fan Wu
bda1921829 Update ShadowDevicConfig
Bug: 320820008

Test: atest SettingsRoboTests
Change-Id: I82747557f783930b1e2fe31d0a6c379153e82dd0
2024-01-18 12:32:49 +08:00
Haijie Hong
27be66f48b Merge "Add BT extra options in device details page" into main 2024-01-17 12:48:24 +00:00
Haijie Hong
76d8145f15 Add BT extra options in device details page
Bug: 319562236
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsExtraOptionsControllerTest
Change-Id: Ifab39d2bd19044d60f090f4a0419d1e20b2ad925
2024-01-17 19:02:20 +08:00
Johannes Gallmann
d28730e07a Merge "Change predictive back system animations flag to runtime flag" into main 2024-01-17 10:55:24 +00:00
Fan Wu
7007c24408 Merge "Ignore two failing tests" into main 2024-01-17 10:12:54 +00:00
Treehugger Robot
6daeeeec92 Merge "Remove unneeded custom shadow of PowerManager" into main 2024-01-17 09:06:11 +00:00
Fan Wu
aaa9ef4086 Merge "Update ShadowNotificationManager to extend from roboletric shadow library" into main 2024-01-17 08:42:19 +00:00
Fan Wu
a079fe8a10 Ignore two failing tests
Bug: 313578776

Test: atest
Change-Id: I808fbb961dccc9e26c3c4fd4acecbe603584850f
2024-01-17 16:32:55 +08:00
Treehugger Robot
a998dc9590 Merge "Update ShadowParcel to extend from org.robolectric library" into main 2024-01-17 08:24:06 +00:00
Fan Wu
65e9804dbb Remove unneeded custom shadow of PowerManager
Bug: 319052511

Test: atest
Change-Id: I6150ce86c909abf3cb33cdbedba102e53db0d4d4
2024-01-17 15:24:52 +08:00
Fan Wu
a98cc6a5dd Update ShadowNotificationManager to extend from roboletric shadow library
Bug: 319052511

Test: atest
Change-Id: Ic89f7ef69ade4e4497f4b92e292e297e3c1e7bdc
2024-01-17 12:29:45 +08:00
Wu Ahan
a3e5036311 Merge "Add SfpsRestToUnlockFeature to FingerprintFeatureProvider" into main 2024-01-17 02:30:11 +00:00