Commit Graph

5263 Commits

Author SHA1 Message Date
Evan Laird
969625bc8e Merge "Add setting for showing the vibrate icon in status bar" into tm-dev 2022-02-28 15:10:23 +00:00
Aaron Liu
e0f4e795ce Home Controls: Add Device Controls settings
Add a setting that would not require authorization for device controls.

Fixes: 216102581
Test: manual
Change-Id: I1fd98a2fbc1cea44d0b2c3612dd1616a053af394
2022-02-23 21:13:06 +00:00
Evan Laird
4871b2cf6a Add setting for showing the vibrate icon in status bar
Test: manual
Bug: 220144337
Change-Id: I2d389d71dd9402353b058039464495a1d33ef0e9
2022-02-23 15:42:57 +00:00
Christian Göllner
ff9065ac95 Add support for device state based auto-rotation preferences in Settings.
- Creates new preferences that are shown when device-state rotation
  is supported.
- Hides standard preferences when device-state rotation is supported.
- Controllers/Preferences for individual folded/unfolded rotation
  settings are created and added programatically based on the settable
  device states available.

Test: Manually + Unit tests
Bug: 195757480
Change-Id: I16f50fd3664756b363c7eb79e5c35eb0d3b6df17
2022-02-21 17:18:04 +01:00
Christian Göllner
3c65556ceb Merge "Revert "Add support for device state based auto-rotation prefere..."" 2022-02-16 17:27:53 +00:00
Christian Göllner
a663f10c4e Revert "Add support for device state based auto-rotation prefere..."
Revert submission 16745827-device-state-auto-rotation-preferences-aops

Reason for revert: Checking if reason for test failures
Reverted Changes:
I77ed93f04:Add support for device state based auto-rotation p...
I5b2791f54:Add support for device state based auto-rotation p...
If254220ca:Add support for device state based auto-rotation p...
If254220ca:Add support for device state based auto-rotation p...

Fix: 219652963
Change-Id: Id95d5d7bb18a28403a6d3199945044e6617e0772
2022-02-16 13:31:16 +00:00
PETER LIANG
f92f3c359f Merge changes from topic "a11y_text_reading_22"
* changes:
  Add keywords into Font Size, Display Size preferences.
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (22/n).
2022-02-16 00:55:08 +00:00
Peter_Liang
74468a94cc Add keywords into Font Size, Display Size preferences.
Bug: 211503117
Test: manual test
Change-Id: I52de77a3af689a336bf8f40c668711a48b9bbc42
2022-02-16 00:54:25 +00:00
Lucas Silva
5e1fc317aa Merge changes from topics "dreams-phone", "dreams-preview-placeholder"
* changes:
  Add default placeholder when a dream doesn't provide a preview image.
  Update default dream settings dimens for phones.
  Update dream settings UX to match latest mocks.
2022-02-15 20:00:13 +00:00
Lucas Silva
75c44cd02b Update dream settings UX to match latest mocks.
Updates:
- removed individual complication toggle
- added single toggle which enables/disables all supported complications
- updated colors to match mocks
- updated grid padding in order to line up with existing content. Note:
  this required more complex padding logic, using an item decorator to
  apply the padding only to inner grid elements.
- updated preview image, removing view nesting to make better use of
  ConstraintLayout
- Updated some strings to match mocks

Test: locally on device
Bug: 217555053
Change-Id: I573e5f4ed807cbe2ae9e00f183d402e6e3339590
2022-02-15 17:32:01 +00:00
Peter_Liang
5c106bab04 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (22/n).
- Replace "Font size", "Display size" with "Text and Reading Options" in the Display Settings

