OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMove the setActiveDevice logic from Settings to SettingsLib (2/2)
Hansong Zhang [Tue, 20 Mar 2018 01:21:40 +0000 (18:21 -0700)]
Move the setActiveDevice logic from Settings to SettingsLib (2/2)

Currently the Settings app handles the logic of setting active device;
however, this should be handled by SettingsLib so the logic can be shared.

Bug: 75984255
Test: robolectric test

Change-Id: I5742de1463d156ff29708ea2aecfc3fd00795e9e

6 years agoMerge "update strings in battery settings(Round 1)" into pi-dev
Lei Yu [Fri, 16 Mar 2018 18:26:49 +0000 (18:26 +0000)]
Merge "update strings in battery settings(Round 1)" into pi-dev

6 years agoMerge "In Data Usage screen, Above the data bar, Change font size of number." into...
Jan Nordqvist [Fri, 16 Mar 2018 17:18:37 +0000 (17:18 +0000)]
Merge "In Data Usage screen, Above the data bar, Change font size of number." into pi-dev

6 years agoIn Data Usage screen, Above the data bar, Change font size of number.
Jan Nordqvist [Thu, 15 Mar 2018 22:47:58 +0000 (15:47 -0700)]
In Data Usage screen, Above the data bar, Change font size of number.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I671a605fe341f36adeb6ae239333295ddfb550c7

6 years agoMerge "Fix channel screen launching" into pi-dev
Julia Reynolds [Fri, 16 Mar 2018 15:45:05 +0000 (15:45 +0000)]
Merge "Fix channel screen launching" into pi-dev

6 years agoMerge "Sort Uncategorized channel to the bottom." into pi-dev
Alison Cichowlas [Fri, 16 Mar 2018 15:44:12 +0000 (15:44 +0000)]
Merge "Sort Uncategorized channel to the bottom." into pi-dev

6 years agoMerge "Enable launching captive portal directly" into pi-dev
Adam Newman [Fri, 16 Mar 2018 14:26:25 +0000 (14:26 +0000)]
Merge "Enable launching captive portal directly" into pi-dev

6 years agoRestore "Update for 1.0.0-beta1"
Alan Viverette [Thu, 15 Mar 2018 21:19:52 +0000 (21:19 +0000)]
Restore "Update for 1.0.0-beta1"

This reverts commit b4fe52343c7df00cd4801c2d712a377d473b2a17.

Bug: 74950017
Test: manual
Change-Id: I9749b9ae8f2f75b1bbdf7c6686a036db1f6f8a74

6 years agoupdate strings in battery settings(Round 1)
Lei Yu [Tue, 13 Mar 2018 21:19:04 +0000 (14:19 -0700)]
update strings in battery settings(Round 1)

This cl updates the strings in several battery
settings pages and dialogs, also add footers
for battery manager page and restrict app page.

Update the strings in battery settings except:
1. Summary for smart battery toggle
2. "Full charge lasts"
3. Restrict dialog
4. App info page

Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: I4955cc7c19b5f1df18f21cfb47e8859c997e19d1

6 years agoSort Uncategorized channel to the bottom.
Alison Cichowlas [Thu, 15 Mar 2018 22:07:27 +0000 (18:07 -0400)]
Sort Uncategorized channel to the bottom.

Bug: 64803214
Test: manual, with Duo app
Change-Id: I8e39fbed4ecda2efebb4606f38ea934647317207

6 years agoEnable launching captive portal directly
Adam Newman [Fri, 9 Mar 2018 00:59:34 +0000 (16:59 -0800)]
Enable launching captive portal directly

Whenever a user has connected to a captive portal network, split the
ConnectedAccessPointPreference to allow directly signing into the
captive portal or modifying the network's settings. When in any other
network state, use the old behavior of a single tappable preference that
takes the user to settings.

Bug: 63929546
Bug: 68031656
Test: make RunSettingsRoboTests
Test: manual by connecting to Captive Portal and normal WiFi networks.

Change-Id: I444202a12138d90c94bda94945c121c8c0810536
(cherry picked from commit 7577624db7bf9d9c8382161bab25849589822601)

6 years agoMerge "Revert "Update for 1.0.0-beta1"" into pi-dev
Alan Viverette [Thu, 15 Mar 2018 20:04:22 +0000 (20:04 +0000)]
Merge "Revert "Update for 1.0.0-beta1"" into pi-dev

