Commit Graph

49379 Commits

Author SHA1 Message Date
wengsu
e205be9bd0 Clean up updateState()
1. It's to set preference always even no available Bluetooth device.
  2. Remove redundant code in if (numDevices == 0) {...} condition.

Bug: 123000252
Test: make -j56 RunSettingsRoboTests ROBOTEST_FILTER=MediaOutputPreferenceControllerTest
Change-Id: I9061428375f6097fde60498bf19eae2edafa5959
2019-01-19 18:01:20 +08:00
Christine Franks
7c7e0d4d7d Merge "Move color transform check to ColorDisplayManager" 2019-01-18 23:08:37 +00:00
Fan Zhang
b4491ef3ca [automerger skipped] Merge "Add Dynamic tiles" am: 15bf05f6fd am: 0d8ea3bfce
am: 3de14ebfa2 -s ours
am skip reason: change_id I3cdad9b6ceeba0df3e0e9db4607daffcc5cbdc8b with SHA1 a3a24be224 is in history

Change-Id: I2fe793b11c5a2e41c7c02dd1b5afadf0fafdf31d
2019-01-17 17:40:17 -08:00
Fan Zhang
3de14ebfa2 Merge "Add Dynamic tiles" am: 15bf05f6fd
am: 0d8ea3bfce

Change-Id: I081d9ce4018e6fb7d899655ddeb96c5a9c3eb649
2019-01-17 17:26:39 -08:00
Fan Zhang
0d8ea3bfce Merge "Add Dynamic tiles"
am: 15bf05f6fd

Change-Id: I0998725bc59e1d4f9b8afff388c2a9a3c680423c
2019-01-17 17:08:14 -08:00
Fan Zhang
15bf05f6fd Merge "Add Dynamic tiles" 2019-01-18 00:47:52 +00:00
Lucas Dupin
dbaa5459b8 Merge "Tap gesture settings" 2019-01-17 02:38:09 +00:00
Yiwei Zhang
b53ea0a3ad Merge "GUP: Add global switch for all apps" 2019-01-17 02:02:44 +00:00
Yiwei Zhang
15bb7944a5 GUP: Add global switch for all apps
Bug: 119221883
Test: make RunSettingsRoboTests
Change-Id: Iebf6c5eceb323d03332169eeb0a4a0d1f9c2c493
2019-01-17 09:56:46 +08:00
TreeHugger Robot
7332afe700 Merge "Settings for skip and silence gestures" 2019-01-17 01:35:30 +00:00
Cosmo Hsieh
d4e5f0b89e Merge "[Mac Randomization] Fix perference changing not work and wrong default value" 2019-01-17 00:47:00 +00:00
TreeHugger Robot
569b6a41ef Merge "New approach to override timeout max value" 2019-01-16 23:58:47 +00:00
TreeHugger Robot
f2c30062d3 Merge "Add the Data Saver preference to the Network & internet page" 2019-01-16 23:52:42 +00:00
Xiangyu/Malcolm Chen
4c62693cd0 Merge "Don't show hidden Cellular subscription in Settings." 2019-01-16 22:00:50 +00:00
Fan Zhang
69e4302d40 New approach to override timeout max value
- Revert "Allow OEM customizing max screen timeout value."
- Use separate timeout list for screen timeout and lock timeout.

This reverts commit f57f490aa6.

Fixes: 113346164
Test: manual

Change-Id: Ifbb054c232c47455ae82e3ed817f9c1e96f694cf
2019-01-16 13:59:10 -08:00
Beverly
d5428a5cd4 Settings for skip and silence gestures
Test: make RunSettingsRoboTests
Bug: 118388808
Change-Id: Ic906b42476283d245b423ef8842b6818cf7893a5
2019-01-16 15:37:47 -05:00
cosmohsieh
82588849ac [Mac Randomization] Fix perference changing not work and wrong default
value

