OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Adjust alignment for suggestion icon." into pi-dev
Doris Ling [Fri, 6 Apr 2018 23:00:30 +0000 (23:00 +0000)]
Merge "Adjust alignment for suggestion icon." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:42:17 +0000 (22:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Prioritize dynamic summaries" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:29:02 +0000 (22:29 +0000)]
Merge "Prioritize dynamic summaries" into pi-dev

6 years agoAdjust alignment for suggestion icon.
Doris Ling [Tue, 3 Apr 2018 00:17:42 +0000 (17:17 -0700)]
Adjust alignment for suggestion icon.

- add margin to the suggestion icon so that it align properly with the
suggestion text.
- also align the action button with the suggestion icon and text.

Change-Id: Ic12e4160d6583cf2d837e65ee5fd5a1ad73d348d
Fixes: 74414989
Test: visual

6 years agoPrioritize dynamic summaries
Matthew Fritze [Wed, 4 Apr 2018 23:58:56 +0000 (16:58 -0700)]
Prioritize dynamic summaries

If both Xml and a controller provide a summary,
the controller's should be prioritized.

Change-Id: I030746b0f253ce4884a7868e385069b208f63082
Fixes: 77602860
Test: robotests

6 years agoMerge "Make volume sliders sliceable" into pi-dev
Julia Reynolds [Fri, 6 Apr 2018 20:48:31 +0000 (20:48 +0000)]
Merge "Make volume sliders sliceable" into pi-dev

6 years agoMerge "Adds strings for Swipe Up gesture in Settings" into pi-dev
Mehdi Alizadeh [Fri, 6 Apr 2018 20:46:18 +0000 (20:46 +0000)]
Merge "Adds strings for Swipe Up gesture in Settings" into pi-dev

6 years agoMerge "Add test for anomaly detection in P" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:46:00 +0000 (20:46 +0000)]
Merge "Add test for anomaly detection in P" into pi-dev

6 years agoAdds strings for Swipe Up gesture in Settings
Mehdi Alizadeh [Wed, 4 Apr 2018 23:43:12 +0000 (16:43 -0700)]
Adds strings for Swipe Up gesture in Settings

Bug: 77549883
Test: None
Change-Id: I64b448f3a3564e8ac6d29e1241e84032708dba71

6 years agoMerge "Exempt tests from hidden API checks." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:39:24 +0000 (20:39 +0000)]
Merge "Exempt tests from hidden API checks." into pi-dev

6 years agoMerge "Change "More details" to "Learn more" in policy transparency dialog." into...
TreeHugger Robot [Fri, 6 Apr 2018 20:35:41 +0000 (20:35 +0000)]
Merge "Change "More details" to "Learn more" in policy transparency dialog." into pi-dev

6 years agoMerge "Add battery illustration" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:26:24 +0000 (20:26 +0000)]
Merge "Add battery illustration" into pi-dev

6 years agoMerge "Add name and icon for AOD" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:19:21 +0000 (20:19 +0000)]
Merge "Add name and icon for AOD" into pi-dev

6 years agoMerge "Add anomaly log to dumpsys" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 19:28:55 +0000 (19:28 +0000)]
Merge "Add anomaly log to dumpsys" into pi-dev

6 years agoAdd test for anomaly detection in P
Lei Yu [Wed, 4 Apr 2018 19:16:18 +0000 (12:16 -0700)]
Add test for anomaly detection in P

Lot of tests have been added already, this CL adds the missing tests
after robolectric upgrade.

Also add UID_NULL check in AnomalyDetectionJobService. It is almost
impossible to happen however we better catch it.

Bug: 73172999
Test: RunSettingsRoboTests
Change-Id: I950537efb166b0900393df1321ca64151b43e906

6 years agoMerge "Hide app if it shares uid with whitelisted app" into pi-dev
Lei Yu [Fri, 6 Apr 2018 17:19:19 +0000 (17:19 +0000)]
Merge "Hide app if it shares uid with whitelisted app" into pi-dev

