OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoFix PrefCategory layout to align text with actionbar title
Fan Zhang [Fri, 5 May 2017 16:19:13 +0000 (09:19 -0700)]
Fix PrefCategory layout to align text with actionbar title

Change-Id: I2716a92e2802e3ff01d4e550dae96e689d4370ff
Fix: 38011653
Test: visual

7 years agoMerge "Remove summary template in sleep timeout setting." into oc-dev
TreeHugger Robot [Mon, 8 May 2017 18:57:56 +0000 (18:57 +0000)]
Merge "Remove summary template in sleep timeout setting." into oc-dev

7 years agoMerge "Report normalized package name as default key" into oc-dev
Svetoslav Ganov [Mon, 8 May 2017 18:57:22 +0000 (18:57 +0000)]
Merge "Report normalized package name as default key" into oc-dev

7 years agoReport normalized package name as default key
Svet Ganov [Sat, 6 May 2017 22:49:27 +0000 (15:49 -0700)]
Report normalized package name as default key

Test: make RunSettingsRoboTests -j90

bug:36978445

Change-Id: I593de89c4fa4e9c63a86b9844736e38dce30a258

7 years agoMerge "Show "Forget" button for ephemeral networks." into oc-dev
TreeHugger Robot [Mon, 8 May 2017 17:07:32 +0000 (17:07 +0000)]
Merge "Show "Forget" button for ephemeral networks." into oc-dev

7 years agoMerge "Fix Settings crash in Storage settings." into oc-dev
Daniel Nishi [Mon, 8 May 2017 16:45:06 +0000 (16:45 +0000)]
Merge "Fix Settings crash in Storage settings." into oc-dev

7 years agoMerge "Fix crash when there is no emergencybroadcast app on device" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 02:42:37 +0000 (02:42 +0000)]
Merge "Fix crash when there is no emergencybroadcast app on device" into oc-dev

7 years agoMerge "Fix bidi direction of dialog and bidi-wrap service name" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 01:34:46 +0000 (01:34 +0000)]
Merge "Fix bidi direction of dialog and bidi-wrap service name" into oc-dev

7 years agoFix crash when there is no emergencybroadcast app on device
Fan Zhang [Fri, 5 May 2017 22:03:19 +0000 (15:03 -0700)]
Fix crash when there is no emergencybroadcast app on device

Some devices do not have emergencybroadcast app installed, so we should
not show the preference item for it. Add the preference controller into
AppAndNotificationFragment properly hides it.

Change-Id: Ic39ba24da9bd8f3200a5e44232a5489e35c48c0a
Fix: 37945069
Test: make RunSettingsRoboTests

7 years agoMerge "Fix crash when primary user select app installed by secondary user." into...
TreeHugger Robot [Fri, 5 May 2017 23:59:27 +0000 (23:59 +0000)]
Merge "Fix crash when primary user select app installed by secondary user." into oc-dev

7 years agoFix crash when primary user select app installed by secondary user.
Doris Ling [Wed, 3 May 2017 23:22:40 +0000 (16:22 -0700)]
Fix crash when primary user select app installed by secondary user.

- PackageManager.getPackageInfo() can return null. When trying to check
the app permission info, check for null package info and only process
the permission info when package info is available.
- Update usage of PackageManager.MATCH_UNINSTALLED_PACKAGES to
PackageManager.MATCH_ANY_USER, as the implementation for querying
packages for other users have been changed.
- Add PackageManager APIs used by AppStateAppOpsBridge to
IPackageManagerWrapper for test purpose.
- Change UserManager.get() to Context.getSystemService() to fix test
failure.

Change-Id: I52de924618aa252ffaae02b8f06ebe5b1d0def61
Fix: 37409266
Test: make RunSettingsRoboTests

7 years agoMerge "Update tether summary text when airplane mode turns on" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 21:52:06 +0000 (21:52 +0000)]
Merge "Update tether summary text when airplane mode turns on" into oc-dev

7 years agoMerge "Adding SecureTouchListener to DeviceAdminAdd" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 20:48:41 +0000 (20:48 +0000)]
Merge "Adding SecureTouchListener to DeviceAdminAdd" into oc-dev

7 years agoRemove summary template in sleep timeout setting.
Fan Zhang [Fri, 5 May 2017 17:19:52 +0000 (10:19 -0700)]
Remove summary template in sleep timeout setting.

The template causes incorrect display in search, and it's not
needded by anyone in code.

Bug: 36101902
Test: rerun robotests
Change-Id: Ib399e15c799e08d377b124e88eda0b8f13494ed3

7 years agoFix bidi direction of dialog and bidi-wrap service name
Roozbeh Pournader [Fri, 5 May 2017 20:40:05 +0000 (13:40 -0700)]
Fix bidi direction of dialog and bidi-wrap service name

Previously, the name of the service being in a different direction
from the locale could cause bidi artifacts.

Now, we explicitly set the direction of the dialog to the locale, and
bidi-wrap the service name.

Test: Manual
Change-Id: I563299866b24a4ce90fa2d09781aa269d8de2edd
Fixes: 37761152