1. Mac randomization setting would not effect, until reconnecting the network.
Disconnect it and WiFi will soonly connect back.
2. Mac randomization setting of adding network page is default to
"device MAC", correcting to "Randomization"

Bug: 123123123
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I91f8670ddf81aea89354c4cc9c9a7901b8f3409c
2019-01-16 19:45:32 +00:00
Lucas Dupin
97b8aae933 Tap gesture settings
Tap setting is similar to double tap, it will wake-up the phone
when invoked. This setting page allows for configuration since both
gestures aren't mutually exclusive.

Change-Id: Ia62a1fafcc108e3c0b14613cb30224eae7b35f6a
Fixes: 121198822
Test: make RunSettingsRoboTests
2019-01-16 11:41:44 -08:00
Quang Luong
3eac2faa9c Merge changes from topics "osu-at-the-top", "osu-provisioning-support"
* changes:
  Added autoscroll to top when clicking on OSU entry
  Added support for OSU Provider provisioning action on click
2019-01-16 19:10:14 +00:00
Fan Zhang
2a38d79137 Merge "Add Dynamic tiles" 2019-01-16 17:40:08 +00:00
TreeHugger Robot
c327e550f4 Merge "Schematize Display system properties" 2019-01-16 17:28:57 +00:00
TreeHugger Robot
a96d56c83a Merge changes I9cae479a,Ie642d780
* changes:
  Remove the multi-SIM bottom nav in network and internet v2 mode
  Add page listing multiple mobile networks
2019-01-16 09:11:17 +00:00
Malcolm Chen
14dde50c3a Don't show hidden Cellular subscription in Settings.
Replace getActiveSubscriptionInfoList() with
getActiveSubscriptionInfoList(true) so that settings will not show
hidden subscriptions to the user in various pages.

Bug: 121396526
Test: manual
Change-Id: I717999fed7d3a5a037914239694bef52df7c6207
2019-01-16 00:21:30 -08:00
TreeHugger Robot
d24f404b70 Merge "Visual update: adjust button padding in conditional card" 2019-01-16 07:56:33 +00:00
TreeHugger Robot
7109b9a68b Merge "Update the layout of contextual card dismissal view" 2019-01-16 07:34:49 +00:00
Mill Chen
121768d723 Visual update: adjust button padding in conditional card
Decrease the padding of the button in the conditional full card.

Bug: 113451905
Test: visual
Change-Id: Ic625504e06b8764b9b737a8d5b613423e4d8d27e
2019-01-16 14:42:32 +08:00
Antony Sargent
33340366aa Remove the multi-SIM bottom nav in network and internet v2 mode
When a device has multiple SIMs, at the bottom of the SIM details page
we show a chooser with an icon for each SIM card. This UX design is
being supplanted by the new network and internet v2 design where there
is a list of networks you can get to from the Network & internet
homepage. So when the v2 mode is turned on, we don't want that bottom
navigation to appear.

Bug: 116349402
Test: visual (will remove existing tests for this feature eventually)
Change-Id: I9cae479a1f4e689adcc4f4262661b10edbbbf2d3
2019-01-15 21:59:20 -08:00
Antony Sargent
f4ee4ef3bf Add page listing multiple mobile networks
When a device supports simultaneous connection to multiple mobile
networks, we want the "Mobile network" entry on the Network & internet
page to list the number of active SIMs and when clicked, go to a page
that lists them all.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: Ie642d7801cda07dcbbe74d42c234db6605566be4
2019-01-15 21:57:39 -08:00
Mill Chen
1c3ed19a09 Remove mIsHalfWidth field from ContextualCard
mIsHalfWidth in ContextualCard is too generic to identify its
responsibility, it is used to hold the value of is_support_half from
database and used to decide the card width. Also, it limits the
relationship of CardType-to-Renderer not to be extended to one-to-many.

To deal with this, we replaced mIsHalfWidth with mViewType to implement
one-to-many relationship of CardType-to-Renderer, and removed all
related logic of mIsHalfWidth.

