Commit Graph

136929 Commits

Author SHA1 Message Date
Hansen Kurli
53aac10cab Merge "Catch UnsupportedOperationException of startLegacyVpn" into main am: 485e8800ed am: 16fd898705
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2822270

Change-Id: Ife7070b102904af0c5eb21bf3a899de9b01d79ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 06:54:06 +00:00
Hansen Kurli
c58030dcb0 Merge "Catch UnsupportedOperationException of startLegacyVpn" into main am: 485e8800ed am: 3a33f7178f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2822270

Change-Id: I781d4ca1e43869586543737ad357093630202319
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 06:52:32 +00:00
hoffc
f336657508 Settings: remove multiple users search when multi-user not supported
When multi-user feature not supported in framework, SettingsIntelligence should not build the index of multiple users for searching.

Return empty list when multi-user feature not supported during building search index.

Change-Id: Id2fb8f2066784d63bbfd5c396da88b04306a3563
Bug: 310108420
2023-11-13 14:36:32 +08:00
Hansen Kurli
3a33f7178f Merge "Catch UnsupportedOperationException of startLegacyVpn" into main am: 485e8800ed
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2822270

Change-Id: I84a308d94aed266f5125977cd7a385c315a72047
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 06:05:58 +00:00
Hansen Kurli
16fd898705 Merge "Catch UnsupportedOperationException of startLegacyVpn" into main am: 485e8800ed
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2822270

Change-Id: Iba8a2d2cdd2730cc0cdf4e5c851866badbbc06a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 06:05:18 +00:00
Sunny Shao
94bf9d9bc3 Fix the robo test case failed
- Fix the test case failed in the
  ControlsTrivialPrivacyPreferenceControllerTest.
- Use the correct paramter in the PackageManager.resolveActivity API.

Fixes: 300378707
Test: atest ControlsTrivialPrivacyPreferenceControllerTest
Change-Id: Id80dfb95ceffb048461b79d2d5ceb67100f83cd5
2023-11-13 14:00:25 +08:00
Hansen Kurli
485e8800ed Merge "Catch UnsupportedOperationException of startLegacyVpn" into main 2023-11-13 05:27:07 +00:00
Xinyi Mao
129919def7 Merge "Update Power Anomaly UI." into main 2023-11-13 05:19:48 +00:00
Jacky Wang
1259c52378 Merge "Do not reuse preference for AccountPreferenceController" into main 2023-11-13 04:25:08 +00:00
Chaohui Wang
3e640fe124 Merge "Migrate 2 preferences to SwitchPreferenceCompat" into main 2023-11-13 04:09:19 +00:00
Chaohui Wang
7626a40398 Merge "Migrate MainSwitchBar in Settings to Material3" into main 2023-11-13 03:52:58 +00:00
mxyyiyi
1817f066ec Update Power Anomaly UI.
For Settings tip & app anomaly banner:

- update app anomaly hint color in dark/light theme
[Banner card]
- update icons to GM3 style
- update text font and button text color
- update button style from outlined to filled.
[Chart view]
- update warning icon size
- update percentage label alignment

Screenshots:
- [Settings]
[light]	https://screenshot.googleplex.com/ERWkD7TmDsLaxdG
[dark]	https://screenshot.googleplex.com/6JKvL5vEQTZtJfd
- [App]
[light]
https://screenshot.googleplex.com/3YoncDhGTzUcAZA
https://screenshot.googleplex.com/3hbGmqoYWSy9H9U
[dark]
https://screenshot.googleplex.com/9XKs8tXmRKL2jJP
https://screenshot.googleplex.com/SU4LTJYWXvpd42r
- [RTL+L10N][Arabic]
[Settings] https://screenshot.googleplex.com/V9HJkPcsoBJmsW8
[Apps]
https://screenshot.googleplex.com/B49VKy2jaZYisWK
https://screenshot.googleplex.com/6VZQ2gESRes8RMH
- [Force RTL][EN]
[Settings] https://screenshot.googleplex.com/4V7coyLf5ueUcGv
[Apps]
https://screenshot.googleplex.com/9UaERwDmrpitqdq
https://screenshot.googleplex.com/3JDfcXi8pmz5Mew

Bug: 309569299
Test: manual
Change-Id: I8bee7f86d602112e0cbbd936b439330aaff7275c
2023-11-13 11:52:44 +08:00
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