6 years agoRevert "Update for 1.0.0-beta1"
Alan Viverette [Thu, 15 Mar 2018 17:48:04 +0000 (17:48 +0000)]
Revert "Update for 1.0.0-beta1"

This reverts commit 6b1fd5cfa9e6ff2a1b7cdc5190ec844dacec7a72.

Reason for revert: broke Settings

Bug: 74950017
Test: revert only
Change-Id: If56a4dcac4671d8e2c5f2c0de30d13e3cf58666a

6 years agoMerge "Update strings for location" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 18:30:24 +0000 (18:30 +0000)]
Merge "Update strings for location" into pi-dev

6 years agoMerge "Update the restrict app list" into pi-dev
Lei Yu [Thu, 15 Mar 2018 18:28:48 +0000 (18:28 +0000)]
Merge "Update the restrict app list" into pi-dev

6 years agoMerge "Track changes in libcore" into pi-dev
Neil Fuller [Thu, 15 Mar 2018 18:26:36 +0000 (18:26 +0000)]
Merge "Track changes in libcore" into pi-dev

6 years agoMerge "Add dialog when restrict apps are more than 5" into pi-dev
Lei Yu [Thu, 15 Mar 2018 18:01:58 +0000 (18:01 +0000)]
Merge "Add dialog when restrict apps are more than 5" into pi-dev

6 years agoMerge "Change text for data warning and data limit." into pi-dev
Sundeep Ghuman [Thu, 15 Mar 2018 17:08:34 +0000 (17:08 +0000)]
Merge "Change text for data warning and data limit." into pi-dev

6 years agoMerge "Update string in battery app info page" into pi-dev
Lei Yu [Thu, 15 Mar 2018 17:06:00 +0000 (17:06 +0000)]
Merge "Update string in battery app info page" into pi-dev

6 years agoChange text for data warning and data limit.
Jan Nordqvist [Mon, 12 Mar 2018 20:15:47 +0000 (13:15 -0700)]
Change text for data warning and data limit.

This change modifies the "data warning" text to show either nothing, only
warning, only limit, or warning and limit, based on which of the values are
set. It also remove the capitalization of the first letter of the texts.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=DataUsageSummaryPreferenceControllerTest
Change-Id: Ifebb411b906719c6e2f343f48d825f7b6f17af53

6 years agoMerge "Donot disable Wi-Fi Calling when getting "registration error" intent." into...
Brad Ebinger [Thu, 15 Mar 2018 16:04:56 +0000 (16:04 +0000)]
Merge "Donot disable Wi-Fi Calling when getting "registration error" intent." into pi-dev

6 years agoMerge changes Icf6fafe9,I35eb3f0c,Ieec0c486,I8accb164 into pi-dev
Sundeep Ghuman [Thu, 15 Mar 2018 15:43:17 +0000 (15:43 +0000)]
Merge changes Icf6fafe9,I35eb3f0c,Ieec0c486,I8accb164 into pi-dev

* changes:
  Set color of update line to red if update is older than six hours.
  In Data Usage screen, Below the data bar, Add “X days left” field.
  In Data Usage screen, add over-limit state.
  Change text layout of data usage string.

6 years agoMerge "Update for 1.0.0-beta1" into pi-dev
Alan Viverette [Thu, 15 Mar 2018 13:32:16 +0000 (13:32 +0000)]
Merge "Update for 1.0.0-beta1" into pi-dev

6 years agoFix channel screen launching
Julia Reynolds [Wed, 14 Mar 2018 20:28:39 +0000 (16:28 -0400)]
Fix channel screen launching

Test: launch channel screen from Settings & external app
Change-Id: Ib9add2f25cbacde192095407b83b17438946a493
Fixes: 73814186

6 years agoSet color of update line to red if update is older than six hours.
Jan Nordqvist [Mon, 12 Mar 2018 22:19:29 +0000 (15:19 -0700)]
Set color of update line to red if update is older than six hours.

In Data Usage screen, out-of-date state

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Icf6fafe9ab61a2c1ac3fba2bebf3bd4407c0ecfe

