Commit Graph

136391 Commits

Author SHA1 Message Date
Graciela Putri
5c06348c93 Merge "Enable all aspect ratio options in UserAspectRatioManagerTest" into main 2023-10-27 08:46:23 +00:00
Jean Chen
198ae8901b Merge "feat(MultiFingerMultiTap): Add two-finger triple-tap shortcut on magnification dialog" into main 2023-10-27 03:43:51 +00:00
Chaohui Wang
f20a6d0ea6 Merge "Migrate SyncStateSwitchPreference to SwitchPreferenceCompat" into main 2023-10-26 22:51:23 +00:00
Chaohui Wang
0eca010447 Merge "Migrate RestrictedSwitchPreference to compat" into main 2023-10-26 22:49:44 +00:00
Daniel Norman
d78a4e54b8 Merge "Customize the text reading preview layouts" into main 2023-10-26 22:23:16 +00:00
Wa Gao
8d5605bf8b Merge "Set blank defaults for content protection subpage texts." into main 2023-10-26 21:08:39 +00:00
Wa Gao
5d5e6859d7 Merge "Add the new content protection preference option and subpage in Settings -> Security & privacy -> More security & privacy settings." into main 2023-10-26 21:08:39 +00:00
Wa Gao
c80dfbccb6 Add the new content protection preference option and subpage in Settings -> Security & privacy -> More security & privacy settings.
Bug: 302189945
Test: robotests
m -j256 Settings
atest SettingsRoboTests:ContentProtectionPreferenceControllerTest
atest SettingsRoboTests:ContentProtectionPreferenceFragmentTest

Change-Id: I620d73f8674c1340f9b11cd910620f1d5afb0ec1
2023-10-26 19:34:58 +00:00
Mark Kim
679b2626d8 Include archived apps into the counter
Test: InstalledAppCounterTest

Bug: 304255511
Change-Id: If667acae249d248ce013a9dd370af41698266a45
2023-10-26 18:18:26 +00:00
Wa Gao
6228b903e1 Set blank defaults for content protection subpage texts.
Bug: 302189945
Change-Id: I46c5fc06cea4e07c188586028a495e677f1304f7
2023-10-26 17:52:04 +00:00
Julia Reynolds
db679c9100 Merge "Remove duel switch from NAS switch" into main 2023-10-26 13:03:16 +00:00
Graciela Wissen Putri
3ced0bd60d Enable all aspect ratio options in UserAspectRatioManagerTest
testGetUserMinAspectRatioEntry fails for foldables and tablets due to
some aspect ratio options being disabled. Mock Resources to return all
default aspect ratio options and strings to make test device agnostic.

Clean up unused variables and remove getLauncherApps in
UserAspectRatioManager.

Add more tests in UserAspectRatioManagerTest.

Fix: 304685321
Test: atest SettingsUnitTests:UserAspectRatioManagerTest
Change-Id: I6f4bbd60863be0c66139955507157619a5fc6662
2023-10-26 12:55:12 +00:00
Chaohui Wang
075a3ae15d Migrate RestrictedSwitchPreference to compat
UI keep unchanged in this cl.

Bug: 285231003
Test: manual - on affected pages
Change-Id: If80cb7e9d5da601d03c28e040b92449c5b2c8e76
2023-10-26 11:06:02 +00:00
Chaohui Wang
43306392ea Fix Base_TextAppearance_AppCompat_Widget_Button
The correct namespace is androidx.appcompat.R

Bug: 303768224
Test: m Settings
Change-Id: I4715703538252d5d9cf7f26f2f2ec0cd959db0e2
2023-10-26 09:10:08 +00:00
Krzysztof Kosiński
d2703f38a2 Merge "Clean up obsolete aliases for Truth." into main 2023-10-26 07:05:36 +00:00
Charlotte Lu
1a5038b580 Merge "Get network type from options." into main 2023-10-26 05:50:54 +00:00
Chaohui Wang
b547927d26 Migrate SyncStateSwitchPreference to SwitchPreferenceCompat
UI not changed in this cl, this cl helps UI switch in the future.