Bug: 211503117
Test: manual test
Change-Id: I5d8027628dcf06d99274a6a7a781218d146519eb
2022-02-15 15:45:45 +08:00
PETER LIANG
c915910f53 Merge changes from topics "a11y_text_reading_18", "a11y_text_reading_19"
* changes:
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (20/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (19/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (18/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (17/n).
2022-02-15 05:45:54 +00:00
TreeHugger Robot
afdd629808 Merge "Add support for device state based auto-rotation preferences in Settings." 2022-02-15 02:55:55 +00:00
Christian Göllner
78a0e714c4 Add support for device state based auto-rotation preferences in Settings.
- Creates new preferences that are shown when device-state rotation
  is supported.
- Hides standard preferences when device-state rotation is supported.
- Controllers/Preferences for individual folded/unfolded rotation
  settings are created and added programatically based on the settable
  device states available.

Test: Manually + Unit tests
Bug: 195757480
Change-Id: If254220ca3018bc6ec1c4e3947375733f6816f92
2022-02-14 18:51:54 +01:00
Tom Hsu
9513d51ad9 Merge "[Panlingual] Remove Icon of system language" 2022-02-14 06:23:59 +00:00
Menghan Li
df13fb1d1e Merge "Polish humanize strings for color correction page" 2022-02-14 05:33:55 +00:00
TreeHugger Robot
582e270281 Merge "[Panlingual] Add device default language to suggested group" 2022-02-14 04:58:35 +00:00
tom hsu
4ca57b3c4e [Panlingual] Remove Icon of system language
Bug: 219384592
Test: local
Change-Id: Ib28461752150a66ab0edd0a3c2d631a6d600075c
2022-02-14 12:39:19 +08:00
tom hsu
cfc5554068 [Panlingual] Add device default language to suggested group
- Add default language preference
 - Polish unit test
 - Fix unsupported locale show on suggested group

Bug: 209728327
Test: local test
Test: atest pass

Change-Id: I69778cb8d69b21314c75689f0d61c25294c7f9d2
2022-02-14 11:30:30 +08:00
Peter_Liang
a52a55f39c New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (20/n).
- Remove bold text, high contrast text, display size, and font size
  preferences in the color and motion layout.

Bug: 211503117
Test: manual test
Change-Id: I0d12bb65871fafc8901d3d1993e9fa85014ed645
2022-02-14 11:07:11 +08:00
Peter_Liang
19631ec1b1 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (19/n).
- Rename the strings related to "text and display" to "color and motion" to avoid misunderstanding.

Bug: 211503117
Test: manual test
Change-Id: Icdca5ee03fb95a8531406a0f6ab07799a9dfb17c
2022-02-14 11:06:22 +08:00
PETER LIANG
97382b3eda Merge "Polish and humanize the summary for the High Contrast Text." 2022-02-14 02:47:17 +00:00
menghanli
27e442ded7 Polish humanize strings for color correction page
- Add intro for purpose or behavior
- Remove correction mode category title
- Reformat deuteranomaly, protanomaly, and tritanomaly title and summary

Bug: 218408547
Test: Manual testing
Change-Id: I0cca0c063ab15b4065c0e3a277181a8cf44a70ce
2022-02-14 10:00:30 +08:00
Peter_Liang
18eb37fb7d New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (18/n).
- Update the visibility of Text and Reading Options in the Accessibility Settings

Bug: 211503117
Test: manual test
Change-Id: Icacdc64bc41a47653a1cc13333ea17a9872dabf2
2022-02-14 09:38:00 +08:00
Menghan Li
2434138762 Merge "Polish humanize strings for Accessibility autoclick page" 2022-02-14 01:35:58 +00:00
menghanli
85420f3cab Polish humanize strings for Accessibility autoclick page
- Add intro for purpose or behavior
- Update footer description on usage, availability, or limitations
- Remove the divider below illustration
- Remove custom divider

Bug: 218409017
Test: Manual testing
Change-Id: I45ab1d06bf4f49ab48a820aedfc89eafc24b17fe
2022-02-14 09:33:04 +08:00
Peter_Liang
8e231a2ce3 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (17/n).
- Update the visibility of entries in the Vision Settings
1) Change the visibility Text and Reading Options preference as visible
2) Remove Font and Display size preferences

Bug: 211503117
Test: manual test
Change-Id: I9c12eaf4d35f98763c165e1d8ad232b378e044e7
2022-02-14 09:32:33 +08:00
menghanli
84771e9801 Polish humanize strings for Accessibility timeout page
- Add intro for purpose or behavior
- Update footer description on usage, availability, or limitations
- Remove the divider below illustration

Bug: 218408807
Test: Manual testing
Change-Id: Ibb19da2624c1d5cc8073df4fefb902c2c20a3d72
2022-02-14 09:27:27 +08:00
Peter_Liang
0f384398b4 Polish and humanize the summary for the High Contrast Text.
- Add new summary string.

Bug: 219163254
Test: manual test
Change-Id: I4902452b1c0f53e8e6a74b8529139a2d7c1cdeaf
2022-02-13 15:56:24 +08:00
Menghan Li
d920ad507c Merge "Polish humanize strings for Caption preferences page" 2022-02-11 22:10:14 +00:00
Menghan Li
caeccebb5c Merge "Polish humanize strings for Accessibility button & gesture page" 2022-02-11 22:06:52 +00:00
menghanli
f6040e12bc Polish humanize strings for Caption preferences page
- Add intro for usage
- Update footer description on limitations
- Update the default caption size to medium
- Update the caption size and style dynamically

Bug: 218409087
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=CaptionAppearancePreferenceControllerTest

Change-Id: I6526250894cc6a3fd02e3d8c675280855b307a68
2022-02-11 23:02:57 +08:00
menghanli
a69d69e01c Polish humanize strings for Accessibility button & gesture page
Bug: 218409088
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=AccessibilityButtonFooterPreferenceControllerTest

Change-Id: I9fde58d0a438aae68f0c8457f894e6b06ef97f3b
2022-02-11 22:34:42 +08:00
PETER LIANG
f676ff2b74 Merge changes I502e52f6,Iabf58566,Ida773967,Ic6c48861,If9e5cc6e, ...
* changes:
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (15/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (14/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (13/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (12/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (11/n).
  New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (10/n).
2022-02-11 13:42:55 +00:00
Qi Cao
68d6c80a12 Merge "Made following changes to Settings:" 2022-02-10 22:52:53 +00:00
Peter_Liang
696fc420f4 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (15/n).
- Link-up between the ResetPreference and the HighTextContrastPreference.

Bug: 211503117
Test: atest HighTextContrastPreferenceControllerTest
Change-Id: I502e52f6a14243c19a707c91b0b5ab5dd163433a
2022-02-10 20:59:48 +08:00
Peter_Liang
618508c0c4 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (14/n).
- Link-up between the ResetPreference and the FontWeightAdjustmentPreference.

Bug: 211503117
Test: atest FontWeightAdjustmentPreferenceControllerTest
Change-Id: Iabf585660ff2c67f063198391bd68724190ba54d
2022-02-10 20:59:48 +08:00
Peter_Liang
f71050b515 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (13/n).
- Add the ResetPreference for controlling all preferences state in the text and reading options page.
1) Create a new interface ResetStateListener for the other preferences.

- Link-up between the reset, font size, and display size preferences.

Bug: 211503117
Test: make RunSettingsRoboTests ROBOTEST_FILTER=PreviewSizeSeekBarControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=TextReadingResetControllerTest
Change-Id: Ida773967834e32737b1daac885a2dd71189d32c8
2022-02-10 20:59:48 +08:00
Peter_Liang
edb52508d3 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (12/n).
- Link-up between the preview, font size, and display size preferences.
- Add the preview preference and entry.

Bug: 211503117
Test: make RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreviewControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreviewPreferenceTest
Change-Id: Ic6c48861a0051670fd78b13dca5488711de30cb8
2022-02-10 20:59:41 +08:00
Peter_Liang
0eee699438 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (11/n).
- Create the display size LabeledSeekBarPreference and add the entry
1) It's integrated with the system display density configurations.
2) Create the new DisplaySizeData component to store the configurations related to the display size features.

Bug: 211503117
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DisplaySizeDataTest
Change-Id: If9e5cc6e2ff2c4f530634e39eb3cddd9e275bc03
2022-02-10 16:10:17 +08:00
Peter_Liang
4681ef2b47 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (10/n).
- Create the font size LabeledSeekBarPreference and add the entry
1) It's integrated with the system font scale configurations.
2) Create the new PreviewSizeSeekBarController component for controlling the LabeledSeekBarPreference of the display/font size.
3) Create the new PreviewSizeData component to store the configurations related to the display/font size features.