6 years agoMerge "Update SliceContollerInXmlTest to match latest slice spec." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 17:15:46 +0000 (17:15 +0000)]
Merge "Update SliceContollerInXmlTest to match latest slice spec." into pi-dev

6 years agoMerge "Disable user control of color mode depending on Accessibility" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 17:12:01 +0000 (17:12 +0000)]
Merge "Disable user control of color mode depending on Accessibility" into pi-dev

6 years agoMerge "apostrophe should be curly" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 16:32:35 +0000 (16:32 +0000)]
Merge "apostrophe should be curly" into pi-dev

6 years agoExempt tests from hidden API checks.
Nicolas Geoffray [Fri, 6 Apr 2018 13:29:03 +0000 (14:29 +0100)]
Exempt tests from hidden API checks.

Bug: 64382372
Bug: 74963051

Test: m
Change-Id: I4e51a8a7d86ac79668f66057daf550a8f04711dd

6 years agoChange "More details" to "Learn more" in policy transparency dialog.
arangelov [Thu, 5 Apr 2018 14:05:12 +0000 (15:05 +0100)]
Change "More details" to "Learn more" in policy transparency dialog.

Screenshot: https://screenshot.googleplex.com/5xrwW3g29qa.png

Bug: 77618738
Test: none
Change-Id: I464f492cd6b1468b85b5a691c29ae7a982ecebff

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 5 Apr 2018 23:59:06 +0000 (16:59 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I065e2a1271c2f8e4dba989736069982ed6be7f9d

6 years agoMerge ""Data Warn & Limits" pref. summary should be empty." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 23:41:47 +0000 (23:41 +0000)]
Merge ""Data Warn & Limits" pref. summary should be empty." into pi-dev

6 years agoMerge "Add new string for sound settings" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 23:33:40 +0000 (23:33 +0000)]
Merge "Add new string for sound settings" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 23:12:21 +0000 (23:12 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAdd name and icon for AOD
Lei Yu [Thu, 5 Apr 2018 22:01:52 +0000 (15:01 -0700)]
Add name and icon for AOD

Keep it in both app list and full usage list for now,
so we don't need to update smearing code.

Bug: 77156569
Test: Screenshot | RunSettingsRoboTests
Change-Id: I5247da90ea591b226cafef8f2d1ffcbff387b62f

6 years agoMerge "Change "X over" text color to ColorError" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:47:23 +0000 (22:47 +0000)]
Merge "Change "X over" text color to ColorError" into pi-dev

6 years ago"Data Warn & Limits" pref. summary should be empty.
Andreas Terzis [Fri, 30 Mar 2018 06:19:10 +0000 (23:19 -0700)]
"Data Warn & Limits" pref. summary should be empty.

The "Data Warning & Limits" preference in the Data Usage screen
should not have a summary.

Bug: 77300376

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Ic567e7451ac3ea102577ab96ccef3ce7de05d4ad

6 years agoHide app if it shares uid with whitelisted app
Lei Yu [Thu, 5 Apr 2018 20:38:58 +0000 (13:38 -0700)]
Hide app if it shares uid with whitelisted app

Statsd blame app based on uid, which may mapping to multiple packages.
If there is one app in whitelist, then we shouldn't blame other apps
in anomaly detection.

Change-Id: Ib546e207eb113cef9ef5fecb1138e61558e9cf55
Fixes: 77560853
Test: RunSettingsRoboTests

6 years agoMerge "Update WifiScanningRequiredFragment dialog to show help page" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:07:30 +0000 (22:07 +0000)]
Merge "Update WifiScanningRequiredFragment dialog to show help page" into pi-dev

