OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Allow multiple trust agents"
Vishwath Mohan [Thu, 31 Jan 2019 20:21:40 +0000 (20:21 +0000)]
Merge "Allow multiple trust agents"

5 years agoAllow multiple trust agents
Vishwath Mohan [Tue, 29 Jan 2019 16:26:40 +0000 (08:26 -0800)]
Allow multiple trust agents

This CL is essentially a one-line change that sets the
ONLY_ONE_TRUST_AGENT boolean to false.

Bug: 111431046
Test: Tested manually that this works correctly

Change-Id: Ia8f06235467e3223ef1e441a62d941a64a2d7c93

5 years agoMerge "Remove dead code from settings"
TreeHugger Robot [Thu, 31 Jan 2019 19:18:17 +0000 (19:18 +0000)]
Merge "Remove dead code from settings"

5 years agoMerge "Connect to network while clicking open or saved networks on slice"
TreeHugger Robot [Thu, 31 Jan 2019 19:14:05 +0000 (19:14 +0000)]
Merge "Connect to network while clicking open or saved networks on slice"

5 years agoMerge "Use ColorDisplayManager for night display settings"
Christine Franks [Thu, 31 Jan 2019 17:45:45 +0000 (17:45 +0000)]
Merge "Use ColorDisplayManager for night display settings"

5 years agoUpdate proguard
Beverly [Mon, 28 Jan 2019 21:48:06 +0000 (16:48 -0500)]
Update proguard

Test: manual
Bug: 118388808
Bug: 123532083
Change-Id: Ie3140755817989f567b2ea0674ebe601062aae21

5 years agoMerge "Update title for the link to more special app access."
TreeHugger Robot [Thu, 31 Jan 2019 12:34:59 +0000 (12:34 +0000)]
Merge "Update title for the link to more special app access."

5 years agoMerge "If the ramping ringer adaptive volume is enabled then do not show this setting...
TreeHugger Robot [Thu, 31 Jan 2019 06:18:30 +0000 (06:18 +0000)]
Merge "If the ramping ringer adaptive volume is enabled then do not show this setting. It will be injected from settings intelligence with additional user options"

5 years agoMerge "Consolidate wake-screen settings page"
TreeHugger Robot [Thu, 31 Jan 2019 05:30:10 +0000 (05:30 +0000)]
Merge "Consolidate wake-screen settings page"

5 years agoMerge "Change summary of "Privacy" in homepage"
TreeHugger Robot [Thu, 31 Jan 2019 05:18:25 +0000 (05:18 +0000)]
Merge "Change summary of "Privacy" in homepage"

5 years agoMerge "Add enable/disable DSDS setting switch"
Pengquan Meng [Thu, 31 Jan 2019 03:51:49 +0000 (03:51 +0000)]
Merge "Add enable/disable DSDS setting switch"

5 years agoIf the ramping ringer adaptive volume is enabled then do not show
Tajinder Gadh [Wed, 30 Jan 2019 20:48:13 +0000 (12:48 -0800)]
If the ramping ringer adaptive volume is enabled then do not show
this setting. It will be injected from settings intelligence with
additional user options

Test: Build locally and validated
Change-Id: I6f79eea460e86d643d92c04e8ea126b99b9bed8b

5 years agoChange summary of "Privacy" in homepage
tmfang [Thu, 31 Jan 2019 03:27:27 +0000 (11:27 +0800)]
Change summary of "Privacy" in homepage

Test: visual
Change-Id: I79fd96f42cc6ed698d516bb80c14db098b80273a
Fixes: 123537345

5 years agoMerge "Deprecate EXCLUSIVE category from contextual_card_list.proto"
Yanting Yang [Thu, 31 Jan 2019 02:56:41 +0000 (02:56 +0000)]
Merge "Deprecate EXCLUSIVE category from contextual_card_list.proto"

5 years agoRemove dead code from settings
Soonil Nagarkar [Fri, 25 Jan 2019 01:52:19 +0000 (17:52 -0800)]
Remove dead code from settings

Test: manually
Change-Id: I1ef0bb2a20c6c6f020dd051407dda2de87f174ea

5 years agoAdd enable/disable DSDS setting switch
Pengquan Meng [Tue, 29 Jan 2019 03:12:18 +0000 (19:12 -0800)]
Add enable/disable DSDS setting switch