6 years agoIn Data Usage screen, Below the data bar, Add “X days left” field.
Jan Nordqvist [Fri, 9 Mar 2018 23:13:46 +0000 (15:13 -0800)]
In Data Usage screen, Below the data bar, Add “X days left” field.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I35eb3f0c09c84d609ad54e87400913ec77e19ea0

6 years agoIn Data Usage screen, add over-limit state.
Sundeep Ghuman [Thu, 15 Mar 2018 06:00:54 +0000 (23:00 -0700)]
In Data Usage screen, add over-limit state.

Bug: 70950124
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=DataUsageSummaryPreferenceTest

Change-Id: Ieec0c486c6a5451cd5983f02e202ddac3413a602

6 years agoChange text layout of data usage string.
Jan Nordqvist [Wed, 7 Mar 2018 17:59:06 +0000 (09:59 -0800)]
Change text layout of data usage string.

In Data Usage screen, Above the data bar, Change font size of number
In Data Usage screen, Above the data bar, Update text style of “GB used”
In Data Usage screen, Above the data bar, Add “GB left” aligned right of bar (not always shown)

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I8accb16425283cf148ddb6b6646f92ff51a74b7c

6 years agoMerge "update the whitelist for anomaly detection" into pi-dev
Andrew Sapperstein [Thu, 15 Mar 2018 05:09:59 +0000 (05:09 +0000)]
Merge "update the whitelist for anomaly detection" into pi-dev

6 years agoMerge "Fix the ProgressBar in DataUsageSummaryV2 page." into pi-dev
Sundeep Ghuman [Thu, 15 Mar 2018 05:00:41 +0000 (05:00 +0000)]
Merge "Fix the ProgressBar in DataUsageSummaryV2 page." into pi-dev

6 years agoMerge "Rename “Mobile data usage” to “App data usage” & hide summary" into pi-dev
Andrew Sapperstein [Thu, 15 Mar 2018 04:58:42 +0000 (04:58 +0000)]
Merge "Rename “Mobile data usage” to “App data usage” & hide summary" into pi-dev

6 years agoUpdate string in battery app info page
Lei Yu [Thu, 15 Mar 2018 00:02:30 +0000 (17:02 -0700)]
Update string in battery app info page

Change-Id: I78ce7499f10bb65d44865349738bf77300180867
Fixes: 73576591
Bugs: 73018395
Test: Manual

6 years agoFix the ProgressBar in DataUsageSummaryV2 page.
Sundeep Ghuman [Tue, 13 Mar 2018 05:25:23 +0000 (22:25 -0700)]
Fix the ProgressBar in DataUsageSummaryV2 page.

Bug: 70950124
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DataUsageSummaryPreferenceTest
Change-Id: I83f268c0824d9e3520899725fa572753e1de0814

6 years agoRename “Mobile data usage” to “App data usage” & hide summary
Andreas Terzis [Fri, 9 Mar 2018 06:51:47 +0000 (22:51 -0800)]
Rename “Mobile data usage” to “App data usage” & hide summary

In Data usage screen, rename “Mobile data usage” to “App data usage” &
hide summary.

Also, change the title of the new "App data usage" (old "Mobile data
usage") screen to "App data usage".

Test: manual
Test: make RunSettingsRoboTests
Bug: 70950124
Change-Id: Ide9bcb2a4b171edcd088d68275bacda1eb449afe

6 years agoAdd dialog when restrict apps are more than 5
Lei Yu [Tue, 13 Mar 2018 00:16:54 +0000 (17:16 -0700)]
Add dialog when restrict apps are more than 5

Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: Iec24fc1ce8e5840207610b3155dffa7059f9aa49

6 years agoTrack changes in libcore
Neil Fuller [Wed, 14 Mar 2018 17:11:44 +0000 (17:11 +0000)]
Track changes in libcore

Track method parameter changes in libcore.

Bug: 72142943
Test: Build only
Change-Id: I85396aeea98eaa8c093115ee52b52e22d1a4aa2b

6 years agoMerge "Request focus in wifi screen in add network and secure wifi" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 17:11:37 +0000 (17:11 +0000)]
Merge "Request focus in wifi screen in add network and secure wifi" into pi-dev

6 years agoMerge "Show default a11y icon in shortcut menu" into pi-dev
Phil Weaver [Wed, 14 Mar 2018 16:45:49 +0000 (16:45 +0000)]
Merge "Show default a11y icon in shortcut menu" into pi-dev

