OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoMerge "Hide subtitle for wifi and bluetooth" into oc-dev
TreeHugger Robot [Wed, 3 May 2017 02:18:52 +0000 (02:18 +0000)]
Merge "Hide subtitle for wifi and bluetooth" into oc-dev

7 years agoHide subtitle for wifi and bluetooth
jackqdyulei [Tue, 2 May 2017 22:16:19 +0000 (15:16 -0700)]
Hide subtitle for wifi and bluetooth

Hide it for now because the usage time is not accurate. We may
revisit it in the future.

Bug: 37912143
Test: RunSettingsRoboTests
Change-Id: I37b9dca6a188f2973a7a83641d12b24001d629ae

7 years agoMerge "Prevent empty non-Indexable keys from being added" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 19:25:52 +0000 (19:25 +0000)]
Merge "Prevent empty non-Indexable keys from being added" into oc-dev

7 years agoPrevent empty non-Indexable keys from being added
Matthew Fritze [Mon, 24 Apr 2017 23:32:52 +0000 (16:32 -0700)]
Prevent empty non-Indexable keys from being added

Change-Id: I688cd5243bb1651d60f74e168a84ddf8723816e3
Fixes: 37646265
Test: make RunSettingsRoboTests

7 years agoMerge "Revert "Swipe for notification should be default-on in settings app"" into...
TreeHugger Robot [Tue, 2 May 2017 17:12:20 +0000 (17:12 +0000)]
Merge "Revert "Swipe for notification should be default-on in settings app"" into oc-dev

7 years agoMerge "Filter on volume for category storage view." into oc-dev
Daniel Nishi [Tue, 2 May 2017 17:03:36 +0000 (17:03 +0000)]
Merge "Filter on volume for category storage view." into oc-dev

7 years agoMerge "Tweak spacing for horizontal preferences." into oc-dev
Daniel Nishi [Tue, 2 May 2017 17:03:12 +0000 (17:03 +0000)]
Merge "Tweak spacing for horizontal preferences." into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 15:46:54 +0000 (15:46 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoImport translations. DO NOT MERGE
The Android Open Source Project [Tue, 2 May 2017 09:06:19 +0000 (02:06 -0700)]
Import translations. DO NOT MERGE

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

7 years agoRevert "Swipe for notification should be default-on in settings app"
Kevin Chyn [Tue, 2 May 2017 04:23:31 +0000 (04:23 +0000)]
Revert "Swipe for notification should be default-on in settings app"

This reverts commit a95c2c3a8d65d191260d4948a54eee1c74dac3fa.

Change-Id: I8fcc290be7d373d55058bd7c22f163d54fc03830

7 years agoMerge "Swipe for notification should be default-on in settings app" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 04:09:30 +0000 (04:09 +0000)]
Merge "Swipe for notification should be default-on in settings app" into oc-dev

7 years agoMerge "Update vpn icon from setting gear to vpn key." into oc-dev
TreeHugger Robot [Tue, 2 May 2017 02:23:34 +0000 (02:23 +0000)]
Merge "Update vpn icon from setting gear to vpn key." into oc-dev

7 years agoMerge "Change to not call update() if APN is not modified." into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:59:37 +0000 (01:59 +0000)]
Merge "Change to not call update() if APN is not modified." into oc-dev

7 years agoMerge "Do not show static overlays as a theme" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:03:53 +0000 (01:03 +0000)]
Merge "Do not show static overlays as a theme" into oc-dev

7 years agoMerge "Hides app buttons for instant apps" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 00:28:59 +0000 (00:28 +0000)]
Merge "Hides app buttons for instant apps" into oc-dev

7 years agoFilter on volume for category storage view.
Daniel Nishi [Fri, 28 Apr 2017 21:27:52 +0000 (14:27 -0700)]
Filter on volume for category storage view.

The other storage view used a compound filter with a UUID filter and the
normal filter. The category filters were omitting the compound UUID
filter. This adds it.

Test: Settings unit test
Change-Id: Ic0118abf58dabbf430a81e1fbcefb7acfdef472c
Fixes: 37780836

7 years agoMerge "Make the storage free/total sizes consistent." into oc-dev
Daniel Nishi [Mon, 1 May 2017 21:40:17 +0000 (21:40 +0000)]
Merge "Make the storage free/total sizes consistent." into oc-dev

