Commit Graph

42495 Commits

Author SHA1 Message Date
TreeHugger Robot
26a8f5baa9 Merge "Remove all gesture suggestions" 2018-01-24 02:31:35 +00:00
Maggie Wang
28dc885c55 Merge "Remove location_modes_previous references" 2018-01-24 01:47:54 +00:00
Chad Brubaker
8e99c7dc1f Merge "Expose lockdown button in settings" 2018-01-24 01:46:21 +00:00
Matthew Fritze
64aa50c006 Add bluetooth as a supported Slice
To add bluetooth as a valid slice requires adding
support for Context-only preference controller
constructors, which was already planned work.

Fixes: 67997327
Test: robotests
Change-Id: I7efd20a05d5796c3327a26b1fc535d5436d1070f
2018-01-23 16:16:28 -08:00
Fan Zhang
1e141fb670 Tweak master switch's right padding
Change-Id: I635833fc61fd3e644d2f606bd78efc9d159a09de
Fixes: 69462439
Test: visual
2018-01-23 14:42:30 -08:00
Fan Zhang
372789b46d Remove all gesture suggestions
They are already removed from first 14 days category, now removing
permanently.

Change-Id: I1740d3bff59ff56142c10cce3b9617009c58f47d
Fixes: 72224790
Test: robotests
2018-01-23 14:26:30 -08:00
Beverly Tai
fae128f38c Merge "Adding zen dialog in zen settings" 2018-01-23 22:20:24 +00:00
Julia Reynolds
65e33e7160 Merge "Remove unused intent." 2018-01-23 22:08:32 +00:00
TreeHugger Robot
fb11ee73f6 Merge "Add icon in RestrictedAppDetails" 2018-01-23 22:03:17 +00:00
Felipe Leme
5bc07cfc4c Added activity for the ACTION_DIRECTORY_ACCESS_SETTINGS intent.
Applications typically use this action to ask the user to revert the
"Do not ask again" status of directory access requested made by
StorageVolume.createAccessIntent(directory).

Test: adb shell am start -a android.settings.DIRECTORY_ACCESS_SETTINGS
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain

Bug: 63720392

Change-Id: Ib9007c2c08a75e2e54df6d6b5f465f9c3ccc82be
2018-01-23 13:58:03 -08:00
Fan Zhang
54291e10ce 2nd attempt to fix crash when getting unavailable service
Change-Id: I6abb16e1c84b82021ce2dd54097fe68857e69129
Fixes: 68013053
Test: robotests
2018-01-23 13:53:06 -08:00
Ben Lin
6fb9c9f4b0 Add ability to show/hide System Update.
This adds one flag:
config_show_system_update_settings

Which when set to false will hide "System update" from System page. This
is useful for devices that controls its system update elsewhere.

Bug: 69813881
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.deviceinfo
Change-Id: Ibd1291ffd8948419e8aa06d0721842246a069378
2018-01-23 13:51:25 -08:00
Ben Lin
2a63861a52 Clean up SystemUpdatePreferences tests.
SystemUpdatePrefenceControllerTest had some logic that seemed irrelevant
to its testing class, which seems to have moved to
AdditionalSystemUpdatePreferenceController. Removed the irrelevant
test cases and added additional test coverage on
AdditionalSystemUpdatePreferenceController.

Bug: None
Test: RunSettingsRoboTests
Change-Id: I5224900bc3449a9f329a1d02ee3cb597b4748d91
2018-01-23 13:39:12 -08:00
xiyuan.wang
65ba3f5b3a Merge "The text on toast should be changed when remains 1 time for SIM lock input" am: 6e6b1e2079 am: 15691a74b5 -s ours
am: 6407162f01

Change-Id: I6cd8ae2fb8161a7c7bcb30da8fcba96c90db997d
2018-01-23 21:16:36 +00:00
xiyuan.wang
6407162f01 Merge "The text on toast should be changed when remains 1 time for SIM lock input" am: 6e6b1e2079
am: 15691a74b5  -s ours

Change-Id: Ied52d7a7c8080177e4d45b35280ca13222c175d0
2018-01-23 21:07:52 +00:00
Chad Brubaker
5f67c6491f Expose lockdown button in settings
Test: manually verified toggle controls lockdown button visibility
Test: make RunSettingsRoboTests
Bug: 37221346
Change-Id: Ie59f9c6a1df1d877b18986c6a58492a5aa789d34
2018-01-23 13:05:49 -08:00
yuemingw
db9a9bb0b0 Fix the crash when editing or deleting APN.
Previously ApnPrefence starts an intent with URI content://telephony/carrier/filtered/id,
this URI is only implemented in telephony provider for query(), but not
for delete() or update(). This caused the crash when user tries to
update or delete an APN through this URI.