6 years agoMerge "Do not use warning or limit to display "X B left" above usage bar" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 21:36:59 +0000 (21:36 +0000)]
Merge "Do not use warning or limit to display "X B left" above usage bar" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 5 Apr 2018 21:34:11 +0000 (14:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I08041a5d5d29533296012921a6d53956948ad527

6 years agoMerge "Update the anomaly type constants" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 21:23:24 +0000 (21:23 +0000)]
Merge "Update the anomaly type constants" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 21:02:51 +0000 (21:02 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoUpdate SliceContollerInXmlTest to match latest slice spec.
Fan Zhang [Thu, 5 Apr 2018 18:19:45 +0000 (11:19 -0700)]
Update SliceContollerInXmlTest to match latest slice spec.

- Convert the test to use CodeInspector
- Skip abstract classes when validating contract
- Also check SliderPreferenceController when validating contract

Change-Id: I671c1a622df6d1d7248a12932f144711fbf5a026
Fixes: 77634230
Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=CodeIns

6 years agoMerge "Update launch intent flags for settings shortcut widgets." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 20:50:06 +0000 (20:50 +0000)]
Merge "Update launch intent flags for settings shortcut widgets." into pi-dev

6 years agoUpdate WifiScanningRequiredFragment dialog to show help page
Salvador Martinez [Thu, 5 Apr 2018 00:34:32 +0000 (17:34 -0700)]
Update WifiScanningRequiredFragment dialog to show help page

This CL updates the WifiScanningRequiredFragment dialog so that the
learn more button is only shown when a help page is available.
Additionally, we add the metrics constant for the dialog.

Test: robotests
Bug: 67070896
Change-Id: I7697c88b5969edaf5c06eb33251f215b776c64ee

6 years agoDo not use warning or limit to display "X B left" above usage bar
Jan Nordqvist [Wed, 4 Apr 2018 22:54:26 +0000 (15:54 -0700)]
Do not use warning or limit to display "X B left" above usage bar

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I46f4f5f1cf6092038e49beaafe5aa6a19ffb0aa1

6 years agoMerge "Fall back to Wi-Fi data display in data usage screen with no SIM." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 19:59:00 +0000 (19:59 +0000)]
Merge "Fall back to Wi-Fi data display in data usage screen with no SIM." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 5 Apr 2018 19:33:14 +0000 (12:33 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2be2f8d5061e7b01fd97170d861d68980db9e665

6 years agoMerge "Couple more Scoped Directory Access changes." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 19:02:11 +0000 (19:02 +0000)]
Merge "Couple more Scoped Directory Access changes." into pi-dev

6 years agoMake volume sliders sliceable
Julia Reynolds [Tue, 3 Apr 2018 17:48:55 +0000 (13:48 -0400)]
Make volume sliders sliceable

Test: make -j RunSettingsRoboTests
Change-Id: I8495770792dfdada54174ca61937f336e4fc219c
Fixes: 67997207

6 years agoUpdate the anomaly type constants
Lei Yu [Thu, 5 Apr 2018 01:06:16 +0000 (18:06 -0700)]
Update the anomaly type constants

Bug: 77323601
Test: Build
Change-Id: I0b6733edbfe12f494104f78be7087fa621191431

6 years agoMerge "Show Battery saver tip when battery saver is on" into pi-dev
Lei Yu [Thu, 5 Apr 2018 17:48:55 +0000 (17:48 +0000)]
Merge "Show Battery saver tip when battery saver is on" into pi-dev

6 years agoMerge "Fix crash in Monkey test." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 17:46:21 +0000 (17:46 +0000)]
Merge "Fix crash in Monkey test." into pi-dev

6 years agoAdd battery illustration
Lei Yu [Fri, 30 Mar 2018 16:50:02 +0000 (09:50 -0700)]
Add battery illustration

Also update the VideoPreference to handle the full screen
illustration by adding attr isFullWidth and aspectRadio.

Change-Id: If2ccba4ce792801c6fd79b7c60af4e3826c091cc
Fixes: 74409022
Test: Screenshot | RunSettingsRoboTests

6 years agoUpdate launch intent flags for settings shortcut widgets.
Doris Ling [Mon, 2 Apr 2018 21:51:36 +0000 (14:51 -0700)]
Update launch intent flags for settings shortcut widgets.

- earlier changes were made to the intent flags when creating new
settings shortcut to ensure that it is launching a new task. However,
ShortcutManager is actually caching existing shortcut info, and it will
continue to use the existing shortcut info unless we explicitly update
the info.
- when rebooting from build upgrade, we will go through all existing
shortcut to update the launch intent flags to ensure that the shortcut
info is update to date.

