Commit Graph

6599 Commits

Author SHA1 Message Date
Matías Hernández
f85290cbbf Remove leftover "all" option from zen mode Apps page
Bug: 308820027
Test: manual
Flag: android.app.modes_ui
Change-Id: I0b29b69a9544223eb8450ad59e528056ad429fbb
2024-07-10 19:30:51 +00:00
Matías Hernández
3cd8fc86e1 Add "rename" option to 3-dot menu
(And remove the segmented buttons).

Fixes: 346278854
Test: manual
Flag: android.app.modes_ui
Change-Id: I6d45ba91cc400e5f3f01245c315cc5f0322c3bb1
2024-07-10 00:44:32 +00:00
Julia Reynolds
f9ce78e87b Merge "Create a new link preference for priority modes entry" into main 2024-07-09 13:17:06 +00:00
Zoey Chen
21a54d0343 [Settings] Add pref key for metrics
Bug: 349749793
Test: manual
Flag: EXEMPT resource only update
Change-Id: I367a42d023b2a1b879130e63205e3f63365a4a86
2024-07-09 06:38:10 +00:00
Matías Hernández
bb41777f87 Merge "Add mode: Choose name and icon for new custom modes" into main 2024-07-09 02:20:07 +00:00
Matías Hernández
574fcaf1b2 Add mode: Choose name and icon for new custom modes
This also unifies the "icon picker" screen with the new "add mode" screen since in both cases we want to edit name and icon together (and not save updates until the user confirms).

Bug: 326442408
Bug: 346278854
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Change-Id: I8a9d07ba0b6c55f3abc1b9884f278d51d178dc83
2024-07-06 22:12:58 +00:00
Julia Reynolds
4fd34aa386 Create a new link preference for priority modes entry
Test: ZenModesSummaryHelperTest
Test: manual. Successfully search for both 'event' and 'priority'
Flag: android.app.modes_ui
Bug: 341726633
Change-Id: Ib7bd1a5c2f7b06b1728a66f7a9cef53cd45acc0b
2024-07-03 16:22:20 -04:00
Fan Wu
ec5df5cd1e Remove Use on-screen keyboard preference from Physical Keyboard page
Bug: 304460009
Flag: EXEMPT removing preference from xml
Test: on device
Change-Id: Ibb0517c5ffa4addb52f1b0469f30c5126bd5828a
2024-07-03 06:29:54 +00:00
Julia Reynolds
ce4f2e9db6 Merge "Show bundles separately from other channels" into main 2024-07-03 00:02:33 +00:00
Alina Zaidi
50e0a53b1c Merge "[Dev option] Add a dev option to enable DW." into main 2024-07-01 19:54:09 +00:00
Alina Zaidi
d98058c4b7 [Dev option] Add a dev option to enable DW.
Default value of this dev options solely depends on
enable_desktop_windowing_mode, which is intended

Toggle is shown only if DW is eligible on device

Currently this option only overrides features guarded by
enable_desktop_windowing_mode, later on it will be used to override a
few other DW features

Test: Added tests. Locally tested CUJs
Bug: 348186127
Bug: 348193756
Flag: com.android.window.flags.show_desktop_windowing_dev_option

Change-Id: I1c1f946b586a5ca0440b29879925ba1a624717aa
2024-07-01 17:23:20 +00:00
Julia Reynolds
2956baaf51 Show bundles separately from other channels
Fixes: 346612561
Test: BundleListPreferenceControllerTest
Flag: android.service.notification.notification_classification
Change-Id: I2371219822f6a777788147e8249ca1e3b29d40ba
2024-07-01 12:56:41 -04:00
Yuri Lin
c1a4abbc51 Migrate "duration for quick settings" to new modes page.
This mostly continues to use the existing dialogs in settingslib (ZenDurationDialog, SettingsEnableZenModeDialog) and creates a controller to read from the settings value.

Also updates the "turn on / turn off" button to respect the preferred duration.

