Commit Graph

25598 Commits

Author SHA1 Message Date
TreeHugger Robot
835564658b Merge "Add primary switch for vibration settings screen" 2022-01-19 16:07:04 +00:00
Lucas Silva
a2cfc6a4b0 Merge "Rewrite dream settings." 2022-01-19 15:03:40 +00:00
Lais Andrade
8919e0ee50 Add primary switch for vibration settings screen
This re-lands commit fd54fc34c6.

Add primary switch that updates the VIBRATE_ON user setting. Update all settings in this page to be disabled when this main toggle is
off.

Bug: 30028435
Test: VibrationMainSwitchPreferenceControllerTest
Reason for revert: Re-landing change with fixed tests
Change-Id: If9219e3d81dd698f47219c80cac10b079b63e45d
2022-01-19 14:40:18 +00:00
tom hsu
33f2096fea [Panlingual] Adds a filter of application for per apps locale change.
- Settings -> System -> app language -> app languages
   Use this filter to only show apps allowed to change the locale.
 - Settings -> Apps -> all apps -> any one of app -> language
   Use this filter to only show the language preference of app allowed to change the locale.
Bug: 210935436
Test: atest pass.
Test: local test.
Change-Id: I2f8a0815dae68392e11882ad9e1e4945492efdba
2022-01-19 09:06:50 +00:00
Peter_Liang
44a275dd8f New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (6/n).
- Create new preview preference.
1) It will be integrated with TextReadingPreferenceFragment, and sub
previews layouts like app launchers, conversation messages, and mail
content.

Bug: 211503117
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreviewPreferenceTest
Change-Id: I2d82d58438ee3f96c5a8dbb1809a0d6bdf3a00a2
2022-01-19 05:42:56 +00:00
TreeHugger Robot
5cdebd798f Merge "Revert "Add primary switch for vibration settings screen"" 2022-01-19 05:03:10 +00:00
Menghan Li
7350cc3749 Merge "Apply dynamic color for accessibility quick settings tooltips" 2022-01-19 03:46:43 +00:00
Tsung-Mao Fang
47875a5dff Revert "Add primary switch for vibration settings screen"
This reverts commit fd54fc34c6.

Reason for revert: b/215275738

Change-Id: I93612df6493a2a4184a98b3f049e23aa888095f2
2022-01-19 03:40:40 +00:00
Joshua Mccloskey
d1d76705de Merge "Added lottie animations for udfps side/tip" 2022-01-19 03:31:25 +00:00
menghanli
68587a2177 Apply dynamic color for accessibility quick settings tooltips
Bug: 210353709
Test: Manual test by different theme color
Change-Id: If4e9456ea04b44a80c7e9b2bc52aeae770bd8381
2022-01-19 10:29:11 +08:00
TreeHugger Robot
57c8c2e3bf Merge "Add primary switch for vibration settings screen" 2022-01-18 23:45:19 +00:00
Lais Andrade
fd54fc34c6 Add primary switch for vibration settings screen
Add primary switch that updates the VIBRATE_ON user setting.

Update all settings in this page to be disabled when this main toggle is
off.

Bug: 30028435
Test: VibrationMainSwitchPreferenceControllerTest
Change-Id: I752ca3b914c46678a1347034c5b6cf24fd40cc13
2022-01-18 22:31:30 +00:00
Lais Andrade
6b2e2e4cbb Merge "Introduce alarm and media vibration intensity settings" 2022-01-18 17:37:31 +00:00
Lucas Silva
38d0a7ca91 Rewrite dream settings.
The available dreams will now be shown in a grid, with a preview button
at the bottom.

Screenshot (white placeholder image used):
http://screen/6pe6EoACPoQN8TZ.png
http://screen/4nR6Wg5pN7pL6Wb.png

Phone (single column layout):
http://screen/4WFqzZR8Yf9H3VZ.png

Colors and margins will be finalized once final mocks are done.

Bug: 207681076
Bug: 214250590
Test: locally on device
Change-Id: Ie68bdc60e74e72dc3c3cee3f1ffd40f5613109b9
2022-01-18 16:06:34 +00:00
Lais Andrade
eaaf5331d6 Introduce alarm and media vibration intensity settings
Introduce toggles and sliders to configure the alarm and media
vibrations in the "Vibration & haptics" settings app.