Change-Id: Iee2365d9aec64a47b193e3c9be443c252504815b
Fixes: 76395879
Test: make RunSettingsRoboTests

6 years agoMerge "Fix issue in ring volume sample not always being played." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 17:12:43 +0000 (17:12 +0000)]
Merge "Fix issue in ring volume sample not always being played." into pi-dev

6 years agoMerge "Hide uninstalled app in restrict app dialog" into pi-dev
Lei Yu [Thu, 5 Apr 2018 16:57:13 +0000 (16:57 +0000)]
Merge "Hide uninstalled app in restrict app dialog" into pi-dev

6 years agoChange "X over" text color to ColorError
Jan Nordqvist [Thu, 5 Apr 2018 16:30:43 +0000 (09:30 -0700)]
Change "X over" text color to ColorError

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I2a59d6b4b4549a780ae168e9e1b3f356c677262c

6 years agoMerge "Update settings to reference correct versionCode" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 16:20:25 +0000 (16:20 +0000)]
Merge "Update settings to reference correct versionCode" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 5 Apr 2018 14:28:37 +0000 (07:28 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3feadbd392d82249b0318377310b4d1155057773

6 years agoMerge "Fix a bug where homepage is using staled locale for tiles" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 04:57:46 +0000 (04:57 +0000)]
Merge "Fix a bug where homepage is using staled locale for tiles" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 03:55:05 +0000 (03:55 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoShow Battery saver tip when battery saver is on
Lei Yu [Wed, 4 Apr 2018 20:30:42 +0000 (13:30 -0700)]
Show Battery saver tip when battery saver is on

Before this CL, we only show "Battery Saver is on" when users turn it
on in battery tips.

In this CL, we change to constantly show this tip when battery
saver is on.

Change-Id: I9ddefdbd5818725202ddf4469b4a685ba008060a
Fixes: 75251000
Test: RunSettingsRoboTests

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 5 Apr 2018 01:18:03 +0000 (18:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ibf6633b42d66e2c1418c2c3b719533a36c696f6a

6 years agoFix issue in ring volume sample not always being played.
Doris Ling [Thu, 5 Apr 2018 00:35:41 +0000 (17:35 -0700)]
Fix issue in ring volume sample not always being played.

- when we adjust the sound volme in Sound settings, we only re-post the
stop sample message when we receive the onSampleStarting callback.
However, if we change the volume while a sample is still playing,
onSampleStarting will not be called as it's already started. This
results in shortened sample duration, which in extreme case, the new
sample will not be played at all if the new volume change is made almost
towards the end of the previous sample period. So, everytime user change
the volume, we should re-post the stop sample message, so that the
sample playing duration would be extended properly.

- also removed the original calls to the onStreamValueChanged() during
init, as the original implementation is empty, and during init, we do
not need any handling to start/stop the sample.

Change-Id: I9f35ddfb6d809eeb83b1a732a09362286ff6ed77
Fixes: 77514234
Test: make RunSettingsRoboTests

6 years agoFix a bug where homepage is using staled locale for tiles
Fan Zhang [Wed, 4 Apr 2018 22:51:06 +0000 (15:51 -0700)]
Fix a bug where homepage is using staled locale for tiles

When setting a new locale, SettingsActivity restarts to load
everything in the new locale.

Data (containing locale specific title/summary etc) is reloaded
correctly and triggers a callback to UI to redraw.

However we skip the first callback as an optimization for app startup
time. When we restart fragment, we failed to save the state whether we
have already seen the first callback. So when data with new locale text
triggers the callback, it's being skipped and this make UI still render
in old locale.

The fix is to just save the state before fragment gets destroyed before
locale change so the callback can trigger later.

A better fix is: make data (Tile object) not cache text. Then we don't
need to worry about locale cache at all. We should do this fix in the
long term.

Test: localeswitcher
Test: adb shell am broadcast -a com.google.android.testing.i18n.localeswitcher.CHANGE_LOCALE -e LANGUAGE_TAG "zh"
Test: adb shell am broadcast -a com.google.android.testing.i18n.localeswitcher.CHANGE_LOCALE -e LANGUAGE_TAG "ja"

Fixes: 77470788
Bug: 77600770

Change-Id: Ic4223ddbb679db64d0fc3c29d16a5f61a66cc99c

6 years agoMerge "Fix crash in non-indexable keys collection" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 23:59:49 +0000 (23:59 +0000)]
Merge "Fix crash in non-indexable keys collection" into pi-dev

6 years agoDisable user control of color mode depending on Accessibility
Daniel Solomon [Sat, 31 Mar 2018 01:11:38 +0000 (18:11 -0700)]
Disable user control of color mode depending on Accessibility

The Accessibility settings for color inversion and color correction are
incompatible with some color modes. When either of these settings is
enabled, disable GUI color mode controls.

Bug: 68856024
Change-Id: I12fad22190283bac38592b94e88d865d3af978ad

6 years agoFall back to Wi-Fi data display in data usage screen with no SIM.
Jan Nordqvist [Mon, 26 Mar 2018 22:29:44 +0000 (15:29 -0700)]
Fall back to Wi-Fi data display in data usage screen with no SIM.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: I06bf78e54119819be87e15baca7e5b6a241958cb
Merged-In: I06bf78e54119819be87e15baca7e5b6a241958cb

6 years agoMerge "Updates to match prebuilts drop" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:40:27 +0000 (22:40 +0000)]
Merge "Updates to match prebuilts drop" into pi-dev

