OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoDon't overly hide the Files preference.
Daniel Nishi [Mon, 1 May 2017 18:30:14 +0000 (11:30 -0700)]
Don't overly hide the Files preference.

This occurred this because the files preference was initialized during
displayPreference(), but the volume used to initialize it was not being
set until after the displayPreference() call. In this case, the files
preference would hide itself and never come back.

This fixes this by double-checking the Files visibility status whenever
we set the volume.

Change-Id: I0b1a7a9566e9caece39ec58706fbca034ef4c1c2
Fixes: 37790776
Test: Settings robotest

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 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 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 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 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

7 years agoMerge "Make connected Wi-Fi message multiline to avoid cutoff." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:33:49 +0000 (18:33 +0000)]
Merge "Make connected Wi-Fi message multiline to avoid cutoff." into oc-dev

7 years agoNo autofill password when in PIN settings
Fan Zhang [Sat, 22 Apr 2017 00:03:18 +0000 (17:03 -0700)]
No autofill password when in PIN settings

Change-Id: I1a629e296c4759496307510307fd907be39bb8c8
Fix: 37244398
Test: manual

7 years agoRemove shadow below app info header.
Fan Zhang [Tue, 25 Apr 2017 18:18:30 +0000 (11:18 -0700)]
Remove shadow below app info header.

Bug: 37670670
Test: visual
Change-Id: I4ae011098537a970568f9fa72c49847a595a7fe0

7 years agoApp & channel notification settings updates
Julia Reynolds [Fri, 21 Apr 2017 12:27:06 +0000 (08:27 -0400)]
App & channel notification settings updates

- change 'block all' to an on/off switch bar
- update channel list summary text when notifications are
toggled on/off on app settings page
- Add 'off state' text
- change style of foot items
- change 'importance' from a dropdown to its own page

Bug: 37538972
Bug: 37479730
Fixes: 37541624
Fixes: 37549732
Test: manual

Change-Id: I0e5cc66ba539ce2b76b4ad6541bf6bfb5b58c373

7 years ago'Allow sound' = let the app decide
Julia Reynolds [Wed, 19 Apr 2017 15:43:30 +0000 (11:43 -0400)]
'Allow sound' = let the app decide

Bug: 37479730
Test: manual
Change-Id: Ia5073dd0ef79664229c5aff0b89e7ef36edb68ee

7 years agoTurn off QUIET_MODE before changing unified lock credential.
Charles He [Mon, 24 Apr 2017 17:05:48 +0000 (18:05 +0100)]
Turn off QUIET_MODE before changing unified lock credential.

For FBE-enabled devices, the work profile disk encryption key is evicted
when the the profile is turned off (i.e. QUIET_MODE is on). If the user
attempts to change the profile's lock screen credentials in this state,
the profile will get into an unrecoverable state as vold does not have
the current encryption key.

Currently, separate work challenge does not suffer from this issue as
QUIET_MODE must be turned off before the change credentials flow could
be initiated in Settings. In this CL, we fix the issue for unified work
challenge as well by adopting the same approach.

This is temporary and should be removed when vold no longer relies on
the current key for resetting the password.

Bug: 35930129
Test: manually resetting unified PIN when work mode is off
      on both sailfish (FBE) and angler (no FBE)
Test: make SettingsRoboTests

Change-Id: Ibb4b1c40a9cad8a473e08cf0c294699406108cd9

7 years agoFix ANR in installed app details.
Fan Zhang [Mon, 24 Apr 2017 23:57:35 +0000 (16:57 -0700)]
Fix ANR in installed app details.

InstalledAppDetails tries to refreshUi whenever something about a
package changes. It does not need to refresh when the changing package
is different from what's being displayed.

Change-Id: Ib45289c39ee402cf8974bf52c881f44d225b8be5
Fix: 37424866
Test: make RunSettingsRoboTests

7 years agoMerge "Update Search UX for OC" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 00:55:02 +0000 (00:55 +0000)]
Merge "Update Search UX for OC" into oc-dev

7 years agoDon't shows Files when storage is adopted.
Daniel Nishi [Tue, 4 Apr 2017 17:29:59 +0000 (10:29 -0700)]
Don't shows Files when storage is adopted.

One regression from the previous storage view is that the
Files category should not show at all when the storage is adopted.

Fixes: 36786953
Test: Settings robotest

Change-Id: Ice365fabc3bfa66f4c5526ac78bbbfc5e15b7b35

7 years agoMerge "Prevent search crashes from uninstalled apps" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 00:12:33 +0000 (00:12 +0000)]
Merge "Prevent search crashes from uninstalled apps" into oc-dev

7 years agoMerge "Do not call update() for read only APNs." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 22:16:32 +0000 (22:16 +0000)]
Merge "Do not call update() for read only APNs." into oc-dev

7 years agoAdd searchable index for Bluetooth and Nfc only if the feature exists
Ruchi Kandoi [Fri, 21 Apr 2017 00:17:50 +0000 (17:17 -0700)]
Add searchable index for Bluetooth and Nfc only if the feature exists

Test: make RunSettingsRoboTests
Bug: 35657961
Change-Id: Ie2f4722b2b1599981c933f87f95016909ba92022
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
7 years agoMake connected Wi-Fi message multiline to avoid cutoff.
Stephen Chen [Mon, 24 Apr 2017 18:39:00 +0000 (11:39 -0700)]
Make connected Wi-Fi message multiline to avoid cutoff.

