Commit Graph

136917 Commits

Author SHA1 Message Date
Jacky Wang
ec733b477a Do not reuse preference for AccountPreferenceController
Bug: 303905471
Test: N/A
Change-Id: I803e35fc6362c013389e1f2d9e801149c6041bf6
2023-11-13 11:33:19 +08:00
Chaohui Wang
ea253d7132 Migrate 2 preferences to SwitchPreferenceCompat
FeatureFlagPreference & SnoopLoggerFiltersPreference, used in developer
options.

Bug: 306658427
Test: manual - in developer options
Change-Id: I6a29ba625333352df5d2c87ef36db95aa4970e6b
2023-11-12 21:53:04 +08:00
Bill Yi
56f5e53ae8 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 913dde2150 -s ours am: ed786b4fc6 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25332263

Change-Id: I4752bbde354bb711c02ca839866169e7abf4a1b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-11 04:57:08 +00:00
Bill Yi
ed786b4fc6 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 913dde2150 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25332263

Change-Id: I583e09a33b0a4da68332f604c93469628c893415
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-11 04:28:54 +00:00
Bill Yi
f3913e2a67 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 30e017d761 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25329631

Change-Id: I407995175390db6cd4ae43fb421d53fe2596c194
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-11 04:24:37 +00:00
Bill Yi
05104fc8ff Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2023-11-10 21:15:40 +00:00
Manish Singh
53d2382add Merge "Support Private profile in profile modal selector" into main 2023-11-10 20:07:19 +00:00
Wa Gao
dcf678c835 Merge "Add the dialog when clicking on the diabled switch." into main 2023-11-10 19:13:13 +00:00
Daniel Norman
77db500fcb Tech debt cleanup: Consolidates A11yService warning dialog.
Both frameworks/base and the Settings app define almost-identical copies
of a warning dialog shown when enabling an accessibility service.
The frameworks/base version was used for contexts outside of Settings
(e.g. while editing the volume key shortcut after triggering it with
2+ features already enabled) while the Settings version was used in
the Settings app.

This change replaces version used in Settings with the version defined
in frameworks/base.

The warning dialog's functionality is tested in
AccessibilityServiceWarningTest in frameworks/base.

Feature flag:
`adb shell device_config override accessibility android.view.accessibility.deduplicate_accessibility_warning_dialog true`

Bug: 303511250
Test: atest AccessibilityServiceWarningTest
Test: existing A11ySettings robotests
Change-Id: Iad2f13040d53d82a4afb0353fae3ac355b5548d6
2023-11-10 18:38:53 +00:00
Daniel Norman
60d28f7a8e Includes android.view.accessibility Aconfig flags in Settings.
Bug: 303511250
Test: Used in followup change
Change-Id: I639e42b03eb7b8a49cb8fd18a765993963a9243d
2023-11-10 18:38:30 +00:00
Joseph Vincent
4b3e9395f6 Merge "Interim change to upddate strings in hide page" into main 2023-11-10 18:24:45 +00:00
Manish Singh
94cffad6c2 Support Private profile in profile modal selector
Profile selector modal with work profile
https://screenshot.googleplex.com/8ugpsT7nZA75VPa

Modal without work profile
https://screenshot.googleplex.com/9bPFbFG2DKBHhvS

Bug: 309635228
Test: manual
Change-Id: Id7533f101d2b5693c419c9591d59751925a4b7ce
2023-11-10 18:14:33 +00:00
Wa Gao
6b9e20d32d Add the dialog when clicking on the diabled switch.
Bug: 302189945
Change-Id: I0bf7774b80a59c70a2ea1725e0adba522854adde
2023-11-10 17:55:25 +00:00
Angela Wang
01f17822c3 Removes hearing aids settings page flag
The hearing aids settings page has successfully rolled out. Cleans up the codes that are related to flag controls.

Bug: 310203155
Test: atest AccessibilityHearingAidPreferenceControllerTest
Test: atest AccessibilityDetailsSettingsFragmentTest
Test: atest BluetoothDetailsHearingDeviceControlsControllerTest
Change-Id: Ib03952f734302cca8519cb1c70ba82601cb75527
2023-11-10 17:06:32 +00:00
Chaohui Wang
1a1c54c11a Migrate MainSwitchBar in Settings to Material3
Settings UI changed in this cl.

