Commit Graph

136917 Commits

Author SHA1 Message Date
Treehugger Robot
864ea107b6 Merge "Update the description for Smooth Display in Settings" into main 2023-10-30 03:49:14 +00:00
ykhung
d3684f7d1d Rename for: force app stay in the battery optimize mode
Bug: 306506148
Test: atest & presubmit
Change-Id: I69a0c6b290c21ae1fca676ffe8295543b2323a7a
2023-10-30 11:33:39 +08:00
Chaohui Wang
019be1b687 Migrate ShortcutPreference to SwitchCompat
Settings use SwitchCompat instead of Switch in the future, for new
Material 3 UI.

Bug: 306658427
Test: manual - on Accessibility pages
Change-Id: Idf87eb6fcf1a57bd98a6fd0eca3c8c325127ce17
2023-10-28 20:04:31 +08:00
Chaohui Wang
64def2e3ce Migrate Enhanced notifications to SwitchPreferenceCompat
Settings use SwitchPreferenceCompat instead of SwitchPreference in the
future, for new Material 3 UI.

Also clean up unused fields in its controller.

Bug: 306658427
Test: manual - on Notifications page
Change-Id: I0c4dd3f088e68852a1f63ed46447c306f7c0f65a
2023-10-28 18:19:17 +08:00
Roshan Pius
21c3bca13f settings(nfc): Remove NFC beam settings
This API was already deprecated and not supported for a few years. The
API was completely removed in Android U (see b/236980291).

Bug: 307352220
Test: Verified NFC settings works correctly
Change-Id: I40974a26d170cf3eeec18e6a07a21f6c420eca9e
2023-10-27 13:26:07 -07:00
josephpv
570314569f Increase no_device_lock_summary character limit=90
This increases character limit for no_device_lock_summary string to
support localization query 12202093

Bug: 289016927
Test: Manual
Change-Id: I4b449941f69ab6ecc95a9b50260a213c0c9e2178
2023-10-27 20:02:49 +00:00
josephpv
84944ba6f0 Add auto advancing screens for private space setup
This includes changes for
1. To add auto avancing screens to PS setup
2. Screen to set a different Private profile lock or use existing lock
3. Success screen on setup completion
4. Shows Error screen if profile creation failed for some reason
5. Send intent towards launcher, show a Toast message to access PS from bottom of All apps and exit.

Bug: 299069146
Test: Manual setup
Change-Id: If4e5dd5a42abb11259bc40506189c7c750324139
2023-10-27 12:32:12 +00:00
Angela Wang
fce6196de1 Flag for new hearing device pairing page
Bug: 307473972
Test: build pass
Change-Id: I9ecc16ca55bd12dfc6326a1e44d19cab4ada5196
2023-10-27 09:07:13 +00:00
Jean Chen
2870455091 feat(MultiFingerMultiTap): Add tutorial for two finger triple tap
This tutorial is showing when user enabled two finger triple tap shortcut

Bug: 297805269
Test: manual
Test: atest AccessibilityGesturenavigationTutorialTest
Change-Id: Ie56cffe809e801c497d9d55d92a4b55084d496ce
2023-10-27 16:58:48 +08:00
Roy Chou
149a36a4df Merge "chore(text reading settings): increase preview block left/right padding when landscape mode for easier scrolling" into main 2023-10-27 08:57:32 +00:00
Graciela Putri
5c06348c93 Merge "Enable all aspect ratio options in UserAspectRatioManagerTest" into main 2023-10-27 08:46:23 +00:00
Ken Lin
9b7a6d235c Update the description for Smooth Display in Settings
remove '60' string

Bug: 271177719
Test: Settings > Display > Smooth Display (and read description)
Change-Id: I82a9c9ca37eb6b2c25695e327119f5224e92da6f
2023-10-27 05:26:22 +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
Chris Antol
affe7f0aa6 Update Settings OWNERS file
Bug: 307628548
Test: N/A
Change-Id: I5c417064cc0a66c191d8eee295b5b8f164e35787
2023-10-26 19:54:52 +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
Roy Chou
b3fb8e0154 chore(text reading settings): increase preview block left/right padding when landscape mode for easier scrolling
When the device is in landscape mode, In the text reading preference page, users have difficulty scrolling the RecyclerView because the preview block is almost full-screen. To scroll the preference list, users typically try to pan the preview block, but the block consumes the scroll gesture, preventing the list from scrolling. Users can successfully scroll the list content by panning outside the preview block. As a quick workaround, we increase the left/right padding of the preview block for landscape mode to make it easier for users to pan outside the block and scroll the preference list.

Bug: 301683714
Flag: NA
Test: manually - attach screenshot in bug
Change-Id: I1dba6e4d83ee1cd2f30163de05dfd7b42f829e42
2023-10-26 13:28:50 +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
17d3c1d8d7 Migrate CellDataPreference to switchPreferenceCompatStyle
UI keep unchanged in this cl.

Bug: 306658427
Test: manual - on "Data usage" page
Change-Id: Ic8a7263fa220e9ce5ffb9f8a0d181f5c9ede9db7
2023-10-26 11:59:33 +00:00
Chaohui Wang
8a5bba1f22 Check MOBILE_DATA_POLICY_MMS_ALWAYS_ALLOWED
To know whether MMS is always allowed, should check
isMobileDataPolicyEnabled(MOBILE_DATA_POLICY_MMS_ALWAYS_ALLOWED)
instead of isDataEnabledForApn(ApnSetting.TYPE_MMS).

Fix: 303759893
Test: manual - toggle "MMS messages" switch
Test: unit test
Change-Id: Id0417e569ff4e3dbac1ecff9327b4a964125c122
2023-10-26 11:07:03 +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
SongFerngWang
b271e84e42 Modify the condition of MENU_FIX_CONNECTIVITY
This condition adds checking "whether wifi is enabled"

Bug: 303100761
Test: build pass. local test
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest ->pass

Change-Id: Ib0aa92a77e7fcdbfd2d37e28474e3ef138275ca5
2023-10-26 14:29:05 +08: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
Joshua McCloskey
abaa6b5d9a Fixed search index for fingerprint settings.
Test: Manually verified add-fingerprint works.
Fixes: 306516371
Change-Id: I9fea695210dfeaee5abedce8c2086c553bd54f9c
2023-10-25 18:59:03 +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
lbill
d7a101783e Add OWENRS for settings_biometrics_integration_declarations.aconfig
Bug: 307473270
Test: make
Change-Id: Idd5100877def8074114ef2a085f09c2603905f5b
2023-10-25 09:23:17 +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