6 years agoMerge "Don't pre-scale vector drawables in settings" into pi-dev
Phil Weaver [Wed, 14 Mar 2018 16:03:28 +0000 (16:03 +0000)]
Merge "Don't pre-scale vector drawables in settings" into pi-dev

6 years agoRequest focus in wifi screen in add network and secure wifi
Yuchen Chang [Wed, 14 Mar 2018 09:16:05 +0000 (17:16 +0800)]
Request focus in wifi screen in add network and secure wifi

Request focus from parent view in controller. Based on framework
patch, it can be placed in a parent and focus will go to whatever view
is the default focusable in that hierarchy.

Fixes: 68776177
Fixes: 72882629
Test: RunSettingsRobotests and Manual test
Change-Id: I3bcdc4ec814f68079a00e40435f46bdfa53f4425

6 years agoMerge "Fix the system crash issue when secondary user clicks any 802.1x AP on Wifi...
TreeHugger Robot [Wed, 14 Mar 2018 06:53:12 +0000 (06:53 +0000)]
Merge "Fix the system crash issue when secondary user clicks any 802.1x AP on Wifi Picker." into pi-dev

6 years agoMerge "Fix new DataUsageSummary page line spacing." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 06:00:29 +0000 (06:00 +0000)]
Merge "Fix new DataUsageSummary page line spacing." into pi-dev

6 years agoMerge "Add dialog for summary tip" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 05:47:12 +0000 (05:47 +0000)]
Merge "Add dialog for summary tip" into pi-dev

6 years agoMerge "Change default value for SOFT_AP_TIMEOUT_ENABLED" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 05:47:10 +0000 (05:47 +0000)]
Merge "Change default value for SOFT_AP_TIMEOUT_ENABLED" into pi-dev

6 years agoMerge "Add Data warning and limit footer text." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 05:44:44 +0000 (05:44 +0000)]
Merge "Add Data warning and limit footer text." into pi-dev

6 years agoMerge "Change the color of the measurement numbers below the data bar." into pi-dev
Andreas Terzis [Wed, 14 Mar 2018 03:58:32 +0000 (03:58 +0000)]
Merge "Change the color of the measurement numbers below the data bar." into pi-dev

6 years agoMerge "Fix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi" into pi-dev
Dianne Hackborn [Wed, 14 Mar 2018 03:02:20 +0000 (03:02 +0000)]
Merge "Fix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi" into pi-dev

6 years agoFix new DataUsageSummary page line spacing.
Sundeep Ghuman [Tue, 13 Mar 2018 03:28:09 +0000 (20:28 -0700)]
Fix new DataUsageSummary page line spacing.

There are still some unspecified items pending UX. Have left comments on
ag/3702541 to avoid regressions.

Bug: 70950124
Test: UI change only, no code to test.
Change-Id: I7fa96134af750d71786d031652162aed6bffbeb5

6 years agoMerge "Fix alignment for the instant app button." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 00:28:12 +0000 (00:28 +0000)]
Merge "Fix alignment for the instant app button." into pi-dev

6 years agoChange default value for SOFT_AP_TIMEOUT_ENABLED
Lei Yu [Wed, 14 Mar 2018 00:20:16 +0000 (17:20 -0700)]
Change default value for SOFT_AP_TIMEOUT_ENABLED

Change the default value to 1.

Change-Id: I78a69d6224ad417537be59ce51357e1093d6bae4
Fixes: 73501186
Test: RunSettingsRoboTests

6 years agoFix the system crash issue when secondary user clicks any 802.1x AP on
Ecco Park [Mon, 12 Mar 2018 18:37:51 +0000 (11:37 -0700)]
Fix the system crash issue when secondary user clicks any 802.1x AP on
Wifi Picker.

Catch the exception when keystore failed to list the certs

Bug: 73794111
Test: test it with clicking the Google-A on Wifi Picker.
Test: make ROBOTEST_FILTER="(WifiConfigControllerTest)"
RunSettingsRoboTests -j32
RunSettingsRoboTests: OK (12 tests)

Change-Id: I0db66730261c72ef35d1b299bacd2aed7710d247

