Commit Graph

4431 Commits

Author SHA1 Message Date
Stanley Wang
b451e8f115 Fix the ClassCastException of ChannelNotificationSettings
Update the LayoutPreference to SettingsMainSwitchPreference.

Fix: 177907827
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I7ce320b8e38432faf685914bf91cf1daa62b2687
2021-01-22 03:24:33 +00:00
Arc Wang
02c9b032cd Show "Safety & emergency" in Settings search result
Add android:key to PreferenceScreen of EmergencyDashboardFragment.

Bug: 177426215
Test: manual
Change-Id: I9ad059a1dd051cb1ca0c038fd6c47b739852c54d
2021-01-21 07:24:47 +00:00
Fan Zhang
e81091175e Default emergency gesture setting On.
And a few drive-by fixes:
* Move all emergency gesture fragments and controllers to emergency
  package for better code colocation.
* Remove the placeholder video preference from emergency_gesture_settings.xml

Bug: 178009196
Test: reran robotests
Change-Id: Ifcb591e7ab8e5e5494c480cbbe9410c08c296f8e
2021-01-20 13:08:04 -08:00
Ben Chung
1c7eba6660 Merge "Add audio adjustment fragment in a11y settings" 2021-01-20 08:49:35 +00:00
TreeHugger Robot
119bbbd308 Merge "[Provider Model] Add Fix connectivity toggle to Internet Settings" 2021-01-19 07:28:18 +00:00
Weng Su
598934d645 [Provider Model] Add Fix connectivity toggle to Internet Settings
- Add Fix connectivity toggle in menu item

- Show "Resetting your internet..." when recovering

- Screenshot:
  https://screenshot.googleplex.com/BPyRADfNUoPE8Dc

Bug: 172297799
Test: manual test
- make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest

Change-Id: I27594d24659ca281e224f86accc20d49514d5001
2021-01-19 06:08:53 +00:00
Bonian Chen
26552500f6 [Settings] Remaining part of Cross SIM calling (backup calling)
1. Change the wording
2. Add a list of summary within Calls and SMSs UI

Bug: 174012397
Test: manual
Change-Id: I6dde0cea9c1386029377b3ea2682ed8b977f9427
2021-01-18 20:41:39 +08:00
Yanting Yang
45b8181f46 Refine behaviors of new app page
- Make the new app page unsearchable when the silky home is disable.
- Add Special app access back since the move action is not confirmed.
- Update preference keys to fix the search conflict with old app page.

Bug: 174964405
Test: robotest & visual on Settings Search
Change-Id: If92b084170ef0694d034ddde786f333b4b576572
2021-01-15 22:42:37 +08:00
Yanting Yang
d4ed8b2f81 Merge "Create a new apps page for silky home" 2021-01-15 10:57:58 +00:00
TreeHugger Robot
f10d5d29bb Merge "Fix crash when enter Special Access settings" 2021-01-15 09:23:47 +00:00
Weng Su
7686bf26dc Merge "[Provider Model] View airplane mode networks button" 2021-01-15 08:32:59 +00:00
Yanting Yang
92fce8ede4 Create a new apps page for silky home
- Change recent apps to the list view.
- Remove Conversations, Notifications and Permission manager.
- Remove Wireless emergency alerts and Special app access.
- Show App info preference if there's no recent apps.
- Show general category with recent apps.
- Use this page as the new apps entry on homepage for silky home.
- Make old apps page unsearchable when silky home is enabled.
- Exported new apps page in AndroidManifest.

Bug: 168166015
Bug: 174964405
Test: robotest & visual
Change-Id: I50d35a9d4723612214fce45a9e129fc175bc6831
2021-01-15 16:16:24 +08:00
Edgar Wang
1b809ea448 Fix crash when enter Special Access settings
- Update SpecialAccess to use AppPreference

Bug: 177631064
Test: manual & robotest
Change-Id: I3974eb189deda8ba08ee31b80739b9784bec2c6c
2021-01-15 15:45:38 +08:00
Weng Su
ee414fdc81 [Provider Model] View airplane mode networks button
- Airplane mode message
  - WiFi Disable: “Airplane mode is on”
  - WiFi Enabled: “Viewing airplane mode networks”

- “View airplane mode networks” button
  - WiFi Disable: “View airplane mode networks”
  - WiFi Enabled: hide button

- Screenshot
  https://screenshot.googleplex.com/7PuKwaJMLpiDdKh

Bug: 177155647
Test: manual test
- atest ViewAirplaneModeNetworksLayoutPreferenceControllerTest
- make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest

