OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoSnap for 4647811 from 371404c4040ecef1110ba68c2e349497bad9b652 to pi-release
android-build-team Robot [Sun, 11 Mar 2018 08:22:46 +0000 (08:22 +0000)]
Snap for 4647811 from 371404c4040ecef1110ba68c2e349497bad9b652 to pi-release

Change-Id: I0869d0a2c8974911201877cb3abae133a16577fb

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 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 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 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 agoMerge "Change anomalyType to ArraySet in AppInfo" into pi-dev
Lei Yu [Fri, 9 Mar 2018 17:38:53 +0000 (17:38 +0000)]
Merge "Change anomalyType to ArraySet in AppInfo" into pi-dev

6 years agoMerge "Show new visual effects options in dnd settings" into pi-dev
Julia Reynolds [Fri, 9 Mar 2018 13:38:06 +0000 (13:38 +0000)]
Merge "Show new visual effects options in dnd settings" into pi-dev

6 years agoMerge "Get auto-battery saver threshold max from global setting" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:51:41 +0000 (03:51 +0000)]
Merge "Get auto-battery saver threshold max from global setting" into pi-dev

6 years agoShow new visual effects options in dnd settings
Julia Reynolds [Fri, 2 Mar 2018 20:51:14 +0000 (15:51 -0500)]
Show new visual effects options in dnd settings

Bug: 74075050
Test: make -j20 RunSettingsRoboTests
Change-Id: Ia629007d1c80b657aaf756d0f6d2edfd89a7f6b4

6 years agoChange anomalyType to ArraySet in AppInfo
Lei Yu [Thu, 8 Mar 2018 01:17:29 +0000 (17:17 -0800)]
Change anomalyType to ArraySet in AppInfo

After this cl, in AppInfo we could store mutilple anomalyTypes, so
AppInfo list will only contain one instance for each uid(however
still keep all the anomaly data)

In this way we could remove the duplicate items in app dialog.