We should let ApnPrefence starts an intent with URI content://telephony/carrier/id, which
is a general telephony URI and all of query() add() delete() update() are implemented for
non-DPC mode. And let ApnPrefence starts an intent with URI content://telephony/carrier/filtered/id
in DPC mode(as the general URI can't access DPC-owned APN), when only DPC-owned APNs are
presented to user. In the DPC mode, user can't update, add or delete an APN, they can
only view(query) the APN, so it won't crash with URI_FILTERED.

Bug: 72387301
Test: manual. Tried update, delete, and add action in Access Point Name page, no crash occurs. Instrumentation test will be added in b/72154761.
Change-Id: I9979cbffcc94a37b2bd96db766ececd0ac7b20e2
2018-01-23 20:57:08 +00:00
xiyuan.wang
15691a74b5 Merge "The text on toast should be changed when remains 1 time for SIM lock input"
am: 6e6b1e2079

Change-Id: Ic7f5ccda3111ebe6dc7934a2f50d7c2b76c2e70c
2018-01-23 20:31:59 +00:00
TreeHugger Robot
e1bf0aae82 Merge "AF/FR Fix onActivityResult condition." 2018-01-23 20:29:36 +00:00
Doris Ling
e0625129db Update layout config for suggestion card.
- reduce card top/bottom padding
- remove extra card margin
- update text font style
- update close button size and alpha

Bug: 72330968
Test: visual

Change-Id: Ib25c0b82d49b0ab021bb5255c42c0e886db5e1b7
2018-01-23 12:26:07 -08:00
Treehugger Robot
6e6b1e2079 Merge "The text on toast should be changed when remains 1 time for SIM lock input" 2018-01-23 20:25:23 +00:00
jackqdyulei
5ac5b85d2a Add icon in RestrictedAppDetails
use preference_app to make sure the app icon is 24dp.

Bug: 71502850
Test: Screenshot | RunSettingsRoboTests
Change-Id: I0d7704246299201e72b991f199f9ddd2f224a8a3
2018-01-23 12:12:44 -08:00
Daniel Nishi
87f35e26ba Migrate functionality to Me Card fragment.
This adds in the preferences from the Device Info page into the Me Card
page. By overriding the expanded children count, these preferences
appear in the the overflow (reflecting their more power user-y status).

Bug: 63819909
Test: Manual & Robotest

Change-Id: Ic342babfb34db6343b11300eadb30b09a69f56f1
2018-01-23 11:18:24 -08:00
Doris Ling
bebea23772 Update strings for suggestions.
- modify strings according to the new spec.

Bug: 70573674
Test: rebuild
Change-Id: I75ac4913c5dc376a542fd2fcec25f8b929fd77ea
2018-01-23 11:11:18 -08:00
Ningyuan Wang
0608d2dc9d Merge "Wifi Settings: Add auto option for softap" 2018-01-23 18:55:05 +00:00
jackqdyulei
b96ccba79d Turn on new battery settings page
Add priority and shortcut link for new page

Bug: 69867246
Test: Manual
Change-Id: I887305ee500daa6cd28fd68c6d0ea28869994412
2018-01-23 10:29:13 -08:00
Carlos Valdivia
5dd6ed470e AF/FR Fix onActivityResult condition.
Chase list bug. Accidentally bailed on true effectively.

Manual tested by going to Settings > System > Erase All Data
And then hitting then successfully wiping and reseting.

Test: make RunSettingsRoboTests -j40
Bug: 72324059
Change-Id: Ib2a155820811f0ec62a45c1312475c24646ede76
2018-01-23 10:20:52 -08:00
Qingxi Li
37f14c0ef6 Add EID into SIM status dialog
Bug: 68761649
Test: make RunSettingsRoboTests
Change-Id: Ifdcf2abe6fa56a002841610d2652cc7364b23417
2018-01-23 10:13:31 -08:00
Tony Mak
a0aebabdc4 Update string for work mode toggle
Bug: 71743500

Test: Go to that page in settings, observe the string.
Test: Flip the state, observe the summary is updated.

Change-Id: I8b634314c752c6ab8f51e1472db3956194390cbd
2018-01-23 18:12:04 +00:00
Daniel Nishi
cf4a5c7459 Add a new toggle for Bluetooth while driving.
The toggle is controlled by a platform feature flag.

Bug: 66679618
Test: Robotest
Change-Id: Ibe8e8756a4ab54a83ee03c6cf008193ed107955d
2018-01-23 09:38:04 -08:00
Beverly
2607287e5a Adding zen dialog in zen settings
Test: make ROBOTEST_FILTER=EnableZenModeDialogTest RunSettingsRoboTests -j40
Bug: 63077372
Change-Id: Ib3193788bb0a31e20683d3191eb1238d6a63f1e7
2018-01-23 10:59:18 -05:00
Adrian Roos
475fa50461 Merge "DisplayCutout: Add support for multiple cutout emulation options" 2018-01-23 15:23:55 +00:00
Julia Reynolds
1c542bbeb0 Remove unused intent.
Test: cts-verifier
Bug: 63927402
Change-Id: I0ae2f33f7e8f1cce9dbe8166b522eb9cbde4c8b5
2018-01-23 09:05:37 -05:00
TreeHugger Robot
190a211a03 Merge "Display recent apps in notification settings" 2018-01-23 13:56:24 +00:00
xiyuan.wang
b63de874fa The text on toast should be changed when remains 1 time for SIM lock input
The behavior of getQuantityString() is different according to language, it gets
both "other" and "one" string if English is system language. But it always gets
"other" string if non-English, then the "other" string of wrong_pin_code is
shown even if remains 1 time of SIM lock input.

In order to change the string in any language, we add new string for
remains 1 time.

Bug: 71783850
Change-Id: I5de35eb71905b77028bf25226381e1ba79a37e92
2018-01-23 22:38:49 +09:00
Peter Visontay
cec65e9423 Fix the app ops settings tests by adding FLAG_ACTIVITY_NEW_TASK to Intents.
Test: make -j32 SettingsUnitTests && adb install -r out/target/product/marlin/data/app/SettingsUnitTests/SettingsUnitTests.apk && adb shell am instrument -w -e class com.android.settings.applications.ExternalSourcesSettingsTest com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner
Change-Id: I187d68e6b214d975df0fe2a3d5dc88cadec35fa3
2018-01-23 13:32:34 +00:00
Julia Reynolds
02af3659e0 Display recent apps in notification settings
The last 5 non-system apps that have sent notifications
will be displayed at the top level of notification settings for
easy access.

Test: make -j20 RunSettingsRoboTests
Change-Id: Ifaae36f977beb0438a740f61ff0ac9c97f3acc80
Fixes: 63927402
2018-01-23 12:00:05 +00:00
TreeHugger Robot
06af7c8d4b Merge "Add a new About Phone page." 2018-01-23 07:04:29 +00:00
Jong Wook Kim
0784111c9c Merge "Wifi MAC Randomization: Developer Options" 2018-01-23 06:40:51 +00:00
Maggie
85e2f61b2d Remove location_modes_previous references
1. Remove reference to LOCATION_MODE_PREVIOUS.

2. Add setLocationEnabled method in LocationEnabler. When turning location
ON/OFF from Settings app or Quick Settings, use
LocationEnabler.setLocationEnabled() instead of setLocationMode().

3. Change unit tests accordingly.

Bug: 70990911
Test: Robolectric
Test: Manual
Change-Id: Ic02ef3cd02f9aa7d2ef18697b19b507575aaf5c2
2018-01-22 21:23:28 -08:00
TreeHugger Robot
442a53c5fb Merge "Policy transparency for mandatory backups." 2018-01-23 05:21:41 +00:00
TreeHugger Robot
70d01a51c3 Merge "Finished initial implementation of StorageAccessDetails." 2018-01-23 04:16:49 +00:00
TreeHugger Robot
01b2d78da1 Merge "Add checkbox to let user wipe eSIM data together with FDR" 2018-01-23 03:41:43 +00:00
TreeHugger Robot
e3f187a4a9 Merge "Revert "Migrate to use instrumentation classes from settingslib."" 2018-01-23 01:58:18 +00:00
Lei Yu
27b2aa35f8 Merge "Revamp the battery detail page for each app" 2018-01-23 01:21:27 +00:00
Daniel Nishi
1e620957b8 Add a new About Phone page.
This adds the "Me Card" page. The current functionality is to show
information based upon the first account added to the system. The page
shows the user's avatar, name, primary account, and phone number.

Bug: 63819909
Test: Robotest

Change-Id: I64bfae922e828994b2b87009d0647e67dab0da42
2018-01-22 17:21:10 -08:00
Qingxi Li
c8a2b040a1 Add checkbox to let user wipe eSIM data together with FDR
This CL add a check box for eSIM enabled devices to reset eSIM data
during factory reset of the phone.

Bug: 67500470
Test: make RunSettingsRoboTests
Change-Id: I5a81d43f23ae55f8549a5b807fdf41f36c9d3acd
2018-01-22 16:08:23 -08:00
TreeHugger Robot
663b2d9bd3 Merge "Add Settings support for Bluetooth Multi-A2DP and Multi-HFP" 2018-01-22 23:59:32 +00:00
TreeHugger Robot
f40d679dca Merge "Use SoftAp API to get number of connected device" 2018-01-22 23:49:34 +00:00
TreeHugger Robot
058427b02d Merge "AR/FR: Tests using stubbed values." 2018-01-22 23:30:34 +00:00