Commit Graph

144161 Commits

Author SHA1 Message Date
Yuri Lin
300d3d14c3 Right-align "end time" text on the schedule setter
When the "end time" text label is wider than the actual time, then aligning it with the start of the time causes it to wrap, even when there's plenty more space on the screen. This change right-aligns it in all cases (even when it's shorter), as it's hard to get all three of "right-aligned when too long", "left-aligned to the time display when short enough", and "wraps when it hits the center line instead of overflowing".

Fixes: 367054151
Test: manual, in English & Danish
Flag: android.app.modes_ui
Change-Id: I106864d6fb09aeac5fcc8d22e8d3d67b1b31ce4e
2024-09-17 15:46:59 -04:00
Evan Chen
e3e348b2dc Update AssociationInfo with deviceIcon field
Test: CTS
Bug: 341057668
Flag:  EXEMPT bugfix

Change-Id: I1398f4a225bf84ccb80438e0ce5f04f2ee844f27
2024-09-17 18:22:29 +00:00
Treehugger Robot
ad856d326f Merge changes from topic "b361144180-PreferenceControllerMixin" into main
* changes:
  Move ListAddMode PrefController key to constructor
  ZenModesListAdd extend BasePreferenceContoller
2024-09-17 17:28:27 +00:00
Pat Manning
591d568d00 Merge "Style changes for Pointer fill color settings." into main 2024-09-17 17:12:27 +00:00
Alexander Roederer
c6c5c1dfad Move ListAddMode PrefController key to constructor
Passes the key for the ZenModesListAddModePreferenceController into the
constructor, to be supplied from the Fragment.

Flag: android.app.modes_ui
Bug: 361144180
Test: atest ZenModesListAddModePreferenceControllerTest
Change-Id: I23d5c11f8676b9ed2bde807e24f20346444e7963
2024-09-17 16:15:00 +00:00
Diya Bera
5335e26b29 (1/N) Biometric error dialog
Add an error dialog to help user recover from biometric error for
identity check feature

Flags: android.hardware.biometrics.flag.mandatory_biometrics
Fixes: 358641110
Fixes: 358179610
Test: atest DevelopmentSettingsDashboardFragmentTest

Change-Id: I6099bc57672b945fa4fa4de98be35bd097403b22
2024-09-17 14:45:51 +00:00
yumeichen
23bba426b5 Hide the Default Notification Sound if enabling customized vibration
Flag:com.android.server.notification.notification_vibration_in_sound_uri
Test: atest NotificationRingtonePreferenceControllerTest
Bug: 358525376

Change-Id: Ic7517828df746700ceb6e0605a9d32066c7aed50
2024-09-17 14:38:02 +00:00
Alexander Roederer
3791aa5ee9 ZenModesListAdd extend BasePreferenceContoller
Makes ZenModesListAddModePreferenceController extend
BasePreferenceController. This should fix warning statements, and has
the effect of adding "Create your own mode" to the Settings Search menu.

Test: build+flash
Bug: 361144180
Flag: android.app.modes_ui
Change-Id: Ic8675420b831818f658506f36938f38e803cc9aa
2024-09-17 03:20:39 +00:00
Bill Yi
636e90be58 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-09-16 19:03:34 +00:00
Bill Yi
5986cfb155 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-09-16 19:03:34 +00:00
Jacky Wang
1aa2c77730 Create dedicated aconfig folder for catalyst
There will be lots of flags for catalyst, create a dedicated aconfig
folder to maintain the catalyst flags.

Bug: 335132588
Flag: EXEMPT Move aconfig flag
Test: Presubmit
Change-Id: I3806320b16b464e29311d74a3941b40ce5051702
2024-09-17 01:31:26 +08:00
Pat Manning
4a552541aa Style changes for Pointer fill color settings.
Fix: 362455374
Test: Manual. Visual Changes only.
Flag: android.view.flags.enable_vector_cursor_a11y_settings
Change-Id: Id7a9d7eef540ea33f6bb47451b3d5c25328f9707
2024-09-16 14:01:55 +00:00
Dennis Shen
8427d5d2a8 Merge "Replace system_ext container with system" into main 2024-09-16 12:20:17 +00:00
Treehugger Robot
16b9831831 Merge "Avoid launching captive portal pages when uri is empty" into main 2024-09-16 10:40:36 +00:00
Weng Su
0256fe816d Avoid launching captive portal pages when uri is empty
- If uri is empty it will cause ActivityNotFoundException when calling startActivity