Bug: 306658346
Test: manual - on Settings pages
Change-Id: If7bba3cd8e26e84158f5bcc11a6a0443009921e5
2023-11-10 22:59:39 +08:00
josephpv
31016b1b75 Interim change to upddate strings in hide page
Bug: 309416972
Test: Manual- Verify strings in hide page
Change-Id: I4fa22b377ae2c93ba881508cde9f2393b43479ac
2023-11-10 14:45:24 +00:00
Tetiana Meronyk
01f40c2867 Merge "Disable multiuser toggle om COPE device and add explanation dialog" into main 2023-11-10 12:48:25 +00:00
Chaohui Wang
4e2fa570bd Merge "Use MobileDataEnabledFlow in BillingCyclePreference" into main 2023-11-10 10:15:30 +00:00
Bruno Kremp
0d0736c46c Add a config to hide "Enable wireless display" menu
Add config_show_wifi_display_enable_menu to control whether to
display "Enable wireless display" menu at Settings->
Connection preference->Cast.

If persist.debug.wfd.enable is 1, "Enable wireless display" menu will be
shown at Settings->Connection preference->Cast. Add a config to hide the
menu when needed.

setHasOptionsMenu is invoked in onActivityCreated of the parent class of
WifiDisplaySettings. No need to invoke it in onCreate.

Co-authored-by: Jingqiu Zhao <jingqiu.zhao@sony.com>

Test: manual test
Bug: 289532978
Change-Id: I146fb8188e783fed98d9fe56050e384bc4cca052
2023-11-10 10:43:40 +01:00
Chaohui Wang
097739eca6 Merge "Extract ClientInitiatedActionRepository" into main 2023-11-10 07:57:38 +00:00
Chaohui Wang
de8876e9b5 Extract ClientInitiatedActionRepository
Also add unit test.

Bug: 300851543
Test: manual - on system page
Test: unit test
Change-Id: I362afb4aa0683ebcc6695ff0b5bc35ef8afb5697
2023-11-10 14:31:07 +08:00
Jacky Wang
e4761149f3 Add cancel button to Erase all data (factory reset)
Bug: 300634367
Test: unit test & manual test
Change-Id: I860955291b27ea1f7c748ac746b91153224eacb7
2023-11-10 13:32:00 +08:00
Charlotte Lu
0c5ab9a633 Add System update for Software Update.
Fix: 309916180
Test: Unit Test
Change-Id: I19eff364d9bb2d447f3580916393b5f8a34e0bd2
2023-11-10 13:13:08 +08:00
Chaohui Wang
0739b5edd1 Use MobileDataEnabledFlow in BillingCyclePreference
To easily collect the mobile data enabled setting changes.

Bug: 308903704
Test: manual - on Mobile Settings
Test: unit test
Change-Id: Ic449ce14fad38513b1e13facc6a192d30318c7b0
2023-11-10 10:33:46 +08:00
Chaohui Wang
c292adaf6b Merge "Avoid unnecessary Html.fromHtml()" into main 2023-11-10 01:10:15 +00:00
Bill Yi
913dde2150 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id459e11b40f4e38754131c386adce24711f3ca4e
2023-11-09 16:06:54 -08:00
Bill Yi
77895d0f02 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I736e271088cfb5d306b601286e89e9e8f2a7266c
2023-11-09 16:04:59 -08:00
Bill Yi
30e017d761 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifff3826adfa9979c5299654762f673409ee9fcc1
2023-11-09 16:01:23 -08:00
Joshua Mccloskey
4c43b094d9 Merge "Adding back screenshot test to Settings." into main 2023-11-09 23:27:56 +00:00
Hao Dong
9cade2cbc0 Merge "Add fingerprint name to delete button content description." into main 2023-11-09 19:45:10 +00:00
Roy Luo
983268a242 Merge "Update incompatible charger checking rule" into main 2023-11-09 19:09:38 +00:00
Hao Dong
bd2eeff824 Merge "Fix lock screen notification string." into main 2023-11-09 17:15:13 +00:00
Hao Dong
f2d2de494d Add fingerprint name to delete button content description.
Test: atest FingerprintPreferenceTest
Bug: 308671557

Change-Id: I5a7d402835124a50fd1268745eca1e28c865dc18
2023-11-09 17:14:42 +00:00
Tetiana Meronyk
80ae4b3c41 Disable multiuser toggle om COPE device and add explanation dialog
Bug: 304359233
Test: set up device in COPE mode and check toggle in Settings -> System -> Multiple Users

