OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "packages/apps/Settings: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Thu, 1 Mar 2018 10:26:48 +0000 (10:26 +0000)]
Merge "packages/apps/Settings: Set LOCAL_SDK_VERSION where possible."

6 years agoMerge "ChooseLockPassword should not show "confirm" until min length is met"
TreeHugger Robot [Thu, 1 Mar 2018 04:45:25 +0000 (04:45 +0000)]
Merge "ChooseLockPassword should not show "confirm" until min length is met"

6 years agoMerge "Bluetooth: Use config value for default max connected audio devices"
TreeHugger Robot [Thu, 1 Mar 2018 03:25:41 +0000 (03:25 +0000)]
Merge "Bluetooth: Use config value for default max connected audio devices"

6 years agoMerge "ChooseLockPassword shows wrong string when confirmed password is wrong"
Kevin Chyn [Thu, 1 Mar 2018 03:02:00 +0000 (03:02 +0000)]
Merge "ChooseLockPassword shows wrong string when confirmed password is wrong"

6 years agoBluetooth: Use config value for default max connected audio devices
Jack He [Tue, 27 Feb 2018 06:58:56 +0000 (22:58 -0800)]
Bluetooth: Use config value for default max connected audio devices

* The first option in Bluetooth max connected audio devices preference
  should be using system default
* Added template based string array to show system default in the list
  preference and in preference summary when default is chosen
* Reset max connected audio devices property to empty string when
  development setting is disabled or when system default is chosen
* Fix a bug by saving selected value to list preference so that it
  persists when user re-opens development settings

Bug: 64767509
Test: Enable and disable multi-device mode in development settings
Change-Id: I4915f12df0ac0e6f715e44e0df4a3707dde8d1a4
Merged-In: I4915f12df0ac0e6f715e44e0df4a3707dde8d1a4

6 years agoBluetooth: Use config value for default max connected audio devices
Jack He [Wed, 28 Feb 2018 00:42:57 +0000 (16:42 -0800)]
Bluetooth: Use config value for default max connected audio devices

* The first option in Bluetooth max connected audio devices preference
  should be using system default
* Added template based string array to show system default in the list
  preference and in preference summary when default is chosen
* Reset max connected audio devices property to empty string when
  development setting is disabled or when system default is chosen
* Added instrumentation test to check preference array size and whether
  default value is within range of preference array values
* Modified robolectric tests to verify the updated behaviors

Bug: 64767509
Test: Enable and disable multi-device mode in development settings
      make -j32 RunSettingsRoboTests
      atest SettingsUnitTests:BluetoothMaxConnectedAudioDevicesPreferenceControllerInstrumentationTest
Change-Id: I4915f12df0ac0e6f715e44e0df4a3707dde8d1a4

6 years agoChooseLockPassword should not show "confirm" until min length is met
Kevin Chyn [Thu, 1 Mar 2018 01:52:34 +0000 (17:52 -0800)]
ChooseLockPassword should not show "confirm" until min length is met

Fixes: 70561465

Test: manual test with setting pin/pw
Change-Id: I545202f508fa7b1a73b9a2e66a8f8216deba7555

6 years agoMerge "Auto update summary for mobile network preference."
TreeHugger Robot [Thu, 1 Mar 2018 01:42:32 +0000 (01:42 +0000)]
Merge "Auto update summary for mobile network preference."

6 years agoMerge "Remove custom updateState() if it's just setting summary"
TreeHugger Robot [Thu, 1 Mar 2018 01:29:22 +0000 (01:29 +0000)]
Merge "Remove custom updateState() if it's just setting summary"

6 years agoChooseLockPassword shows wrong string when confirmed password is wrong
Kevin Chyn [Thu, 1 Mar 2018 01:28:15 +0000 (17:28 -0800)]
ChooseLockPassword shows wrong string when confirmed password is wrong

Fixes: 70561469

Test: try to setup a password/pin, but type in a wrong pw/pin
      when confirming. the button should stay as "confirm" instead of
      reverting to "next"

Change-Id: Iea570c2d869b9d561b26046d30d08f40abca0c93

6 years agoMerge "Under "recent location requests", add "See all""
TreeHugger Robot [Wed, 28 Feb 2018 23:46:32 +0000 (23:46 +0000)]
Merge "Under "recent location requests", add "See all""

6 years agoMerge "Update tests for string changes"
TreeHugger Robot [Wed, 28 Feb 2018 23:22:30 +0000 (23:22 +0000)]
Merge "Update tests for string changes"