This add a switch settings in the Phone Information screen to allow the
user enable/disable the DSDS mode.

Bug: 123088078
Test: build & manual test
Change-Id: Ia3722fb26ce8825820ee96550a1d523da35c7a71

5 years agoMerge "Add feature flag check for mainline module version."
TreeHugger Robot [Thu, 31 Jan 2019 00:38:07 +0000 (00:38 +0000)]
Merge "Add feature flag check for mainline module version."

5 years agoUpdate title for the link to more special app access.
Hai Zhang [Wed, 30 Jan 2019 23:20:10 +0000 (15:20 -0800)]
Update title for the link to more special app access.

This change updates the title for the link to more special app access
to be "See more".

Bug: 110557011
Bug: 123538149
Test: manual
Change-Id: I17c7aa347f4e584a28ca8f2de8b9f75ee5e3c1b4

5 years agoConsolidate wake-screen settings page
Lucas Dupin [Sat, 19 Jan 2019 00:17:44 +0000 (16:17 -0800)]
Consolidate wake-screen settings page

UX decided to have a single settings page instead of two

Test: manual
Bug: 111414690
Change-Id: I8e0eee3ea00b1eb9cbe534cc60bfccec43cf8e31

5 years agoMerge "Use role for App info default phone shortcut."
TreeHugger Robot [Wed, 30 Jan 2019 22:23:40 +0000 (22:23 +0000)]
Merge "Use role for App info default phone shortcut."

5 years agoAdd feature flag check for mainline module version.
Doris Ling [Wed, 30 Jan 2019 20:52:23 +0000 (12:52 -0800)]
Add feature flag check for mainline module version.

- in about phone settings, only show the mainline module version if the
feature is enabled.

Bug: 122615240
Test: make RunSettingsRoboTests
Change-Id: If872859755dade7e601a47eb387d10c3b247d06e

5 years agoMerge "Revert "Add live caption preference in accessibility page.""
Fan Zhang [Wed, 30 Jan 2019 20:14:22 +0000 (20:14 +0000)]
Merge "Revert "Add live caption preference in accessibility page.""

5 years agoMerge "Add Secure NFC functionality"
Ruchi Kandoi [Wed, 30 Jan 2019 18:58:50 +0000 (18:58 +0000)]
Merge "Add Secure NFC functionality"

5 years agoMerge "Add referrer when launching search intent."
TreeHugger Robot [Wed, 30 Jan 2019 18:57:28 +0000 (18:57 +0000)]
Merge "Add referrer when launching search intent."

5 years agoRevert "Add live caption preference in accessibility page."
Fan Zhang [Wed, 30 Jan 2019 18:10:17 +0000 (18:10 +0000)]
Revert "Add live caption preference in accessibility page."

This reverts commit d64901494fb4bd2f195d8c6da7258f107207eebf.

Reason for revert: b/123636344

Change-Id: If6307935ba3613cb24f5bab2234febef83c6f7d2

5 years agoMerge "[Multi-user] Change Backup Settings page to support multi-user."
Chandan Nath [Wed, 30 Jan 2019 14:03:38 +0000 (14:03 +0000)]
Merge "[Multi-user] Change Backup Settings page to support multi-user."

5 years agoMerge "Add silent status bar icon setting"
Julia Reynolds [Wed, 30 Jan 2019 13:41:08 +0000 (13:41 +0000)]
Merge "Add silent status bar icon setting"

5 years agoMerge "Fix crash if timezone is changed and "Don't keep activities" mode is on"
TreeHugger Robot [Wed, 30 Jan 2019 10:59:36 +0000 (10:59 +0000)]
Merge "Fix crash if timezone is changed and "Don't keep activities" mode is on"

5 years agoMerge "Revert "Wifi MAC Randomization: Developer Options""
Oscar Shu [Wed, 30 Jan 2019 10:55:34 +0000 (10:55 +0000)]
Merge "Revert "Wifi MAC Randomization: Developer Options""

5 years agoDeprecate EXCLUSIVE category from contextual_card_list.proto
Yanting Yang [Wed, 30 Jan 2019 10:52:33 +0000 (18:52 +0800)]
Deprecate EXCLUSIVE category from contextual_card_list.proto