6 years agoMerge "Expressly forbid IP string literals as Private DNS hostnames" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 21:30:32 +0000 (21:30 +0000)]
Merge "Expressly forbid IP string literals as Private DNS hostnames" into pi-dev

6 years agoMerge "Log when settings slice is requested/updated." into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 20:37:15 +0000 (20:37 +0000)]
Merge "Log when settings slice is requested/updated." into pi-dev

6 years agoFix crash in non-indexable keys collection
Matthew Fritze [Wed, 4 Apr 2018 16:56:53 +0000 (09:56 -0700)]
Fix crash in non-indexable keys collection

Some of the AmbientDisplay preference controllers were
crashing when their isAvailable methods were being called
by their fragment's search index providers, which meant that
the entire collection of non-indexable keys failed. Thus,
all search results were showing up. In the case of a secondary
user, they were able to see developer options which crashed
settings when clicked.

There are two issues addressed in this cl.
1. Fix the crashes so the non-indexable keys collection works
2. Contain each fragment's collection, so that if a fragment does
crash, the damage is minimized.

Part 1 is checking that the config in isAvailable is not null,
and creating one if so.

Part 2 is fixed by surrounding the collection of non-indexable
keys in a try-catch, with an option in the catch to re-throw the
error if a system property is set. Thus, in a new pre-submit
instrumentation test, we can and docheck if any of the fragments crash
when collecting non-indexable keys.

Change-Id: I820bd9cb2649aa6faff7f82fcf575a62e41dc4fc
Fixes: 77486668
Test: atest NonIndexableCrashTest, robotests

6 years agoUpdate settings to reference correct versionCode
Patrick Baumann [Wed, 4 Apr 2018 20:17:05 +0000 (13:17 -0700)]
Update settings to reference correct versionCode

This settings change is required for a framework change that ensures
that apps built for pre-P that rely on reflection to access
ApplicationInfo#versionCode don't crash. The move to long version
code introduces a new field and all modifications of the field are
wrapped in a method that ensures both the new and old fields are set
appropriately.

Bug: 74393568
Test: manual - builds and broken app runs
Change-Id: Idfa5f85d3f91583098ebee88f0e8caecaacff9b4

6 years agoMerge "Use grey icon for work profile settings" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 20:10:11 +0000 (20:10 +0000)]
Merge "Use grey icon for work profile settings" into pi-dev

6 years agoUpdates to match prebuilts drop
Jason Monk [Tue, 3 Apr 2018 22:36:42 +0000 (18:36 -0400)]
Updates to match prebuilts drop

Test: build
Bug: 77482321
Change-Id: I65a2cffb0a921ef6acb58ff500a7da8a8f870e76