6 years agoAuto update summary for mobile network preference.
Fan Zhang [Wed, 28 Feb 2018 22:06:11 +0000 (14:06 -0800)]
Auto update summary for mobile network preference.

Change-Id: Ic7854ef4d2d710dff528244a5e5fb75708740d2e
Fixes: 73504707
Test: robotests

6 years agoRemove custom updateState() if it's just setting summary
Fan Zhang [Wed, 28 Feb 2018 01:12:26 +0000 (17:12 -0800)]
Remove custom updateState() if it's just setting summary

Change-Id: I6311d67d6ba11961a6814b91dcd8e37a2e17df40
Fixes: 73950519
Test: rerun robotests

6 years agoUnder "recent location requests", add "See all"
Maggie [Sat, 27 Jan 2018 00:30:17 +0000 (16:30 -0800)]
Under "recent location requests", add "See all"

Under Settings -> Security & Location -> Location, add "See all" button
under recent location requests

On location settings page, display at most 3 recent location requests.
If there are more than 3, show a "see all" button.
When user clicks "See all", take them to a new fragment with all recent
location requests.

Test: Robo
Test: Manual
Bug: 70350519
Change-Id: Id1f9a8da1593814a8f30f8e6ec8ac75fb10f6672

6 years agoMerge "Add summary for Display->Color settings."
TreeHugger Robot [Wed, 28 Feb 2018 20:52:27 +0000 (20:52 +0000)]
Merge "Add summary for Display->Color settings."

6 years agoMerge "Force shortcuts to launch as the root of a new task"
TreeHugger Robot [Wed, 28 Feb 2018 20:27:32 +0000 (20:27 +0000)]
Merge "Force shortcuts to launch as the root of a new task"

6 years agoMerge "Fix crash when launching about phone v2 through intent"
TreeHugger Robot [Wed, 28 Feb 2018 19:37:57 +0000 (19:37 +0000)]
Merge "Fix crash when launching about phone v2 through intent"

6 years agoAdd summary for Display->Color settings.
Doris Ling [Tue, 27 Feb 2018 00:09:51 +0000 (16:09 -0800)]
Add summary for Display->Color settings.

Change-Id: Ia1332b4e3333099878ee52342c64b3d8595fdd94
Fixes: 73773857
Test: make RunSettingsRoboTests

6 years agoForce shortcuts to launch as the root of a new task
Fan Zhang [Wed, 28 Feb 2018 19:12:05 +0000 (11:12 -0800)]
Force shortcuts to launch as the root of a new task

Otherwise it will try to find a existing task affinity, which can be
stale.

Test: manual
Change-Id: If2982612bf8789e726757e9fda1f70af47274a9e
Fixes: 73710228

6 years agoUpdate tests for string changes
Salvador Martinez [Wed, 28 Feb 2018 18:23:58 +0000 (10:23 -0800)]
Update tests for string changes

Some tests were validating strings for enhanced estimates. Since
those strings have been updated the tests in Settings need to be
updated to reflect those changes.

Test: Is a test change
Bug: 73290523
Bug: 72996609
Bug: 73904361
Change-Id: I5a175eb89539544bc10647a5373bd064efa3dbf7

6 years agoFix crash when launching about phone v2 through intent
Fan Zhang [Wed, 28 Feb 2018 18:03:43 +0000 (10:03 -0800)]
Fix crash when launching about phone v2 through intent

Change-Id: Ife6c24a7127fc9821760f9f5b58a33437711bc25
Fixes: 73971752
Test: atest

6 years agoMerge "Remove duplicate test"
TreeHugger Robot [Wed, 28 Feb 2018 18:03:14 +0000 (18:03 +0000)]
Merge "Remove duplicate test"

6 years agoMerge "Fixed failing launch of Data usage activty from data saver suggestion."
Jan Nordqvist [Wed, 28 Feb 2018 17:21:16 +0000 (17:21 +0000)]
Merge "Fixed failing launch of Data usage activty from data saver suggestion."

6 years agopackages/apps/Settings: Set LOCAL_SDK_VERSION where possible.
Anton Hansson [Wed, 28 Feb 2018 11:26:29 +0000 (11:26 +0000)]
packages/apps/Settings: Set LOCAL_SDK_VERSION where possible.

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I8dbe76fee202a571b1492b598035cc7b92e4433f