7 years agoUpdate tether summary text when airplane mode turns on
Fan Zhang [Thu, 4 May 2017 16:12:12 +0000 (09:12 -0700)]
Update tether summary text when airplane mode turns on

Change-Id: I62c52351abbad50aeac077785afb21822773956e
Fix: 37934871
Test: make RunSettingsRoboTests

7 years agoMerge "Only use PROCESS_STATE_TOP as foreground time." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 18:55:27 +0000 (18:55 +0000)]
Merge "Only use PROCESS_STATE_TOP as foreground time." into oc-dev

7 years agoOnly use PROCESS_STATE_TOP as foreground time.
jackqdyulei [Thu, 4 May 2017 19:38:08 +0000 (12:38 -0700)]
Only use PROCESS_STATE_TOP as foreground time.

There are some miscalculations in state FOREGROUND_SERVICE and
FOREGROUND, so we move them out of the foreground time for now.

We will fix it after O and may add them back later.

Bug: 37000096
Test: RunSettingsRoboTests
Change-Id: Ic3f2f7fa69e8a213895c601630d1cca94fd32220

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 11:58:05 +0000 (11:58 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 5 May 2017 06:26:52 +0000 (23:26 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Defend against underspecified notifications." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 02:21:10 +0000 (02:21 +0000)]
Merge "Defend against underspecified notifications." into oc-dev

7 years agoAdding SecureTouchListener to DeviceAdminAdd
Suprabh Shukla [Wed, 3 May 2017 01:06:16 +0000 (18:06 -0700)]
Adding SecureTouchListener to DeviceAdminAdd

Dropping any touches to the activate admin button if any other
window is partly or wholly obscuring the device admin add window

Test: Cts Verifier -> Device Administration -> Device Admin Tapjacking
Test

Bug: 35056974
Change-Id: I048ecc1944c13fea624eede7861d39df2beeb393

7 years agoMerge "Limit btsnoop file size (4/9)" into oc-dev
Ajay Panicker [Thu, 4 May 2017 22:56:16 +0000 (22:56 +0000)]
Merge "Limit btsnoop file size (4/9)" into oc-dev

7 years agoFix Settings crash in Storage settings.
Daniel Nishi [Wed, 3 May 2017 20:36:36 +0000 (13:36 -0700)]
Fix Settings crash in Storage settings.

If you tap aggressively before the fragment has fully initialized, it
was possible to NPE. This null-checks to avoid this.

Change-Id: I3488245d230cf1e16b23e34614c8e6b43ea14ff1
Fixes: 37945253
Test: Robotest

7 years agoMerge "Only show one copy of each preference" into oc-dev
Julia Reynolds [Thu, 4 May 2017 20:08:38 +0000 (20:08 +0000)]
Merge "Only show one copy of each preference" into oc-dev

7 years agoMerge "Fix a bug where override filter was always on." into oc-dev
Daniel Nishi [Thu, 4 May 2017 17:18:35 +0000 (17:18 +0000)]
Merge "Fix a bug where override filter was always on." into oc-dev

7 years agoMerge "Show when work profile notifications are blocked for listener" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 17:16:18 +0000 (17:16 +0000)]
Merge "Show when work profile notifications are blocked for listener" into oc-dev

7 years agoMerge "Skip "null" string when building advanced button summary" into oc-dev
Fan Zhang [Thu, 4 May 2017 16:12:25 +0000 (16:12 +0000)]
Merge "Skip "null" string when building advanced button summary" into oc-dev

7 years agoOnly show one copy of each preference
Julia Reynolds [Thu, 4 May 2017 14:10:22 +0000 (10:10 -0400)]
Only show one copy of each preference

Fixes: 37912144
Fixes: 37909560
Test: manual, load app settings for legacy and upgrade apps from
inline settings, click (i), and click back.

Change-Id: Ieb96cca03f2596fd44cd33facafa3d4af1fbc24d

7 years agoShow when work profile notifications are blocked for listener
Esteban Talavera [Wed, 5 Apr 2017 15:31:10 +0000 (16:31 +0100)]
Show when work profile notifications are blocked for listener

Bug: 36657192
Test: m RunSettingsRoboTests

Change-Id: If6a8715b9a5a9ea893728c8ce7708e4c4154fb80
(cherry picked from commit ee349792dd4d34bbbdc10446c88ce5f370d5347c)

7 years agoShow "Forget" button for ephemeral networks.
Amin Shaikh [Tue, 2 May 2017 23:33:37 +0000 (16:33 -0700)]
Show "Forget" button for ephemeral networks.

- Move forget button preference handling logic to
WifiDetailPreferenceController
- Remove unnecessary updateInfo call in onResume since
NETWORK_STATE_CHANGED_ACTION is a sticky broadcast
- Populate network state fields and set up initial wifi state
when the Preference is displayed instead of waiting for onResume

Bug: 37751816
Test: m RunSettingsRoboTests && manually tested on device
Change-Id: I509013c72a0d26fc9a3feca564d92a0ab8414d1e

7 years agoMerge "Fix string where it says "phone" on a tablet." into oc-dev
TreeHugger Robot [Thu, 4 May 2017 02:23:17 +0000 (02:23 +0000)]
Merge "Fix string where it says "phone" on a tablet." into oc-dev

7 years agoMerge "Add a "sign into network" button to the wifi details page." into oc-dev
Lorenzo Colitti [Thu, 4 May 2017 02:06:48 +0000 (02:06 +0000)]
Merge "Add a "sign into network" button to the wifi details page." into oc-dev

7 years agoMerge "Update "Phone idle" subtext" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 01:11:23 +0000 (01:11 +0000)]
Merge "Update "Phone idle" subtext" into oc-dev