7 years agoMerge "Generate license html file from xml files of partitions" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 21:22:18 +0000 (21:22 +0000)]
Merge "Generate license html file from xml files of partitions" into oc-dev

7 years agoDo not show static overlays as a theme
Jaekyun Seok [Sat, 29 Apr 2017 00:36:46 +0000 (09:36 +0900)]
Do not show static overlays as a theme

Static overlays aren't changeable by a user. So we shouldn't list them
as a theme.

This CL fixed b/36812704 as well to run unit tests.

Test: building succeeded and tested on sailfish.
      make RunSettingsRoboTests
      adb shell am instrument -w -e class \
          com.android.settings.display.ThemePreferenceControllerTest \
          com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner
Bug: 37480890
Bug: 36812704

Change-Id: I8c13b6956083095dceaab3da6642bef1647d6a30

7 years agoSwipe for notification should be default-on in settings app
Kevin Chyn [Mon, 1 May 2017 20:28:35 +0000 (13:28 -0700)]
Swipe for notification should be default-on in settings app

Fixes: 37672954

Test: adb shell settings delete secure system_navigation_keys_enabled
delete/toggle the setting above between null/0/1

Change-Id: Ia8f5665136ebae1fcc8f77d839a507ab9be7c1da

7 years agoTweak spacing for horizontal preferences.
Fan Zhang [Fri, 28 Apr 2017 19:23:30 +0000 (12:23 -0700)]
Tweak spacing for horizontal preferences.

- Add minHeight to horizontal preference so they are not clustered
together.
- Wrap app_data_usage's into different categories so they don't rely on
SpacePreference to draw space and dividers.

Change-Id: Ieed90a39d48494d1207680483968b5733bdfb344
Fix: 37750568
Test: visual
(cherry picked from commit 9c93c28b5a9e3d1ff78b7ee4febcb39a5f447aeb)

7 years agoHides app buttons for instant apps
Jesse Evans [Mon, 1 May 2017 18:12:52 +0000 (11:12 -0700)]
Hides app buttons for instant apps

Hides the app buttons when the app is an instant app.

Added a todo to remove this functionality when instant apps
are properly supported by this controller.

Test: make RunSettingsRoboTests
Bug: 37313605
Change-Id: I3fca106a8e72c41b626e1182f5ba1089b90e8e2a

7 years agoMerge "Change String to CharSequence in #loadSummary." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:52:22 +0000 (17:52 +0000)]
Merge "Change String to CharSequence in #loadSummary." into oc-dev

7 years agoMake instant apps appear above disabled apps
Jesse Evans [Wed, 26 Apr 2017 15:31:16 +0000 (08:31 -0700)]
Make instant apps appear above disabled apps

Currently instant apps appear below disabled apps in the app filter
spinner, this is incorrect. This patch moves them above the disabled
apps filter option.

Test: make RunSettingsRoboTests
Bug: 37683262
Change-Id: Id65ae47baca4eac43a6a89375bdb718d5dbf7c56

7 years agoChange to not call update() if APN is not modified.
Amit Mahajan [Thu, 27 Apr 2017 21:50:39 +0000 (14:50 -0700)]
Change to not call update() if APN is not modified.

Test: manual
Bug: 37629096
Change-Id: Icd7e61267d724b576edf872485dd1a1e2ab18d46

7 years agoUpdate vpn icon from setting gear to vpn key.
Fan Zhang [Sat, 29 Apr 2017 19:47:19 +0000 (12:47 -0700)]
Update vpn icon from setting gear to vpn key.

Change-Id: Ic135d5e28a0547e949c8170f985e4de26e05ad51
Fix: 37781101
Test: visual

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 17:59:42 +0000 (17:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Don't hide network reset even if it's disabled by admin." into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 06:53:26 +0000 (06:53 +0000)]
Merge "Don't hide network reset even if it's disabled by admin." into oc-dev

7 years agoMerge "Add emergency broadcast to app & notification settings." into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 06:53:11 +0000 (06:53 +0000)]
Merge "Add emergency broadcast to app & notification settings." into oc-dev