Bug: 120485678
Test: visual, robotests
Change-Id: Ic287aeeed0743787d3e577c7086e9847b5c33157

5 years agoConnect to network while clicking open or saved networks on slice
Jason Chiu [Tue, 29 Jan 2019 09:13:28 +0000 (17:13 +0800)]
Connect to network while clicking open or saved networks on slice

Test: make RunSettingsRoboTests -j
Fixes: 121342770
Change-Id: I0ffb925628dd271d054f990b9b176eb10372e6a3

5 years agoMerge "Remove empty space in Usage access"
TreeHugger Robot [Wed, 30 Jan 2019 07:04:25 +0000 (07:04 +0000)]
Merge "Remove empty space in Usage access"

5 years agoMerge "Wi-Fi DPP code refine"
TreeHugger Robot [Wed, 30 Jan 2019 05:00:38 +0000 (05:00 +0000)]
Merge "Wi-Fi DPP code refine"

5 years agoMerge "ConfirmDeviceCredential should default to setRequireConfirmation(true)"
TreeHugger Robot [Wed, 30 Jan 2019 04:49:37 +0000 (04:49 +0000)]
Merge "ConfirmDeviceCredential should default to setRequireConfirmation(true)"

5 years agoMerge "Use settingslib ActionBarShadowController"
TreeHugger Robot [Wed, 30 Jan 2019 04:29:44 +0000 (04:29 +0000)]
Merge "Use settingslib ActionBarShadowController"

5 years agoMerge "Schematize Crypto system properties"
TreeHugger Robot [Wed, 30 Jan 2019 03:51:31 +0000 (03:51 +0000)]
Merge "Schematize Crypto system properties"

5 years agoMerge "Use API to get necessary value when activity init"
Les Lee [Wed, 30 Jan 2019 03:42:55 +0000 (03:42 +0000)]
Merge "Use API to get necessary value when activity init"

5 years agoMerge "Remove cardview wrapper on condition collapse button."
TreeHugger Robot [Wed, 30 Jan 2019 03:37:42 +0000 (03:37 +0000)]
Merge "Remove cardview wrapper on condition collapse button."

5 years agoMerge "Remove dead code."
TreeHugger Robot [Wed, 30 Jan 2019 03:22:09 +0000 (03:22 +0000)]
Merge "Remove dead code."

5 years agoMerge "AccessPoint: App attribution for suggestion/specifier"
Roshan Pius [Wed, 30 Jan 2019 03:03:20 +0000 (03:03 +0000)]
Merge "AccessPoint: App attribution for suggestion/specifier"

5 years agoConfirmDeviceCredential should default to setRequireConfirmation(true)
Kevin Chyn [Wed, 30 Jan 2019 01:33:57 +0000 (17:33 -0800)]
ConfirmDeviceCredential should default to setRequireConfirmation(true)

If the value is unset, we should maintain the same default behavior
as BiometricPrompt, which is to dfeault to requiring confirmation.

Fixes: 123598496

Test: manual
Change-Id: Icaf27d184e0aea5eee077b8ec14bca27fd0ddad3

5 years agoMerge "Set Wi-Fi DPP fragment icons."
Arc Wang [Wed, 30 Jan 2019 02:29:35 +0000 (02:29 +0000)]
Merge "Set Wi-Fi DPP fragment icons."

5 years agoMerge "Fix dsandler's email address."
Daniel Sandler [Wed, 30 Jan 2019 02:09:54 +0000 (02:09 +0000)]
Merge "Fix dsandler's email address."

5 years agoAdd silent status bar icon setting
Julia Reynolds [Tue, 29 Jan 2019 17:12:39 +0000 (12:12 -0500)]
Add silent status bar icon setting

Test: atest
Bug: 123419917
Change-Id: I40fe580b76589c45a70365c09a966a76b5bc882b

5 years agoRemove cardview wrapper on condition collapse button.
Fan Zhang [Wed, 30 Jan 2019 00:33:53 +0000 (16:33 -0800)]
Remove cardview wrapper on condition collapse button.

The cardview is adding a strange background color in dark mode

Change-Id: Id205fbd5209e15597157d86d225f8c6c97a2ec5a
Fixes: 123411225
Test: visual

5 years agoAdd Secure NFC functionality
Ruchi Kandoi [Thu, 17 Jan 2019 23:31:02 +0000 (15:31 -0800)]
Add Secure NFC functionality