6 years agoMerge "Fix not delivering result to fragment using SubSettingLauncher"
Victor Chang [Wed, 28 Feb 2018 10:59:36 +0000 (10:59 +0000)]
Merge "Fix not delivering result to fragment using SubSettingLauncher"

6 years agoMerge "Change PreferenceController#getSummary return type."
TreeHugger Robot [Wed, 28 Feb 2018 08:40:29 +0000 (08:40 +0000)]
Merge "Change PreferenceController#getSummary return type."

6 years agoChange PreferenceController#getSummary return type.
Fan Zhang [Tue, 27 Feb 2018 18:30:11 +0000 (10:30 -0800)]
Change PreferenceController#getSummary return type.

Return CharSequence instead of String.

All user visible string should be modeled as CharSequence.

Bug: 73950519
Test: robotest
Change-Id: I30befef0c33f94351d4a2774e283bd1ed804aa8b

6 years agoMerge changes I06df032d,Ib923de28 am: 59a548b940 am: 34f43b50ce
Andreas Gampe [Wed, 28 Feb 2018 05:16:29 +0000 (05:16 +0000)]
Merge changes I06df032d,Ib923de28 am: 59a548b940 am: 34f43b50ce
am: fd99b8b009  -s ours

Change-Id: I0eab3f2bdcbacb8a4fc3bc4d171299c74c806c56

6 years agoMerge changes I06df032d,Ib923de28 am: 59a548b940
Andreas Gampe [Wed, 28 Feb 2018 04:51:14 +0000 (04:51 +0000)]
Merge changes I06df032d,Ib923de28 am: 59a548b940
am: 34f43b50ce

Change-Id: I0bb87911c11685bcc8caa58d5a3ce9cf044e4ee1

6 years agoMerge changes I06df032d,Ib923de28
Andreas Gampe [Wed, 28 Feb 2018 04:37:06 +0000 (04:37 +0000)]
Merge changes I06df032d,Ib923de28
am: 59a548b940

Change-Id: I4d1314379ba77c07b64c3ca5c77a61f9a54d4c1d

6 years agoMerge changes I06df032d,Ib923de28
Treehugger Robot [Wed, 28 Feb 2018 03:34:13 +0000 (03:34 +0000)]
Merge changes I06df032d,Ib923de28

* changes:
  Settings: Disable failing tests.
  Settings: Fix assertThat in tests

6 years agoMerge "rename emergency tone settings" am: 2054a4d6d4 am: eb664426c5
Chen Xu [Wed, 28 Feb 2018 02:49:11 +0000 (02:49 +0000)]
Merge "rename emergency tone settings" am: 2054a4d6d4 am: eb664426c5
am: 648d302ba7

Change-Id: I5edb5cf7b20b022b2a2514ec96bf99e38cf2c007

6 years agoMerge "rename emergency tone settings" am: 2054a4d6d4
Chen Xu [Wed, 28 Feb 2018 02:43:59 +0000 (02:43 +0000)]
Merge "rename emergency tone settings" am: 2054a4d6d4
am: eb664426c5

Change-Id: I9c4bd1ae9ac8c13732686949ce316c7abf8e5c75

6 years agoMerge "rename emergency tone settings"
Chen Xu [Wed, 28 Feb 2018 02:38:23 +0000 (02:38 +0000)]
Merge "rename emergency tone settings"
am: 2054a4d6d4

Change-Id: I106fc98ae0dab79e5e8bc9b5ec10c3810a440aaa

6 years agoSettings: Disable failing tests.
Andreas Gampe [Mon, 26 Feb 2018 20:22:29 +0000 (12:22 -0800)]
Settings: Disable failing tests.

Temporarily disable.

(cherry picked from commit b506fb9b1918fe4b2144339567862ff03b3942cc)

Bug: 73892008
Test: m RunSettingsRoboTests
Exempt-From-Owner-Approval: Cherrypick
Merged-In: I06df032d4a4de84c2f9f46e5086d97f688b0c989
Change-Id: I06df032d4a4de84c2f9f46e5086d97f688b0c989

6 years agoMerge "rename emergency tone settings"
Chen Xu [Wed, 28 Feb 2018 02:17:26 +0000 (02:17 +0000)]
Merge "rename emergency tone settings"

6 years agoSettings: Fix assertThat in tests
Andreas Gampe [Mon, 26 Feb 2018 19:28:21 +0000 (11:28 -0800)]
Settings: Fix assertThat in tests

