Commit Graph

3639 Commits

Author SHA1 Message Date
Menghan Li
506b40078e Merge "Create settings for window magnification (2/n)" 2019-12-20 03:35:38 +00:00
Mehdi Alizadeh
4e561fb9cb Merge changes Id2732a94,Id8c01bf0
* changes:
  Adds a new activity for Gesture Navigation settings
  Adds BackGestureIndicatorView to animate left and right insets
2019-12-20 02:54:55 +00:00
menghanli
756104417a Create settings for window magnification (2/n)
Provide a setting for new Magnify area feature and joystick controller

Bug: 146019459
Bug: 146473544
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationModePreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationWindowControlPreferenceControllerTest
Test: make RunSettingsRoboTests2
Change-Id: Ia32fa073c59ad304e9ef9eb530ba37dd24c2f2f6
2019-12-19 18:08:10 +08:00
Kevin Chang
4fc76cb17d Merge "Support accessibility shorcut secondary action (3/n)" 2019-12-18 03:17:34 +00:00
Kevin Chang
e65ed3ebb0 Support accessibility shorcut secondary action (3/n)
Combine the UI with both shortcut preference and edit dialog.

This CL only contains UI and related connections.
Related logic implementation will be added in next CL.

Since the drawable resources are not ready, put the mock
drawables as temporary. Once the drawbles are provided by UX,
create a CL to replace the related resources.

Bug: 142530063
Bug: 142531156
Test: Maunal
Change-Id: I21e4c6e99c2d1731c15d7c9553594160b8809eb5
2019-12-18 09:25:16 +08:00
Mehdi Alizadeh
3f22797899 Adds BackGestureIndicatorView to animate left and right insets
Bug: 146004827
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BackGestureIndicatorViewTest

Change-Id: Id8c01bf047138a1721237f368f269c6def964515
2019-12-17 14:14:23 -08:00
Mehdi Alizadeh
054d2a555d Extends SeekBarPreference to add labels and callbacks
Adds title, left and right labels to the SeekBarPreference. Also adds
a listener for the seek stop event.

Bug: 146004827
Test: make RunSettingsRoboTests ROBOTEST_FILTER=GestureNavigationSeekBarPreferenceTest

Change-Id: I0ecca4e92cfc52abb8bb975b710f72f75ed5b50d
2019-12-17 14:14:23 -08:00
Automerger Merge Worker
5921312f43 Merge "Add feature provider for face unlock" into qt-qpr1-dev am: 8472279900 am: 619d8b3418
Change-Id: I61ae5ff018d97c84fcdcccaefa1159d0ee3716d0
2019-12-17 05:51:13 +00:00
Automerger Merge Worker
619d8b3418 Merge "Add feature provider for face unlock" into qt-qpr1-dev am: 8472279900
Change-Id: I3334a10c25af3b5a8ed125495c7012fe46516485
2019-12-17 05:38:36 +00:00
Kevin Chyn
15f241b296 Add feature provider for face unlock
Bug: 146085546

Test: Builds
Change-Id: If5c7d57c12a3f679d81cee22fb94a53fce1de29a
2019-12-16 18:19:20 -08:00
tim peng
8e25a3a658 Merge "Apply new preference and controller for Bluetooth developer option" 2019-12-16 01:24:53 +00:00
Automerger Merge Worker
cc63645bb2 Merge "[RadioInfo] Remove from Settings (into Telephony)" am: 0aac2dfab6 am: cfb6e23b21
Change-Id: I8c589476f6f365c2695bbacb026beebc4ea1c8db
2019-12-14 01:04:19 +00:00
Bonian Chen
be5216cacb [RadioInfo] Remove from Settings (into Telephony)
Moving RadioInfo and BandMode to Telephony app.

Bug: 123598192
Test: Manual test
Change-Id: Id32982fe3e6fbf686fafe94ecc6c8549c7a5243c
Merged-In: Id62a2bf4b2c44efcd48319734d1cab6ed969ee06
2019-12-13 07:17:53 +00:00
TreeHugger Robot
0751e29195 Merge "Change tab text to sentense text" 2019-12-11 08:50:25 +00:00
Raff Tsai
c75aea1552 Change tab text to sentense text
- Also remove duplicated string

Bug: 141601408
Test: manual
Change-Id: I840bdf4c12ca6d815d7c54092aa32a40c80d95e0
2019-12-11 15:38:12 +08:00
timhypeng
548e927ed9 Apply new preference and controller for Bluetooth developer option
- Modify XML to apply new preferences and controllers
- Remove old controller file
- Move codec optional codec to the uppler layer

Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: Ia8fca4bc5b228592fdacad206e010bf0219282d4
2019-12-11 14:27:31 +08:00
Kevin Chang
8b6da6a5b1 Merge "Support accessibility shorcut secondary action (2/n)" 2019-12-11 05:38:46 +00:00
TreeHugger Robot
db4c10942b Merge "Let MasterSwitchPreference be restrictable" 2019-12-11 03:56:34 +00:00
Kevin Chang
21fd0e8afb Support accessibility shorcut secondary action (2/n)
Create a dialog that could let users choose their preferred accessibility
shortcut.