Secure NFC will permit NFC acitvity only when screen
is unlocked.

Bug: 117253725
Test: Manual; Toggle switch; check if HCE works with screen off
Change-Id: I9977d85065fc7ebca3ed4991ffa52fef0590cf90

5 years agoRemove dead code.
Fan Zhang [Wed, 30 Jan 2019 00:00:19 +0000 (16:00 -0800)]
Remove dead code.

Bug: n/a
Test: rebuild
Change-Id: I71f8d9d99bbff1186e8df518ec8d27db3447ffbe

5 years agoUse settingslib ActionBarShadowController
Fan Zhang [Tue, 29 Jan 2019 23:39:32 +0000 (15:39 -0800)]
Use settingslib ActionBarShadowController

Change-Id: Ib70a0ca307bb98e576f2c3deb8f7aea88e59b10e
Fixes: 123311100
Test: robotests

5 years agoMerge "Fix padding problem between search bar and homepage cards"
TreeHugger Robot [Tue, 29 Jan 2019 23:00:18 +0000 (23:00 +0000)]
Merge "Fix padding problem between search bar and homepage cards"

5 years agoAdd referrer when launching search intent.
Fan Zhang [Tue, 29 Jan 2019 21:52:12 +0000 (13:52 -0800)]
Add referrer when launching search intent.

Bug: 123294739
Test: robotests
Change-Id: I600abf1d764e828d52f3b8d35ad24cdc94dfba01

5 years agoMerge "Add a plus button to the mobile pref on Network & internet page"
TreeHugger Robot [Tue, 29 Jan 2019 22:08:33 +0000 (22:08 +0000)]
Merge "Add a plus button to the mobile pref on Network & internet page"

5 years agoAdd a plus button to the mobile pref on Network & internet page
Antony Sargent [Tue, 29 Jan 2019 00:10:58 +0000 (16:10 -0800)]
Add a plus button to the mobile pref on Network & internet page

On the Network & internet page, we have a "Mobile network" pref that in
single-SIM mode leads to a detail page for the current SIM. In multi-SIM
mode it has more complicated behavior (leading either to details about
the current subscription if there is only one, or a list of
subscriptions if more than one).

One of the things we wanted to add was a shortcut to add another eSIM
subscription. So this CL adds a plus button control on the right of the
preference which leads to a flow to add another mobile subscription via
the eSIM manager.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: I38e0031e3bd603e93c45dcb4557750e7bc1b8b5a

5 years agoFix dsandler's email address.
Dan Sandler [Tue, 29 Jan 2019 19:41:54 +0000 (14:41 -0500)]
Fix dsandler's email address.