7 years agoMerge "Add "add service" pref to the autofill picker" into oc-dev
Philip P. Moltmann [Sat, 29 Apr 2017 05:14:36 +0000 (05:14 +0000)]
Merge "Add "add service" pref to the autofill picker" into oc-dev

7 years agoChange String to CharSequence in #loadSummary.
Saige McVea [Sat, 29 Apr 2017 03:29:40 +0000 (20:29 -0700)]
Change String to CharSequence in #loadSummary.

Per API council review, localized strings should return CharSequence. Changes here
account for the different type returned.

Test: ag/1813674

Bug: 37723508

Change-Id: I7dacab8af48932db031de22835b65eba30393956

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 29 Apr 2017 02:46:17 +0000 (19:46 -0700)]
Import translations. DO NOT MERGE

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

7 years agoGenerate license html file from xml files of partitions
Jaekyun Seok [Tue, 18 Apr 2017 06:22:01 +0000 (15:22 +0900)]
Generate license html file from xml files of partitions

Treble-ization requires each partner to store their license information
into their own partition because each partition can be updated
individually.
So each partition will have its own NOTICE.xml.gz, and Settings should
be able to generate license html from xml files of partitions.

Test: building succeeded and tested on sailfish.
  make ROBOTEST_FILTER=LicenseHtmlGeneratorFromXmlTest RunSettingsRoboTests
  make ROBOTEST_FILTER=LicenseHtmlLoaderTest RunSettingsRoboTests
  make ROBOTEST_FILTER=SettingsLicenseActivityTest RunSettingsRoboTests
Bug: 37099941
Change-Id: If797759d300ee20dd43ad8efd7d17b4f7e0c4537

7 years agoMerge "Revert "Display and parse numbers properly in all locales"" into oc-dev
TreeHugger Robot [Fri, 28 Apr 2017 23:08:19 +0000 (23:08 +0000)]
Merge "Revert "Display and parse numbers properly in all locales"" into oc-dev

7 years agoAdd emergency broadcast to app & notification settings.
Fan Zhang [Fri, 28 Apr 2017 20:51:08 +0000 (13:51 -0700)]
Add emergency broadcast to app & notification settings.

Also fixed a bug where progressive disclosure expand button is displayed
incorrectly when # of preference == threshold exactly.

Change-Id: I518687e374853ae8ab1c7e5337822492d6fd99ff
Fix: 36557600
Test: robotests

7 years agoRevert "Display and parse numbers properly in all locales"
Fan Zhang [Fri, 28 Apr 2017 21:06:28 +0000 (21:06 +0000)]
Revert "Display and parse numbers properly in all locales"

Bug: 37311645

This reverts commit 8648c5ed3d7c97915bd2ba0eeb413c98adf31eea.

Change-Id: If26d07a59dd9e71813a2b48f3bee25516bfb0b75

7 years agoAdd "add service" pref to the autofill picker
Philip P. Moltmann [Thu, 27 Apr 2017 22:38:27 +0000 (15:38 -0700)]
Add "add service" pref to the autofill picker

Mimicing the behavior we have for adding a print service.

Fixes: 37735998
Test: - Started auto fill picker with add-service-settings set and unset.
        Only if set, the preference is added
      - RunSettingsRoboTests (unrelated failure in
                              SetupChooseLockPatternTest)
      - Enable + disable auto fill service while settings is open
Change-Id: Ie019a032a1d01373f8fd0ebd7ae2ddf9c4d8871f

7 years agoMerge "Add content description to the master switch toggle button." into oc-dev
TreeHugger Robot [Fri, 28 Apr 2017 19:24:10 +0000 (19:24 +0000)]
Merge "Add content description to the master switch toggle button." into oc-dev

7 years agoDon't hide network reset even if it's disabled by admin.
Fan Zhang [Fri, 28 Apr 2017 17:58:41 +0000 (10:58 -0700)]
Don't hide network reset even if it's disabled by admin.

Change-Id: Ib78a3c9434c8543f3be34932264802f1065cc54b
Fix: 37134598
Test: robotests

7 years agoMerge "Fix a11y issues on the DO Disclosures page" into oc-dev
TreeHugger Robot [Fri, 28 Apr 2017 15:20:08 +0000 (15:20 +0000)]
Merge "Fix a11y issues on the DO Disclosures page" into oc-dev