Bug: 211503117
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FontSizeDataTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=PreviewSizeSeekBarControllerTest

Change-Id: I0c1cf6d0425c5c8b61cc8ed0c9fedadf7a65bd27
2022-02-10 16:09:55 +08:00
Kaiqiang Wang
92827d0066 Merge "Add switch preference for Audio Description." 2022-02-10 07:17:49 +00:00
Qi Cao
17ff2b25a5 Made following changes to Settings:
- Moved the Voice Input setting from Digital assistant app to Languages & input.
- Bundled Voice Input and Text-to-speech settings together under Speech
  category.

Bug: 218609449

Test: refactoring CL. Existing unit tests still pass.
Change-Id: I3107a410ed35685f5f1081cbe448b105b5c79c24
2022-02-09 19:31:08 +00:00
Jonathan Scott
a2781721e2 Merge "Allow overriding of strings referenced in XML files." 2022-02-09 10:48:09 +00:00
Kaiqiang Wang
6a23595bb9 Add switch preference for Audio Description.
Preview: https://screenshot.googleplex.com/AXMFpGPPGPPBzXG

Bug: 214634651i
Test: Local flash and test
Test: atest SettingsRoboTests:AudioDescriptionPreferenceControllerTest

Change-Id: Ice2e2bc8ec4e77aba0cd486f854254009b91e541
2022-02-09 10:50:28 +01:00
Yanli Wan
2dd111b3c3 Update financed device info screen
Bug: 217375582
Test: manual
Test: m RunSettingsRoboTests ROBOTEST_FILTER=EnterprisePrivacySettingsTest
Test: m RunSettingsRoboTests ROBOTEST_FILTER=PrivacySettingsEnterprisePreferenceTest
Test: m RunSettingsRoboTests ROBOTEST_FILTER=PrivacySettingsFinancedPreferenceTest
Change-Id: Ie0045c7f97a331640209efd1118d841eb0ab1b6f
2022-02-07 16:58:26 -08:00
Jonathan Scott
269f97d960 Allow overriding of strings referenced in XML files.
Test: manual
Bug: 188414370
Change-Id: Ice45b1808530c14c4efff16795cac7b2cb81516e
2022-02-07 21:00:05 +00:00
Xinyi Zhou
3adae773b6 Add Fast Pair saved devices settings preference
Test: Built and flashed on device, verified UI manually.
Bug: 203579197
Change-Id: I8e9563083dd9ed6a8badc6e2536cf94fc635525b
2022-02-02 21:35:53 +00:00
Darrell Shi
547416749e Settings for timeout to user 0 when docked.
Test: atest SettingsRoboTests:TimeoutToUserZeroSettingsTest
Test: atest SettingsRoboTests:TimeoutToUserZeroPreferenceControllerTest
Test: manually on device, video: http://shortn/_elZS1CdDtE
Bug: 213906356
Change-Id: I519345cdf44eaf452e092adee78ccf9d79130d33
2022-02-02 06:31:51 +00:00
Nate Myren
2f1fec89a0 Merge "Create PrivacyControls page in settings" 2022-01-31 22:43:04 +00:00