Test: dsandler can give OWNERS approval again
Change-Id: I8a59453ec95b98ce74703bbe003c9039e2a96f22

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 29 Jan 2019 16:50:23 +0000 (16:50 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Sort notification channel in NotificationChannelSlice"
Yanting Yang [Tue, 29 Jan 2019 16:44:12 +0000 (16:44 +0000)]
Merge "Sort notification channel in NotificationChannelSlice"

5 years agoFix crash if timezone is changed and "Don't keep activities" mode is on
Nikita Iashchenko [Mon, 28 Jan 2019 21:16:31 +0000 (21:16 +0000)]
Fix crash if timezone is changed and "Don't keep activities" mode is on

The issues is that TimeZoneData is being loaded with LoaderManager on
every fragment's onCreate(). At the same time this fragment has
onActivityResult() handler that accesses TimeZoneData and relies on the
fact that it has been already initialized prior this call. So when you
enable "Don't keep activities" mode, the TimeZoneSettings fragment [1]
that holds TimeZoneData is immediately destroyed after launching time zone
picker fragment [2] (which result [1] waits for), and when android calls
onActivityResult() for [1] (after time zone has been picked in [2]),
Android has to recreate [1] from scratch. So you get onCreate() called and
immidiately after that onActivityResult() called, and at this point we get
the crash, because the loader hasn't finished yet and onActivityResult()
tries to access uninitialized mTimeZoneData.

This CL fixes this crash issue by postponing
mTimeZoneData.lookupCountryTimeZones call until mTimeZoneData is loaded
by loader. It is done through saving data intent in onActivityResult()
and calling onZonePickerRequestResult() when time zone data is loaded.

Bug: 112351583
Test: m Settings droid successfully builds, manual testing with "Don't
keep activities" mode enabled

Change-Id: Id30d36dc17a0de96ba871f9d0f4a2686479d0eeb

5 years agoMerge "Enable overlays on background thread."
TreeHugger Robot [Tue, 29 Jan 2019 14:58:37 +0000 (14:58 +0000)]
Merge "Enable overlays on background thread."

5 years agoSort notification channel in NotificationChannelSlice
Yanting Yang [Wed, 23 Jan 2019 14:15:51 +0000 (22:15 +0800)]
Sort notification channel in NotificationChannelSlice

According request to sort the notification channel by average
weekly sent count in descending.

Bug: 119831690
Test: visual, robotests
Change-Id: I96786b077a37dcbc53606f8d98998e01e15b674d

5 years agoRemove empty space in Usage access
tmfang [Tue, 29 Jan 2019 06:50:46 +0000 (14:50 +0800)]
Remove empty space in Usage access

When there is no need to show filter component,
we don't need to set an extra padding top.

Test: robotest, visual
Change-Id: Ieaa65ed9785a06f0737aefaf102d0c857002bbdd
Fixes: 123037802

5 years agoMerge "Game Driver: rename GUP to Game Driver"
TreeHugger Robot [Tue, 29 Jan 2019 10:51:26 +0000 (10:51 +0000)]
Merge "Game Driver: rename GUP to Game Driver"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 29 Jan 2019 09:39:27 +0000 (01:39 -0800)]
Import translations. DO NOT MERGE

Change-Id: I7a79b6977d8215bcbc7257daaaabfb570862ebbd
Auto-generated-cl: translation import

5 years agoWi-Fi DPP code refine
Arc Wang [Fri, 25 Jan 2019 06:12:03 +0000 (14:12 +0800)]
Wi-Fi DPP code refine

1. call Activity#setResult only for RESULT_OK case
2. refine @VisibleForTesting usage
     remove redundant assignment otherwise = PRIVATE
     set all @VisibleForTesting annotated methods package scope
3. rename WifiQrCode#SECURITY_WPA to WifiQrCode#SECURITY_WPA_PSK

Bug: 120645817
Test: atest WifiQrCodeTest
      atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeGeneratorFragmentTest
      atest WifiDppQrCodeScannerFragmentTest
      atest WifiNetworkListFragmentTest
      atest WifiDppChooseSavedWifiNetworkFragmentTest

Change-Id: Id5de7eadc73185716422fc0d197f82bdd025ce45

5 years agoSet Wi-Fi DPP fragment icons.
Arc Wang [Thu, 24 Jan 2019 07:19:23 +0000 (15:19 +0800)]
Set Wi-Fi DPP fragment icons.

1. set fragment icon for WifiDppChooseSavedWifiNetworkFragment
2. set fragment icon of success for WifiDppAddDeviceFragment

All Wi-Fi DPP fragment icons are VectorDrawable of instinct size
24dp draw on a 48dp canvas. Except for ic_devices_check_circle_green,
it's a LayerDrawable of different size. I dynamically change ImageView
layout width & height between these 2 different kind of drawable.

Bug: 122982132
Test: manual test
Change-Id: Idab8cd8b0798363e447da00dc6bc68a86498b8be

5 years agoUse API to get necessary value when activity init
lesl [Wed, 2 Jan 2019 10:26:46 +0000 (18:26 +0800)]
Use API to get necessary value when activity init

Framework change intent design from sticky to non-sticky due to
location sensitive data protect. Use APIs to get information when
activity resume.

Intents from sticy to non-sticy:
WifiP2pManager#WIFI_P2P_CONNECTION_CHANGED_ACTION
WifiP2pManager#WIFI_P2P_THIS_DEVICE_CHANGED_ACTION

Bug: 77228252
Test: Manually test Wi-Fi Direct settings
Change-Id: I115515d6832c5c5f290ef9f757ca94afa4e9f1bd

5 years agoMerge "Improve UX of Deferred Setup"
Yanting Yang [Tue, 29 Jan 2019 07:51:33 +0000 (07:51 +0000)]
Merge "Improve UX of Deferred Setup"