Bug: 121303357
Test: robotests, visual

Change-Id: I03e14392272194424f317d11bf9d0d794a6133f4
2019-01-16 04:01:45 +00:00
Yohei Yukawa
46285fe08f Allow IME-related Settings Activity to run for managed profiles
The following Activity classes in the Settings have been marked with
PRIMARY_PROFILE_CONTROLLED = true since work profile was originally
implemented [1].

 * Settings$AvailableVirtualKeyboardActivity
 * .inputmethod.InputMethodAndSubtypeEnablerActivity
 * UserDictionarySettingsActivity
 * .inputmethod.UserDictionaryAddWordActivity

This means that even if they are explicitly launched for a managed
profile user, they are always re-launched for the profile owner user

For instance, the following command just ends up launching the system
IME settings for the user 0, not user 10.

  adb shell am start --user 10 \
     -a "android.settings.INPUT_METHOD_SETTINGS"

In order to enable per-profile IME mode, we need to remove
PRIMARY_PROFILE_CONTROLLED from those classes.

Unfortunately, the settings is baked into ApplicationManifest.xml
hence we canot simply hook it up with the runtime flag
InputMethodSystemProperty.PER_PROFILE_IME_ENABLED.  Thus this CL
simply remove PRIMARY_PROFILE_CONTROLLED from those classes, with an
assumption that users basically will not see those Activity classes
running under managed profile users unless per-profile IME flag is
enabled.  This is because both LanguageAndInputSettingsActivity and
SettingsActivity are still marked PRIMARY_PROFILE_CONTROLLED=true.
This means that almost all user-visible entry points are still be
running with profile owner's user ID.

Note also that because of Settings redirection implemented with
Settings#CLONE_TO_MANAGED_PROFILE, what are shown on those Activity
classes are basically correct.  What they cannot do without enabling
per-profile IME is updating actual secure settings.

 [1]: If3ec3866778282219267481b8f419774f7f2c9de
      2513851ace

Bug: 120748696
Test: Manually done as follows.
  1. adb root
  2. adb shell setprop persist.debug.per_profile_ime 1
  3. adb reboot
  4. Install Test DPC.
  5. Enable managed profile with Test DPC.
  6. Open "Files" app for the main profile.
  7. Tap the search box to show AOSP Keyboard.
  8. Long tap the comma key, then "Lauguage" on the "Input options"
     dialog.
  9. Uncheck "Use system languages" then check "English (UK)".
 10. Open "Files" app for the work profile.
 11. Long tap the comma key, then "Lauguage" on the "Input options"
     dialog.
 12. Make sure that "Use system languages" is checked.
 13. adb shell am start --user 10 \
       -a android.settings.INPUT_METHOD_SETTINGS
 14. Make sure there is no Toast message
     "You're using this app outside of your work profile".
 15. adb shell am start --user 10 \
       -a android.settings.INPUT_METHOD_SUBTYPE_SETTINGS
 16. Make sure there is no Toast message.
 17. adb shell am start --user 10 \
       -a android.settings.USER_DICTIONARY_SETTINGS
 14. Make sure there is no Toast message.
Change-Id: I6ee1f226a616bb5f802f8e1d3b6f1dbbe492c6e5
2019-01-15 19:16:50 -08:00
jin.dong
b82df9bd43 Add Dynamic tiles
Add new CategoryKey for screens below:
    about_legal.xml
    my_device_info.xml
    battery_saver_settings.xml

Bug: 113249409
Change-Id: I3cdad9b6ceeba0df3e0e9db4607daffcc5cbdc8b
Merged-In: I3cdad9b6ceeba0df3e0e9db4607daffcc5cbdc8b
2019-01-16 00:54:07 +00:00
jin.dong
a3a24be224 Add Dynamic tiles
Add new CategoryKey for screens below:
    about_legal.xml
    my_device_info.xml
    battery_saver_settings.xml