Bug: 74335346
Test: RunSettingsRoboTests
Change-Id: I2ef7c218df2a956eea66aa6bdf03f5ddd19948e3

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 0a7ae11c49 skipped...
Antony Sargent [Thu, 8 Mar 2018 19:59:36 +0000 (19:59 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 0a7ae11c49 skipped: d923718d10 skipped: 59ab695e25 skipped: eb76bf9861 skipped: 5755ec9bff skipped: ddd9cb6be9 skipped: 6827142bd1 skipped: ca801490c1 skipped: fb6a179745 am: 5943908af4  -s ours am: f224aa6af9  -s ours
am: 086df75f9a  -s ours

Change-Id: I5d48e96b63dc79dbe89adde6eb83ceaad288efe7

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 0a7ae11c49 skipped...
Antony Sargent [Thu, 8 Mar 2018 19:48:36 +0000 (19:48 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 0a7ae11c49 skipped: d923718d10 skipped: 59ab695e25 skipped: eb76bf9861 skipped: 5755ec9bff skipped: ddd9cb6be9 skipped: 6827142bd1 skipped: ca801490c1 skipped: fb6a179745 am: 5943908af4  -s ours
am: f224aa6af9  -s ours

Change-Id: I0441b99e9f7b945d41303fdc8d0e412426a081e3

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 0a7ae11c49 skipped...
Antony Sargent [Thu, 8 Mar 2018 19:42:30 +0000 (19:42 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 0a7ae11c49 skipped: d923718d10 skipped: 59ab695e25 skipped: eb76bf9861 skipped: 5755ec9bff skipped: ddd9cb6be9 skipped: 6827142bd1 skipped: ca801490c1 skipped: fb6a179745
am: 5943908af4  -s ours

Change-Id: I26672d57ced63374a8b03ae3e8e0647c6a4bd150

6 years agoHide options button when user starts entering pattern
Maurice Lam [Sat, 3 Mar 2018 03:32:48 +0000 (19:32 -0800)]
Hide options button when user starts entering pattern

Test: cd tests/robotests && mma
Bug: 72409245
Change-Id: I82ab8822f13bc8bf8b74bc67f6d4d3a9fd2cc0c8
(cherry picked from commit ad554244b69d91e0304e9e5a45642b585c9e1fde)

6 years agoMerge "Show time zone standard name in FixedOffsetPreferenceController" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 18:45:30 +0000 (18:45 +0000)]
Merge "Show time zone standard name in FixedOffsetPreferenceController" into pi-dev

6 years agoGet auto-battery saver threshold max from global setting
Makoto Onuki [Wed, 7 Mar 2018 22:03:55 +0000 (14:03 -0800)]
Get auto-battery saver threshold max from global setting

Bug: 74351418
Test: Manual test with "settings put global low_power_trigger_level_max 100"
Test: m ROBOTEST_FILTER=AutoBatterySeekBarPreferenceControllerTest RunSettingsRoboTests
Change-Id: Ice25835f36e7855e3ed665cd780d7eb1a26acd27

6 years agoShow time zone standard name in FixedOffsetPreferenceController
Victor Chang [Thu, 8 Mar 2018 15:05:14 +0000 (15:05 +0000)]
Show time zone standard name in FixedOffsetPreferenceController

- Among all fixed offset time zone, only Etc/UTC has a time zone
standard name. The name should be shown in both picker and preference's
secondary text (summary).

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

6 years agoSnap for 4641295 from 6949175423eb13e0a393c4751b906188e16ac926 to pi-release
android-build-team Robot [Thu, 8 Mar 2018 08:22:32 +0000 (08:22 +0000)]
Snap for 4641295 from 6949175423eb13e0a393c4751b906188e16ac926 to pi-release

Change-Id: I7f62e2c3f112137791fdbd28bb3c9b97ca2e9f3b

6 years agoMerge "Fix layout height for suggestion tile." into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 05:32:25 +0000 (05:32 +0000)]
Merge "Fix layout height for suggestion tile." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 05:12:11 +0000 (05:12 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Update fuelguage to use uid in AppInfo" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 03:22:40 +0000 (03:22 +0000)]
Merge "Update fuelguage to use uid in AppInfo" into pi-dev

6 years agoMerge "Make "Add device" as restricted preference." into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 02:58:25 +0000 (02:58 +0000)]
Merge "Make "Add device" as restricted preference." into pi-dev

6 years agoMerge "Move Auto sync data prefs from user to account screen" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 02:01:46 +0000 (02:01 +0000)]
Merge "Move Auto sync data prefs from user to account screen" into pi-dev

6 years agoUpdate fuelguage to use uid in AppInfo
jackqdyulei [Thu, 1 Mar 2018 01:48:27 +0000 (17:48 -0800)]
Update fuelguage to use uid in AppInfo

The uid is needed to distinguish the same app used
by different users(even work profile user). So
we need to store the correct uid in AppInfo and
use it across the settings app.

Bug: 74022362
Test: RunSettingsRoboTests
Change-Id: Iaa0ea1ac1fbd3a3a1251e0cd1096d6a8c75c4ed8

6 years agoMerge "Add whitelist for anomaly detection." into pi-dev
Lei Yu [Thu, 8 Mar 2018 01:14:51 +0000 (01:14 +0000)]
Merge "Add whitelist for anomaly detection." into pi-dev

6 years agoMerge "For vibration settings page, create controllers from xml" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 01:07:38 +0000 (01:07 +0000)]
Merge "For vibration settings page, create controllers from xml" into pi-dev

6 years agoMove Auto sync data prefs from user to account screen
Fan Zhang [Wed, 7 Mar 2018 23:42:53 +0000 (15:42 -0800)]
Move Auto sync data prefs from user to account screen

Change-Id: Idb69ed49c6e21f93cafa593ba5e7dffa32f377b7
Fixes: 73739376
Test: existing robotests & atest

6 years agoMerge "Clean up comment" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 23:34:43 +0000 (23:34 +0000)]
Merge "Clean up comment" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 7 Mar 2018 21:43:31 +0000 (13:43 -0800)]
Import translations. DO NOT MERGE

BUG:72647570

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

6 years agoMerge "Update string: clear data -> clear storage" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 23:26:30 +0000 (23:26 +0000)]
Merge "Update string: clear data -> clear storage" into pi-dev