This CL only contains dialog layout and its utility methods.
Related logic implementation will be added in next CL.

Bug: 142531156
Test: Maunal
Change-Id: I7bfccea96cc47dd213b4d828499c10b290e24330
2019-12-11 10:46:01 +08:00
Zhen Zhang
43b882c4e2 Let MasterSwitchPreference be restrictable
Let MasterSwitchPreference be restrictable by extending RestrictedPreference.
This is a prerequisite CL for "Hotspot & Tethering" in "Network & Internet" settings screen to be a MasterSwtichPreference.
Also changed MasterSwitchPreferenceTest perse.

Bug: 145922022
Test: SettingsRoboTests except StorageItemPreferenceControllerTest which
fails before this CL.
Change-Id: I54fa59d7adfce5f564c178c0db334974dbabf059
2019-12-10 17:37:41 -08:00
PO HUNG CHEN
1ff95c6ef0 Merge "Show terms of service before install GSI/DSU" 2019-12-09 03:41:00 +00:00
Goven Liu
6226188c47 Merge "[Wi-Fi] Add multiple networks request case for adding Wi-Fi for apps feature." 2019-12-06 02:33:25 +00:00
Kevin Chang
5a71dd4411 Merge "Support accessibility shorcut secondary action (1/n)" 2019-12-06 01:52:28 +00:00
Automerger Merge Worker
835fa1fd59 Battery icon is too large am: b6b29c1af0
Change-Id: I799cccf2808289b8f080cfa339b3bb35bef2690a
2019-12-06 01:21:24 +00:00
TreeHugger Robot
c08f70b7dd Merge changes from topic "update_battery_icon" into qt-qpr1-dev
* changes:
  Sync dimen from SystemUI
  Battery icon is too large
2019-12-06 01:05:30 +00:00
govenliu
c45672be54 [Wi-Fi] Add multiple networks request case for adding Wi-Fi for apps feature.
Handle adding multiple networks case, add UI components and process saving flow.

Bug: 136472483
Test: Add unit test cases to test filterSavedNetworks API.
Change-Id: I222e2f8294793796e293de49acdb96ecd6a57b0d
2019-12-05 17:33:51 +08:00
Kevin Chang
92da08f7f2 Support accessibility shorcut secondary action (1/n)
Create a new preference that could let users enable accessibility
shortcut and choose which shortcut type they prefer to use.

This CL only contains preference layout and functions interfaces.
Functions implementation will be added in next CL.

Bug: 142530063
Test: Maunal, make RunSettingsRoboTests
Change-Id: I69e832638547cd3f38da2192f22c7e219bbcc018
2019-12-05 15:10:10 +08:00
PETER LIANG
617650b55e Merge "Support the rich content for accessibility service (1/n)" 2019-12-05 06:41:32 +00:00
Howard Chen
60acb519c0 Show terms of service before install GSI/DSU
Test: settings->developer option->debug::DSU Loader
Bug: 144248769
Change-Id: Id5fa7f88544191736eb0c5db6334fd367c1be426
2019-12-05 13:29:53 +08:00
Raff Tsai
99e1534bf6 Merge "Fix cannot see "see more" button in UI" am: 2dbc2db581 am: 1fdadc1125
am: ed870944d0

Change-Id: I4f1b7e4fb426397f43da8438d703b2ad860e7dbc
2019-12-04 20:30:30 -08:00
Raff Tsai
ed870944d0 Merge "Fix cannot see "see more" button in UI" am: 2dbc2db581
am: 1fdadc1125

Change-Id: I86c112f43556ca1dc345c0c36610a367a327bc18
2019-12-04 20:28:27 -08:00
Raff Tsai
28a6bcc729 Fix cannot see "see more" button in UI
Bug: 144546394
Test: Cts test
android.provider.cts.SettingsPanelTest#volumePanel_seeMoreButton_launchesIntoSettings

Change-Id: I786d62937e93abdaf96f89b03669302159d571a1
2019-12-05 11:09:49 +08:00
TreeHugger Robot
cecaa52ed9 Merge "Support installation of the new app source certificate" 2019-12-03 17:37:11 +00:00
TreeHugger Robot
feb51e20e6 Merge "Remove framelayout to make focus don't have duplicate action" 2019-12-03 05:46:38 +00:00
hughchen
23d04125b5 Remove framelayout to make focus don't have duplicate action
Fixes: 131128155
Test: Manual
Change-Id: Ifb96698007a2bfafb545dbc04f61343160a41ef7
2019-12-03 11:52:50 +08:00
Goven Liu
df1118d61c Merge "[Wi-Fi] Add one network request case for adding Wi-Fi for apps feature." 2019-11-29 03:28:05 +00:00
Tsung-Mao Fang
a641cdae50 Fix bottom zone is transparent in add network page
Override clipToPadding and clipToChildren attributes
to prevent view from overlapping problem.