Truth.assertThat is a fluent-style API. Fix the tests to actually
do something.

Found by errorprone.

(cherry picked from commit 22bad556a1863bff80c4ec517ada315f7b01890e)

Bug: 73513670
Test: m RunSettingsRoboTests
Test: m javac-check RUN_ERROR_PRONE=true
Exempt-From-Owner-Approval: Cherrypick
Merged-In: Ib923de28ce5dcf79b9dec718306877e31e58e024
Change-Id: Ib923de28ce5dcf79b9dec718306877e31e58e024

6 years agoMerge "Fix search non-indexable update"
TreeHugger Robot [Wed, 28 Feb 2018 02:09:21 +0000 (02:09 +0000)]
Merge "Fix search non-indexable update"

6 years agoRemove duplicate test
Salvador Martinez [Wed, 28 Feb 2018 01:43:12 +0000 (17:43 -0800)]
Remove duplicate test

PowerUsageSummary was duplicated to have the old version exist
in developer options. This test is for a debug feature which will
not be released so there is no point in having a duplicate of it
as well. This CL removes that test.

Test: Is a test CL
Bug: 73513677
Change-Id: Ia3ed704018cfaa0b05c4bf0f2799ff8151ba4b85

6 years agoMerge "Remove unused classes and tests."
TreeHugger Robot [Wed, 28 Feb 2018 00:42:28 +0000 (00:42 +0000)]
Merge "Remove unused classes and tests."

6 years agoFix search non-indexable update
Fan Zhang [Wed, 28 Feb 2018 00:05:02 +0000 (16:05 -0800)]
Fix search non-indexable update

- When creating preference conotrollers, if one fail, skip that one
  instead of giving up entire operation.
- Fix BatterySaverController by providing a existing looper.

Change-Id: Iefe443b7fa91e51515c5c247fab4d9588867baef
Fixes: 73903739
Test: robotest

6 years agoMerge "Fix the AnomalyCleanUpJobService"
Lei Yu [Wed, 28 Feb 2018 00:13:37 +0000 (00:13 +0000)]
Merge "Fix the AnomalyCleanUpJobService"

6 years agoMerge "Add logging for battery tip"
TreeHugger Robot [Tue, 27 Feb 2018 23:39:33 +0000 (23:39 +0000)]
Merge "Add logging for battery tip"

6 years agoMerge "Add metric for BatteryTipDialogFragmnt"
TreeHugger Robot [Tue, 27 Feb 2018 23:39:33 +0000 (23:39 +0000)]
Merge "Add metric for BatteryTipDialogFragmnt"

6 years agorename emergency tone settings
fionaxu [Tue, 27 Feb 2018 23:14:57 +0000 (15:14 -0800)]
rename emergency tone settings

Bug: 67470733
Test: Manual
Change-Id: I67e223c2db662f518fa306221190d4646668c4d3

6 years agoRevert "Revert "Update to match now slice APIs""
Alan Viverette [Tue, 27 Feb 2018 22:10:26 +0000 (22:10 +0000)]
Revert "Revert "Update to match now slice APIs""

This reverts commit 80c806abd60f8d8381f6654fd2f708f5d915f0bf.

Bug: 73250914
Test: make && make checkbuild, manual testing

6 years agoMerge "Revert "Update to match now slice APIs""
Alan Viverette [Tue, 27 Feb 2018 22:08:31 +0000 (22:08 +0000)]
Merge "Revert "Update to match now slice APIs""

6 years agoRevert "Update to match now slice APIs"
Alan Viverette [Tue, 27 Feb 2018 20:12:57 +0000 (20:12 +0000)]
Revert "Update to match now slice APIs"

This reverts commit 2d96005aba3a509fc801f9a05d61786d8ad78218.

Reason for revert: prebuilt revert

Bug: 73903252
Bug: 73876473
Bug: 73875529
Bug: 73866916
Change-Id: I5d47a7c5ddebc16c1c508f5bb48ace809cbaf273

6 years agoRemove unused classes and tests.
Jerry Zhang [Fri, 23 Feb 2018 22:43:58 +0000 (14:43 -0800)]
Remove unused classes and tests.

Old usb pages have been replaced by UsbDetailsFragment
and UsbDefaultFragment. Old connected devices has
been replaced by new connected devices.

Bug: 70848054
Test: Passes
Change-Id: I538cbb88d4f878449a83da9a4a0381e74e840c6a