7 years agoMerge "Check for permission when displaying AutofilLServices." into oc-dev
TreeHugger Robot [Fri, 28 Apr 2017 02:50:03 +0000 (02:50 +0000)]
Merge "Check for permission when displaying AutofilLServices." into oc-dev

7 years agoMerge "Merge pointer/tts categories into one without heading" into oc-dev
Fan Zhang [Thu, 27 Apr 2017 23:33:59 +0000 (23:33 +0000)]
Merge "Merge pointer/tts categories into one without heading" into oc-dev

7 years agoMerge "Add summary for Backup menu in Settings." into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 23:20:28 +0000 (23:20 +0000)]
Merge "Add summary for Backup menu in Settings." into oc-dev

7 years agoMerge "Disable submit button when PSK pass is invalid" into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 23:11:46 +0000 (23:11 +0000)]
Merge "Disable submit button when PSK pass is invalid" into oc-dev

7 years agoMerge "Refresh the App Info option menu after unintalling app updates." into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 23:08:19 +0000 (23:08 +0000)]
Merge "Refresh the App Info option menu after unintalling app updates." into oc-dev

7 years agoMerge "Add summary to special app access." into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 22:31:47 +0000 (22:31 +0000)]
Merge "Add summary to special app access." into oc-dev

7 years agoAdd content description to the master switch toggle button.
Doris Ling [Thu, 27 Apr 2017 22:09:21 +0000 (15:09 -0700)]
Add content description to the master switch toggle button.

Set the preference title as the toggle button's content description, so
that when user focus on the button, it will read the lable as well on
top of just "switch on" or "switch off".

Change-Id: Id1954fd54b7d38cb4e75d8b3e49d05ee694e0e41
Fix: 37618855
Test: make RunSettingsRoboTests

7 years agoAdd summary for Backup menu in Settings.
Anton Philippov [Fri, 21 Apr 2017 09:15:52 +0000 (10:15 +0100)]
Add summary for Backup menu in Settings.

'On'/'Off' depending on whether the backup is enabled in settings.

Refactors BackupSettingsActivity to be shown on System fragment via
xml/PreferenceController instead of category in the manifest.

Bug: 36891827
Test: make RunSettingsRoboTests
Change-Id: I61425fed4d63055c6c386be38792ae074aa72679

7 years agoMerge pointer/tts categories into one without heading
Fan Zhang [Thu, 27 Apr 2017 19:43:42 +0000 (12:43 -0700)]
Merge pointer/tts categories into one without heading

Change-Id: I75dd6472a6eb4929773222844872d43027122f3c
Fix: 35960300
Test: robotests

7 years agoMerge "Update ActivityMonitor.onMatchIntent to ActivityMonitor.onStartActivity."...
Sudheer Shanka [Thu, 27 Apr 2017 20:46:07 +0000 (20:46 +0000)]
Merge "Update ActivityMonitor.onMatchIntent to ActivityMonitor.onStartActivity." into oc-dev

7 years agoMerge "Remove search duplicates for Wifi and Bluetooth" into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 19:50:30 +0000 (19:50 +0000)]
Merge "Remove search duplicates for Wifi and Bluetooth" into oc-dev

7 years agoRemove search duplicates for Wifi and Bluetooth
Matthew Fritze [Thu, 13 Apr 2017 20:08:33 +0000 (13:08 -0700)]
Remove search duplicates for Wifi and Bluetooth

Remove the master switch duplicates between the switch
and their targets. Only show the actual Wifi and Bluetooth
settings as search results.

Bug: 33701673
Test: make RunSettingsRoboTests
Change-Id: I226cc8db40a308bd9bcfacdd4fc6ae709fb809c5

7 years agoFix Robolectric test on oc-dev. DO NOT MERGE
Maurice Lam [Thu, 27 Apr 2017 18:58:12 +0000 (11:58 -0700)]
Fix Robolectric test on oc-dev. DO NOT MERGE

The directories for setup wizard lib renamed on master.

Test: cd tests/robotests && mma
Bug: 37745541
Change-Id: Iffb7aa85a41a1d84c17357144f964e1d6da693be

7 years agoFix a11y issues on the DO Disclosures page
Bartosz Fabianowski [Wed, 26 Apr 2017 15:37:02 +0000 (17:37 +0200)]
Fix a11y issues on the DO Disclosures page