Flag: android.app.modes_ui
Bug: 343444249
Test: ZenModeButtonPreferenceControllerTest, ManualDurationPreferenceControllerTest
Change-Id: I2fd49a79d9a5807fefdd7ec310a6cc60d70f9bb1
2024-06-27 12:48:27 -04:00
Julia Reynolds
aec909bd44 Merge "Move 'show hidden channels' option" into main 2024-06-26 13:30:48 +00:00
Julia Reynolds
477ebd25f2 Move 'show hidden channels' option
Make it more prominent to make it more clear what's happening
when you unblock an app

Test: DeletedChannelsPreferenceControllerTest
Test: ShowMorePreferenceControllerTest
Flag: com.android.server.notification.notification_hide_unused_channels
Bug: 322536537
Change-Id: I745b2037b4dc907a4307fa7f70ecc3a4c9db2dd2
2024-06-25 20:50:28 +00:00
Oleg Blinnikov
b3926bdf35 Merge "Added External Display settings page" into main 2024-06-25 15:01:01 +00:00
Pat Manning
d303afbbd7 Add Settings for vector-specific PointerIcon scale.
Bug: 305193969
Test: PointerScaleSeekBarControllerTest
Flag: com.android.systemui.enable_vector_cursor_a11y_settings
Change-Id: I2f344f1d5fc6d5c8eb7159570287b8ce6f9ac070
2024-06-25 13:55:59 +00:00
Oleg Blinnikov
a6016e6552 Added External Display settings page
Settings page to show rotation, resolution,
enable/disable display settings for
external and overlay displays. In case
persist.demo.userrotation.package_name
sysprop is set, then the virtual
display with this will also be shown.

In case there is only one allowed display
available, then this display will be
shown right away. When there are more
than 1 displays available, then the list
of displays will be shown.

Change-Id: I186667aaba94ed6befec3a98f4a87f2b2d1f1859
Test: atest ExternalDisplayUpdaterTest
Test: atest ExternalDisplayPreferenceFragmentTest
Test: atest ResolutionPreferenceFragmentTest
Test: atest ConnectedDeviceGroupControllerTest
Bug: 340218151
Bug: 294015706
Bug: 253296253
Flag: com.android.settings.flags.rotation_connected_display_setting
Flag: com.android.settings.flags.resolution_and_enable_connected_display_setting
2024-06-25 13:41:10 +00:00
Chaohui Wang
cfd401b04e Fix crash in RoamingPreferenceController
With new MobileDataRepository.isDataRoamingEnabledFlow() to provide
the data instead of MobileNetworkRepository.

Fix: 347224962
Flag: EXEMPT bug fix
Test: manual on Mobile Settings
Test: unit test
Change-Id: I2a994cb11c93296fb46558f566d6d4467ba4c846
2024-06-21 04:39:44 +00:00
Julia Reynolds
3b62c23310 Design refresh for modes that don't filter notifications
And fix a crash noticed in ZenModeAppsLinkPreferenceController

Test: atest com/android/settings/notification/modes
Fixes: 308820027
Flag: android.app.modes_ui
Change-Id: I0cfe4e10ca7ff97dac3b3b8756cc36f4d6f91ea2
2024-06-20 13:10:36 +00:00
J. Eason
411d5c15d3 Merge "Update the icon for the adb wireless pairing code preference." into main am: 2c4ceb385f am: 2ff1438553
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3133784

Change-Id: Iebb2c61faa82309d5e54e6c039c1b00ca6c0f7d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-18 14:44:09 +00:00
J. Eason
b5a82c2f91 Update the icon for the adb wireless pairing code preference.
The new icon is more specific to adb wireless pairing and will now react correctly to system theme accent color changes.

Bug: 347710454