5 years agoImprove UX of Deferred Setup
Yanting Yang [Fri, 18 Jan 2019 15:39:15 +0000 (23:39 +0800)]
Improve UX of Deferred Setup

Change-Id: I3d0735ef1196b04abaef454529664a8daea53967
Bug: 120485678
Test: visual, robotests

5 years agoMerge "Game Driver: Add footer to the dashboard"
TreeHugger Robot [Tue, 29 Jan 2019 07:06:26 +0000 (07:06 +0000)]
Merge "Game Driver: Add footer to the dashboard"

5 years agoMerge "Game Driver: Add SwitchBar to control GUP feature"
TreeHugger Robot [Tue, 29 Jan 2019 06:32:34 +0000 (06:32 +0000)]
Merge "Game Driver: Add SwitchBar to control GUP feature"

5 years agoMerge "Update to use new ConnectivityManager API." am: 70b1830e7e am: 7c47743851
Pavel Grafov [Tue, 29 Jan 2019 06:14:17 +0000 (22:14 -0800)]
Merge "Update to use new ConnectivityManager API." am: 70b1830e7e am: 7c47743851
am: 3184142cbe

Change-Id: I6bc7277d0f1db1576b369443719c449fc8eeed75

5 years agoMerge "Use the UiDevice.setOrientation methods to simulate orienting the device"
Johnson Lu [Tue, 29 Jan 2019 05:56:55 +0000 (05:56 +0000)]
Merge "Use the UiDevice.setOrientation methods to simulate orienting the device"

5 years agoFix padding problem between search bar and homepage cards
Sunny Shao [Mon, 28 Jan 2019 09:46:35 +0000 (17:46 +0800)]
Fix padding problem between search bar and homepage cards

Get the statusbar height dynamically to fix this problem in notch mode.

Change-Id: I4ca0427fc2556f1fb5f868118c5207fdfa035c59
Fixes: 123215804
Test: robotest

5 years agoMerge "Update to use new ConnectivityManager API." am: 70b1830e7e
Pavel Grafov [Tue, 29 Jan 2019 05:34:50 +0000 (21:34 -0800)]
Merge "Update to use new ConnectivityManager API." am: 70b1830e7e
am: 7c47743851

Change-Id: I41b4f42c88895dd26a65fe0c92b71dbe1e7a3c08

5 years agoMerge "Update to use new ConnectivityManager API."
Pavel Grafov [Tue, 29 Jan 2019 04:28:09 +0000 (20:28 -0800)]
Merge "Update to use new ConnectivityManager API."
am: 70b1830e7e

Change-Id: Ide228930858fc8eccfac060858b0da86725f229a

5 years agoGame Driver: rename GUP to Game Driver
Yiwei Zhang [Thu, 24 Jan 2019 22:04:58 +0000 (14:04 -0800)]
Game Driver: rename GUP to Game Driver

Bug: 119221883
Test: make RunSettingsRoboTests
Change-Id: Ia7b9e3978ad96436a66843e6b5d1bd1e15f367c9

5 years agoGame Driver: Add footer to the dashboard
Yiwei Zhang [Wed, 23 Jan 2019 20:40:42 +0000 (12:40 -0800)]
Game Driver: Add footer to the dashboard

This change adds a footer to the current dashboard to show some
descriptions when the whole module is turned off.

Bug: 119221883
Test: make RunSettingsRoboTests
Change-Id: I9788d4c64b06deb099a43e8db7eecab20a85f494

5 years agoGame Driver: Add SwitchBar to control GUP feature
Yiwei Zhang [Sat, 19 Jan 2019 08:45:20 +0000 (16:45 +0800)]
Game Driver: Add SwitchBar to control GUP feature

Uncheck the global switch will hide the preference controllers and force
all apps to use system graphics driver. This change also add a content
observer to notify all the preference controllers of settings global
changes.

Bug: 119221883
Test: make RunSettingsRoboTests
Change-Id: Ice9ded17c759791a3728c552f79881e2215ac081

5 years agoMerge "Revert "Settings for skip and silence gestures""
TreeHugger Robot [Tue, 29 Jan 2019 03:19:21 +0000 (03:19 +0000)]
Merge "Revert "Settings for skip and silence gestures""