Bug: 113249409
Test: manual
Change-Id: I3cdad9b6ceeba0df3e0e9db4607daffcc5cbdc8b
2019-01-15 16:48:15 -08:00
Lei Yu
12c327a295 Merge changes I3ee2313c,Ibbf9eb2a
* changes:
  Remove divider line for battery card preference
  Add CardPreference in battery settings page
2019-01-15 21:45:42 +00:00
Ruchi Kandoi
8fc7b3e9d4 Merge "Don't start Android Beam Activity if feature is not supported" 2019-01-15 21:23:11 +00:00
Hai Shalom
8466751a79 Merge "[DPP] Fix usage of "DPP" public API to "Easy Connect"" 2019-01-15 20:46:44 +00:00
Antony Sargent
6f01ecf546 Add the Data Saver preference to the Network & internet page
We're promoting this to be in the top-level Network & internet page
(from being somewhat buried down in the Data usage page).

Bug: 116349402
Test: visual
Change-Id: If6e18ebb678e9a01c22ccdf58751801a887a3f62
2019-01-15 12:44:36 -08:00
Kevin Chyn
028755f05e Merge "Add face settings video" 2019-01-15 19:50:44 +00:00
Daniel Solomon
6f8934bf3a Merge "Hide display white balance setting depending on color mode" 2019-01-15 19:29:16 +00:00
Sunil Ravi
00020f6605 Merge "WiFi: Add Tx and rx link speed in network details" 2019-01-15 18:43:58 +00:00
Johnson Lu
ec18560911 Merge "Implement WifiNetworkListFragment - Part 2" 2019-01-15 15:41:09 +00:00
Johnson Lu
e910c7af60 Merge "Implement WifiNetworkListFragment" 2019-01-15 15:40:54 +00:00
Johnson Lu
98bc9e5384 Implement WifiNetworkListFragment - Part 2
Uses connected access point to start DPP in Configurator-Initiator role directly.

Bug: 118794978
Test: RunSettingsRoboTests
Change-Id: Ie2d5661fdef3588bb597d4a7e4dfe5f981737c84
2019-01-15 13:27:47 +08:00
Johnson Lu
0adba0aa1b Implement WifiNetworkListFragment
1.Scan valid access points for DPP configurator by using WifiTracker.
2.Allow user to add a new network for DPP configurator.

Bug: 118794978
Test: RunSettingsRoboTests
Change-Id: I36504d28dec7d2c9091aa6c35ebe2495045681f7
2019-01-15 13:27:47 +08:00
Raff Tsai
f7e1a25ee6 Merge "Fix crash for UiBlockerController" 2019-01-15 04:01:38 +00:00
jackqdyulei
a5f1b5c629 Fix crash for UiBlockerController
1. Don't create UiBlockerController if there is no related controller
2. Don't update visibility if UiBlockerController is null
3. Use findPreference() from DashboardFragment, which already has null
check.

Change-Id: Iee24c64317fb9d5a1cf2076d25728af485d390c5
Fixes: 122807414
Fixes: 122805831
Test: RunSettingsRoboTests
2019-01-15 03:58:14 +00:00
Santiago Etchebehere
44ad7fc002 Merge "Add developer settings for theme overlays." 2019-01-15 03:24:17 +00:00
TreeHugger Robot
90f75b2f3f Merge "Move edit icon from header to action bar" 2019-01-15 02:16:59 +00:00
Kevin Chyn
51fe2e9c12 Add face settings video
Test: make -j56 RunSettingsRoboTests
Bug: 120991336

Change-Id: I13bc0114d37b97e7d61cafa6df04f2bcab893e81
2019-01-14 17:02:28 -08:00
TreeHugger Robot
873b04d43d Merge "Use role for App info default SMS shortcut." 2019-01-15 00:47:40 +00:00
TreeHugger Robot
d55f470009 Merge "Import translations. DO NOT MERGE" 2019-01-15 00:38:13 +00:00