6 years agoMerge "Made ordering in the Sound settings page more sparse to allow injecting tiles...
Katsiaryna Naliuka [Tue, 13 Mar 2018 23:29:01 +0000 (23:29 +0000)]
Merge "Made ordering in the Sound settings page more sparse to allow injecting tiles in arbitrary positions." into pi-dev

6 years agoUpdate strings for location
Lei Yu [Fri, 9 Mar 2018 02:24:44 +0000 (18:24 -0800)]
Update strings for location

Bug: 65626601
Test: Screenshot
Change-Id: I66dc675246e3a15069821fddb9d02123429c3722

6 years agoAdd dialog for summary tip
jackqdyulei [Wed, 28 Feb 2018 19:21:39 +0000 (11:21 -0800)]
Add dialog for summary tip

Also change SummaryTip to store the time data, which is used
in the dialog. If "Full last charge" time is available, show
normal message otherwise show message without it.

Bug: 72997971
Test: RunSettingsRoboTests
Change-Id: I4ce94f0935465a18275edb13e3be343313427c3b

6 years agoFix alignment for the instant app button.
Doris Ling [Tue, 13 Mar 2018 21:38:33 +0000 (14:38 -0700)]
Fix alignment for the instant app button.

- wrap the secondary button in the FrameLayout to make it align properly
with the primary button.

Change-Id: I6964bc67773a77eae551521747c19898a2f22210
Fixes: 69562807
Test: visual

6 years agoAdd Data warning and limit footer text.
Sundeep Ghuman [Tue, 13 Mar 2018 05:26:52 +0000 (22:26 -0700)]
Add Data warning and limit footer text.

Bug: 70550124
Test: XML only change, visual inspection.
Change-Id: Iaea3f100051bb908b13ca6809463db7f01f8d92d

6 years agoMerge "Fix presubmit test failure." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 20:18:14 +0000 (20:18 +0000)]
Merge "Fix presubmit test failure." into pi-dev

6 years agoChange the color of the measurement numbers below the data bar.
Jan Nordqvist [Fri, 9 Mar 2018 22:02:54 +0000 (14:02 -0800)]
Change the color of the measurement numbers below the data bar.

Original line item: In Data Usage screen, Below the data bar, Make GB measurement numbers smaller.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Id30233e038c664539fd688dcd4eb99af0c41f010

6 years agoMade ordering in the Sound settings page more sparse to allow injecting
Katsiaryna Naliuka [Tue, 13 Mar 2018 19:48:05 +0000 (20:48 +0100)]
Made ordering in the Sound settings page more sparse to allow injecting
tiles in arbitrary positions.

Also increased a number of settings that are not hidden behind the
overflow to accommodate 1 more line.

Bug: 64065365

Test: manual
Change-Id: I3ac8dfd4802967e02bebc6558a5b96d68cb2ea34

6 years agoMerge changes from topic "dnd_touch_sounds" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 19:58:51 +0000 (19:58 +0000)]
Merge changes from topic "dnd_touch_sounds" into pi-dev

* changes:
  Test for string changes in DND Sound Settings
  Update seconday text DND Exceptions preference

6 years agoupdate the whitelist for anomaly detection
Lei Yu [Mon, 12 Mar 2018 20:32:59 +0000 (13:32 -0700)]
update the whitelist for anomaly detection

Add "allow-in-power-save-except-idle" to whitelist. Also ignore
all the system uids

Bug: 74241534
Test: RunSettingsRoboTests
Change-Id: I593e558168db339f6f38c7f78ab4fd63f99b16ab

6 years agoFix presubmit test failure.
Doris Ling [Tue, 13 Mar 2018 18:25:04 +0000 (11:25 -0700)]
Fix presubmit test failure.

- fix the typo in the manifest that reference the zen mode fragment.

Change-Id: Iae6975d015174fabb98033b917290c954c5483c2
Fixes: 74577539
Test: make SettingsUnitTests

6 years agoMerge "Increase string character limits to 40" into pi-dev
Andreas Terzis [Tue, 13 Mar 2018 17:58:12 +0000 (17:58 +0000)]
Merge "Increase string character limits to 40" into pi-dev

6 years agoUpdate the restrict app list
Lei Yu [Mon, 12 Mar 2018 21:42:54 +0000 (14:42 -0700)]
Update the restrict app list