5 years agoMerge "Clean up ShadowUserManager"
TreeHugger Robot [Tue, 29 Jan 2019 02:57:24 +0000 (02:57 +0000)]
Merge "Clean up ShadowUserManager"

5 years agoMerge "Set correct network type when launching wifi usage data."
TreeHugger Robot [Tue, 29 Jan 2019 02:12:41 +0000 (02:12 +0000)]
Merge "Set correct network type when launching wifi usage data."

5 years agoMerge "Add isEnabled method to AwareFeatureProvider"
TreeHugger Robot [Tue, 29 Jan 2019 01:59:29 +0000 (01:59 +0000)]
Merge "Add isEnabled method to AwareFeatureProvider"

5 years agoMerge "Add configs to display/hide a few tiles in device info page"
TreeHugger Robot [Tue, 29 Jan 2019 01:29:35 +0000 (01:29 +0000)]
Merge "Add configs to display/hide a few tiles in device info page"

5 years agoMerge changes Ifb5507cb,Ide044cf9
Lei Yu [Tue, 29 Jan 2019 01:29:23 +0000 (01:29 +0000)]
Merge changes Ifb5507cb,Ide044cf9

* changes:
  Update BT header using BT metadata
  Add layout for advanced BT detail header

5 years agoUse the UiDevice.setOrientation methods to simulate orienting the device
Johnson Lu [Fri, 25 Jan 2019 06:34:18 +0000 (14:34 +0800)]
Use the UiDevice.setOrientation methods to simulate orienting the device

The UiDevice methods have a build in call to UiDevice.waitForIdle()
which will block until the UI has not changed for at least 500ms.

Bug: 123382213
Test: atest WifiDppConfiguratorActivityTest
Change-Id: I57539edecfd60f27a061a3ccc263c053ce158855

5 years agoMerge changes from topic "media_slice"
Hugh Chen [Tue, 29 Jan 2019 00:51:39 +0000 (00:51 +0000)]
Merge changes from topic "media_slice"

* changes:
  Implement MediaOutputSlice
  Add entry point to launch media output slice

5 years ago[Multi-user] Change Backup Settings page to support multi-user.
Chandan Nath [Mon, 28 Jan 2019 21:15:13 +0000 (21:15 +0000)]
[Multi-user] Change Backup Settings page to support multi-user.

With multi-user backup, backup will be available or secondary users and profiles too.

1. When there are profile users, this CL changes UI flow A to B
A. Settings Homepage -> System -> Google Backup Settings for primary user
to
B. Settings Homepage -> System -> Profile Select Dialog -> Google Backup Settings for chosen profile.
Change done as per https://g3doc.corp.google.com/company/teams/apps-android-settings/howto/ia.md?cl=head
2. Functionality remains the same when there are no profiles (BackupSettingsHelper, BackupSettingsContentProvider)
3.  Also, enabled Backup Settings for secondary users. (Previously, backup settings were only shown for
system user).(SettingsGateway)

Bug: 121198738

Test: 1) System -> Backup -> shows Profile Select Dialog -> Backup page for selected profile
2) On secondary user without profile, System -> Backup (with summary) -> Backup page for secondary user.

Change-Id: I6e21279978a5dfc6eca6f5a34bbfc15a34eac68b

5 years agoClean up ShadowUserManager
Fan Zhang [Tue, 29 Jan 2019 00:32:56 +0000 (16:32 -0800)]
Clean up ShadowUserManager

Remove addManagedUser() and use default shadow for the same purpose.

Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=Redaction
Change-Id: I2f86bd51bccbde23a8a37d19b28e30cadb2b9f93

5 years agoRevert "Settings for skip and silence gestures"
Beverly Tai [Tue, 29 Jan 2019 00:07:06 +0000 (00:07 +0000)]
Revert "Settings for skip and silence gestures"

This reverts commit d5428a5cd4459067ca71b6dc4935d3f18e520450.
Test: manual, builds
Reason for revert: moving to SettingsGoogle

Change-Id: Iad954e22c9484c2bc059b52e5f17a244be461394

5 years agoMerge "Add a More item for Special app access page."
TreeHugger Robot [Mon, 28 Jan 2019 23:53:11 +0000 (23:53 +0000)]
Merge "Add a More item for Special app access page."

5 years agoMerge "Move SettingsLib icons to android."
TreeHugger Robot [Mon, 28 Jan 2019 22:49:36 +0000 (22:49 +0000)]
Merge "Move SettingsLib icons to android."