7 years agoMerge "Fix null pointer exception in wifi settings" into oc-dev
TreeHugger Robot [Thu, 4 May 2017 01:04:49 +0000 (01:04 +0000)]
Merge "Fix null pointer exception in wifi settings" into oc-dev

7 years agoFix a bug where override filter was always on.
Daniel Nishi [Wed, 3 May 2017 21:14:56 +0000 (14:14 -0700)]
Fix a bug where override filter was always on.

Change-Id: I1df52f13d8e335362d2eec18c968227ed9ecf299
Fixes: 37952170
Test: Settings unit test

7 years agoFix string where it says "phone" on a tablet.
Fan Zhang [Thu, 4 May 2017 00:03:55 +0000 (17:03 -0700)]
Fix string where it says "phone" on a tablet.

Change-Id: Id2e8fa1e1fef34e167c7ad25468dcd335baa73c6
Fix: 37833383
Test: visual

7 years agoMerge "Allow "None" to be selected as a Network rating provider." into oc-dev
TreeHugger Robot [Wed, 3 May 2017 22:57:07 +0000 (22:57 +0000)]
Merge "Allow "None" to be selected as a Network rating provider." into oc-dev

7 years agoFix null pointer exception in wifi settings
Glen Kuhne [Tue, 2 May 2017 19:11:28 +0000 (12:11 -0700)]
Fix null pointer exception in wifi settings

Fixes a null pointer exception that can occur during setup wizard.

Bug: 37873425
Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=WifiConfigControllerTest
Change-Id: I40de883fae6ccde13ad264f9b8b2d9da9745eb24

7 years agoUpdate "Phone idle" subtext
jackqdyulei [Wed, 3 May 2017 18:23:33 +0000 (11:23 -0700)]
Update "Phone idle" subtext

Bug: 37897135
Test: RunSettingsRoboTests
Change-Id: I38a63ef9fdf574ba277ed889e7e070c36ae14b01

7 years agoSkip "null" string when building advanced button summary
Fan Zhang [Wed, 3 May 2017 17:26:23 +0000 (10:26 -0700)]
Skip "null" string when building advanced button summary

- Also added help string to SoundSettings as a side fix.

Change-Id: Ia81a46c6e199b72b52ae1fa9d996c094193b506c
Fix: 37933524
Test: robotests

7 years agoMerge "Always use GB as the unit in Storage Settings." into oc-dev
Daniel Nishi [Wed, 3 May 2017 18:00:18 +0000 (18:00 +0000)]
Merge "Always use GB as the unit in Storage Settings." into oc-dev

7 years agoMerge "Don't overly hide the Files preference." into oc-dev
Daniel Nishi [Wed, 3 May 2017 17:59:06 +0000 (17:59 +0000)]
Merge "Don't overly hide the Files preference." into oc-dev

7 years agoDefend against underspecified notifications.
Dan Sandler [Tue, 2 May 2017 00:14:40 +0000 (20:14 -0400)]
Defend against underspecified notifications.

While we're here, show the channelId and other O features of
notifications in the extra text.

(Also make a halfhearted attempt to keep an expanded
notification open while other notifications are updating.)

Bug: 37646836
Test: none
Change-Id: I1b34ae9aaeb0af1e9f993354cebef8644050bed2

7 years agoAdd a "sign into network" button to the wifi details page.
Lorenzo Colitti [Wed, 26 Apr 2017 15:56:39 +0000 (00:56 +0900)]
Add a "sign into network" button to the wifi details page.

Bug: 36203355
Test: manually signed into captive portal
Test: make -j64 RunSettingsRoboTests
Change-Id: I3242ef30125ddfdaaac9b80ead4f8ac14ea6d364

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 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 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 agoAllow "None" to be selected as a Network rating provider.
Jeremy Joslin [Fri, 28 Apr 2017 23:40:51 +0000 (16:40 -0700)]
Allow "None" to be selected as a Network rating provider.

Updated the picker to always provide "None" as an option. The
preference is only disabled if there a no valid scorers installed.
Existing tests updated and new tests added.

Bug: 37722313
Test: make RunSettingsRoboTests -j40
Test: manual on device clicking.
Change-Id: Ie6fd9f29e0ea3c64845dd98ce1d117013f50c86b

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 agoLimit btsnoop file size (4/9)
Ajay Panicker [Tue, 18 Apr 2017 03:46:29 +0000 (20:46 -0700)]
Limit btsnoop file size (4/9)

Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: I94f8f6bc12ab3f7ff406c9392934ecb7209cd635
Change-Id: I94f8f6bc12ab3f7ff406c9392934ecb7209cd635

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