Bug: 363782926
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiDetailPreferenceController2Test

Change-Id: I48b9a53afe08a7c5e8e512c1961d6aea22a12a21
2024-09-16 17:05:10 +08:00
Treehugger Robot
1e733f0177 Merge "Support flagging for PreferenceScreenCreator" into main 2024-09-14 16:46:19 +00:00
Jacky Wang
7630a4ca95 Support flagging for PreferenceScreenCreator
Bug: 335132588
Flag: com.android.settingslib.flags.settings_catalyst
Test: Presubmit & Local test
Change-Id: I8e1d8ee679c84401bfcfcfb21f221a619257f6a2
2024-09-14 23:18:33 +08:00
Yiyi Shen
e1faf0c8a9 Fix text alignment in RTL mode for volume sliders
The volume bars with layout preference_volume_slider won't align title text right in RTL mode (Force RTL layout direction is Developer options),
e.g. Sound & vibration page, Audio sharing page.

Test: manual
Bug: 359514080
Flag: EXEMPT minor layout change
Change-Id: I43daa46438e3fa0a879d831a97d05b31c7dcb52f
2024-09-14 08:16:48 +00:00
Yiyi Shen
7006151729 [Audiosharing] Add strings for loading state and error handling
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858921
Bug: 362858894
Change-Id: I9a10b1954e5d0924cf0799db01842fff4be73ed0
2024-09-14 14:00:32 +08:00
Chaohui Wang
eff7ddf339 Not set subId for Wi-Fi data usage
Otherwise the DataUsageList page will be closed since no active sub has
id = 0.

Bug: 348118234
Flag: EXEMPT bug fix
Test: manual - on DataUsageSummary
Test: atest DataUsageSummaryTest
Change-Id: Ic8387e4fbfe0f0027e87e545be9d7e92ae771136
2024-09-14 12:43:11 +08:00
Treehugger Robot
428829bfc5 Merge "Provide installed a11y services/activities from dynamicRawData for search" into main 2024-09-13 20:19:40 +00:00
Treehugger Robot
02b60ddb14 Merge "[AudioStream] Hysteresis mode support" into main 2024-09-13 18:47:47 +00:00
Matías Hernández
5dedf28f66 Merge "Remove "Do Not Disturb" from Sound summary in Settings top screen" into main 2024-09-13 18:46:25 +00:00
Bill Yi
30ecd5d263 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I10b3de902bb6816c4249cc175e8ecca5670e7094
2024-09-13 11:30:07 -07:00
Bill Yi
582e4fe856 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I827e4a7e82da9e5fa04dd222f3058f15a567ff38
2024-09-13 11:27:33 -07:00
Matías Hernández
46744e40f0 Merge "Rename usages of ZenRule.isAutomaticActive() to isActive() in Settings" into main 2024-09-13 17:43:29 +00:00
Rongxuan Liu
2c3f54c5e3 [AudioStream] Hysteresis mode support
Flag: com.android.settingslib.flags.audio_sharing_hysteresis_mode_fix
Test: atest com.android.settings.connecteddevice.audiosharing.audiostreams
Test: manual test with broadcast hysteresis mode
Bug: 355222285
Bug: 355221818
Change-Id: If3a1fbdc391eeda6979868829bc00c435a43c329
2024-09-13 17:14:01 +00:00
Dennis Shen
6e1b274f03 Replace system_ext container with system
Bug: b/365135457
Test: m
Flag: EXEMPT refactor
Change-Id: I574c5971e93172b3919b5676f917761d77aa0841
2024-09-13 12:42:21 +00:00
Jacky Wang
f6a573530e Move ObservablePreferenceFragment class
Bug: 365922551
Flag: EXEMPT Move class only
Test: Presubmit
Change-Id: I17851055b09d73b95e6adaafbe96f4375d5f637e
2024-09-13 20:39:59 +08:00
Matías Hernández
31e3f274d5 Fix existing DND Settings shortcuts to point to Modes
Fixes: 365545604
Test: atest ShortcutsUpdaterTest + manual (flag flip + reboot)
Flag: android.app.modes_ui
Change-Id: I28f7e3e69175e92611668fdfa655a817ffcc905e
2024-09-13 11:25:03 +00:00
Matías Hernández
939189bde8 Refactor shortcut updating, and do it on BOOT_COMPLETE
This CL shuffles quite a bit of code around, but the effective differences are:
* Unified shortcut updating code (language switch & backup restoration).
* Shortcuts are also updated on boot (flagged by MODES_UI which will need this).
* Removed usage of (long obsolete) AsyncTask.