6 years agoAdd new string for sound settings
ryanywlin [Tue, 3 Apr 2018 07:00:39 +0000 (15:00 +0800)]
Add new string for sound settings

Bug: 77254162
Test: rebuild
Change-Id: I8dc67c8efe16a8d3ad4029b41e125c3ef2f13541

6 years agoFix crash in Monkey test.
Lei Yu [Wed, 4 Apr 2018 00:25:18 +0000 (17:25 -0700)]
Fix crash in Monkey test.

When battery page is launched, BatteryTipLoader will start running.
If we rotate the screen before loader is finished, it will store null
to Bundle and will crash when restoring from that Bundle.

In this cl, we add null pointer check for tip list to avoid the crash.

Also remove a TODO since it is obsolete.

Change-Id: Ic59bc20c633f3a7467f7b5e95da062160bcb4e93
Fixes: 77534165
Test: RunSettingsRoboTests

6 years agoapostrophe should be curly
Tony Mak [Wed, 4 Apr 2018 17:21:20 +0000 (18:21 +0100)]
apostrophe should be curly

BUG: 77523074

Test: Build
Change-Id: I6079652ab0a1a3661684976117ae8804c4120749

6 years agoFix CodeInspectionTest for Setttings
Fan Zhang [Wed, 4 Apr 2018 16:47:39 +0000 (09:47 -0700)]
Fix CodeInspectionTest for Setttings

Bug: 77579651
Bug: 77339683
Test: robotests
Change-Id: I7cb95bc7b1a3890879809e3462d0af8ba3e53923

6 years agoMerge "We should show custom title for suspend app dialog" into pi-dev
Tony Mak [Wed, 4 Apr 2018 10:38:18 +0000 (10:38 +0000)]
Merge "We should show custom title for suspend app dialog" into pi-dev

6 years agoExpressly forbid IP string literals as Private DNS hostnames
Erik Kline [Tue, 3 Apr 2018 04:52:55 +0000 (21:52 -0700)]
Expressly forbid IP string literals as Private DNS hostnames

For obvious bootstrapping reasons, DNS settings have always used
IP address string literals in input fields.

However, since we can use the network-assigned nameservers to bootstrap
our way to multiple IP addresses of multiple families (!), hostnames
provide a clear simplicity and future-proofing advantage.

Permitting IP address literals means not only making sure that we can
validate X.509v3 certificates for IP addresses, but coping with the
inevitable broken configurations where users may have configured IPv4
addresses but no IPv6 addresses.  This will unnecessarily complicate
life on IPv6-only networks.

=)

Test: as follows
    - built
    - flashed
    - booted
    - tried to enter IP string literals
    - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=PrivateDnsModeDialogPreferenceTest
Bug: 34953048
Bug: 64133961
Bug: 73641539

Change-Id: I7a58e86ed640ff5600906fb3d8cb9a2c75598831

6 years agoAdd anomaly log to dumpsys
Lei Yu [Tue, 3 Apr 2018 20:09:28 +0000 (13:09 -0700)]
Add anomaly log to dumpsys

Log the anomaly config version in settings dump

Bug: 77490545
Test: RunSettingsRoboTests
Change-Id: I9cddcb0c0c8adcf0901dae6a31a3a0e84e48077a

6 years agoMerge "Add app info notification summary" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:22:24 +0000 (22:22 +0000)]
Merge "Add app info notification summary" into pi-dev

6 years agoHide uninstalled app in restrict app dialog
Lei Yu [Tue, 3 Apr 2018 01:08:03 +0000 (18:08 -0700)]
Hide uninstalled app in restrict app dialog

Change-Id: Ic615d8b1150890e6ad0d393e410d0f5ab8648986
Fixes: 77429442
Test: RunSettingsRoboTests

6 years agoCouple more Scoped Directory Access changes.
Felipe Leme [Tue, 3 Apr 2018 20:03:45 +0000 (13:03 -0700)]
Couple more Scoped Directory Access changes.