This CL makres on-actionable preferences on the DO Disclosures page
as selectable=false.

Bug: 37710449
Test: make RunSettingsRoboTests

Change-Id: Ida9c7e1db2a7ea2a1370280d670a42b8a95f21d6

7 years agoMerge "Don't show autofill settings if not enabled" into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 16:43:20 +0000 (16:43 +0000)]
Merge "Don't show autofill settings if not enabled" into oc-dev

7 years agoMerge "Disable "Verify apps over usb" according to user restriction." into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 16:23:00 +0000 (16:23 +0000)]
Merge "Disable "Verify apps over usb" according to user restriction." into oc-dev

7 years agoCheck for permission when displaying AutofilLServices.
Felipe Leme [Thu, 27 Apr 2017 15:51:33 +0000 (08:51 -0700)]
Check for permission when displaying AutofilLServices.

Bug: 35956220
Test: manual verification
Test: make RunSettingsRoboTests -j90

Change-Id: Ica0079650f17cf96d8c8a9b0849a82b02cfa8dc6

7 years agoMerge "App & channel notification settings updates" into oc-dev
Julia Reynolds [Thu, 27 Apr 2017 15:11:32 +0000 (15:11 +0000)]
Merge "App & channel notification settings updates" into oc-dev

7 years agoDon't show autofill settings if not enabled
Philip P. Moltmann [Mon, 24 Apr 2017 23:13:21 +0000 (16:13 -0700)]
Don't show autofill settings if not enabled

The non-indexable keys of language-and-input on my angler are:
  game_controller_settings_category, gesture_assist,
  gesture_double_tap_screen, default_autofill

Fixes: 35956220
Test: Disabled auto-fill and looked at settings: did not find
      autofill button and could not find auto-fill in search
      Settings robolectric test
Merged-In: I0923e707422d1b1de5153a63fa3a5fe4773c055d
Change-Id: I0923e707422d1b1de5153a63fa3a5fe4773c055d

7 years agoDO Disclosures: detailed application lists
Denis Kuznetsov [Wed, 12 Apr 2017 15:33:35 +0000 (17:33 +0200)]
DO Disclosures: detailed application lists

Add UI that lists enterprise set default apps for handling important intents
(opening browser, using camera, phone, etc).

Bug: 32692748
Test: m RunSettingsRoboTests
Merged-In: I75bb97d1b3728b1dcb90981b24d12edf510c4b04
Change-Id: I7d0041e4fada48bc56f6a6637614ac4471dba65a
(cherry picked from commit f0a61dd1126f4b21fb15f1c3d9611ef86fc291a7)

7 years agoDO Disclosure: add UI that lists apps that were managed by owner:
Denis Kuznetsov [Thu, 27 Apr 2017 08:44:21 +0000 (10:44 +0200)]
DO Disclosure: add UI that lists apps that were managed by owner:
- had permissions granted by admin
- were installed by owner via policy

Bug: 32692748
Test: m RunSettingsRoboTests
Change-Id: I365e2f8f351671e68f83cceb7c0ca241d7a5a588
Merged-In: I365e2f8f351671e68f83cceb7c0ca241d7a5a588
(cherry picked from commit 60b2960cbb4df5310d054da57e2ec134b3fca0e6)

7 years agoDisable "Verify apps over usb" according to user restriction.
Pavel Grafov [Tue, 18 Apr 2017 18:35:39 +0000 (19:35 +0100)]
Disable "Verify apps over usb" according to user restriction.

Bug: 37158436
Test: make ROBOTEST_FILTER=VerifyAppsOverUsbPreferenceControllerTest RunSettingsRoboTests
Change-Id: I52d40f4176ecd660c621ec056649c94fc29f2d4b
Merged-In: I52d40f4176ecd660c621ec056649c94fc29f2d4b

7 years agoMerge "Improvements on ACTION_REQUEST_SET_AUTOFILL_SERVICE:" into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 07:40:44 +0000 (07:40 +0000)]
Merge "Improvements on ACTION_REQUEST_SET_AUTOFILL_SERVICE:" into oc-dev

7 years agoMerge "Resolve intent before launching from DashboardFragment." into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 05:47:29 +0000 (05:47 +0000)]
Merge "Resolve intent before launching from DashboardFragment." into oc-dev