A further CL will add some special-casing for the DND->Modes shortcut transition.

Bug: 365545604
Test: atest com.android.settings.shortcut + manual (switch language, reboot)
Flag: android.app.modes_ui
Change-Id: I30450d13cb05008d2a71ed89d4781eb81e5532b9
2024-09-13 12:16:46 +02:00
Haijie Hong
be7402b5bb Fix spatial audio toggle string
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I1e0e1191682576051b010e4c0dc34809cd1654f9
2024-09-13 09:36:53 +00:00
Matías Hernández
be15428df8 Merge "Use the Modes icon in the "dummy" ModesActivity" into main 2024-09-13 09:32:18 +00:00
Haijie Hong
237264fe56 Merge "Show highlight for device setting items" into main 2024-09-13 08:58:44 +00:00
Treehugger Robot
c37ea6a376 Merge "Customize Fingerprint enroll activities" into main 2024-09-13 06:04:35 +00:00
Chaohui Wang
958639b79c Merge "Create SimRepository" into main 2024-09-13 02:40:52 +00:00
Chun-Ku Lin
1e9c06c280 Merge "Load icon from correct package for Accessibility slices" into main 2024-09-13 00:21:35 +00:00
Treehugger Robot
b041a687ca Merge "Uses placeholder and percentage formatter for seek bar state strings." into main 2024-09-12 22:41:52 +00:00
Chun-Ku Lin
8bbecf4612 Load icon from correct package for Accessibility slices
Bug: 326233533
Flag: EXEMPT low risk
Test: Mannual. Search TalkBack in Settings app, the Icon shows up
correctly. Search "Turn on TalkBack" in assistant app, the Icon is not
affected.

Change-Id: I6c15a13b4e7dd56f873124ae5722f15f2447f5b4
2024-09-12 22:27:06 +00:00
Daniel Norman
1b98e50809 Uses placeholder and percentage formatter for seek bar state strings.
Placeholders and percentage formatter are best practice to help prevent
accidental translation errors, especially when mixing formatted strings
with literal percent signs.

Fix: 366201919
Flag: EXEMPT minor string format fix with no functionality change
Test: Use TalkBack to observe the state description of the seekbar;
      observe description is unchanged (e.g. "60% left, 40% right")
Test: atest BalanceSeekBarTest
Change-Id: Ie9dcc9219d253795be31b39279ed9d01d8794f66
2024-09-12 20:50:30 +00:00
Riley Jones
f37570e46e Merge "Quick fix for FAB fade setting summary" into main 2024-09-12 18:44:41 +00:00
Winson Chung
b0de073d3d Merge "Add log for user unlock" into main 2024-09-12 18:23:25 +00:00
Chun-Ku Lin
3f19805209 Provide installed a11y services/activities from dynamicRawData for search
Bug: 354076686
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: Search Project Relate and verify the item shows up in the search
result
Test: Search Talkback with keywords, verify the Talkback shows up in the
search result
Test: atest AccessibilitySettingsTest

Change-Id: I258ecb0928308b7cde30c12104408e11cc25ecd5
2024-09-12 17:20:04 +00:00
Treehugger Robot
ebc3805edf Merge "Export combined biometrics settings page" into main 2024-09-12 16:32:09 +00:00
Julia Reynolds
b8533bad72 Merge "Remove stale TODOs" into main 2024-09-12 15:56:43 +00:00
Treehugger Robot
4b8d2cacd5 Merge "Remove unneeded setttings search info" into main 2024-09-12 15:53:55 +00:00
Julia Reynolds
1b869f2845 Remove stale TODOs
These aren't in scope for the modes_ui release

Test: N/A
Flag: android.app.modes_ui
Bug: 354141067
Change-Id: I28887d766cde2d6a4e18a66a99d1625f80aa0667
2024-09-12 10:31:31 -04:00
Pat Manning
78da1fec93 Merge "Move pointer and touchpad customization settings to their own pages." into main 2024-09-12 14:20:31 +00:00
Julia Reynolds
fcebcb2735 Remove unneeded setttings search info
Test: chage languages in Settings, search for a mode by name
Bug: 354141067
Flag: android.app.modes_ui

Change-Id: If12d76d268134e415510304278441a53d76af36d
2024-09-12 09:14:11 -04:00
Yiyi Shen
b9cef19faa Merge "[Audiosharing] Show loading state on audio sharing page" into main 2024-09-12 11:52:11 +00:00