OSDN Git Service
TreeHugger Robot [Thu, 5 Apr 2018 19:02:11 +0000 (19:02 +0000)]
Merge "Couple more Scoped Directory Access changes." 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
TreeHugger Robot [Thu, 5 Apr 2018 17:46:21 +0000 (17:46 +0000)]
Merge "Fix crash in Monkey test." 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
Lei Yu [Thu, 5 Apr 2018 16:57:13 +0000 (16:57 +0000)]
Merge "Hide uninstalled app in restrict app dialog" 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
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
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
TreeHugger Robot [Thu, 5 Apr 2018 03:55:05 +0000 (03:55 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
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
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
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
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
TreeHugger Robot [Wed, 4 Apr 2018 23:59:49 +0000 (23:59 +0000)]
Merge "Fix crash in non-indexable keys collection" 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
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
TreeHugger Robot [Wed, 4 Apr 2018 20:37:15 +0000 (20:37 +0000)]
Merge "Log when settings slice is requested/updated." into pi-dev
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
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
TreeHugger Robot [Wed, 4 Apr 2018 20:10:11 +0000 (20:10 +0000)]
Merge "Use grey icon for work profile settings" into pi-dev
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
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
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
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
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
TreeHugger Robot [Tue, 3 Apr 2018 22:22:24 +0000 (22:22 +0000)]
Merge "Add app info notification summary" into pi-dev
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
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
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
TreeHugger Robot [Tue, 3 Apr 2018 19:41:39 +0000 (19:41 +0000)]
Merge "Move apn settings to network" 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
TreeHugger Robot [Tue, 3 Apr 2018 18:31:39 +0000 (18:31 +0000)]
Merge "Remove wrapper for ConnectionManager/IPackageManager" into pi-dev
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
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
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
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
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
TreeHugger Robot [Tue, 3 Apr 2018 02:07:17 +0000 (02:07 +0000)]
Merge "Remove more wrappers" into pi-dev
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
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
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
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
TreeHugger Robot [Mon, 2 Apr 2018 23:49:22 +0000 (23:49 +0000)]
Merge "Expand isAvailable to include DISABLED_DEPENDENT" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 22:25:04 +0000 (22:25 +0000)]
Merge "MagnificationPreferenceFragment use DashboardFragment" into pi-dev
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>
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
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)
TreeHugger Robot [Mon, 2 Apr 2018 18:45:53 +0000 (18:45 +0000)]
Merge "Remove wrapper for device policy manager" into pi-dev
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
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
Julia Reynolds [Fri, 30 Mar 2018 14:40:36 +0000 (10:40 -0400)]
Add app info notification summary
Test: make -j RunSettingsRoboTests
Change-Id: I803b473d994dff4ec8591c43452820b0e702ea0e
Fixes:
72442731
Chalard Jean [Wed, 14 Mar 2018 11:54:53 +0000 (20:54 +0900)]
Move the Private DNS dialog back to the top level.
Bug:
64133961
Fixes:
74844869
Test: visual test and interaction
also updated tests and checked they pass
Change-Id: I7c8d50e5941c2a7dd46014932bdace14dc222c80
TreeHugger Robot [Mon, 2 Apr 2018 01:36:37 +0000 (01:36 +0000)]
Merge "Update auto wi-fi to prompt user for permissions" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 01:33:28 +0000 (01:33 +0000)]
Merge "Update the battery string." into pi-dev
Jyun LuoLai [Mon, 2 Apr 2018 01:27:56 +0000 (01:27 +0000)]
Merge "Let battery status icon has consist UI in PowerSummaryPage" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 11:00:25 +0000 (11:00 +0000)]
Merge "Remove wrappers" into pi-dev
Ryan Lin [Sat, 31 Mar 2018 06:23:26 +0000 (06:23 +0000)]
Merge "Add callback onProfileAudioStateChanged()" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 05:15:28 +0000 (05:15 +0000)]
Merge "Wake notifications to TogglePreferenceController" into pi-dev
Fan Zhang [Fri, 30 Mar 2018 23:17:12 +0000 (16:17 -0700)]
Remove wrappers
Bug:
76167422
Test: robotests
Change-Id: Ic673fa2aa815b84da4b522dab85aacbeab6e39ec
TreeHugger Robot [Sat, 31 Mar 2018 04:11:14 +0000 (04:11 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Fan Zhang [Fri, 30 Mar 2018 23:58:28 +0000 (16:58 -0700)]
Remove wrapper for device policy manager
Bug:
76167422
Test: robotests
Change-Id: I69dc7341cf1ff408bc24c2a062586cef25b7b918
HJ ChangLiao [Wed, 28 Mar 2018 09:13:03 +0000 (17:13 +0800)]
Wake notifications to TogglePreferenceController
Convert Wake for new notifications to TogglePreferenceController
Because Slice controller only support Constructor(context)
Move other parameter to setAmbientDisplayConfiguration
Change-Id: I01042b84217ad9592fece966374140dffaf813e4
Fixes:
67997460
Test: make RunSettingsRoboTests -j
TreeHugger Robot [Sat, 31 Mar 2018 02:56:16 +0000 (02:56 +0000)]
Merge "Use touch delegate in SwitchBar" into pi-dev
Bill Yi [Sat, 31 Mar 2018 02:09:20 +0000 (19:09 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I7d6f7e4fa935eb00c198e0ad018faa42ec7dee05
TreeHugger Robot [Sat, 31 Mar 2018 02:21:15 +0000 (02:21 +0000)]
Merge "Update screen pinning instructions for QuickStep." into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 01:43:34 +0000 (01:43 +0000)]
Merge "Remove FingerprintManagerWrapper" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 01:26:16 +0000 (01:26 +0000)]
Merge changes from topic "remove_wrappers" into pi-dev
* changes:
Remove wrapper class for NotificationGroup.
Remove more wrappers in favor of new Robolectric support
Fan Zhang [Sat, 31 Mar 2018 00:45:49 +0000 (00:45 +0000)]
Merge "Update wi-fi hotspot min length of summary to 2" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 00:35:38 +0000 (00:35 +0000)]
Merge "Improve Night Light suggestion criterion" into pi-dev
Phil Weaver [Thu, 29 Mar 2018 19:39:57 +0000 (12:39 -0700)]
Use touch delegate in SwitchBar
The entire switch bar is supposed to behave as a switch,
so it had logic for clicking the layout that duplicated
the logic for the switch itself.
I'm removing all of this duplicate logic and using a
TouchDelegate instead.
This preserves the same behavior with much simpler code.
The previous approach led to accessibility being confused
about exactly what was clickable and what would happen
when different items were clicked. Workarounds to deal with
that confusion created other problems. Sweeping all of it
aside and using a TouchDelegate seems way cleaner.
Bug:
75962891
Test: make SettingsRoboTests
Change-Id: I4fe17d581b5294d2482392f75bf1607126cf235d
TreeHugger Robot [Sat, 31 Mar 2018 00:28:46 +0000 (00:28 +0000)]
Merge "Remove wrapper class for AutofillManager in Settings" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 00:21:36 +0000 (00:21 +0000)]
Merge "Final (?!?!?!?!) Directory Access improvements." into pi-dev
Tracy Zhou [Thu, 29 Mar 2018 05:48:03 +0000 (22:48 -0700)]
Update screen pinning instructions for QuickStep.
Change-Id: I786c7a1f4dd5d13d0ea69abe5c56f565a5bb16ae
Fixes:
76317335
Test: N/A
TreeHugger Robot [Fri, 30 Mar 2018 23:37:15 +0000 (23:37 +0000)]
Merge "Remove more wrappers" into pi-dev
Fan Zhang [Fri, 30 Mar 2018 23:30:31 +0000 (16:30 -0700)]
Remove FingerprintManagerWrapper
No longer needed after robolectric migration
Bug:
76167422
Test: robotests
Change-Id: I922cde8ac3667081a512cf899af86f68b24485a6
Sean Stout [Fri, 2 Feb 2018 02:01:05 +0000 (18:01 -0800)]
Improve Night Light suggestion criterion
Night Light suggestion will now show even if the user is using Night
Light in manual mode. If the user has previously tapped or dismissed the
suggestion, the suggestion will not show again.
Bug:
68938869
Test: make ROBOTEST_FILTER=\
"(NightDisplayPreferenceControllerTest|SuggestionFeatureProviderImplTest)" \
RunSettingsRoboTests
Change-Id: Iea838df043d75dfa73a1a383275dc42956374113
Fan Zhang [Fri, 30 Mar 2018 22:50:11 +0000 (15:50 -0700)]
Remove wrapper class for NotificationGroup.
It's no longer needed as Robolectric can natively support framework
classes
Bug:
76167422
Test: robotests
Change-Id: If0ac597370240b8efaa8df8783a5c309a2322a3f
Fan Zhang [Fri, 30 Mar 2018 21:43:37 +0000 (14:43 -0700)]
Remove more wrappers in favor of new Robolectric support
Bug:
76167422
Test: robotests
Change-Id: Ic71a181bee6f90f25f9fa2a748cf708887495394
Salvador Martinez [Fri, 30 Mar 2018 22:22:59 +0000 (22:22 +0000)]
Merge "Update add network dialog to not make networks hidden by default" into pi-dev
Salvador Martinez [Mon, 19 Mar 2018 15:41:32 +0000 (08:41 -0700)]
Update auto wi-fi to prompt user for permissions
This CL makes it so that auto wi-fi will correctly prompt users
to enable the correct permissions before allowing them to turn
on the setting. Additionally it provides users with important
information regarding each setting.
Bug:
67070896
Test: Robotests
Change-Id: Ieddfa421be6e45ce69f3d6048ae051a7e3ce4c76
Lei Yu [Fri, 30 Mar 2018 21:43:34 +0000 (14:43 -0700)]
In High usage, hide apps without screen time.
If the screen time is less than 1 minute, don't show it in high
usage dialog.
Also sort the list first before cut the list size.
Change-Id: I2f8876dcc16b3d6156cb0aa9e19c7fdd4ceac34e
Fixes:
77303928
Test: RunSettingsRoboTests
Fan Zhang [Fri, 30 Mar 2018 21:33:55 +0000 (14:33 -0700)]
Remove wrapper class for AutofillManager in Settings
Robolectric now supports new system services. So we no longer need any
wrapper class.
Bug:
76167422
Test: robotests
Change-Id: Ic54b95f747bea933bacec299b00a29f3cc4f7bb5
Fan Zhang [Fri, 30 Mar 2018 18:33:08 +0000 (11:33 -0700)]
Remove more wrappers
Bug:
76167422
Test: make RunSettingsRoboTests -j40
Change-Id: I0dc42c483ae92d508dec94e42573b55ced0e4bb0
Lei Yu [Fri, 30 Mar 2018 20:59:38 +0000 (13:59 -0700)]
Make anomaly jobs persistent.
Before this cl, if user turn off device everday(i.e. OTA update), the
every day jobs may never have a chance to run.
This cl make the jobs persistent and don't reschedule it if we already
have one. In this way we can make sure the jobs roughly run everyday.
Bug:
77331929
Test: RunSettingsRoboTests
Change-Id: Ib497aca6b696afd9386515464845c5b0dd3c1207
TreeHugger Robot [Fri, 30 Mar 2018 20:50:25 +0000 (20:50 +0000)]
Merge "Make metered wifi controller resilient to null config" into pi-dev
Daniel Nishi [Fri, 30 Mar 2018 20:24:58 +0000 (20:24 +0000)]
Merge "Polish the About Phone page." into pi-dev
Lei Yu [Fri, 30 Mar 2018 20:24:01 +0000 (20:24 +0000)]
Merge "Remove the obsolete bluetooth code" into pi-dev
Lei Yu [Fri, 30 Mar 2018 20:20:53 +0000 (13:20 -0700)]
Update job ids in Settings
Use constant integers instead of ids
Bug:
77331929
Test: RunSettingsRoboTests
Change-Id: Ic6def54aaae4a9ba025161340f1cee210cb2e87f
TreeHugger Robot [Fri, 30 Mar 2018 20:16:06 +0000 (20:16 +0000)]
Merge "Remove networkScorer wrapper" into pi-dev
Felipe Leme [Fri, 30 Mar 2018 17:34:23 +0000 (10:34 -0700)]
Final (?!?!?!?!) Directory Access improvements.
- Hide children items when parent is granted access (and vice versa).
- Added dividers in between volumes.
Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted
Bug:
72055774
Change-Id: Ie4ad117d1f8a53bf7dbf7747e768a301b0d03604
Lei Yu [Fri, 30 Mar 2018 20:01:50 +0000 (20:01 +0000)]
Merge "Update the battery saver summary" into pi-dev
Lei Yu [Fri, 30 Mar 2018 19:56:46 +0000 (19:56 +0000)]
Merge "Refine the update process of battery tip" into pi-dev
Lei Yu [Fri, 30 Mar 2018 19:19:31 +0000 (12:19 -0700)]
Update the battery string.
Remove the extra new line.
Bug:
73018395
Test: RunSettingsRoboTests
Change-Id: I48555c51ef49aabf1bfd98baa4682a21936bd48e
Lei Yu [Fri, 30 Mar 2018 19:12:41 +0000 (19:12 +0000)]
Merge "Update battery strings" into pi-dev
Victor Chang [Fri, 30 Mar 2018 18:35:52 +0000 (18:35 +0000)]
Merge "Remove dead code in time zone picker" into pi-dev
Lei Yu [Thu, 29 Mar 2018 17:54:22 +0000 (10:54 -0700)]
Remove the obsolete bluetooth code
Also update the shortcut:
1. Change the name to "Devices"
2. Change it point to "Connected device" page
Bug:
74806595
Fixes:
69926683
Test: robo test still pass
Change-Id: Ic57756fc955dc622cc22d0be64f02b5ae07a2915
Fan Zhang [Fri, 30 Mar 2018 00:00:39 +0000 (17:00 -0700)]
Remove networkScorer wrapper
Also modified NetworkScorerPickerPreferenceController to register itself
in xml directily
Bug:
76167422
Test: robotests
Change-Id: I4a216b5e6845aecd6aaeed0ed9b3e06c9e0fc590
TreeHugger Robot [Fri, 30 Mar 2018 17:23:51 +0000 (17:23 +0000)]
Merge "Modify AddDevicePreferenceController's constructor" into pi-dev
Pengquan Meng [Fri, 30 Mar 2018 17:00:35 +0000 (17:00 +0000)]
Merge "Add apn data structure" into pi-dev
Rubin Xu [Fri, 30 Mar 2018 13:38:31 +0000 (13:38 +0000)]
Merge "Remove password blacklist check" into pi-dev