- Moved DirectoryAccessDetails rendering logic to refreshUi so it's updated.
- Call ScopedAccessProvider to reset preferences on "Clear access" UI.

Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted

Bug: 72055774
Change-Id: I4a6bf187cacfb59d948abbe71afc3b7500cb15aa

6 years agoUse grey icon for work profile settings
Fan Zhang [Tue, 3 Apr 2018 20:21:34 +0000 (13:21 -0700)]
Use grey icon for work profile settings

Change-Id: I2b40d44578599d6abd892dd2198eb38471beb663
Fixes: 77537465
Test: visual

6 years agoMerge "Move apn settings to network" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:41:39 +0000 (19:41 +0000)]
Merge "Move apn settings to network" into pi-dev

6 years agoMerge "Sound: VolumeSeekBarPreference must observe min vol index" into pi-dev
Jean-Michel Trivi [Tue, 3 Apr 2018 19:24:35 +0000 (19:24 +0000)]
Merge "Sound: VolumeSeekBarPreference must observe min vol index" into pi-dev

6 years agoMerge "Remove wrapper for ConnectionManager/IPackageManager" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 18:31:39 +0000 (18:31 +0000)]
Merge "Remove wrapper for ConnectionManager/IPackageManager" into pi-dev

6 years agoWe should show custom title for suspend app dialog
Tony Mak [Tue, 3 Apr 2018 17:51:39 +0000 (18:51 +0100)]
We should show custom title for suspend app dialog

BUG: 77523074

Test: Suspend an app, observe the new title.
Test: m -j RunSettingsRoboTest

Change-Id: Ide0329422e68b5ed6418365f2d0b0e0d11f0dec7

6 years agoMerge "In High usage, hide apps without screen time." into pi-dev
Lei Yu [Tue, 3 Apr 2018 17:37:46 +0000 (17:37 +0000)]
Merge "In High usage, hide apps without screen time." into pi-dev

6 years agoLog when settings slice is requested/updated.
Fan Zhang [Mon, 2 Apr 2018 22:41:32 +0000 (15:41 -0700)]
Log when settings slice is requested/updated.

Change-Id: Ie6b7000729b3a414a29e3dfc25a29e1f2f939ddd
Fixes: 71503986
Test: robotests

6 years agoEnterprice privacy: let the user know if admin enabled backups.
Lenka Trochtova [Fri, 23 Mar 2018 15:08:28 +0000 (16:08 +0100)]
Enterprice privacy: let the user know if admin enabled backups.

Bug: 73750212
Bug: 64012357
Test: make RunSettingsGoogleRoboTests

Change-Id: I586eaccaebb89a8b3e5b4014b3d6427ab2eb15a9

6 years agoMerge "Move the Private DNS dialog back to the top level." into pi-dev
Chalard Jean [Tue, 3 Apr 2018 05:17:56 +0000 (05:17 +0000)]
Merge "Move the Private DNS dialog back to the top level." into pi-dev

6 years agoMerge "Remove more wrappers" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 02:07:17 +0000 (02:07 +0000)]
Merge "Remove more wrappers" into pi-dev

6 years agoSound: VolumeSeekBarPreference must observe min vol index
Jean-Michel Trivi [Mon, 2 Apr 2018 21:55:27 +0000 (14:55 -0700)]
Sound: VolumeSeekBarPreference must observe min vol index

The volume sliders must observe the minimum volume stream
  index, not just the maximum.

Bug: 74985293
Test: try to mute alarms through UI and fail
Change-Id: Icc5173898eb951239d02f5822239085f1ec3fc9a

6 years agoMove apn settings to network
Pengquan Meng [Mon, 2 Apr 2018 23:41:54 +0000 (16:41 -0700)]
Move apn settings to network

This is a clean up CL, move the apn settings related class from settings'
root to network's directory.

Bug: 77339683
Test: make ROBOTEST_FILTER=ApnEditorTest -j40 RunSettingsRoboTests
Change-Id: I751a6c2a27c9a1e08d7308407d75ccb355f295aa

6 years agoRemove wrapper for ConnectionManager/IPackageManager
Fan Zhang [Mon, 2 Apr 2018 21:22:50 +0000 (14:22 -0700)]
Remove wrapper for ConnectionManager/IPackageManager