7 years agoImprovements on ACTION_REQUEST_SET_AUTOFILL_SERVICE:
Felipe Leme [Tue, 25 Apr 2017 23:42:55 +0000 (16:42 -0700)]
Improvements on ACTION_REQUEST_SET_AUTOFILL_SERVICE:

- Moved to proper package.
- Returns right away when:
  - AutofillService for package is already selected
  - Autofill is not available

Bug: 37576671
Bug: 37673809

Test: manual verification
Test: make RunSettingsRoboTests -j90

Merged-in: Icda260cea1b4ce6cdefd8eff9625b2b768a5ed86
Change-Id: Icda260cea1b4ce6cdefd8eff9625b2b768a5ed86

7 years agoMerge "Enable redaction interstitial after setting up pattern" into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 03:40:17 +0000 (03:40 +0000)]
Merge "Enable redaction interstitial after setting up pattern" into oc-dev

7 years agoMerge "DO NOT MERGE: Revert "Add summary text to Display->Brightness level."" into...
TreeHugger Robot [Thu, 27 Apr 2017 03:22:20 +0000 (03:22 +0000)]
Merge "DO NOT MERGE: Revert "Add summary text to Display->Brightness level."" into oc-dev

7 years agoUpdate ActivityMonitor.onMatchIntent to ActivityMonitor.onStartActivity.
Sudheer Shanka [Thu, 27 Apr 2017 00:34:47 +0000 (17:34 -0700)]
Update ActivityMonitor.onMatchIntent to ActivityMonitor.onStartActivity.

Bug: 37672383
Change-Id: I63adcafc6e8dced173d52f25e8a6521ae897c9aa
Test: builds

7 years agoMerge "Bluetooth: Dismiss pairing dialog on user click" into oc-dev
TreeHugger Robot [Thu, 27 Apr 2017 00:32:11 +0000 (00:32 +0000)]
Merge "Bluetooth: Dismiss pairing dialog on user click" into oc-dev

7 years agoRefresh the App Info option menu after unintalling app updates.
Doris Ling [Wed, 26 Apr 2017 23:30:47 +0000 (16:30 -0700)]
Refresh the App Info option menu after unintalling app updates.

When we are done uninstalling app updates, invalidate the options menu
so that it will be rebuilt and the correct available menu items will be
shown.

Change-Id: I485fe9ff129ac0b2d75094c3b899bf6553e54c74
Fix: 36407258
Test: make RunSettingsRoboTests

7 years agoResolve intent before launching from DashboardFragment.
Fan Zhang [Fri, 21 Apr 2017 21:40:11 +0000 (14:40 -0700)]
Resolve intent before launching from DashboardFragment.

Once dashboard tile is displayed, the underlying intent can be disabled.
We will eventually hide the item from UI, but there can be a brief
moment before we are able to hide it. So to prevent user click and
launch a non-exist intent, we will try to resolve it first before
launching anything.

Change-Id: Ic8d790bf3c5d4d269eadb757f789a1641928a7b7
Fix: 36036097
Test: make RunSettingsRoboTests

7 years agoDO NOT MERGE: Revert "Add summary text to Display->Brightness level."
Doris Ling [Wed, 26 Apr 2017 21:27:53 +0000 (21:27 +0000)]
DO NOT MERGE: Revert "Add summary text to Display->Brightness level."

This reverts commit 03ee2537016e2df94eaec8a8af1c94a57a3b1199.

The change does not work properly and is causing confusion.

Bug: 36650108

Change-Id: I00acced742b20e215c869ed58eb8750c654f5742

7 years agoMerge "No autofill password when in PIN settings" into oc-dev
TreeHugger Robot [Wed, 26 Apr 2017 21:05:04 +0000 (21:05 +0000)]
Merge "No autofill password when in PIN settings" into oc-dev

7 years agoDisable submit button when PSK pass is invalid
Glen Kuhne [Thu, 13 Apr 2017 22:23:44 +0000 (15:23 -0700)]
Disable submit button when PSK pass is invalid

Modified the logic of when to enable the 'connect'/'save'(submit)
button.
PSK is now also recognized as invalid when over 63 characters in length.
Removed the 'isSavedAp' check that only applied the invalid password
check to new networks. Users must now modify networks with a valid psk.