6 years agoFix layout height for suggestion tile.
Doris Ling [Wed, 7 Mar 2018 23:04:11 +0000 (15:04 -0800)]
Fix layout height for suggestion tile.

- set minHeight instead of using a fix height, so that when the
font/display size is set to larger, the height will expand accordingly
to fit all elements in the suggestion card.

- revert the change that tint all suggestion icons. The previous logic
should be used to determine if we should tint the icon or not.

Change-Id: I2451490130cee216ff65301a600eb91d2e65c321
Fixes: 74261827
Test: visual and make RunSettingsRoboTests

6 years agoFor vibration settings page, create controllers from xml
Fan Zhang [Wed, 7 Mar 2018 22:15:28 +0000 (14:15 -0800)]
For vibration settings page, create controllers from xml

This change leverages a new support in settings framework to
automatically share preference controllers between full setting page,
search, and slice provider.

Bug: 73668763
Test: existing robotest and atest
Change-Id: Ie96a28f1b503377b3fdf86e28d297c8560d8bf71

6 years agoMerge "Rename "Billing Cycle" to "App usage cycle"." into pi-dev
Andreas Terzis [Wed, 7 Mar 2018 22:46:13 +0000 (22:46 +0000)]
Merge "Rename "Billing Cycle" to "App usage cycle"." into pi-dev

6 years agoClean up comment
Fan Zhang [Wed, 7 Mar 2018 21:36:58 +0000 (13:36 -0800)]
Clean up comment

Bug: 73074893
Test: none
Change-Id: If7dcfcbb2e943d5734239ddb51c0e6ac798b641b

6 years agoAdd whitelist for anomaly detection.
jackqdyulei [Tue, 6 Mar 2018 21:19:15 +0000 (13:19 -0800)]
Add whitelist for anomaly detection.

Even though we can add whitelist in config, we still need to have a
on device whitelist to reduce the size of config.

Use doze whitelist here because we already used it to detect whether
we can restrict the app in battery detail page.

Bug: 74241534
Test: RunSettingsRoboTests
Change-Id: I35b6f3eba9fbc8ae51bb02cd9d5416e4360c388e

6 years agoUpdate string: clear data -> clear storage
Fan Zhang [Wed, 7 Mar 2018 21:19:52 +0000 (13:19 -0800)]
Update string: clear data -> clear storage

Change-Id: I710f7b95a53e5437d895ff920f3cce7aa4c5a6cf
Fixes: 34515307
Test: visual

6 years agoUpdate BatteryInfo to include averageTimeToDischarge
Salvador Martinez [Sat, 3 Mar 2018 01:09:48 +0000 (17:09 -0800)]
Update BatteryInfo to include averageTimeToDischarge

This updates the Estimate data model class as well as the places
it is used to populate the new field when available.

Test: robotests
Bug: 74020365
Change-Id: Ibcecf933819f8b8cd8514205768569e9bd7d1517
(cherry picked from commit 453db0cdbcb9a721a190218261b24c84ff7727b3)
Merged-In: 453db0cdbcb9a721a190218261b24c84ff7727b3

6 years agoRename "Billing Cycle" to "App usage cycle".
Andreas Terzis [Wed, 7 Mar 2018 08:26:15 +0000 (00:26 -0800)]
Rename "Billing Cycle" to "App usage cycle".

Under Settings > Data Usage, rename "Billing cycle" to
"Data warning & limit".

In the new "Data warning & limit" screen rename "Billing cycle"
to "App usage cycle".

Bug: 74321150
Test: manual
Change-Id: Ied4fd604fe98f5fc613fd4f7fc3a3bea5908bb7c

6 years agoMerge "Block location accuracy when DISALLOW_CONFIG_LOCATION is set." into pi-dev
Yueming Wang [Wed, 7 Mar 2018 20:10:10 +0000 (20:10 +0000)]
Merge "Block location accuracy when DISALLOW_CONFIG_LOCATION is set." into pi-dev

6 years agoMerge "Misc fixes to improve search" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 19:59:11 +0000 (19:59 +0000)]
Merge "Misc fixes to improve search" into pi-dev