Bug: 306658427
Test: manual - on "Account sync" page
Test: manual - on "Turn screen on" detail page
Change-Id: Icd91bb69fdce302d9b9e92f501d1b1eaf2051960
2023-10-26 13:37:22 +08:00
josephpv
ee5e1ceb03 Start private space setup when there is no private space set
This change handles as below based on if private space already exists on device:
1. If PS doesn't exist then start the setup flow which shows a PS education screen. On setup button creates the private space.
2. If PS already exists on device then display PS settings page.

Bug: 299069146
Test: atest PrivateSpaceSettingsAuthenticatorTest
Change-Id: I46bdbaeb0210fd5b41a426f852e3f455b62c1c29
2023-10-25 21:17:33 +00:00
Joseph Vincent
1ef91389e2 Merge "Add toggle to hide private space entry point in All Apps" into main 2023-10-25 21:17:01 +00:00
Omer Ozer
ce8a641dff Merge "Add factory reset intent to the settings app." into main 2023-10-25 20:43:04 +00:00
David Magno
eb2276c01c Customize the text reading preview layouts
Make it possible to customize the available text reading preview
layouts through overlays.

Bug: 307481249
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
"com.android.settings.accessibility.TextReadingPreviewPreferenceTest"
(cherry picked from https://android-review.googlesource.com/q/commit:2a7da9c433f57db9b7b9ad5c54bddb5da81e5693)
Change-Id: I3e55eeb7545a4d5d1f689ab4160e453996b58bdb
2023-10-25 18:37:51 +00:00
Julia Reynolds
7679fec17e Remove duel switch from NAS switch
Test: NotificationAssistantPreferenceControllerTest
Fixes: 301340325
Change-Id: Id41fad70bdcda6de75b59befe3654b733dbf66e3
2023-10-25 13:01:57 -04:00
josephpv
eace275921 Add toggle to hide private space entry point in All Apps
This change includes implementaion for below:
1. Add a preference inside private space settings page with a toggle switch to control hide/unhide
   private space entry in All Apps
2. Store the preference value in settingsprovider for persistence.

Bug: 302682054
Test: Manual
Change-Id: Ia1a56fc2c43550e23c00a61a5ce4742e42effcbe
2023-10-25 14:46:11 +00:00
Jean Chen
48d73aa3f3 feat(MultiFingerMultiTap): Add two-finger triple-tap shortcut on magnification dialog
The shortcut is separate from single-finger triple-tap. It’s under hardware shortcut and above/outside of Advanced section.

Bug: 297805269
Test: manual
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Id74cf3e457c04e167f3100d977b6c70c5d601026
2023-10-25 13:30:27 +00:00
Chaohui Wang
27dd22302f Merge "Migrate to CompoundButton" into main 2023-10-25 10:48:16 +00:00
Chaohui Wang
2260edba20 Merge "Migrate xml to SwitchPreferenceCompat" into main 2023-10-25 07:23:38 +00:00
Chaohui Wang
c4a3a50d58 Migrate to CompoundButton
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - on affected pages
Change-Id: I7cdc2601879a85d33f77239e38263320d5a6984e
2023-10-25 14:57:48 +08:00
Charlotte Lu
d061ae4c6a Get network type from options.
Fix: 307633026
Test: Visual Test
Change-Id: Ie251eb24196da6fc9ac578a35695368720edf78b
2023-10-25 14:45:04 +08:00
Chaohui Wang
70c4dcd507 Migrate xml to SwitchPreferenceCompat
Bug: 285231003
Test: manual - on affected pages
Change-Id: I83283fcc4b241596a8f0cdf5299417bce2810d0c
2023-10-25 14:22:20 +08:00
Chaohui Wang
12ea5afdf1 Not call MainSwitchBar.getSwitch()
This is private implement details, will be removed in future.

Should call MainSwitchBar's isChecked() and setChecked() to ensure
main switch bar's style is set correctly.

Bug: 306658427
Test: manual - on wifi tether
Test: manual - on developer options
Test: m RunSettingsRoboTests
Change-Id: I292ffbcf73da0721fc206e3dac7610a0aeb20047
2023-10-25 13:52:43 +08:00
Chaohui Wang
e752f7214b Remove unused SwitchBar
Only used in tests, so also migrate the tests.

Bug: 306658346
Test: manual - on bluetooth
Test: m RunSettingsRoboTests
Change-Id: Id2b010c1d9c32abe21dcc8765e9446fc4f7a5b25
2023-10-25 12:17:49 +08:00
Treehugger Robot
03a064fcd1 Merge "Migrate test to TwoStatePreference" into main 2023-10-25 03:30:10 +00:00
FanWu
187067647c Update SpellCheckerPreference to support multi-line title
Bug: 306060312

Test: Manual
Change-Id: I729e702b0a0adeb634caf03f4be816d5e097ecf4
2023-10-25 01:52:52 +00:00
Fan Wu
cbaedfa6d5 Merge "Update owners file" into main 2023-10-25 01:49:34 +00:00
Omer Ozer
e148ee7877 Add factory reset intent to the settings app.
Bug: 302016478
Test: local
Change-Id: I784395931b32746cb45a447b330ea8d57c17b2fe
2023-10-24 23:59:33 +00:00
Chaohui Wang
066909bc07 Merge "Rearrange Settings dependencies" into main 2023-10-24 23:09:00 +00:00
Krzysztof Kosiński
0efd6d855e Clean up obsolete aliases for Truth.
Bug: 255714762
Test: presubmit
Change-Id: I9b83d3dbcc88b91ebfb88d90ebaee6d960ac7d0b
2023-10-24 23:03:57 +00:00
Daniel Norman
529090ba5d Merge "Adds 'App info' button on accessibility service + activity pages." into main 2023-10-24 21:23:50 +00:00
Daniel Norman
6616da3b71 Merge "Adds OWNERS for Settings aconfig flags, first for Accessibility." into main 2023-10-24 21:21:09 +00:00
Joseph Vincent
f29e758da9 Merge "Make private space settings page non searchable" into main 2023-10-24 12:12:18 +00:00
josephpv
31b044ed6a Prompt user to Setup a device lock if not set
This add below changes on selecting private space setting:
1. Prompt user to setup device lock if not already set
2. If device lock is set authenticate user first before displaying private space settings page

Screenshot - https://screenshot.googleplex.com/4SrYHbBMJfVuoRy.png
https://screenshot.googleplex.com/6vNWm7Lg83vfnH8.png
RecordingLink - https://drive.google.com/file/d/1r4zb3ILPRqwvP5tlwfjQ9GgnDAW4vZg6/view?usp=drive_link

Bug: 289016927
Test: atest PrivateSpaceSettingsAuthenticatorTest , atest SecuritySettingsTest
Change-Id: I0e5dfb30213843c0dec60a17d01c30cd91db89b0
2023-10-24 10:42:57 +00:00
josephpv
0fe1bc58b2 Make private space settings page non searchable
Screenshot: https://screenshot.googleplex.com/7tBd5FQ3F8SZceR.png

Bug: 306602816
Test: manual settings search for "Private Space"
Change-Id: I8fc19f6db3b002a62f82dfa9754277da26bf74c0
2023-10-24 10:27:40 +00:00
FanWu
045ab32693 Update owners file
Test: not required
Change-Id: I4195cc6bc3c5ec3e8882258ec2d73ed64385a756
2023-10-24 18:23:06 +08:00
Chaohui Wang
2a166676d4 Migrate test to TwoStatePreference
Bug: 306771414
Test: m SettingsUnitTests
Change-Id: I67c8e0c7f04faba377a156587f43929ac73e500f
2023-10-24 18:14:50 +08:00
Yiyi Shen
852ec4e22d Merge "[Audiosharing] Add audio sharing settings with the main switch." into main 2023-10-24 09:50:40 +00:00
Mark Kim
680a183ab7 Merge "Do not show "Not installed for this user" summary for archived app" into main 2023-10-24 09:02:17 +00:00
Yiyi Shen
4410df7f42 [Audiosharing] Add audio sharing settings with the main switch.
Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I9ca520014d3f6f7147bb9b8e7648797e79b46f53
2023-10-24 16:12:13 +08:00
Chaohui Wang
6c3a637f2d Merge "Migrate new() to SwitchPreferenceCompat" into main 2023-10-24 08:05:18 +00:00
Chaohui Wang
fcc636d571 Rearrange Settings dependencies
Bug: 285231003
Test: m Settings
Change-Id: Id5adab7d9a24265b98db9959c30904e82ad60dd4
2023-10-24 15:44:38 +08:00
Chaohui Wang
a0abccadc6 Merge "Migrate mobile settings to SwitchPreferenceCompat" into main 2023-10-24 07:30:45 +00:00