6 years agoMerge "Delete unused layout: preference_importance_slider."
TreeHugger Robot [Tue, 27 Feb 2018 20:28:43 +0000 (20:28 +0000)]
Merge "Delete unused layout: preference_importance_slider."

6 years agoFix the AnomalyCleanUpJobService
jackqdyulei [Fri, 23 Feb 2018 18:59:27 +0000 (10:59 -0800)]
Fix the AnomalyCleanUpJobService

1. Invoke it in BOOT_COMPLETED
2. Set it periodic
3. Change the anomaly history from 3 days to 30 days

Bug: 72385333
Test: RunSettingsRoboTests
Change-Id: Ib59a85f3dffd6c094ff400a75bec44d4c65bce44

6 years agoRevert "Change Settings to use URL_FILTERED and blocks menu options when DPC Apns...
Yueming Wang [Mon, 26 Feb 2018 14:46:21 +0000 (14:46 +0000)]
Revert "Change Settings to use URL_FILTERED and blocks menu options when DPC Apns are enforced."

This reverts commit ab1f251defe8ee327917b1788f5702ae2c231a47.

Reason for revert: As per discussion in b/72484718, we are going to
block Access Point Name entry point in Network&Settings, so we no longer
need the change in ApnSettings fragment itself.
Bug: 72484718

Change-Id: I337a03e8baebaedb9e9ab83ccc4f7cf2f9c562c8

6 years agoMerge "Revert "Fix the crash when editing or deleting APN.""
Alex Chau [Tue, 27 Feb 2018 12:02:19 +0000 (12:02 +0000)]
Merge "Revert "Fix the crash when editing or deleting APN.""

6 years agoMerge "Remove controller definitions from code"
TreeHugger Robot [Tue, 27 Feb 2018 03:03:27 +0000 (03:03 +0000)]
Merge "Remove controller definitions from code"

6 years agoAdd logging for battery tip
jackqdyulei [Tue, 27 Feb 2018 01:20:19 +0000 (17:20 -0800)]
Add logging for battery tip

When it is triggered, we log the type of battery tip.

Bug: 3662211
Test: RunSettingsRoboTests
Change-Id: Iab1034008796b6b21eee53297b2e574199693f7e

6 years agoFixed failing launch of Data usage activty from data saver suggestion.
Jan Nordqvist [Mon, 26 Feb 2018 21:55:00 +0000 (13:55 -0800)]
Fixed failing launch of Data usage activty from data saver suggestion.

After introducing the new data usage UI behind a feature flag a bug was
introduced that causes the data saver suggestion to throw an exception
from a missing class reference in "legacy" mode.

Bug: 73648306
Test: manual
Change-Id: I4fcd2bd0f55931f40738266dca94a55fea5087b3

6 years agoRemove controller definitions from code
Fan Zhang [Tue, 27 Feb 2018 01:00:45 +0000 (17:00 -0800)]
Remove controller definitions from code

- With recent changes in DashboardFragment, if a controller is
  implemented using BasePreferenceController AND it's defined in xml, it
  should "just work (tm)".

Change-Id: I05ec175e3c3df706df1a59c4bd9c2db3bf7e19d2
Fixes: 73668763
Test: rerun robotest

6 years agoMerge "Search highlight polish"
TreeHugger Robot [Tue, 27 Feb 2018 00:28:07 +0000 (00:28 +0000)]
Merge "Search highlight polish"

6 years agoMerge "Fix PictureInPictureSettingsTest."
TreeHugger Robot [Tue, 27 Feb 2018 00:08:16 +0000 (00:08 +0000)]
Merge "Fix PictureInPictureSettingsTest."

6 years agoMerge "Report High usage even in a short period"
TreeHugger Robot [Mon, 26 Feb 2018 23:00:22 +0000 (23:00 +0000)]
Merge "Report High usage even in a short period"

6 years agoAdd metric for BatteryTipDialogFragmnt
jackqdyulei [Mon, 26 Feb 2018 22:46:49 +0000 (14:46 -0800)]
Add metric for BatteryTipDialogFragmnt

Bug: 73888115
Test: Build
Change-Id: I234865f31658d3a44df4aa9521b6b2ea0f26f287

6 years agoSearch highlight polish
Fan Zhang [Fri, 23 Feb 2018 18:36:04 +0000 (10:36 -0800)]
Search highlight polish

- Blink when starting highlight
- Extend highlight to 15 seconds
- Fade out when stopping highlight