Also update the multiple intensities configuration flag into a integer,
where the device can specify how many distinct levels are supported.
Follow existing implementation to map the intensities to higher setting
values.

Bug: 198346559
Bug: 207477604
Test: [Alarm|Media]Vibration[Intensity|Toggle]PreferenceControllerTest
Change-Id: Ie3d570b72ba1229e613ecf0c45fac81233529e32
2022-01-18 16:03:01 +00:00
PETER LIANG
0bcd9d1b20 Merge "New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (5/n)." 2022-01-17 14:44:14 +00:00
Bonian Chen
47096af791 Merge "[Settings] SIM colors are referenced by getIntArray() within source code" 2022-01-17 07:53:31 +00:00
Bonian Chen
0aad71968a Merge "[Settings] Rollback the text break hyphen strategy" 2022-01-17 07:16:49 +00:00
Peter_Liang
4cf3e8199e New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (5/n).
- Create the app grid preview layout xml.
1) To avoid being large patch size, the preview component will be separated into sub patches, this patch would be one layout of all previews.
2) The layout will be integrated with the TextReadingPreviewPreference and TextReadingPreferenceFragment in the next patches.

Bug: 211503117
Test: make
Change-Id: I5e9048ce4d6f07ac8c1a1bc77d19e6ceb536da49
2022-01-17 05:05:49 +00:00
TreeHugger Robot
b0154297f9 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-15 19:45:52 +00:00
TreeHugger Robot
c236f36c26 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-15 19:43:56 +00:00
Daniel Hsieh
0c229fdb4d Merge "Support following typing focus in window mode [3/n]." 2022-01-15 15:18:46 +00:00
Julia Reynolds
3e7cff024e Fix notif log header overlap
By matching it to notification history

Test: with low screen density and large text
Fixes: 209635125
Change-Id: I8e4334b7ed0585986d4a38b4877ba8c23458e8a9
2022-01-14 14:43:24 -05:00
TreeHugger Robot
572b59c465 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2022-01-14 18:09:51 +00:00
TreeHugger Robot
87e5157b5a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2022-01-14 18:09:47 +00:00
Bonian Chen
b3ebad4e1c [Settings] Rollback the text break hyphen strategy
Text in usage side label was set to normal when making a design.
However, the default configuration got changed since Android Q which applied to all TextView.
Therefore, add it back to maintain original behaviour.

Bug: 185129745
Change-Id: I351f8e08cc9ba6e0d301e510ee10b6be890b0059
Test: build pass
2022-01-14 12:43:00 +00:00
Xinyi Zhou
a099e411a7 Merge "Add Fast Pair to System Settings" 2022-01-14 10:56:13 +00:00
Bill Yi
0eab9c02b9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I962c318f41adcf180b885f2052ce0ec4952edfb6
2022-01-14 09:22:25 +00:00
Bill Yi
a6f38c19f8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib7868c5698aef46813818165545a388552033564
2022-01-14 09:18:54 +00:00
Bill Yi
c136babec6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4cdf36b3dc175f76495a667e1dba7711acfff320
2022-01-14 09:14:49 +00:00
Bill Yi
9d56130c5e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie7fde007b60291d37ac3283c0037c3717b2798be
2022-01-14 09:11:12 +00:00
Bill Yi
3bf676d7ce Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic57de1e9085d2e5ebc2a4eaaa38bdcbc1af70090
2022-01-14 09:09:42 +00:00
Bill Yi
773b2ab9c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1f5e527ab2fe26cb1cfba41e8921926377d1050a
2022-01-14 09:08:04 +00:00
Joshua Mccloskey
0902b44744 Added lottie animations for udfps side/tip
Bug: 209807883
Test: Verified animations show for multiple devices.
Change-Id: Ic63a0eca226309b92aa64cb4f80791ef179b8154
2022-01-14 07:30:08 +00:00
Xinyi Zhou
7871ccff33 Add Fast Pair to System Settings
Test: manual - took a screen capture https://photos.app.goo.gl/YgkVkAqxib4DwFs49 unit tests passed.
Bug: 203579197

Change-Id: Ie15ede111f7cdd1fc635fb9c475fe210d3f7f91b
2022-01-13 23:26:35 -08:00
Daniel Hsieh
6f4fb88538 Support following typing focus in window mode [3/n].
There are 3 milestones in this feature.
1. Refactor the callbacks for Accessibility in WindowManagerInternal.
2. Implement this feature in such new architecture.
3. Implement the setting choice in preference page.