Bug: 37330280
Test: manual inspection.
Change-Id: Ifdf76d454cf98de2db03a266ad4c3a3cbcd79b4c

7 years agoRemove STATE_TOP_SLEEPING from foreground time
jackqdyulei [Mon, 24 Apr 2017 18:37:00 +0000 (11:37 -0700)]
Remove STATE_TOP_SLEEPING from foreground time

That state means the time when app is on top while screen is off,
we should not count it as foreground usage time.

Bug: 37547898
Test: RunSettingsRoboTests
Change-Id: I67e0c135d0c4b71cd667037b0d5dc7673b53607e

7 years agoUpdate Search UX for OC
Matthew Fritze [Sat, 1 Apr 2017 00:07:25 +0000 (17:07 -0700)]
Update Search UX for OC

- Change text opacity for Search UX
- Update dps between summary and breadcrumbs
- Remove icons for Title items
- Restrict summary to single line

Test: manual
Bug: 36853763
Change-Id: I2acd574ec9c490bbe7097d30c512e58ebe1ad9f2

7 years agoDo not call update() for read only APNs.
Amit Mahajan [Mon, 24 Apr 2017 18:02:03 +0000 (11:02 -0700)]
Do not call update() for read only APNs.

Calling update marks the APN USER_EDITED and thus makes it user
editable.

Test: manual
Bug: 37607890
Change-Id: Ia5aa0df470e04c8bcc58080577cc3da2ab6dc9df

7 years agoMerge "Fake data to be 0B after clearing." into oc-dev
Daniel Nishi [Mon, 24 Apr 2017 17:54:18 +0000 (17:54 +0000)]
Merge "Fake data to be 0B after clearing." into oc-dev

7 years agoMerge "Add TtsSpan for formatted time." into oc-dev
Lei Yu [Mon, 24 Apr 2017 17:01:58 +0000 (17:01 +0000)]
Merge "Add TtsSpan for formatted time." into oc-dev

7 years agoMerge "Add device name for connect string" into oc-dev
Lei Yu [Mon, 24 Apr 2017 17:00:48 +0000 (17:00 +0000)]
Merge "Add device name for connect string" into oc-dev

7 years agoOnly show headers in Master Clear when there are multiple profiles
Bartosz Fabianowski [Wed, 19 Apr 2017 09:51:43 +0000 (11:51 +0200)]
Only show headers in Master Clear when there are multiple profiles

The Master Clear dialog lists the accounts whose data will be lost by
a factory reset. The list contains the headings "Personal" and "Work"
to distinguish accounts in the main user and the work profile. When
there is no work profile, the header (only "Personal" would be shown in
this case) is superfluous and misleading (as the user may be using the
device for work).

Bug: 30132270
Test: Manual :(

Change-Id: Id493652fc331d4500c4d772a9abcc716995565b3
(cherry picked from commit 30ba8680144a7978007511d4d9a3addbe9338284)

7 years agoMerge "Updating strings for Install unknown apps" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 02:23:56 +0000 (02:23 +0000)]
Merge "Updating strings for Install unknown apps" into oc-dev

7 years agoMerge "Add Bluetooth Pairing notifications to a channel" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 01:49:50 +0000 (01:49 +0000)]
Merge "Add Bluetooth Pairing notifications to a channel" into oc-dev

7 years agoMerge "Remove duplicates between battery and display settings" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 00:56:08 +0000 (00:56 +0000)]
Merge "Remove duplicates between battery and display settings" into oc-dev

7 years agoAdd Bluetooth Pairing notifications to a channel
Ajay Panicker [Fri, 21 Apr 2017 23:31:50 +0000 (16:31 -0700)]
Add Bluetooth Pairing notifications to a channel

Bug: 37531430
Test: Send a pairing request to DUT from remote phone
Change-Id: I2014b0aa3c4797cbf8e601003471372f4920d21d

7 years agoPrevent search crashes from uninstalled apps
Matthew Fritze [Wed, 22 Mar 2017 20:51:36 +0000 (13:51 -0700)]
Prevent search crashes from uninstalled apps

All search results are now refreshed when resuming the
search fragment, to prevent crashes from results that
no longer exist.

Change-Id: I905465d14f415598ec7a2ebe7b29ed620cde0962
Fixes: 34817357
Test: make RunSettingsRoboTests
Merged-In: I96a0cbfee711ab9dee49d56bfdc4e885202d9ecd

7 years agoAdd device name for connect string
jackqdyulei [Tue, 18 Apr 2017 20:20:34 +0000 (13:20 -0700)]
Add device name for connect string

When there are more than one connected device, show
a general summary.

Bug: 37365660
Test: RunSettingsRoboTests
Change-Id: I0eed734e82750969bef97a61dd59167e679c0203

7 years agoAdd TtsSpan for formatted time.
jackqdyulei [Fri, 31 Mar 2017 19:57:10 +0000 (12:57 -0700)]
Add TtsSpan for formatted time.

Talk back will read "Used for 3m" as "Used for 3 meters", but
it will read "Used for 3h 3m" correctly.

This cl add specific Ttsspan if the time only contains "minute"

Bug: 36379530
Test: Run SettingsRoboTests

Change-Id: I033575938cce24221980dddd9d66be4e18804541