Before this cl, we use getPackagesForOps() to populate restrict app
list. However in that API not all the apps are currently restricted,
so in this cl we filter out all the allowed apps.

Bug: 73085780
Test: RunSettingsRoboTest
Change-Id: Ia7c1eb95b07a1a0d203b394eb64dcd98d25bd561

6 years agoDonot disable Wi-Fi Calling when getting "registration error" intent.
Suresh Koleti [Mon, 20 Nov 2017 12:50:26 +0000 (18:20 +0530)]
Donot disable Wi-Fi Calling when getting "registration error" intent.

Test: Manual
Bug: 69446679
Merged-In: I95a108f4e6090b61e4584a64bed58c024e120fd0
Change-Id: I92869d091f3ad1ece5d3c33457d7601d07797639

6 years agoMerge "Update suggestion title and summary text." into pi-dev
Doris Ling [Tue, 13 Mar 2018 00:27:34 +0000 (00:27 +0000)]
Merge "Update suggestion title and summary text." into pi-dev

6 years agoUpdate for 1.0.0-beta1
Alan Viverette [Fri, 9 Mar 2018 23:07:30 +0000 (18:07 -0500)]
Update for 1.0.0-beta1

Bug: 74449147
Test: make
Change-Id: I664b5f29efbb5d6c40420c0d8aaa8629ddfcd31b

6 years agoMerge "Align the search view with the setting items" into pi-dev
Victor Chang [Mon, 12 Mar 2018 22:58:53 +0000 (22:58 +0000)]
Merge "Align the search view with the setting items" into pi-dev

6 years agoMerge "Adding zen duration preference" into pi-dev
Beverly Tai [Mon, 12 Mar 2018 21:39:18 +0000 (21:39 +0000)]
Merge "Adding zen duration preference" into pi-dev

6 years agoMerge "Bluetooth: Enable AVDTP Delay reports by default." into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 21:08:59 +0000 (21:08 +0000)]
Merge "Bluetooth: Enable AVDTP Delay reports by default." into pi-dev

6 years agoIncrease string character limits to 40
Andreas Terzis [Mon, 12 Mar 2018 19:27:50 +0000 (12:27 -0700)]
Increase string character limits to 40

Increase character limits for the "billing_cycle" and
"app_usage_cycle" strings to 40 characters because the
current limit of 30 characters is not enough for some
translations.

Test: manual
Test: make RunSettingsRoboTests
Bug: 70950124
Change-Id: I2091915ca78786f4b29de211b4635af45cb4946f

6 years agoAlign the search view with the setting items
Victor Chang [Mon, 12 Mar 2018 15:41:19 +0000 (15:41 +0000)]
Align the search view with the setting items

- Remove the margin and paddings in the search view

Bug: 73952488
Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.datetime.timezone
Change-Id: I67fb420cf77fc427a550449a053f80dcf66d16ff

6 years agoMerge "Fix failing testcases in SettingsAdapterTest." into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 19:36:32 +0000 (19:36 +0000)]
Merge "Fix failing testcases in SettingsAdapterTest." into pi-dev

6 years agoUpdate suggestion title and summary text.
Doris Ling [Fri, 9 Mar 2018 19:17:34 +0000 (11:17 -0800)]
Update suggestion title and summary text.

Bug: 73164111
Test: rebuild
Change-Id: I35db24cd78e88091154e5cbcc9fa089181f3edb2

6 years agoMerge "Fix tests" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 19:22:22 +0000 (19:22 +0000)]
Merge "Fix tests" into pi-dev

6 years agoTest for string changes in DND Sound Settings
Beverly [Mon, 12 Mar 2018 18:35:27 +0000 (14:35 -0400)]
Test for string changes in DND Sound Settings

Test: this
Change-Id: I47ba1d1bad6a5be04d718d2e58eaf5dd6c69f107
Fixes: 74529508

6 years agoMerge "Introduce boolean flag to show/hide Reset Options." into pi-dev
Ben Lin [Mon, 12 Mar 2018 17:52:47 +0000 (17:52 +0000)]
Merge "Introduce boolean flag to show/hide Reset Options." into pi-dev

6 years agoMerge "Introduce boolean flags to show/hide Encryption status." into pi-dev
Ben Lin [Mon, 12 Mar 2018 17:52:37 +0000 (17:52 +0000)]
Merge "Introduce boolean flags to show/hide Encryption status." into pi-dev