6 years agoMerge "Add dump log for BatteryTip." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 18:53:09 +0000 (18:53 +0000)]
Merge "Add dump log for BatteryTip." into pi-dev

6 years agoMisc fixes to improve search
Fan Zhang [Wed, 7 Mar 2018 00:18:10 +0000 (16:18 -0800)]
Misc fixes to improve search

- Suppress one of results from "On lock screen"
- Remove screen title from sub sections in data usage screen.
- On UserSettins, index using resource instead raw. And build
  non-indexables using getNonIndexable and pref controlleres.

Change-Id: I947a97af60f1a08b237fda2f3c456cf1105b9231
Fixes: 74120518
Fixes: 74119743
Fixes: 74250251
Fixes: 74119687
Test: reindex

6 years agoMerge "Enable new time zone picker" into pi-dev
Victor Chang [Wed, 7 Mar 2018 17:09:59 +0000 (17:09 +0000)]
Merge "Enable new time zone picker" into pi-dev

6 years agoMerge "New time zone picker page" into pi-dev
Victor Chang [Wed, 7 Mar 2018 17:09:59 +0000 (17:09 +0000)]
Merge "New time zone picker page" into pi-dev

6 years agoMerge "Update dabase manager to store the uid" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 16:57:35 +0000 (16:57 +0000)]
Merge "Update dabase manager to store the uid" into pi-dev

6 years agoMerge "System gets its own dnd toggle" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 16:39:40 +0000 (16:39 +0000)]
Merge "System gets its own dnd toggle" into pi-dev

6 years agoBlock location accuracy when DISALLOW_CONFIG_LOCATION is set.
yuemingw [Thu, 1 Feb 2018 13:57:52 +0000 (13:57 +0000)]
Block location accuracy when DISALLOW_CONFIG_LOCATION is set.

Bug: 72633181
Test: make ROBOTEST_FILTER=InjectedSettingTest -j40 RunSettingsRoboTests
Test: make ROBOTEST_FILTER=LocationServicePreferenceControllerTest -j40 RunSettingsRoboTests

Change-Id: I91e4dbff8bcce637424646f5435e72f9bb707631

6 years agoEnable new time zone picker
Victor Chang [Wed, 28 Feb 2018 19:43:03 +0000 (19:43 +0000)]
Enable new time zone picker

- Change the UI test due to UI changes

Bug: 73952488
Test: m RunSettingsRoboTest
Test: atest SettingsUITests:ZonePickerSettingsTest
Change-Id: I6d5716347e9debf429b757f1edd4118e86b70fab
(cherry picked from commit 335c0621d2521d3801c13dafdbfc2e632d171104)

6 years agoNew time zone picker page
Victor Chang [Wed, 28 Feb 2018 19:37:36 +0000 (19:37 +0000)]
New time zone picker page

- Show current selected region and time zone in a 2 rows.
  Defailed info of current selected time zone in footer
- Show option menu to switch to select UTC offset
- This picker will be changed to the default picker in a later CL

Bug: 73952488
Test: m RunSettingsRoboTests
Change-Id: Ia81bb022e1021369612f5bd60c2c1f4d08db2af8
(cherry picked from commit b7d588f3415310c91313e4d0481f63edbfddbce3)

6 years agoCatch SecurityException from enabling backup activity
Bernardo Rufino [Tue, 6 Mar 2018 16:07:13 +0000 (16:07 +0000)]
Catch SecurityException from enabling backup activity

Cases where the activity is already enabled and the account is an unicorn
account.

Test: Opened activity from backup settings w/ unicorn account, verified
      no crash
Bug: 74199770
Change-Id: I7dc30d22b186ff19cf7c40fda0363ff1288224d1

6 years agoSnap for 4638586 from 106825383ada2eea1b207a532485b652999511f0 to pi-release
android-build-team Robot [Wed, 7 Mar 2018 08:21:49 +0000 (08:21 +0000)]
Snap for 4638586 from 106825383ada2eea1b207a532485b652999511f0 to pi-release

Change-Id: I6a4b969f745bd7be65b2c87230c78fd48e75064c

