Commit Graph

144876 Commits

Author SHA1 Message Date
Adam Bookatz
6e413c4cff Don't let profiles open the UserSettings overflow [DO NOT MERGE]
Really, profiles aren't expected to open Settings at all. But if they
do somehow, the overflow shouldn't appear.

Bug: 352542820
Flag: EXEMPT bugfix
Test: Try to access the overflow of the work profile by launching its Settings in
adb shell am start --user 10 'com.android.settings/.Settings\$UserSettingsActivity'

Change-Id: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
Merged-In: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
(cherry picked from commit 69c7f5dac5)
2024-11-19 19:27:40 +00:00
Adam Bookatz
a2f5c08370 Don't let profiles open the UserSettings overflow [DO NOT MERGE]
Really, profiles aren't expected to open Settings at all. But if they
do somehow, the overflow shouldn't appear.

Bug: 352542820
Flag: EXEMPT bugfix
Test: Try to access the overflow of the work profile by launching its Settings in
adb shell am start --user 10 'com.android.settings/.Settings\$UserSettingsActivity'

Change-Id: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
Merged-In: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
(cherry picked from commit 69c7f5dac5)
2024-11-19 19:27:30 +00:00
Adam Bookatz
9882f43d9c Don't let profiles open the UserSettings overflow [DO NOT MERGE]
Really, profiles aren't expected to open Settings at all. But if they
do somehow, the overflow shouldn't appear.

Bug: 352542820
Flag: EXEMPT bugfix
Test: Try to access the overflow of the work profile by launching its Settings in
adb shell am start --user 10 'com.android.settings/.Settings\$UserSettingsActivity'

Change-Id: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
Merged-In: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
(cherry picked from commit 69c7f5dac5)
2024-11-19 19:27:27 +00:00
Adam Bookatz
05b9d038de Merge "Don't let profiles open the UserSettings overflow" into main 2024-11-19 18:51:50 +00:00
Olivier Nshimiye
b345f4b006 Merge "Ignore PrivateSpace tests that are failing in pre-submits." into main 2024-11-19 16:28:42 +00:00
Matthew DeVore
46da53099c clampPosition function for dragging display blocks
Uses the algorithm in the prototype and the design doc
(go/extend-cd-settings).

Bug: b/352650922
Test: atest TopologyClampTest.kt
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Change-Id: I8d8d4427f5d5dc069b1529f8ca6ac2cee259ee8e
2024-11-19 15:04:02 +00:00
Jason Chiu
8fa1dcb034 Block the content scheme intent in AccountTypePreferenceLoader
Bug: 366401629
Flag: EXEMPT security fix
Test: atest AccountTypePreferenceLoaderTest, manual
Change-Id: Ica87087341cc983df04190919e33dc369fa18619
Merged-In: Ica87087341cc983df04190919e33dc369fa18619
(cherry picked from commit 841fb3846b)
2024-11-19 10:47:06 +00:00
Jason Chiu
d782f9c4bc Block the content scheme intent in AccountTypePreferenceLoader
Also prevent intent defined in AccountPreference from leaking access

Bug: 366401629
Flag: EXEMPT security fix
Test: atest AccountTypePreferenceLoaderTest, manual
Change-Id: Ica87087341cc983df04190919e33dc369fa18619
Merged-In: Ica87087341cc983df04190919e33dc369fa18619
(cherry picked from commit 841fb3846b)
2024-11-19 10:45:58 +00:00
Treehugger Robot
c4004377fd Merge "[Catalyst] Update PreferenceLifecycleContext.notifyPreferenceChange" into main 2024-11-19 10:39:53 +00:00
Treehugger Robot
770df52e47 Merge "[Satellite] Add category UI for Satellite functions" into main 2024-11-19 10:29:30 +00:00
Olivier Nshimiye
5f1fc5c2ee Ignore PrivateSpace tests that are failing in pre-submits.
These are to be investigated later.

Flag: TEST_ONLY

Bug: 378392936
Test: atest PrivateSpaceMaintainerTest
Change-Id: I32a92399a0c49cbbdcc4494b746b95b168e0b132
2024-11-19 10:04:33 +00:00
tomhsu
c9017355d9 [Satellite] Add category UI for Satellite functions
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Fix: b/378408939
Test: atest pass
Test: make pass
Change-Id: Id0f2ba047f4ee71a9ae398aa828978097717ce1a
2024-11-19 09:22:49 +00:00
Haijie Hong
89ea1e5c9a Merge "Remove the extra space above Spatial audio toggle" into main 2024-11-19 09:03:04 +00:00
Jeongik Cha
294b41a883 Fix storage requirement for Linux terminal
getPrimaryStorageSize rounds up size by GB, not GiB

Bug: 366374130
Change-Id: Idf43c5cee41172d763b6c271042317d151d41a38
Test: build and run
2024-11-19 07:43:31 +00:00
David Liu
e2f6b9496e Merge "[Expressive design] SettingsMainSwitchPreference should not in the group" into main 2024-11-19 06:50:18 +00:00
Jacky Wang
83708d4499 [Catalyst] Update PreferenceLifecycleContext.notifyPreferenceChange
Change the signature from metadata to preference key, so that the API
could be used to notify other preferences on the same screen.