6 years agoAdding zen duration preference
Beverly [Mon, 26 Feb 2018 14:19:41 +0000 (09:19 -0500)]
Adding zen duration preference

Test: make ROBOTEST_FILTER=ZenModeDurationPreferenceControllerTest RunSettingsRoboTests -j40
Bug: 73741459
Change-Id: I55a75897045ef059dc872bf6403a62f46cedc417

6 years agoUpdate seconday text DND Exceptions preference
Beverly [Fri, 9 Mar 2018 20:49:22 +0000 (15:49 -0500)]
Update seconday text DND Exceptions preference

Test: manual
Bug: 74441398
Change-Id: Ibaa459aa368f62c4ef8cdbefef462848e7bc6fe7

6 years agoMerge "Updated dnd secondary text in sound settings" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 15:02:01 +0000 (15:02 +0000)]
Merge "Updated dnd secondary text in sound settings" into pi-dev

6 years agoFix tests
Julia Reynolds [Mon, 12 Mar 2018 14:08:19 +0000 (10:08 -0400)]
Fix tests

Test: make -j20 RunSettingsRoboTests
Change-Id: I40fda22b4a9da3df7f4319bc68a78d291c1b943d
Fixes: 74446970

6 years agoMerge "Declare official platform slice" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 03:17:19 +0000 (03:17 +0000)]
Merge "Declare official platform slice" into pi-dev

6 years agoMerge "Reenable pre-N style hard keyboard layout settings" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 01:58:06 +0000 (01:58 +0000)]
Merge "Reenable pre-N style hard keyboard layout settings" into pi-dev

6 years agoMerge changes from topic "picker-analytics" into pi-dev
Victor Chang [Sat, 10 Mar 2018 12:24:38 +0000 (12:24 +0000)]
Merge changes from topic "picker-analytics" into pi-dev

* changes:
  Fix UX problems in time zone pickers
  Add tron metric logging

6 years agoMerge "Add extra log for battery tip." into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 01:43:04 +0000 (01:43 +0000)]
Merge "Add extra log for battery tip." into pi-dev

6 years agoMerge "Disable bluetooth controller if unsupported" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 01:21:41 +0000 (01:21 +0000)]
Merge "Disable bluetooth controller if unsupported" into pi-dev

6 years agoIntroduce boolean flag to show/hide Reset Options.
Ben Lin [Wed, 7 Mar 2018 23:24:37 +0000 (15:24 -0800)]
Introduce boolean flag to show/hide Reset Options.

This adds one new flag:
config_show_reset_dashboard

Which when set to false, will hide Reset Options from System settings.

Bug: 74127210
Test: Updated robotests
Change-Id: I42b14a0abde575f5c4e51985125e8543716d206a
(cherry picked from commit bd180a62ec597dbcc205ff55395851769cdbe730)

6 years agoIntroduce boolean flags to show/hide Encryption status.
Ben Lin [Tue, 6 Mar 2018 00:35:48 +0000 (16:35 -0800)]
Introduce boolean flags to show/hide Encryption status.

This adds one new flag:
config_show_encryption_and_credentials_encryption_status

Which when set to false, will hide Encryption status from Encryption &
credentials. This is when the storage is not being handed by Android,
and so this preference would not be necessarily correct.

Bug: 74127210
Test: Updated robotests
Change-Id: I13665fa369086ef29a4de5f99a78bfbaf96f2f6b
(cherry picked from commit 2d5df469d3a50a1aea6245785e54d0d4ad301d39)

6 years agoMerge "Make battery seekbar update continuous" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 00:22:39 +0000 (00:22 +0000)]
Merge "Make battery seekbar update continuous" into pi-dev

6 years agoFix failing testcases in SettingsAdapterTest.
Doris Ling [Fri, 9 Mar 2018 23:22:57 +0000 (15:22 -0800)]
Fix failing testcases in SettingsAdapterTest.

- added the shadow class for CardView to fix the not implemented error.

Change-Id: I17a53f804310ffb3330c1cd3ca11943cf91335a6
Fixes: 74446970
Test: make RunSettingsRoboTests

6 years agoAdd extra log for battery tip.
jackqdyulei [Sat, 3 Mar 2018 00:33:59 +0000 (16:33 -0800)]
Add extra log for battery tip.