Change-Id: I3493d80d89950545ea74b76e25c6f55069f83f5e
Fix: 145332638
Test: visual
2019-11-28 17:25:08 +08:00
govenliu
7b6b93b4f8 [Wi-Fi] Add one network request case for adding Wi-Fi for apps feature.
Handle adding one network case, add UI components and process saving/connecting flow.

Bug: 136472483
Test: Add unit test cases to test one network in list case and null list case, and also check if the SSID set correct or not.
Change-Id: I99f804a967575538c9dc3f1faabb2b507e92e558
2019-11-28 16:39:06 +08:00
Victor Hsieh
c8a1960cf4 Support installation of the new app source certificate
The new certificate can be installed from Settings ("Install a
certificate > App Source certificate").  The installation flow includes
a warning with user authorization to proceed, then a prompt for reboot
(now or later).

Installed certificate can be managed in "User credentials".  The name is
currently a hash of hex numbers.

Upon deletion, there will also be a promot for reboot (now or later).

Test: Only see the new setting entry if feature is enabled
Test: Install from Settings, see the expected file name in
      /data/misc/keysetore/user_0.  Reboot also works.
Test: Able to see the certificate in Settings after installed
Test: Able to delete the certificate, which triggers confirmation dialog
      to reboot.  Reboot works.
Test: add certificate, see dialog, "not now" / tapping elsewhere does
      nothing
Test: atest RestrictedEncryptionPreferenceControllerTest
Bug: 112038744

Change-Id: I7a4494ea0f243730df2212076588074d8774ae23
2019-11-27 07:59:22 -08:00
Peter_Liang
64f1374c64 Support the rich content for accessibility service (1/n)
Goal: 1. let third party developer can use html text that include from their local image file and
         animated image instead of only plain text to rich their content.
      2. Avoid malicious links made by third party developer

Action: 1. Add html, static text, and animated image preferences.
        2. Add android:AnimatedImageDrawable, and android:htmlDescription attributes.
        3. Fine-tune interface and integration
        4. Add custom tag filter

Bug: 136292241
Test: Maunal & make RunSettingsRoboTests
Change-Id: I82cd5319efb7faa1ff7e8354a279828fce5135b8
2019-11-27 20:42:39 +08:00
TreeHugger Robot
190860a35e Merge "Focus remains on the button after turning on/off" 2019-11-27 05:01:09 +00:00
Jay Aliomer
c6dec5780a Merge "Fix Master: Add settings for scheduling dark theme" 2019-11-26 15:44:20 +00:00
Beverly
a30cb1158f Focus remains on the button after turning on/off
Test: manually test talkback
Fixes: 145181672
Change-Id: I16ceb81dd686e4a18354dfd464c7683ba94df79d
2019-11-26 15:37:42 +00:00
TreeHugger Robot
66b82d06ab Merge "Add new bit per sample dialog layout for new Bluetooth developer option" 2019-11-26 10:44:04 +00:00
TreeHugger Robot
50eb686fbd Merge "Add new LDAC quality dialog layout for new Bluetooth developer option" 2019-11-26 09:39:26 +00:00
timhypeng
b6b29c1af0 Battery icon is too large
-sync layout from SystemUI

Bug: 141139595
Test: make -j42 RunSettingsRoboTests
Change-Id: I5e165e953682fcfdebf0d06475bb1abd171684d9
(cherry picked from commit c71f996da9)
Merged-In: I5e165e953682fcfdebf0d06475bb1abd171684d9
2019-11-26 12:35:22 +08:00
Jay Aliomer
a377b5c4aa Fix Master: Add settings for scheduling dark theme
Adding a settings page similar to night light for Dark theme. it will allow the user to schedule
dark mode from sunrise to sunset

Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.DarkUIPreferenceControllerTest" && \
make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.darkmode.DarkModeActivationPreferenceControllerTest" && \
make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.darkmode.DarkModeObserverTest" && \
make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.darkmode.DarkModeScheduleSelectorControllerTest"

Fixes: 141567787
Change-Id: Iee5d020ac6ea093be712a4f191d4601c9d4617fa
2019-11-25 18:03:29 -05:00
Preston O'Neal
a8ebfe6d75 Merge "Revert "Add settings for scheduling dark theme"" into qt-qpr1-dev am: a3e26f10f2
am: 1a67e3048e

Change-Id: Ice680ada896b5b0d954e7e4b0c6318a9adfd23d0
2019-11-24 04:57:03 -08:00
Jay Aliomer
c2302a3d93 Merge "Revert "Revert "Add settings for scheduling dark theme""" into qt-qpr1-dev
am: 26ce6885c9

Change-Id: If216838715772b9d45624e77213ec81f0c84bd60
2019-11-22 14:42:52 -08:00
Jay Aliomer
53ad4fedc6 Revert "Revert "Add settings for scheduling dark theme""
This reverts commit 50c0fa136c.

Reason for revert: Fixed the error which is code incompatibility
Test: run all settings tests
Change-Id: I8f05b50f8198c4b2565bb9b6f62ddda5029c8365
Merged-In: I8f05b50f8198c4b2565bb9b6f62ddda5029c8365
Bug: 141567787
2019-11-22 20:58:23 +00:00