Bug: 73313161
Test: visual
Change-Id: Ie6c3d640566f2eecc501d4c4f96df512171ff4b6

6 years agoFix PictureInPictureSettingsTest.
Tracy Zhou [Mon, 26 Feb 2018 22:13:53 +0000 (14:13 -0800)]
Fix PictureInPictureSettingsTest.

Bug: 73892555
Bug: 73892683
Test: m RunSettingsRoboTests
Change-Id: Id4145600240f12c2cc2f5aed978a1fe65fd1fd74

6 years agoMerge changes I8dcc30b0,I85292ad2,Ie0ab3534 am: ffec1a0c68 am: 8d0a8ed985
Andreas Gampe [Mon, 26 Feb 2018 22:24:23 +0000 (22:24 +0000)]
Merge changes I8dcc30b0,I85292ad2,Ie0ab3534 am: ffec1a0c68 am: 8d0a8ed985
am: 2658f2059c

Change-Id: Id4b3c85c9bf4bf7b76910e895b57d21e66c0e85f

6 years agoMerge changes I67dbf04a,I032f6741 am: 727ec42d8d am: 6b24cc5769
Andreas Gampe [Mon, 26 Feb 2018 22:16:49 +0000 (22:16 +0000)]
Merge changes I67dbf04a,I032f6741 am: 727ec42d8d am: 6b24cc5769
am: 257f42fd9d

Change-Id: I8bb1a61f255a1c80242ac264f061f15153df12aa

6 years agoMerge changes I8dcc30b0,I85292ad2,Ie0ab3534 am: ffec1a0c68
Andreas Gampe [Mon, 26 Feb 2018 22:16:43 +0000 (22:16 +0000)]
Merge changes I8dcc30b0,I85292ad2,Ie0ab3534 am: ffec1a0c68
am: 8d0a8ed985

Change-Id: I0eb99bc2c2d1ec67c23ad020627a2cf43cfbb71d

6 years agoMerge changes I8dcc30b0,I85292ad2,Ie0ab3534
Andreas Gampe [Mon, 26 Feb 2018 22:08:50 +0000 (22:08 +0000)]
Merge changes I8dcc30b0,I85292ad2,Ie0ab3534
am: ffec1a0c68

Change-Id: Ibac8d021d8d65fdab91f682b9fbfc0231a61a93f

6 years agoMerge changes I67dbf04a,I032f6741 am: 727ec42d8d
Andreas Gampe [Mon, 26 Feb 2018 22:08:42 +0000 (22:08 +0000)]
Merge changes I67dbf04a,I032f6741 am: 727ec42d8d
am: 6b24cc5769

Change-Id: Ib649c224f4496785ae1eba0bce3a411eca8aa1bd

6 years agoMerge changes I67dbf04a,I032f6741
Andreas Gampe [Mon, 26 Feb 2018 22:01:25 +0000 (22:01 +0000)]
Merge changes I67dbf04a,I032f6741
am: 727ec42d8d

Change-Id: I4c8ce0fa68ae3fbf2a3e835d165a766b6e6aad5c

6 years agoMerge changes I8dcc30b0,I85292ad2,Ie0ab3534
Treehugger Robot [Mon, 26 Feb 2018 22:00:19 +0000 (22:00 +0000)]
Merge changes I8dcc30b0,I85292ad2,Ie0ab3534

* changes:
  Settings: Disable failing test
  Settings: Disable failing test
  Settings: Fix assertThat in tests

6 years agoMerge changes I06df032d,Ib923de28
TreeHugger Robot [Mon, 26 Feb 2018 21:51:01 +0000 (21:51 +0000)]
Merge changes I06df032d,Ib923de28

* changes:
  Settings: Disable failing tests.
  Settings: Fix assertThat in tests

6 years agoAdding Wifi setting to special_access settings
xshu [Thu, 1 Feb 2018 01:40:37 +0000 (17:40 -0800)]
Adding Wifi setting to special_access settings

In the settings app, allow users to override app permission for
CHANGE_WIFI_STATE for every application that declared that permission.

Bug: 70562620
Test: compile, robotests

Manual test:
Flash build to device (walleye)
Download iPass from playstore
Open iPass and try connect to a wifi network; verify success
Open settings -> Apps & notifications -> Advanced -> Special app access
-> Wifi access
Select iPass from the list
Toggle the switch to off
Open iPass and try connect to a wifi network; verify failure