For each visible battery tip, logs its type and state. For battery tip
with app list, also log that list:

1. HighUsageTip: apps that used too much battery
2. RestrictAppTip: apps with anomaly, also logs the anomaly type

Bug: 73888115
Test: RunSettingsRoboTests
Change-Id: I1b61eb1d793d979baab4864d2d652e12260b590d

6 years agoDisable bluetooth controller if unsupported
Weilun Du [Tue, 6 Mar 2018 20:05:32 +0000 (12:05 -0800)]
Disable bluetooth controller if unsupported

Only disable the controllers not the whole fragment because
user might need to have entry for other features.

Fixes: 73664409
Merged-In: I98ed248cf33d11715dd523e711cbc68ebf128ef8
Change-Id: I98ed248cf33d11715dd523e711cbc68ebf128ef8
Signed-off-by: Weilun Du <wdu@google.com>
(cherry picked from commit 68a195ae932df264fa0cb6cd457b1655d1cd1420)

6 years agoBypass failing test for SuggestionAdapterTest.
Doris Ling [Fri, 9 Mar 2018 22:00:36 +0000 (14:00 -0800)]
Bypass failing test for SuggestionAdapterTest.

- other changes might have caused this test to start failing. Need more
time to investigate or properly fix the tests. Since they are blocking
presubmit right now, will ignore the tests first and provide fix
later.

Bug: 74444815
Test: make RunSettingsRoboTests
Change-Id: I985abe74c64a562fb117b91056a23895181897bd

6 years agoBluetooth: Enable AVDTP Delay reports by default.
Ajay Panicker [Wed, 7 Mar 2018 23:55:02 +0000 (15:55 -0800)]
Bluetooth: Enable AVDTP Delay reports by default.

Bug: 32755225
Test: See that delay reports are enabled when connecting to device
Change-Id: Icba9be6fc8ba455d37df39d283e36129f6acb536
(cherry picked from commit a8cf0b9371bf9bcb2b92243ec29b822f1f021098)

6 years agoUpdated dnd secondary text in sound settings
Beverly [Fri, 9 Mar 2018 20:14:07 +0000 (15:14 -0500)]
Updated dnd secondary text in sound settings

Test: manual
Bug: 74441398
Change-Id: I4dafd9082e03bc9fa8f5e3f9505a8a1bb2fcc4da

6 years agoFix UX problems in time zone pickers
Victor Chang [Fri, 9 Mar 2018 12:03:03 +0000 (12:03 +0000)]
Fix UX problems in time zone pickers

- Remove emoji region flag in the region picker.
  It's more consistent with locale picker which shows no flag in region
  picker
- Remove redundant information in the summary field
  e.g. same GMT offset in primary and secondary field in fixed offset
  picker
- Better mode switching flow. Switch region/fixed offset mode
only when the user confirms their selection in the picker.

Bug: 73952488
Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.datetime.timezone
Change-Id: Id5da8a2516acd10c9a3d71181e94bc617d797d20

6 years agoAdd tron metric logging
Victor Chang [Fri, 9 Mar 2018 17:16:05 +0000 (17:16 +0000)]
Add tron metric logging

- one tracking id for every picker type

Bug: 73952488
Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.datetime.timezone
Change-Id: Ia487f1657d6ed1f0fb40b61f39f4a47c38bd6179

6 years agoMake battery seekbar update continuous
Lei Yu [Fri, 9 Mar 2018 19:18:42 +0000 (11:18 -0800)]
Make battery seekbar update continuous

After this cl, when user slides the slider, the text will be
updated continuously.

Bug: 73763634
Test: Manual
Change-Id: Ief9278d39426f6ec9ce9bbcc0be911d083673684

6 years agoDeclare official platform slice
Matthew Fritze [Wed, 28 Feb 2018 16:15:55 +0000 (08:15 -0800)]
Declare official platform slice

Create the notion of an official platform slice.
This includes:
- Adding a second authority to the provider
- tagging slices in xml with a platform slice flag
- Including authority in the getUri method

Bug:73359139
Test: robotests
Change-Id: I5382be138a262dbc5a8324c34aab131c5d0d5516
Merged-In: I581ee6dfcdf935f452a15e89e5d055e375ff1877