5 years agoAdd configs to display/hide a few tiles in device info page
Fan Zhang [Mon, 28 Jan 2019 21:10:32 +0000 (13:10 -0800)]
Add configs to display/hide a few tiles in device info page

- Displaying/hiding Emergency info, branded account, device header
  widget are now driven by config flags
- Also refactored controllers to use BasePreferenceController

Change-Id: Ie601ebf689e0744c6a05a2cca5513fa43ef355e0
Fixes: 119607340
Test: robotests

5 years agoRevert "Wifi MAC Randomization: Developer Options"
Oscar Shu [Fri, 25 Jan 2019 01:16:29 +0000 (01:16 +0000)]
Revert "Wifi MAC Randomization: Developer Options"

This reverts commit 8c6d8daaf00f80344336ea8181d7e84a38486252.

Reason for revert: <Enabling feature by default. Global flag moved to OEM
configurable overlay instead.>

Bug: 123408542
Test: unit tests
Test: Manual test to verify dev option is gone
Change-Id: Iae667a331b5d4fb4cb6fe07077eb9f3954f3089e

5 years agoMerge "Make custom cards title use same font family as slice cards"
TreeHugger Robot [Mon, 28 Jan 2019 22:32:29 +0000 (22:32 +0000)]
Merge "Make custom cards title use same font family as slice cards"

5 years agoAdd isEnabled method to AwareFeatureProvider
Beverly [Mon, 28 Jan 2019 21:47:13 +0000 (16:47 -0500)]
Add isEnabled method to AwareFeatureProvider

Test: manual
Bug: 118388808
Change-Id: I3594d0377efacd5b4558dfaa2dbd91cc925c0b23

5 years agoMake custom cards title use same font family as slice cards
Fan Zhang [Mon, 28 Jan 2019 20:54:11 +0000 (12:54 -0800)]
Make custom cards title use same font family as slice cards

Change-Id: I00ab1cd3be7c5a03212371b869e811d6994d1d22
Fixes: 123529477
Test: visual

5 years agoEnable overlays on background thread.
Amin Shaikh [Mon, 28 Jan 2019 20:31:53 +0000 (15:31 -0500)]
Enable overlays on background thread.

Change-Id: I445022c2f05788f89a7dd412f70229b4874ebda3
Fixes: 112741125
Test: m RunSettingsRoboTests

5 years agoMerge "Update to use new ConnectivityManager API."
Pavel Grafov [Mon, 28 Jan 2019 20:15:49 +0000 (20:15 +0000)]
Merge "Update to use new ConnectivityManager API."

5 years agoAdd a More item for Special app access page.
Hai Zhang [Thu, 24 Jan 2019 23:53:32 +0000 (15:53 -0800)]
Add a More item for Special app access page.

This allows users to toggle non-exclusive roles, such as the temporary
SMS access (non-exclusive) role.

Bug: 110557011
Test: atest MorePreferenceControllerTest
Change-Id: Id9c0338ef2996aaa741c3da8104e867f32050f3a

5 years agoAdd "Adaptive sleep" setting
Alex Salo [Thu, 17 Jan 2019 21:54:03 +0000 (13:54 -0800)]
Add "Adaptive sleep" setting

Adaptive sleep setting, if enabled, will perform an attention check
right before the power manager is scheduled to dim and then turn off the
display. If the attention check says that user is currently paying
attention to the device, the screen sleep timeout timer will be reset,
as if user had interacted with the display.

The animation and explanation strings are still TBC per UX team.

The setting is only displayed on supported devices.

Test: make RunSettingsRoboTests
Bug: 111939367
Change-Id: I191dd8ef06ecec4edbe4357671a7a9360971c06f

5 years agoMove SettingsLib icons to android.
Amin Shaikh [Thu, 24 Jan 2019 23:00:29 +0000 (18:00 -0500)]
Move SettingsLib icons to android.

Bug: 122263617
Test: make
Change-Id: Ia2ab06561824656951fbd0019e9c921442c714e1

5 years agoMerge "Update configurator intent to be public"
Salvador Martinez [Mon, 28 Jan 2019 17:35:41 +0000 (17:35 +0000)]
Merge "Update configurator intent to be public"