Change-Id: I0edd58651f94c9f9a51349025a29e33a1e1a9c14
2023-11-09 14:46:55 +00:00
Chaohui Wang
d8b21d7846 Avoid unnecessary Html.fromHtml()
Check if string contains html tag, before call Html.fromHtml()

Fix: 308681068
Test: atest SubscriptionsPreferenceControllerTest
Test: atest ProviderModelSliceHelperTest NetworkProviderWorkerTest
Test: manual - on Internet page
Change-Id: Id914689f2861a8c997d18afd03ecfdf47b91c631
2023-11-09 11:10:43 +00:00
Chaohui Wang
62e64c592e Merge "Let SpaBridgeActivity support ActivityEmbedding" into main 2023-11-09 09:39:36 +00:00
Manish Singh
cb33938d90 Merge "Deep copy the existing Arguments" into main 2023-11-09 09:20:03 +00:00
Joseph Vincent
164e2e4ff7 Merge "Start All Apps on successful PrivateSpace setup completion" into main 2023-11-09 09:15:30 +00:00
Treehugger Robot
34bca0fc59 Merge "[Panlingual] Only set description for STS and TB in remove mode" into main 2023-11-09 05:49:11 +00:00
Treehugger Robot
96718215a2 Merge "Refine FaceEnrollEducation UI" into main 2023-11-09 05:01:47 +00:00
Quang Luong
9d6cff4665 Merge "Show wifi list progress bar when scanning" into main 2023-11-09 04:51:21 +00:00
Zoey Chen
192d379ace [Panlingual] Only set description for STS and TB in remove mode
Bug: 301715723
Test: manual
Change-Id: I09403830cad362b4f839645f645cf620e33047fa
2023-11-09 04:33:31 +00:00
Valentin Iftime
c48a9bc9e1 [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: b36b1dab96 am: ef71596281 -s ours am: abab7c6611 -s ours am: 4a10216008 -s ours am: a909f5627e -s ours am: 96bae53d7c -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: Icd538ffec3184bca827bcb223f6f9c5ef5a4766f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:24:25 +00:00
Valentin Iftime
855db08eb2 [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: 676debfb2b -s ours am: 0f9f4aa4c7 -s ours am: 3b7f364020 -s ours am: 54ce00ac77 -s ours am: 313237941d -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: Ibe029d249dfc9716cb05104ebb1de5f6df3c8f8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:24:11 +00:00
Valentin Iftime
ea56d0d969 [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: b36b1dab96 am: ef71596281 -s ours am: abab7c6611 -s ours am: 28eebde96e -s ours am: ab9bb506c5 -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: Ic24175cfa5c266ba2f077b38eb02ac5ab6c0e93e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:20:59 +00:00
Valentin Iftime
4054c7d02d [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: 676debfb2b -s ours am: 0f9f4aa4c7 -s ours am: 6792140979 -s ours am: 64b132c279 -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: I68f6cc49803b822122e0607d852d1241a047f689
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:17:08 +00:00
Valentin Iftime
96bae53d7c [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: b36b1dab96 am: ef71596281 -s ours am: abab7c6611 -s ours am: 4a10216008 -s ours am: a909f5627e -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: I937bba8d3141a6f5d5d2879be1e28f1704e6f4ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:15:14 +00:00
Valentin Iftime
313237941d [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: 676debfb2b -s ours am: 0f9f4aa4c7 -s ours am: 3b7f364020 -s ours am: 54ce00ac77 -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: If2a1d191cf866d418f4a2e3681a516e39fd48079
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:15:02 +00:00
Valentin Iftime
fec1996c5a [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: b36b1dab96 am: ef71596281 -s ours am: abab7c6611 -s ours am: b8341d426c -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: I734cb8399f5ec2db27f2338b0ce39a27935840be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 02:39:49 +00:00
Valentin Iftime
ab9bb506c5 [automerger skipped] Validate ringtone URIs before setting am: 7ba175eaeb am: 236f1a0f17 am: 623d966fac am: a4a9b9f0e7 am: fa932686c5 am: 179f53c651 am: b36b1dab96 am: ef71596281 -s ours am: abab7c6611 -s ours am: 28eebde96e -s ours
am skip reason: Merged-In Ib266b285a3a1c6c5265ae2321159e61e08e349f6 with SHA-1 1876c44991 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24956689

Change-Id: I7e8981c8d2e86d48974b0dba9bc485017117a9bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 02:39:43 +00:00