Change-Id: I3222cb04a66d07681709cc95b729b5ecdf999298
2021-01-15 07:10:57 +00:00
Ben Chung
b6e03f21b9 Add audio adjustment fragment in a11y settings
Accessibility settings audio and on-screen text category restructure,
add audio adjustment fragment for related accessibility services.

Bug: 174829936
Test: atest AudioAdjustmentFragmentTest, atest AccessibilitySettingsTest
Change-Id: I8b4397d042a0e7ce1242f95319a6a25cc45f38bb
2021-01-15 06:20:18 +00:00
TreeHugger Robot
685be3a19a Merge "Rearrange Sound page." 2021-01-15 05:15:54 +00:00
Yanting Yang
6ee00431e7 Merge "Move preferences to Notification page" 2021-01-15 04:55:32 +00:00
Yi-Ling Chuang
2eba9955a7 Rearrange Sound page.
- Reorder the items.
- Remove dividers.
- Expose items in Advanced.

Bug: 174964721
Test: View Sound page.
Change-Id: I7a1b52af50a35a6afebfbce312c352bc1b7b456e
2021-01-15 11:43:47 +08:00
Yanting Yang
298991c498 Move preferences to Notification page
Based on the Android S design,
- Fork configure_notification_settings_v2 for dev.
- Move "Conversations" from Apps to Notification above "Bubbles".
- Move "Wireless emergency alerts" from Apps to Notifications.

Bug: 174964405
Test: robotest & visual with turning on/off silky home

Change-Id: Ib8e19956ed7717924423eb632d4546314a34d549
2021-01-15 00:28:39 +08:00
Stanley Wang
b87ddba6cd Use SettingsLib's MainSwitchBar to replace SwitchBar in Settings.
To log Settings metrics, the MainSwitch extends MainSwitchBar and
replace the SwitchBar in SettingsActivity.

Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui

Change-Id: I3add3702e9058ad9192b5172c7cf0e2ccfb55a70
2021-01-14 22:48:31 +08:00
Zoey Chen
01824b9e57 Merge "[Provider Model] Use correct icon for Calls & SMS" 2021-01-14 03:36:19 +00:00
TreeHugger Robot
877ff557fa Merge "Correct the naming for homepage preference" 2021-01-13 16:53:57 +00:00
TreeHugger Robot
9dbab5a63a Merge "Add toggle for Prevent Ringing setting in Gesture page." 2021-01-13 16:50:36 +00:00
Tsung-Mao Fang
1b849dbe2a Correct the naming for homepage preference
- Have a consistent naming rule for homepage.
- Make the font family of title can be modified by system.

Test: See the screen, and font family of title is correct.
Bug: 177213699
Change-Id: I8e3ebbf06a8c1849956100c8d2825f98ad251b37
2021-01-13 23:14:58 +08:00
Yi-Ling Chuang
6735292dab Add toggle for Prevent Ringing setting in Gesture page.
- Replace Preference with PrimarySwitchPreference.

Fixes: 177408128
Test: open gesture page
Change-Id: I25079632459b3457995792347f4904c25374d47d
2021-01-13 23:11:26 +08:00
Zoey Chen
48052e5069 [Provider Model] Use correct icon for Calls & SMS
Bug: 172053880
Test: manual
Change-Id: I48219042f5dca7d5760da59a7911d46ed9029138
2021-01-13 20:16:43 +08:00
Ben Chung
613ad3f88b Merge "Accessibility settings interaction controls category restructure, add system controls fragment for related accessibility services." 2021-01-13 11:19:57 +00:00
Ben Chung
29ace16b35 Accessibility settings interaction controls category restructure, add system controls fragment for related accessibility services.
Bug: 174829936
Test: atest SystemControlsFragmentTest, atest AccessibilitySettingsTest
Change-Id: I609207c8c7bf0e5cb4beda0d5c578669bcd005a4
2021-01-13 16:29:44 +08:00
Stanley Wang
57098f4589 Use SettingsLib's MainSwitchPreference to replace the Switches which use
LayoutPreference.

Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I4588d1fc3004970b174e7c5c5d1aa7745f774985
2021-01-12 23:12:01 +08:00
TreeHugger Robot
adcd4f165d Merge "Add inline toggle for Prevent Ringing gesture." 2021-01-12 15:03:32 +00:00
TreeHugger Robot
3180917a1d Merge "Refine the preference layout for homepage" 2021-01-12 09:01:54 +00:00
Ben Chung
f27d3c33c4 Merge "Accessibility settings interaction controls category restructure, add tap assistance fragment for related accessibility services." 2021-01-12 04:53:55 +00:00
Yi-Ling Chuang
b058221b62 Add inline toggle for Prevent Ringing gesture.
- Fork sound_settings_v2 for dev.
- Replace Preference with PrimarySwitchPreference for the Prevent
Ringing entry.
- When the toggle is on, only show the status text without the on/off
info.
- Remove unused codes.