Change-Id: I7bd25661b2dda83403b41c7ebdf1941437d1d0f8
2024-06-18 07:58:12 +00:00
Matías Hernández
8409c39d94 First bits of "add a mode"
* Preference below the modes list.
* Temporarily triggers addition of a mode with default name and type=SCHEDULE_TIME (type will be "manual only" later).
* Fixed sorting of modes in the list when refreshing (new modes were added at the bottom instead of where they should, the same would've happened for renamed modes).
* Minor polishes (extracted fragment launch to helper class, renamed item controller class for clarity).

Test: atest com.android.settings.notification.modes
Bug: 326442408
Fixes: 347198709
Flag: android.app.modes_ui
Change-Id: Ie276c92181c5374faf74592433595e7e15a5efc0
2024-06-14 15:23:30 +00:00
chelseahao
16f9205fb6 [Audiosharing] Add tests for qrcode related classes.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I74caacf43a23bbd0a6da44af24a1be4dd9544a5d
2024-06-14 11:38:51 +00:00
Treehugger Robot
66aa660ad5 Merge "fix(high text contrast): revert name back to "High Text Contrast"" into main 2024-06-13 21:22:58 +00:00
Tyler Freeman
40efef2210 fix(high text contrast): revert name back to "High Text Contrast"
We're holding off on launching High Contrast Text improvements,
so we're reverting back to the original name to avoid user confusion.

We'll save the name change for when we change the appearance of the
feature.

Bug: 344028969
Flag: ACONFIG com.android.settings.accessibility.enable_color_contrast_control NEXTFOOD
Flag: ACONFIG com.android.graphics.hwui.flags.high_contrast_text_small_text_rect STAGING
Test: manual
Change-Id: Icadf1b708b42f684b0d93a59bb7ff8dab26807dd
2024-06-13 19:37:13 +00:00
Treehugger Robot
076b7ee22a Merge "Update Settings Page for Avalanche Suppression/Adaptive Notifications" into main 2024-06-12 14:09:51 +00:00
Yining Liu
ef5e760f7e Update Settings Page for Avalanche
Suppression/Adaptive Notifications

Update the Settings Page for the Avalanche
visual and auditory Suppression - now called adaptive notifications.

Bug: 270456865
Fixes: 346528029
Fixes: 345722296
Test: PoliteNotificationPreferenceControllerTest
Flag: com.android.server.notification.polite_notifications
Change-Id: I97fcda4b8a8795ed05044e325cf038ea31f99ae9
2024-06-12 13:14:50 +00:00
Matías Hernández
ec5b25eb48 Merge "Add icon picker for zen modes" into main 2024-06-10 22:38:36 +00:00
Yuri Lin
00c7a2c16b Merge "Add schedule setting page for time-based modes." into main 2024-06-10 20:50:57 +00:00
Joseph Vincent
76eef6d8a0 Merge "Remove animation from private space settings page" into main 2024-06-10 19:27:39 +00:00
Yomna Nasser
7012fb1638 Merge "Specify correct location for Controllers in cellular_security.xml" into main 2024-06-10 17:41:30 +00:00
Matías Hernández
8d397f038f Add icon picker for zen modes
Bug: 333901673
Test: atest ZenModeIconPickerListPreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Ib6faaac7c93b25423d18dbdcd0a2310de15fa86f
2024-06-10 19:37:49 +02:00
Yuri Lin
4203f311dd Add schedule setting page for time-based modes.
Creates new layout for setting the start & end time, and days of the week, for a schedule-based mode.

This is close to the mocks specified in https://screenshot.googleplex.com/8zmb7PAjjt73VkN, but with the following differences:
- the end time is left-aligned with the center rather than on the right side of the screen. This is a side effect of using LinearLayout to evenly space start & end times, and could in theory be fixed by using a ConstraintLayout, but that option seems to cause times to overlap instead of wrap when display size is cranked up. Could be fixed later.
- no icons yet on either side of the time display
- no Done button. Instead, has the "exit at alarm" switch that exists today.

Have not yet checked how this interacts with TalkBack, etc.

Flag: android.app.modes_ui
Bug: 332730302
Test: ZenModeSetSchedulePreferenceControllerTest, ZenModeExitAtAlarmPreferenceControllerTest, ZenModeSetTriggerLinkPreferenceControllerTest
Test: manual: interacting with UI in normal size, with font & display at minimum and maximum, and in locales (fr) where the first day of the week is a different day
Change-Id: I0b76f55891d6c12fc27720657c9eea6fe42fbafe
2024-06-10 13:26:06 -04:00
Shai Barack
075abe9107 Merge "Revert "Delete "background process limit" debug option"" into main 2024-06-10 17:09:55 +00:00
josephpv
8298c15f53 Remove animation from private space settings page
Screenshot : go/ss/5HeSbdABvUX3iw8.png

Bug: 337866252
Test: Manual
Change-Id: If54ff5f2e309b9ac4dd83ff3bbf53812031732c6
2024-06-10 05:20:01 +00:00
Shai Barack
d6f0a89e20 Revert "Delete "background process limit" debug option"
This reverts commit c163eb07ce.

Reason for revert: we did a 180 on MCP deprecation, see b/345628418

Change-Id: I2bd2dd7b8fa5275fa81f75d47919ac70d721cd72
2024-06-07 19:22:24 +00:00
yomna
85982c798f Specify correct location for Controllers in cellular_security.xml
Bug: b/343754459
Test: m & manual
Flag: exempt bug fix
Change-Id: I42238a0d978b60758ce783c2fe6959536cd60eaa
2024-06-07 17:55:46 +00:00
Treehugger Robot
87334e9c38 Merge "Add Settings for vector-specific PointerIcon fill colors." into main 2024-06-07 16:31:59 +00:00
Pat Manning
577965f9c2 Add Settings for vector-specific PointerIcon fill colors.
Bug: 305193969
Test: PointerIconLoadingTest
Flag: com.android.systemui.enable_vector_cursor_a11y_settings
Change-Id: I84b4a6d5fde48309c2e3374963f92b8246167628
2024-06-06 14:41:00 +00:00
Treehugger Robot
39e9aede9a Merge "Delete "background process limit" debug option" into main 2024-06-06 07:46:23 +00:00
Shai Barack
c163eb07ce Delete "background process limit" debug option
We're deprecating max limits for cached/empty app processes.

Bug: 253908413
Change-Id: Iff80f173e72e9b77faefe3c66543c0756f2e6f74
Flag: EXEMPT cleaning up now-unused flag
2024-06-05 16:07:08 +00:00
josephpv
b4054cb6a7 Add edu for apps being stopped when PS is locked
Changes made to Setup intro screen and private space settings dislaimer
that apps are stopped when private space is locked.

Screenshots:
go/ss/8YFWtjjC5pzhyyd.png
go/ss/5pvvo4YodaSiGzr.png
b/343166731#comment4

Bug: 343166731
Test: Manual
Change-Id: I46db598e1e94e210d904ade8b6b0cf498960cc2a
2024-06-05 10:01:19 +00:00
Yomna Nasser
c2df9e2e40 Merge "Control visibility of Cellular Security tile on More Security & Privacy page" into main 2024-06-03 16:23:12 +00:00
yomna
ffba0e7a40 Control visibility of Cellular Security tile on More Security & Privacy page
Bug: b/335554085
Test: manual
Flag: EXEMPT bugfix
Change-Id: I35a3b67abc8339179b600fa83effd98e5b389a37
2024-06-03 16:22:58 +00:00
Yuri Lin
cfaedb0199 Merge "Add page for choosing calendar & reply for event modes." into main 2024-05-30 14:59:00 +00:00
Julia Reynolds
3f208db1dd Merge "Update check boxes to switches" into main 2024-05-30 13:08:45 +00:00
Julia Reynolds
2af266f423 Update check boxes to switches
To match the rest of the settings

Test: ZenModeNotifVisPreferenceControllerTest
Bug: 337087926
Flag: android.app.modes_ui
Change-Id: I193db8404a3b6c8bdacbbb9e19e3a7c1826d745f
2024-05-29 18:35:31 +00:00
Yuri Lin
f29f44296a Add page for choosing calendar & reply for event modes.
Also adds the link to set trigger behavior to the main mode page (only for calendar so far), and the switch preference to enable/disable automatic rules (for all but manual DND mode).

Removes the "escape hatch" to allow manual mode to also use the new modes pages.

Ported from ZenModeEventRuleSettings.

Flag: android.app.modes_ui
Bug: 332730302
Test: ZenModeSetCalendarPreferenceControllerTest, ZenModeSetTriggerLinkPreferenceControllerTest, manual
Change-Id: Ia7a716c66663a21494a6c05711250a5bda87ca8c
2024-05-29 17:29:23 +00:00
Alexander Roederer
4e10ac8dae Merge changes from topic "b308819928-ModesSettingsAppBreakthroughPage" into main
* changes:
  Moves ZenModeBypassingAppsSettings into modes dir
  Adds modes settings page for bypassing apps
2024-05-29 14:20:02 +00:00