NO_IFTTT=Catalyst only

Bug: 332201912
Flag: com.android.settings.flags.catalyst
Test: atest
Change-Id: Ibdf5f9004471d5491a0be1e84365cbe9f136c373
2024-11-19 13:38:06 +08:00
Bill Yi
66303e90fd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I77795d39140dd95309934644a5aefc1f92ce3bfe
2024-11-18 19:42:53 -08:00
Bill Yi
4311cb8c7a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I11aed04ed48530606d62498d638ea6ea0e0c5398
2024-11-18 19:41:08 -08:00
shaoweishen
fb6f25ff28 [Keyboard Setting] Rename KeyboardSettingUtils
rename KeyboardSettingUtils to match more about usage.

Bug: 379594195
Test: atest SettingsRoboTests
Flag: NONE, rename file.
Change-Id: If978e7b56ecbdb0b571db5ff34553bbb20f976ee
2024-11-19 03:20:51 +00:00
Zoey Chen
75c4dcb39b Merge "[Settings] Refactor: Add LocalePickerBaseListPreferenceController" into main 2024-11-19 03:14:15 +00:00
Treehugger Robot
d930ec424f Merge "Updated interactors to use repos" into main 2024-11-19 02:12:47 +00:00
Jaewan Kim
b8b4e47d6b Merge "Hide Linux terminal if device doesn't meet minimum requirement" into main am: 5965a10f60 am: ea27253a31
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350252

Change-Id: I7ab9bad6a2c396c024e99c4a5cec8db67cdbaa02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 01:57:35 +00:00
Jaewan Kim
ea27253a31 Merge "Hide Linux terminal if device doesn't meet minimum requirement" into main am: 5965a10f60
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350252

Change-Id: I2387ed8be5c63cd75c29a506d170fb916399cff2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 01:34:26 +00:00
Jaewan Kim
5965a10f60 Merge "Hide Linux terminal if device doesn't meet minimum requirement" into main 2024-11-19 01:09:07 +00:00
Adam Bookatz
69c7f5dac5 Don't let profiles open the UserSettings overflow
Really, profiles aren't expected to open Settings at all. But if they
do somehow, the overflow shouldn't appear.

Bug: 352542820
Flag: EXEMPT bugfix
Test: Try to access the overflow of the work profile by launching its Settings in
adb shell am start --user 10 'com.android.settings/.Settings\$UserSettingsActivity'

Change-Id: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
2024-11-18 15:53:41 -08:00
David Liu
a1d5f2544a [Expressive design] SettingsMainSwitchPreference should not in the group
- SettingsMainSwitchPreference already have rounded corner itself.
- Don't need to have rounded background.

Bug: 377266201
Test: visual test
Flag: EXEMPT update library
Change-Id: I3e336257bcbdb83a8e397bb006a00a33b543aae0
2024-11-18 23:40:11 +00:00
Treehugger Robot
e39b2c18d8 Merge "Revert^2 "Add intent filters for NfcTagAppsSettings"" into main 2024-11-18 23:25:46 +00:00
Matthew DeVore
c4dd7a8288 Add flag for surfacing display topology prototype
This will force the topology pane to show in the displays list UI, and
make the displays list UI accessible from the connected devices
fragment, regardless of the number of actual devices connected.

Once the display topology pane is using real data, this will still be
useful to not skip the display list UI, which currently can only be
shown when there is more than one external display connected.

To turn off, use:
$ adb shell device_config put display_manager com.android.settings.flags.display_topology_pane_in_display_list false

Test: verify "External Display" is always shown in connected devices list
Test: verify displays list is shown when 0 or 1 external display is connected
Bug: b/352648432
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Change-Id: Ic9205c69d9de09e6fb8ae33e17fbf00fe5574447
2024-11-18 12:36:56 -06:00
Zoey Chen
ab0213a7e3 [Settings] Refactor: Add LocalePickerBaseListPreferenceController
Bug: 377664066
Flag: EXEMPT refactor
Change-Id: I2b0c0e9e121d7ab09cb8f627afa34a4f58ec9f9b
2024-11-18 13:55:23 +00:00
Treehugger Robot
8eee5a480d Merge "[expressive design] SimsSection" into main 2024-11-18 11:52:30 +00:00
George Chang
d5e121d582 Revert^2 "Add intent filters for NfcTagAppsSettings"
This reverts commit 581b9b4346.

Reason for revert: CarDeveloperOptionsUnitTests fixed