Bug: 76167422
Test: robotests
Change-Id: I5f051b0ce58b97a3cfd5d4bae469463dcd6d83ac

6 years agoRemove more wrappers
Fan Zhang [Mon, 2 Apr 2018 18:33:16 +0000 (11:33 -0700)]
Remove more wrappers

- WallpaperManagerWrapper
- UserManagerWrapper

Bug: 76167422
Test: robotests
Change-Id: I3ca866089082e01f1e9d7a4554387962f45a5437

6 years agoMerge "Expand isAvailable to include DISABLED_DEPENDENT" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 23:49:22 +0000 (23:49 +0000)]
Merge "Expand isAvailable to include DISABLED_DEPENDENT" into pi-dev

6 years agoMerge "MagnificationPreferenceFragment use DashboardFragment" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 22:25:04 +0000 (22:25 +0000)]
Merge "MagnificationPreferenceFragment use DashboardFragment" into pi-dev

6 years agoMagnificationPreferenceFragment use DashboardFragment
rafftsai [Wed, 28 Mar 2018 08:07:24 +0000 (16:07 +0800)]
MagnificationPreferenceFragment use DashboardFragment

- Move preference related logic to Controller
- Add settings:controller in xml file

Bug: 73899467
Test: manual
Test: make RunSettingsRoboTests

Change-Id: I3eaccc617c4408f50110bf1f5df3482f491f7393
Signed-off-by: rafftsai <rafftsai@android.com>
6 years agoExpand isAvailable to include DISABLED_DEPENDENT
Matthew Fritze [Fri, 30 Mar 2018 20:54:08 +0000 (13:54 -0700)]
Expand isAvailable to include DISABLED_DEPENDENT

isAvailable will now return true when getAvailabilityStatus
returns DISABLED_DEPENDENT_SETTING. This is because the setting
should be displayed in the Fragment even if it has a dependent setting,
which matches existing behaviour. Slices will still display the warning
slice without inline content, where the main action brings you to the
setting page. For now, we have to assume the user will be able to figure
out how to enable the setting. In Q, we would like to build a more
intelligent flow so that we can prompt or even help the user fix the
dependency (we just ran out of time in P).

The only setting that had previously used DISABLE_DEPENDENT_SETTING
was a developer option.

Change-Id: I1f774a2e09cb60de01388cf6c35785c8b5dea176
Fixes: 77334915
Test: robotests

6 years agoFixed ApnEditor issue
Pengquan Meng [Fri, 23 Feb 2018 00:01:39 +0000 (16:01 -0800)]
Fixed ApnEditor issue

The mainly changed:
1. Will not insert invalid apn data to database.
2. Clicking back button will save the APN data to database if the data is valid.

Test: make ROBOTEST_FILTER=ApnEditorTest -j40 RunSettingsRoboTests
Bug: 73745458
Bug: 67327863
Merged-In: Ie2c147cae03ad78d43c351e05add761b2dffac0c
Change-Id: Ie2c147cae03ad78d43c351e05add761b2dffac0c
(cherry picked from commit f39ef85653508cfcbdcc21373638f9a852a5f4e5)

6 years agoMerge "Remove wrapper for device policy manager" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 18:45:53 +0000 (18:45 +0000)]
Merge "Remove wrapper for device policy manager" into pi-dev

6 years agoUpdate color whitelist for check color repohook
Salvador Martinez [Mon, 2 Apr 2018 18:32:06 +0000 (11:32 -0700)]
Update color whitelist for check color repohook

It is blocking cl's being uploaded due to someone skipping the
repo-hooks.

Test: Can build and upload CL's
Bug: 77478756
Change-Id: I3ae4212fb06a5b82c0afe57dcd839f5a55583cce

6 years agoMerge changes Ib497aca6,Ic6def54a into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 16:44:51 +0000 (16:44 +0000)]
Merge changes Ib497aca6,Ic6def54a into pi-dev

* changes:
  Make anomaly jobs persistent.
  Update job ids in Settings