6 years agoMake "Add device" as restricted preference.
jackqdyulei [Wed, 28 Feb 2018 23:01:01 +0000 (15:01 -0800)]
Make "Add device" as restricted preference.

Restrict it by DISALLOW_CONFIG_BLUETOOTH

Bug: 73739404
Test: Manual
Change-Id: Ia550930ccf9f372b15826e24d3677124efd36fe9

6 years agoUpdate dabase manager to store the uid
jackqdyulei [Thu, 1 Mar 2018 00:49:25 +0000 (16:49 -0800)]
Update dabase manager to store the uid

Also update the AppInfo to store the uid

Bug: 74022362
Test: RunSettingsRoboTests
Change-Id: I373242a12e9dbf48be134f2e9be30831b09f91c9

6 years agoMerge "Add SettingsMultiSelectListPreference style" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 03:47:20 +0000 (03:47 +0000)]
Merge "Add SettingsMultiSelectListPreference style" into pi-dev

6 years agoMerge "Add strings for audio output switcher." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 03:42:13 +0000 (03:42 +0000)]
Merge "Add strings for audio output switcher." into pi-dev

6 years agoMerge changes from topic "tip_new_page-pi-dev" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 03:40:50 +0000 (03:40 +0000)]
Merge changes from topic "tip_new_page-pi-dev" into pi-dev

* changes:
  Hook up the new page to PowerUsageSummary
  Create new PowerUsageAdvanced page
  Change current PowerUsageAdvanced to legacy code

6 years agoMerge "Add auto restriction preference" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 02:32:17 +0000 (02:32 +0000)]
Merge "Add auto restriction preference" into pi-dev

6 years agoAdd dump log for BatteryTip.
jackqdyulei [Tue, 6 Mar 2018 22:56:14 +0000 (14:56 -0800)]
Add dump log for BatteryTip.

Since BatteryTipLoader will dump all BatteryTips, so we only need
to add toString() for it.

Bug: 74246970
Test: RunSettingsRoboTests
Change-Id: I0a89c4ac06d107274d47f8b4b66867373c062c1b

6 years agoAdd SettingsMultiSelectListPreference style
Yoshinori Hirano [Mon, 30 Oct 2017 05:38:57 +0000 (14:38 +0900)]
Add SettingsMultiSelectListPreference style

There is no OK and CANCEL button when changing APN Bearer.
To fix this issue, OK and CANCEL button should be added to
SettingsMultiSelectListPreference style.

Fixes: 66928311
Test: manual - Add a new APN and tap Bearer

Change-Id: I2b5719a7c1fdb721b15308e0eef7db3e6398e097

6 years agoMerge "Stop wrapping RoundedHomepageIcon if it's already wrapped." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 01:21:20 +0000 (01:21 +0000)]
Merge "Stop wrapping RoundedHomepageIcon if it's already wrapped." into pi-dev

6 years agoHook up the new page to PowerUsageSummary
jackqdyulei [Tue, 27 Feb 2018 22:58:06 +0000 (14:58 -0800)]
Hook up the new page to PowerUsageSummary

Add a menu to point to the new page

Bug: 73300636
Test: RunSettingsRoboTests
Change-Id: I9956e349cdbbe2cd752bdf65020a540a329bdee3
Merged-In: I9956e349cdbbe2cd752bdf65020a540a329bdee3

6 years agoMerge "Add intent fields when launching instant app." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 00:59:20 +0000 (00:59 +0000)]
Merge "Add intent fields when launching instant app." into pi-dev

6 years agoCreate new PowerUsageAdvanced page
jackqdyulei [Tue, 27 Feb 2018 22:30:57 +0000 (14:30 -0800)]
Create new PowerUsageAdvanced page

This page contains the graph at the top and app list at the bottom

In this cl, we reused some part of the code in PowerUsageAdvancedLegacy
to construct the graph, and also used controller to construct the app
list(So glad that we extracted it to controller before..)

Bug: 73300636
Test: RunSettingsRoboTests
Change-Id: I30afbc0327a5186f8280f5e3678330b363e2dc0d
Merged-In: I30afbc0327a5186f8280f5e3678330b363e2dc0d