Change-Id: I65a477b1db837e7e9fd0bce6fb1d2af84a747408
Test: adb shell am start -a android.nfc.action.CHANGE_TAG_INTENT_PREFERENCE
Test: atest CarDeveloperOptionsUnitTests
Bug: 379618293
Bug: 335916336
2024-11-18 11:29:49 +00:00
Treehugger Robot
dfd7e4bc63 Merge "Add flag for migrating UX to Android settings app." into main 2024-11-18 10:53:07 +00:00
Chaohui Wang
a2ccf8979d [expressive design] SimsSection
Bug: 349681531
Flag: EXEMPT bug fix
Test: visual
Change-Id: I2d38ad81ce93d47819fa82d46f1c11a9b8c9271d
2024-11-18 18:45:53 +08:00
Chaitanya Cheemala (xWF)
c1d2486656 Merge "Revert "Add intent filters for NfcTagAppsSettings"" into main 2024-11-18 10:38:44 +00:00
Chaitanya Cheemala (xWF)
581b9b4346 Revert "Add intent filters for NfcTagAppsSettings"
This reverts commit 2a41717baf.

Reason for revert: Likely culprit for b/379618293  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I8988203a5bfa7a8e000e7833bca812d04ba30d12
2024-11-18 09:56:41 +00:00
tomhsu
9d82dc346d Add flag for migrating UX to Android settings app.
Flag:com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: 378781925
Test: make pass
Change-Id: I6f409817a6fb508131e0f787aca4fbfa7e2e5494
2024-11-18 09:14:12 +00:00
Treehugger Robot
e49f779d96 Merge "Add intent filters for NfcTagAppsSettings" into main 2024-11-18 07:15:44 +00:00
Wenyu Zhang
bf47e4419d Merge "Skip user restriction check on desktop" into main 2024-11-18 06:30:14 +00:00
Treehugger Robot
d437a1f984 Merge "[Catalyst] Sync APM preference key value" into main 2024-11-18 06:29:04 +00:00
Treehugger Robot
17c02a69bb Merge "Make final confirmation of dialog only shows in-call state" into main 2024-11-18 06:19:47 +00:00
Weng Su
e24189df08 [Catalyst] Sync APM preference key value
Bug: 375925972
Flag: com.android.settings.flags.catalyst_network_provider_and_internet_screen
Test: Manual testing
atest -c AirplaneModePreferenceControllerTest \
         AirplaneModePreferenceControllerComponentTest

Change-Id: Ibd1e6af39afa768ef40d280ca97fb39ce38bd1c0
2024-11-18 13:14:02 +08:00
Haijie Hong
49045fb361 Remove the extra space above Spatial audio toggle
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I56bd6438e9f6589f388c0355460e6c5ba9cb2823
2024-11-18 13:08:13 +08:00
Xinyi Mao
9a18d2f170 Merge "Remove nested PreferenceCategory in Battery Usage page." into main 2024-11-18 04:56:11 +00:00
tomhsu
26c16784d4 Make final confirmation of dialog only shows in-call state
- Add a condition of in-call state to restrict dialog.

Flag: EXEMPT bug fix
Fix: b/374355096
Test: atest passed.
Test: Manual test passed.
Change-Id: I8d8505870973acbf57db8d3c5032619a31f9eb4d
2024-11-18 04:23:57 +00:00
Wenyu Zhang
a28c5e1ca5 Skip user restriction check on desktop
The Catalyst user restriction check crashes the Settings app on desktop
device. Skip the check for desktop device for now since this crash
blocks many development/testing work.

Change-Id: I27e3db48ce175381917681fe517d63bf6b4aede2
Bug: b/379130874, b/377600992
Test: verify locally on desktop device, presubmit
Flag: EXEMPT_bug fix
2024-11-18 03:21:28 +00:00
mxyyiyi
4c5f8481bd Remove nested PreferenceCategory in Battery Usage page.
https://screenshot.googleplex.com/83LwysPKMCRoRoG

Bug: 349652542
Test: atest BatteryUsageBreakdownControllerTest
Flag: EXEMPT for simple fix
Change-Id: If97b5e3de9757b814ad72aa47f6491d29106b8a3
2024-11-18 11:09:11 +08:00
Jacky Wang
ec1017c0bf Merge "Revert "Create a config flag for the new Screen Timeout settings screen with Dashboard style settings"" into main 2024-11-17 17:56:17 +00:00
Jacky Wang
f487880ce0 Revert "Create a config flag for the new Screen Timeout settings screen with Dashboard style settings"
This reverts commit 5aac4357d9.

Reason for revert: already has catalyst_screen_timeout flag

Change-Id: I1f87a6d7b06c8e506dfdf0d036db75c0ceb84bd1
2024-11-17 06:24:56 +00:00
Jacky Wang
eb37f169a3 Merge "[Catalyst] Support Getter API for settings service" into main 2024-11-17 05:53:58 +00:00
George Chang
2a41717baf Add intent filters for NfcTagAppsSettings
This is required by NfcAdapter.ACTION_CHANGE_TAG_INTENT_PREFERENCE
to expose shortcuts for tag apps.

Flag: android.nfc.nfc_check_tag_intent_preference
Test: adb shell am start -a android.nfc.action.CHANGE_TAG_INTENT_PREFERENCE
Bug: 335916336
Change-Id: Idee7ded0f8b07ea6ff38dd646c60798847abc31a
2024-11-16 15:42:05 +00:00