While I was here: Fixed WifiSettingsUiTest from failing due to invalid
WIFI_PREFERENCES string

Bug: 37152520
Bug: 36709852
Test: runtest WifiSettingsUiTest & m RunSettingsRoboTests pass
Change-Id: I273560cbf9124d16034962a2084f36c93973ee83

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 26 Apr 2017 19:45:02 +0000 (19:45 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Force update APs when enabling wifi in WifiSettings." into oc-dev
Sundeep Ghuman [Wed, 26 Apr 2017 18:32:42 +0000 (18:32 +0000)]
Merge "Force update APs when enabling wifi in WifiSettings." into oc-dev

7 years agoAdd summary to special app access.
Doris Ling [Tue, 11 Apr 2017 22:35:49 +0000 (15:35 -0700)]
Add summary to special app access.

Get the count of apps that has unrestricted data access and add that to
the summary for Apps & notifications -> Special app access.

Bug: 36376411
Test: make RunSettingsRoboTests
Change-Id: Id80a030e1e066f1391f94114f478091a2a87fcd8

7 years agoEnable redaction interstitial after setting up pattern
Maurice Lam [Tue, 25 Apr 2017 21:56:22 +0000 (14:56 -0700)]
Enable redaction interstitial after setting up pattern

Test: cd tests/robotests && mma
Bug: 37514884
Change-Id: Ie9342ca0ea893a687284d8b864c6d53a79f88086

7 years agoMake the storage free/total sizes consistent.
Daniel Nishi [Fri, 21 Apr 2017 17:24:41 +0000 (10:24 -0700)]
Make the storage free/total sizes consistent.

We were using a different calculation in the top level view compared to
within the Storage settings. Technically, both are correct (one of them
is aware that we're considering cache as free, one does not). This patch
aligns us on the cache as free strategy.

Change-Id: I9ac26683a4d2a30b77a1da534aa2ddd3d4da6657
Fixes: 37175551
Test: Settings robotest

7 years agoMerge "Turn off QUIET_MODE before changing unified lock credential." into oc-dev
Charles He [Wed, 26 Apr 2017 13:29:42 +0000 (13:29 +0000)]
Merge "Turn off QUIET_MODE before changing unified lock credential." into oc-dev

7 years agoMerge "Add search index provider for ConfigureNotificationSettings" into oc-dev
TreeHugger Robot [Wed, 26 Apr 2017 00:06:41 +0000 (00:06 +0000)]
Merge "Add search index provider for ConfigureNotificationSettings" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 25 Apr 2017 23:18:44 +0000 (16:18 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Don't shows Files when storage is adopted." into oc-dev
Daniel Nishi [Tue, 25 Apr 2017 22:30:29 +0000 (22:30 +0000)]
Merge "Don't shows Files when storage is adopted." into oc-dev

7 years agoMerge "Don't crash on opening ejecting USB." into oc-dev
Daniel Nishi [Tue, 25 Apr 2017 22:30:13 +0000 (22:30 +0000)]
Merge "Don't crash on opening ejecting USB." into oc-dev

7 years agoMerge "Implemented ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 22:27:08 +0000 (22:27 +0000)]
Merge "Implemented ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev

7 years agoForce update APs when enabling wifi in WifiSettings.
Sundeep Ghuman [Fri, 21 Apr 2017 02:59:34 +0000 (02:59 +0000)]
Force update APs when enabling wifi in WifiSettings.

This reverts commit b2bdc8f17b6148495731e4bfdd9968a6840907eb
and fixes a broken Espresso test case.

Reason for revert: Rolling forward after fix in ag/2133493, to fix b/37324736

Bug: b/37324736
Test: runtest --path
packages/apps/Settings/tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: I9cdf8cb1043af5d527eccbd9cc56d3b02419d7ac

7 years agoMerge "'Allow sound' = let the app decide" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:45:19 +0000 (21:45 +0000)]
Merge "'Allow sound' = let the app decide" into oc-dev

7 years agoMerge "Distribute the misc among all the apps" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:44:54 +0000 (21:44 +0000)]
Merge "Distribute the misc among all the apps" into oc-dev

7 years agoMerge "Move battery stats loading to AsyncLoader." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:44:05 +0000 (21:44 +0000)]
Merge "Move battery stats loading to AsyncLoader." into oc-dev