This CL is for the 3rd milestone.

We add a preference key "magnification_follow_typing" to access and
update the ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED value
which controls its corresponding preference page UI.

Bug: 194668976
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
	MagnificationFollowTypingPreferenceControllerTest
	ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Ib2602c997a535c1acca6a7ddd7bb2c25921f9280
2022-01-14 07:11:05 +00:00
Bonian Chen
e936ffecf4 [Settings] SIM colors are referenced by getIntArray() within source code
SIM colors are referenced by getIntArray() within source code

Bug: 211956916
Test: build pass
Change-Id: Idefac365e750e454a2c3c98b2b4f17acbe143820
2022-01-14 05:56:35 +00:00
Bonian Chen
f2e91f826b [Settings] SIM colors are referenced by getIntArray() within source code
SIM colors are referenced by getIntArray() within source code

Bug: 211956916
Test: build pass
Change-Id: Idefac365e750e454a2c3c98b2b4f17acbe143820
2022-01-14 05:52:13 +00:00
Bill Yi
0179fc901f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibe78ecd75a57eabe935572964ce4f941dcbe18d7
2022-01-14 03:46:33 +00:00
Eric Biggers
d8639ee7d0 Merge changes from topic "remove-fde"
* changes:
  Remove FDE support from accessibility settings
  Rename crypt_keeper_* strings that are still used
  Remove CryptKeeperSettings
  Remove CryptKeeper
2022-01-13 22:17:13 +00:00
Nate Myren
232962c3f2 Create PrivacyControls page in settings
Current strings are WIP, no entry point. Also updates a few remaining
EXTRA_PERMISSION lines to EXTRA_PERMISSION_GROUP

Test: build
Bug: 194816787
Change-Id: I347b3011e1f51bd11dca92471ba8ba77e2d758e5
2022-01-13 12:24:21 -08:00
Jimmy Chen
d0e27f8dbd Merge "wifi: add Trust-On-First-Use option for CA" 2022-01-13 15:42:46 +00:00
PETER LIANG
e26c0ec801 Merge "New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (4/n)." 2022-01-13 14:57:06 +00:00
Peter_Liang
93668d6002 New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (4/n).
- Extending the interface of AppGridView to be flexible. It will be used
in the TextReadingPreferenceFragment.
  1. Add a new attribute "appCounts" into the view.
  2. Default app counts as 6 if not set the attribute.

Bug: 211503117
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER=AppGridViewTest
Change-Id: I94a5f1d037551f6faba0300a176feb11fba1f203
2022-01-13 18:56:16 +08:00
TreeHugger Robot
e9ca51918c Merge "USB: move help config flag to FW" 2022-01-13 08:38:44 +00:00
Lais Andrade
54ed73ae6c Merge "Update Settings to use intensity settings as main preference keys" 2022-01-13 02:45:41 +00:00
TreeHugger Robot
a1c550650b Merge "Implement Tooltips widget for QS panel" 2022-01-13 00:11:03 +00:00
Lais Andrade
141b5bb3bc Update Settings to use intensity settings as main preference keys
Updating the Settings app to allow setting the value off for key
HAPTIC_FEEDBACK_INTENSITY. This setting state is also copied onto
HAPTIC_FEEDBACK_ENABLED setting, so both should be in sync after this
change.

Similar logic is applied between RING_VIBRATION_INTENSITY and
VIBRATE_WHEN_RINGING.

This will not disable the hardware feedback since that one is controlled
by a separate setting key now.

The "vibrate for calls" was also removed and the single toggle for
"vibrate first then ring gradually" was moved into the "Vibration &
haptics" page.

Bug: 185351540
Test: [HapticFeedback|NotificationVibration|RingVibration][Intensity|Toggle]PreferenceControllerTest
      and manual testing of the AOSP settings app
Change-Id: I9c94cef331a1500a1272a601ba32667ca995ddab
2022-01-12 22:59:29 +00:00
Ronish Kalia
a4da2c2121 Merge "Update settings string" 2022-01-12 17:44:53 +00:00
Oli Lan
13adae672e Merge "Add config flag in Settings to control whether restricted profiles are offered." 2022-01-12 17:40:09 +00:00