6 years agoChange current PowerUsageAdvanced to legacy code
jackqdyulei [Tue, 27 Feb 2018 22:12:32 +0000 (14:12 -0800)]
Change current PowerUsageAdvanced to legacy code

In future cl, we will create new PowerUsageAdvanced page.

Bug: 73300636
Test: Build
Change-Id: I608f6b1fb9bf29a6ef5d7f9d67bcb6eea9e7aec7
Merged-In: I608f6b1fb9bf29a6ef5d7f9d67bcb6eea9e7aec7

6 years agoAdd strings for audio output switcher.
Doris Ling [Tue, 6 Mar 2018 23:15:01 +0000 (15:15 -0800)]
Add strings for audio output switcher.

Bug: 74130772
Test: rebuild
Change-Id: I84b702b69cc0cd23caeebb441ad8310b56441b5b

6 years agoStop wrapping RoundedHomepageIcon if it's already wrapped.
Fan Zhang [Tue, 6 Mar 2018 22:16:08 +0000 (14:16 -0800)]
Stop wrapping RoundedHomepageIcon if it's already wrapped.

On homepage, if an icon is already wrapped in RoundedHomepageIcon, we
shouldn't wrap it more. Otherwise each time we do this it will add a few
dp padding around the bitmap.

Change-Id: I5313a38f4bd128272d7b4e05209aaee72c690c55
Fixes: 73295342
Test: robotest

6 years agoMerge "Fix crash in battery info settings page." into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:47:15 +0000 (22:47 +0000)]
Merge "Fix crash in battery info settings page." into pi-dev

6 years agoMerge "Time zone, Region, UTC picker" into pi-dev
Victor Chang [Tue, 6 Mar 2018 22:01:35 +0000 (22:01 +0000)]
Merge "Time zone, Region, UTC picker" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 21:59:34 +0000 (21:59 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAdd intent fields when launching instant app.
Doris Ling [Tue, 6 Mar 2018 21:37:21 +0000 (13:37 -0800)]
Add intent fields when launching instant app.

- add browseable category, package name, and new task flag.

Change-Id: Ie558f5885b5f0f78c88241de7c2d7a21cfb9d0fe
Fixes: 74131502
Test: make RunSettingsRoboTests

6 years agoAdd auto restriction preference
jackqdyulei [Tue, 6 Mar 2018 18:28:29 +0000 (10:28 -0800)]
Add auto restriction preference

1. Add method in feature provider to check whether smart battery
is supported
2. Hook up above method to controllers
3. Add auto restriction preference
4. Add tests

Bug: 73002171
Test: RunSettingsRoboTests
Change-Id: Ic314f61ad52e9bedb629b308731cb968bb4b1773
Merged-In: Ic314f61ad52e9bedb629b308731cb968bb4b1773
(cherry picked from commit ab0b0add0a9b7409db016b0f1561612c16173fbd)

6 years agoMerge "Change encryption preference's summary accordingly" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 21:31:07 +0000 (21:31 +0000)]
Merge "Change encryption preference's summary accordingly" into pi-dev

6 years agoMerge "Create a new list when building suggestion data." into pi-dev
Doris Ling [Tue, 6 Mar 2018 21:09:24 +0000 (21:09 +0000)]
Merge "Create a new list when building suggestion data." into pi-dev

6 years agoFix crash in battery info settings page.
Doris Ling [Tue, 6 Mar 2018 19:36:54 +0000 (11:36 -0800)]
Fix crash in battery info settings page.

- when receive package updates, check if the buttons preference is
available before trying to update the UI.

Change-Id: Ie3482b94c84cd55e9a138af4719a031f5167e089
Fixes: 74130214
Test: make RunSettingsRoboTests

6 years agoMerge "Update pref fragment for "see all" in app & notification" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 20:05:33 +0000 (20:05 +0000)]
Merge "Update pref fragment for "see all" in app & notification" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 6 Mar 2018 19:59:37 +0000 (11:59 -0800)]
Import translations. DO NOT MERGE

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

6 years agoChange encryption preference's summary accordingly
Alex Cruz [Fri, 20 Oct 2017 23:26:58 +0000 (19:26 -0400)]
Change encryption preference's summary accordingly