7 years agoBluetooth: Dismiss pairing dialog on user click
Jack He [Tue, 25 Apr 2017 19:53:33 +0000 (12:53 -0700)]
Bluetooth: Dismiss pairing dialog on user click

* Existing pairing dialog should be dismissed when user clicks on Yes/No
* In a pairing session with multiple pairing dialogs, this is necessary
  as otherwise the second pairing dialog will not be shown
* Modified unit test to test this behavior
* Launch pairing dialog as UserHandle.CURRENT to avoid Context warnings

Bug: 35833536
Test: make, unit test, pair with Bluetooth devices
Change-Id: I1823b78d287134505f59eab7caca2329ecc3a36f

7 years agoImplemented ACTION_REQUEST_SET_AUTOFILL_SERVICE.
Felipe Leme [Tue, 25 Apr 2017 01:10:09 +0000 (18:10 -0700)]
Implemented ACTION_REQUEST_SET_AUTOFILL_SERVICE.

Bug: 37673809
Fixes: 37576671
Test: manual verification
Test: make RunSettingsRoboTests -j90

Change-Id: I36170cb715473dfbf598deedd9719a46168aabc8

7 years agoMove battery stats loading to AsyncLoader.
jackqdyulei [Thu, 13 Apr 2017 18:44:42 +0000 (11:44 -0700)]
Move battery stats loading to AsyncLoader.

It takes 3-4 seconds to load the battery settings page in Ryu. Main
reason is that it takes too long to init BatteryStatsHelper.

This cl moves loading code to AsyncLoader, and we will refresh ui once
the loading part is finished.

Following cl will add animation for the battery header to make it not
so janky

Bug: 37196170
Test: RunSettingsRoboTest
Change-Id: I40dfdde4a072e28a56c8fdf0ec6d671b5109fc6d

7 years agoMerge changes I4ae01109,Ib45289c3 into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:16:19 +0000 (20:16 +0000)]
Merge changes I4ae01109,Ib45289c3 into oc-dev

* changes:
  Remove shadow below app info header.
  Fix ANR in installed app details.

7 years agoAdd search index provider for ConfigureNotificationSettings
Fan Zhang [Tue, 25 Apr 2017 19:45:35 +0000 (12:45 -0700)]
Add search index provider for ConfigureNotificationSettings

Change-Id: I1da8e318a8823ffe54b2edd7a83a8c7e31ee34e6
Fix: 37593839
Test: make RunSettingsRoboTests

7 years agoMerge "Add searchable index for Bluetooth and Nfc only if the feature exists" into...
TreeHugger Robot [Tue, 25 Apr 2017 19:05:42 +0000 (19:05 +0000)]
Merge "Add searchable index for Bluetooth and Nfc only if the feature exists" into oc-dev

7 years agoMerge "Prevent fingerprint from bypassing work challenge" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:59:33 +0000 (18:59 +0000)]
Merge "Prevent fingerprint from bypassing work challenge" into oc-dev

7 years agoMerge "Properly check wallpaper state before showing suggestion" into oc-dev
Fan Zhang [Tue, 25 Apr 2017 18:55:52 +0000 (18:55 +0000)]
Merge "Properly check wallpaper state before showing suggestion" into oc-dev

7 years agoMerge "Update account sync settings title." into oc-dev
Fan Zhang [Tue, 25 Apr 2017 18:55:28 +0000 (18:55 +0000)]
Merge "Update account sync settings title." into oc-dev

7 years agoDistribute the misc among all the apps
jackqdyulei [Fri, 21 Apr 2017 20:46:17 +0000 (13:46 -0700)]
Distribute the misc among all the apps

Distribute it in:
1. Battery main page(PowerUsageSummary)
2. Advanced battery page(PowerUsageAdvanced)

Bug: 37487061
Test: RunSettingsRoboTests
Change-Id: Id1810b81a6b380d908bcdc18421530e938578c37

7 years agoMerge "Remove STATE_TOP_SLEEPING from foreground time" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:36:00 +0000 (18:36 +0000)]
Merge "Remove STATE_TOP_SLEEPING from foreground time" into oc-dev