Change-Id: Ib2be4c83988a81ba7831d096c9b1980462e66903

6 years agoMerge changes I67dbf04a,I032f6741
Treehugger Robot [Mon, 26 Feb 2018 21:36:15 +0000 (21:36 +0000)]
Merge changes I67dbf04a,I032f6741

* changes:
  Settings: Disable failing assert
  Settings: Fix assertThat in test

6 years agoSettings: Disable failing assert
Andreas Gampe [Mon, 26 Feb 2018 20:14:05 +0000 (12:14 -0800)]
Settings: Disable failing assert

Temporarily disable.

Bug: 73892004
Test: m RunSettingsRoboTests
Change-Id: I67dbf04ae59e54632155c3eda67c70335147fd19

6 years agoSettings: Disable failing test
Andreas Gampe [Mon, 26 Feb 2018 20:28:42 +0000 (12:28 -0800)]
Settings: Disable failing test

Disable temporarily.

Bug: 73892683
Test: m RunSettingsRoboTests
Change-Id: I8dcc30b0b090fef1f2fd8fa3c6de7bf69e8b97a9

6 years agoSettings: Disable failing test
Andreas Gampe [Mon, 26 Feb 2018 20:27:56 +0000 (12:27 -0800)]
Settings: Disable failing test

Disable temporarily.

Bug: 73892555
Test: m RunSettingsRoboTests
Change-Id: I85292ad20de2cb169825eccb19dff1eb82e6fbe1

6 years agoSettings: Fix assertThat in tests
Andreas Gampe [Mon, 26 Feb 2018 19:28:21 +0000 (11:28 -0800)]
Settings: Fix assertThat in tests

Truth.assertThat is a fluent-style API. Fix the tests to actually
do something.

Found by errorprone.

Bug: 73513670
Test: m RunSettingsRoboTests
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: Ie0ab35348fa56c73e6257477a50ff130450e74e7

6 years agoSettings: Disable failing tests.
Andreas Gampe [Mon, 26 Feb 2018 20:22:29 +0000 (12:22 -0800)]
Settings: Disable failing tests.

Temporarily disable.

Bug: 73892008
Test: m RunSettingsRoboTests
Change-Id: I06df032d4a4de84c2f9f46e5086d97f688b0c989

6 years agoSettings: Fix assertThat in tests
Andreas Gampe [Mon, 26 Feb 2018 19:28:21 +0000 (11:28 -0800)]
Settings: Fix assertThat in tests

Truth.assertThat is a fluent-style API. Fix the tests to actually
do something.

Found by errorprone.

Bug: 73513670
Test: m RunSettingsRoboTests
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: Ib923de28ce5dcf79b9dec718306877e31e58e024

6 years agoSettings: Fix assertThat in test
Andreas Gampe [Mon, 26 Feb 2018 19:28:21 +0000 (11:28 -0800)]
Settings: Fix assertThat in test

Truth.assertThat is a fluent-style API. Fix the tests to actually
do something.

Found by errorprone.

Bug: 73513670
Test: m RunSettingsRoboTests
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: I032f6741ac0c728781a9d22ab6158e7b74a30167

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 26 Feb 2018 20:02:29 +0000 (12:02 -0800)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Move IconCache to SettingsLib(II)."
Zhizhi Liu [Mon, 26 Feb 2018 19:22:04 +0000 (19:22 +0000)]
Merge "Move IconCache to SettingsLib(II)."

6 years agoRevert "Fix the crash when editing or deleting APN."
Yueming Wang [Mon, 26 Feb 2018 14:58:41 +0000 (14:58 +0000)]
Revert "Fix the crash when editing or deleting APN."

This reverts commit db9a9bb0b0438816909e002156cb7322c66a0d28.

Reason for revert: As per discussion in b/72484718, we are going to
block Access Point Name entry point in Network&Settings, so we no longer
need the change in ApnSettings fragment itself.
Bug: 72484718

Change-Id: Ia84f129b86fe72b3b2dc9699d5893ced7c65e1c3

6 years agoMerge "Update visual disturbances text"
TreeHugger Robot [Mon, 26 Feb 2018 18:42:32 +0000 (18:42 +0000)]
Merge "Update visual disturbances text"

6 years agoNotifications should not be in 'advanced'
Julia Reynolds [Mon, 26 Feb 2018 14:45:00 +0000 (09:45 -0500)]
Notifications should not be in 'advanced'