With this change a summary to the encryption preference was added.

https://android.googlesource.com/platform/packages/apps/Settings/+/415ce9a77d44732966fbab641d1ecaa8e8688381

The problem is that even if you're not encrypted, it says that your phone is.
Is very misleading to the user that don't bother to enter the actual preference
and want to see if they are. This fixes that.

This is cherry-picked from
https://android-review.googlesource.com/#/c/platform/packages/apps/Settings/+/517875/

Test: Go into Settings/Security & Location
Fixes: 68691666
Fixes: 68542516
Change-Id: Iaeaffd340f2e248748f244a947aa71eb8ad4ab94

6 years agoMerge "Make "Action not allowed" dialog compliant with Material Spec and replace...
Antoan Angelov [Tue, 6 Mar 2018 19:37:52 +0000 (19:37 +0000)]
Merge "Make "Action not allowed" dialog compliant with Material Spec and replace full screen activities with the dialog." into pi-dev

6 years agoMerge "Fix SettingsRoboTests build error with OpenJDK 9" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 19:24:48 +0000 (19:24 +0000)]
Merge "Fix SettingsRoboTests build error with OpenJDK 9" into pi-dev

6 years agoCreate a new list when building suggestion data.
Doris Ling [Tue, 6 Mar 2018 18:55:40 +0000 (10:55 -0800)]
Create a new list when building suggestion data.

- using sublist of the original suggestions list may results in
ConcurrentModificationException if the originaly list is being modified.
Create a new list instead to avoid running into the issue.

Change-Id: Ia83a0432be542eeb428d177f6118d26fc2262e93
Fixes: 74194336
Test: run monkey

6 years agoFix tests
Fan Zhang [Tue, 6 Mar 2018 17:08:29 +0000 (09:08 -0800)]
Fix tests

Change-Id: I8b750a87e6852d60ac2f8f61a955b1296cef759b
Fixes: 74234076
Test: robotests

6 years agoUpdate pref fragment for "see all" in app & notification
Fan Zhang [Mon, 5 Mar 2018 22:22:46 +0000 (14:22 -0800)]
Update pref fragment for "see all" in app & notification

Instead of launching intent, now to launches all app list as a
subsetting. This is more consistent with the other setting pages and
fixes a task affinity issue.

Change-Id: I0464a2b8f46d46f06bcf297c0f876ae12a7c490b
Fixes: 74205806
Test: robotests

6 years agoSystem gets its own dnd toggle
Beverly [Fri, 16 Feb 2018 19:33:37 +0000 (14:33 -0500)]
System gets its own dnd toggle

Test: make ROBOTEST_FILTER=ZenModeSystemPreferenceControllerTest RunSettingsRoboTests -j40
Bug: 73362490
Change-Id: Id5212665da8c820fc070676ff034dbe67510ea5d

6 years agoTime zone, Region, UTC picker
Victor Chang [Wed, 28 Feb 2018 19:31:31 +0000 (19:31 +0000)]
Time zone, Region, UTC picker

- Extract most common view related codes into BaseTimeZoneAdapter
  and BaseTimeZonePicker. Subclass handles the text formatting and
  order.
- Search view is added compared to previous version of time
  zone picker
- SpannableUtil is added to preserve spannable when formatting
  String resource.
- Fix the bug using GMT+<arabic> as time zone id. b/73132985
- Fix Talkback treating flags on screens as a separate element

Bug: 72146259
Bug: 73132985
Bug: 73952488
Test: mm RunSettingsRoboTests
Change-Id: I42c6ac369199c09d11e7f5cc4707358fa4780fed
(cherry picked from commit fbd30acef09d1db6aaf767c2bcbb17787fd08ba1)

6 years agoSnap for 4635315 from e8acc0c4bd14880542a0801db00b6f7fbe2d0a13 to pi-release
android-build-team Robot [Tue, 6 Mar 2018 08:23:18 +0000 (08:23 +0000)]
Snap for 4635315 from e8acc0c4bd14880542a0801db00b6f7fbe2d0a13 to pi-release

Change-Id: Icabb4830eb8e2395865d8061eadf081c4c139054