Bug: 174964721
Test: robotests
Change-Id: I990f5c778436c8058d4a5953c7f15a9a7eb580d8
2021-01-12 12:48:41 +08:00
Tsung-Mao Fang
6c921e5b6c Refine the preference layout for homepage
Based on the Android S design, we update the layout
for homepage.

The scope covers the layout of preference and icons itself.

- Change the icon size for IA items.
- Change the layout spacing of preference.
- Change the margin or search bar.

Test: See the screen and confirm with UX
Bug: 177213699
Change-Id: I985966fdf39a5989d51991aa3c06ea5fd31e8fe2
2021-01-12 12:42:44 +08:00
TreeHugger Robot
bd4b0687a6 Merge "Remove some emergency setting items scattered in settings" 2021-01-12 02:06:33 +00:00
Fan Zhang
3440b9529f Remove some emergency setting items scattered in settings
All these items are displayed in the new Safety & emergency page.

Bug: 175158310
Test: manual
Change-Id: I3e323f2452db6d62aa98c79835c964c1c06a06cf
2021-01-11 15:28:35 -08:00
Fan Zhang
1447ed1fa5 Merge "Add android:order to all emergency setting items" 2021-01-11 16:52:11 +00:00
Ben Chung
dfe1977044 Accessibility settings interaction controls category restructure, add tap assistance fragment for related accessibility services.
Bug: 174829936
Test: atest TapAssistanceFragmentTest, atest AccessibilitySettingsTest
Change-Id: I39c4eba8ec807248eb11371fab2466cf7d7553ef
2021-01-11 17:21:14 +08:00
Yanting Yang
e18dc24d18 Update wallpaper icon for silky home
Bug: 168166015
Test: robotest & visual
Change-Id: I7ff26037a6efa89fb3be5d71037721d3c21c634f
2021-01-11 10:24:10 +08:00
Fan Zhang
78cbca8cbd Add android:order to all emergency setting items
Each item has a gap of 100 to allow external setting injection choose
where to display.

Bug: 175158310
Test: manual
Change-Id: Icf150ad8fc956c3db391251382b08b5155034a8b
2021-01-08 23:56:33 +00:00
Edgar Wang
d5e9dbb878 Merge "Make Autofill category in developer options can not be search" 2021-01-08 12:47:29 +00:00
Julia Reynolds
60633f6253 Merge "Allow notification filtering per listener." 2021-01-08 03:14:52 +00:00
TreeHugger Robot
bd56b6ba62 Merge "Add a few native setting items to safety page" 2021-01-07 22:59:10 +00:00
TreeHugger Robot
76c649968f Merge "Add a empty page to host Safety/emergency settings" 2021-01-07 22:39:06 +00:00
Fan Zhang
e98055b960 Add a few native setting items to safety page
* Emergency info
* Emergency sos
* WEA

The pages are not removed from their old place yet, because the new
safety page is not yet visible to users.

https://screenshot.googleplex.com/92VGQxR4ocuiutj.png

Bug: 175158310
Test: manual
Change-Id: I0484f1724e626c8de822460844b5a4c93b7ff815
2021-01-07 20:28:25 +00:00
Fan Zhang
9b1fb77b54 Add a empty page to host Safety/emergency settings
The page will eventually be displayed on settings root. It's currently
disabled to avoid QA/dogfood confusion, as the page is pretty empty at
this point.

Bug: 175158310
Test: manual only. Skipped robolectric because the page is pretty empty.
      Will add more test as we build business logic.
Change-Id: I80f193f6e90b89ab0c37d0f23f7174e4ba86c091
2021-01-07 10:56:32 -08:00
Julia Reynolds
eb2b36a5e2 Allow notification filtering per listener.
Test: atest
Bug: 173052211
Change-Id: I54c740e9755f18339c59aad4f1f5aecd8c734892
2021-01-07 10:01:08 -05:00
Tsung-Mao Fang
d159567fc4 Add toggle for auto brightness feature
- Use the primary toggle preference.
- Remove the empty subtext.

Test: See toggle preference on auto brightness feature
Bug: 174964139
Change-Id: Ic5105730c7a2075d61cdde42395e41712bb468a7
2021-01-07 15:09:31 +08:00
Edgar Wang
085d36f97d Make Autofill category in developer options can not be search
Bug: 171510328
Change-Id: I388c02d6a8d3c1caa9d2325dc89fb9130291d0a8
Test: manual
2021-01-07 04:26:36 +00:00
Ben Chung
cfedc19ab9 Merge "Accessibility settings display category restructure, add text and display fragment for related accessibility services." 2021-01-07 01:28:17 +00:00