Change-Id: I23f9707d9dbee5a13011bd0f2df0d837348f72cf
Fixes: 73553854
Test: RunSettingsRoboTests

6 years agoFix not delivering result to fragment using SubSettingLauncher
Victor Chang [Fri, 23 Feb 2018 17:54:44 +0000 (17:54 +0000)]
Fix not delivering result to fragment using SubSettingLauncher

- Call Fragment.startActivityForResult instead of Activity's one

Test: make RunSettingsRoboTests
Test: App info page is closed instantly after uninstalling the package
Change-Id: If29c097c988101f89dcd9d0a5c1c68deed04eaa9

6 years agoUpdate visual disturbances text
Julia Reynolds [Tue, 20 Feb 2018 14:03:07 +0000 (09:03 -0500)]
Update visual disturbances text

Bug: 73455127
Test: manual
Change-Id: I8420d2493e9f10cf164dad7e1bb1a870d3b7055f

6 years agoMerge "Fix bug causing the Overlay Settings page to be hidden behind overlays."
TreeHugger Robot [Mon, 26 Feb 2018 13:38:47 +0000 (13:38 +0000)]
Merge "Fix bug causing the Overlay Settings page to be hidden behind overlays."

6 years agoFix bug causing the Overlay Settings page to be hidden behind overlays.
Peter Visontay [Mon, 12 Feb 2018 14:46:06 +0000 (14:46 +0000)]
Fix bug causing the Overlay Settings page to be hidden behind overlays.

Test: Manually using an app that displays a full-screen overlay.
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=DrawOverlayDetailsTest
Bug: 72734249

Change-Id: I84b61fea2a793bebfac025ca3a209286ceeef963

6 years agoDelete unused layout: preference_importance_slider.
Andrew Sapperstein [Mon, 26 Feb 2018 01:02:38 +0000 (17:02 -0800)]
Delete unused layout: preference_importance_slider.

And its associated colors.

Test: builds
Change-Id: Ibe3f4399b15d97f976a598553b04d92296067a74

6 years agoMerge "Add SettingsMultiSelectListPreference style DO NOT MERGE" am: 8378efc6af ...
Yoshinori Hirano [Sat, 24 Feb 2018 23:59:56 +0000 (23:59 +0000)]
Merge "Add SettingsMultiSelectListPreference style DO NOT MERGE" am: 8378efc6af  -s ours am: 942249a2dd  -s ours
am: e847fbe6a0  -s ours

Change-Id: Ia61630b201a283198113d0cc5751ab5892768543

6 years agoMerge "Add SettingsMultiSelectListPreference style DO NOT MERGE" am: 8378efc6af ...
Yoshinori Hirano [Sat, 24 Feb 2018 23:54:26 +0000 (23:54 +0000)]
Merge "Add SettingsMultiSelectListPreference style DO NOT MERGE" am: 8378efc6af  -s ours
am: 942249a2dd  -s ours

Change-Id: I23af2770255199348eaa8c69d990ff2907ff90de

6 years agoMerge "Add SettingsMultiSelectListPreference style DO NOT MERGE"
Yoshinori Hirano [Sat, 24 Feb 2018 23:48:50 +0000 (23:48 +0000)]
Merge "Add SettingsMultiSelectListPreference style DO NOT MERGE"
am: 8378efc6af  -s ours

Change-Id: Ic3274cd389282ac819d41830fa907d7fcf9ddb61

6 years agoMerge "Add SettingsMultiSelectListPreference style DO NOT MERGE"
Treehugger Robot [Sat, 24 Feb 2018 23:28:45 +0000 (23:28 +0000)]
Merge "Add SettingsMultiSelectListPreference style DO NOT MERGE"

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

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 "More renaming in DashboardFragment"
TreeHugger Robot [Sat, 24 Feb 2018 02:58:32 +0000 (02:58 +0000)]
Merge "More renaming in DashboardFragment"

6 years agoMerge "Update location and accessibility summary."
TreeHugger Robot [Sat, 24 Feb 2018 02:29:25 +0000 (02:29 +0000)]
Merge "Update location and accessibility summary."

6 years agoMerge "Rename Indexable::getAllPreferenceControllers."
TreeHugger Robot [Sat, 24 Feb 2018 02:05:25 +0000 (02:05 +0000)]
Merge "Rename Indexable::getAllPreferenceControllers."

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
TreeHugger Robot [Sat, 24 Feb 2018 01:07:45 +0000 (01:07 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"