6 years agoMerge "Reuse xml parser logic to scrape preference xml files." into pi-dev
Fan Zhang [Tue, 6 Mar 2018 00:24:40 +0000 (00:24 +0000)]
Merge "Reuse xml parser logic to scrape preference xml files." into pi-dev

6 years agoMerge "Fix double help icon in wificalling screen" into pi-dev
Fan Zhang [Mon, 5 Mar 2018 23:43:05 +0000 (23:43 +0000)]
Merge "Fix double help icon in wificalling screen" into pi-dev

6 years agoReuse xml parser logic to scrape preference xml files.
Fan Zhang [Thu, 22 Feb 2018 23:54:40 +0000 (15:54 -0800)]
Reuse xml parser logic to scrape preference xml files.

Bug: 73668763
Test: atest
Test: robotests
Change-Id: Ifc241b5b4ec6d2935c4c532ff902a7ba352a98d6

6 years agoMerge cherrypicks of [3690002, 3691519, 3691668, 3690254, 3691428, 3690156] into...
android-build-team Robot [Mon, 5 Mar 2018 22:15:00 +0000 (22:15 +0000)]
Merge cherrypicks of [369000236915193691668369025436914283690156] into pi-release

Change-Id: I06da687582281eb9372058ac1a2d7a57ec747bf0

6 years agoFix SettingsRoboTests build error with OpenJDK 9
Victor Chang [Mon, 5 Mar 2018 16:13:33 +0000 (16:13 +0000)]
Fix SettingsRoboTests build error with OpenJDK 9

- CL http://ag/3671365 broke git_pi-release/marlin-userdebug-jdk9
  when building "m checkbuild". It shouldn't break the image build

Test: m SettingsRoboTests
ROBOTEST_FILTER=com.android.settings.datetime.timezone
EXPERIMENTAL_USE_OPENJDK9=true USE_R8=true
Change-Id: I161c0350cff55bd13ba4a6c63df4e4e9bc4b1a5f
(cherry picked from commit e10875210adef2949aa4f9b56c40fb6d81b0f222)

6 years agoCorrectly propagate bundle extra from intent to fragment
Fan Zhang [Fri, 2 Mar 2018 19:01:15 +0000 (11:01 -0800)]
Correctly propagate bundle extra from intent to fragment

When someone launches settings intent and include args for fragment, we
should propagate the args to fragment.

Change-Id: I231a675123f056043e96ffad7498da6b9bc16687
Fixes: 74017572
Test: manual

6 years agoFix double help icon in wificalling screen
Fan Zhang [Mon, 5 Mar 2018 21:19:46 +0000 (13:19 -0800)]
Fix double help icon in wificalling screen

Change-Id: I36d4af83e1cb7fd77b360829baab2004422488c6
Fixes: 71538192
Test: robotests

6 years agoMake "Action not allowed" dialog compliant with Material Spec and replace full screen...
arangelov [Fri, 27 Oct 2017 12:51:28 +0000 (13:51 +0100)]
Make "Action not allowed" dialog compliant with Material Spec and replace full screen activities with the dialog.

Bug: 64893948
Test: make ROBOTEST_FILTER=ActionDisabledByAdminDialogTest -j40 RunSettingsRoboTests
Test: make ROBOTEST_FILTER=ActionDisabledByAdminDialogHelperTest -j40 RunSettingsRoboTests
Change-Id: I9308d8d86a3789b8f2c92b9f4f20cf00cce71d14

6 years agoFix SettingsRoboTests build error with OpenJDK 9
Victor Chang [Mon, 5 Mar 2018 16:13:33 +0000 (16:13 +0000)]
Fix SettingsRoboTests build error with OpenJDK 9

- CL http://ag/3671365 broke git_pi-release/marlin-userdebug-jdk9
  when building "m checkbuild". It shouldn't break the image build

Test: m SettingsRoboTests
ROBOTEST_FILTER=com.android.settings.datetime.timezone
EXPERIMENTAL_USE_OPENJDK9=true USE_R8=true
Change-Id: I161c0350cff55bd13ba4a6c63df4e4e9bc4b1a5f