Commit Graph

42876 Commits

Author SHA1 Message Date
Fan Zhang
99f5ef7d45 Merge "Make homepage icons more colorful!" 2018-01-25 00:34:13 +00:00
Antony Sargent
e04101be07 Prevent crash in recent app list
In some situations if you have recently used an app and then uninstalled
it, the display of recent apps in Settings->Apps & notifications would
crash. This is due to a bug in recent CL that fixed b/71591298.

Test: make -j64 RunSettingsRoboTests
Change-Id: Id04b073b2617eeff0e188b10d3743496a9f70d5e
Fixes: 72340364
2018-01-24 16:14:16 -08:00
TreeHugger Robot
a38b1fe8a2 Merge "Add device name to About Phone page." 2018-01-25 00:10:43 +00:00
Maggie
5a86cd6545 Remove location mode menu from location settings
Location modes were introduced in KitKat. It has made location settings over complicated. In P we are removing location modes to provide simple, meaningful and transparent controls for users.

Bug: 63818349
Bug: 70350519
Test: Robo
Test: Manual
Change-Id: Ic8a168b8eeb3cd2c8b1536c378c92a5f377d3bba
2018-01-24 15:51:34 -08:00
Fan Zhang
c9afb5915c Merge "2nd attempt to fix crash when getting unavailable service" am: ec4e0d3008 am: a9cb8d776b
am: c1968ab9a0

Change-Id: Id2a769571957c59a209263432256f77a190b68e0
2018-01-24 23:01:57 +00:00
Sundeep Ghuman
9c8e6fb68f Move AccessPointPreference.generateApKey.
Move logic into AccessPoint.java.

Bug: 64989100
Test: runtest --path
tests/unit/src/com/android/settings/wifi/WifiSettingsUiTest.java

Change-Id: I822a9675263191f22e84233bf2f83a610375a815
2018-01-24 14:39:19 -08:00
Fan Zhang
b74a23ccfd Move injected tiles under debug section
Bug: 64762598
Test: atest UniquePreferenceTest
Change-Id: I6d6661b84c2a94bc66e1afe04c01fee39282506a
2018-01-24 14:05:29 -08:00
TreeHugger Robot
8b2f6e3edb Merge "Fix typo in the description of eSIM reset." 2018-01-24 21:50:45 +00:00
TreeHugger Robot
c84c64a967 Merge "Move to DisplayManager brightness APIs" 2018-01-24 21:45:06 +00:00
TreeHugger Robot
9da50435ac Merge "Update layout config for suggestion card." 2018-01-24 21:43:24 +00:00
Fan Zhang
c1968ab9a0 Merge "2nd attempt to fix crash when getting unavailable service" am: ec4e0d3008
am: a9cb8d776b

Change-Id: Id944bc516fa093ce1421f40c2c6b05e277e94660
2018-01-24 20:59:25 +00:00
Fan Zhang
a9cb8d776b Merge "2nd attempt to fix crash when getting unavailable service"
am: ec4e0d3008

Change-Id: I05ace64e5d8979611df37a8618812910a6e905fa
2018-01-24 20:54:49 +00:00
Leif Hendrik Wilden
28dee1f086 Migrate to use instrumentation classes from settingslib.
Test: Compiles. Manually tested.
Change-Id: I70a6e76cc8440547746ecc008c32bd06a7de8161
2018-01-24 12:30:39 -08:00
Carlos Valdivia
5114604743 AR/FR: Updated resources to confirm via component.
Due to issues with an Intent filter not being configured with a category. We
needed to move to launching the confirmation activity via Component targeting
Intent. Hopefully this can be addressed post IC.

Manual Testing:

Start by navigating in Settings to:

Settings > System > Reset Options > Erase

Then click on "Reset Phone." At this point the behavior depends on the state of
GmsCore.

With forthcoming GmsCore changes (and accompanying SettingsGoogle changes), the  user will see a prompt telling them that
they can confirm their credentials. Regardless of whether the user successfully
confirms or hits back, they will end up in the MasterClearConfirm UX. As per the
feature spec.

Test: make RunSettingsRoboTests -j40
Bug: 6393703
Change-Id: Idca02bda1fa2e388d612bd2014e16e2b6665fe70
2018-01-24 11:37:35 -08:00
Daniel Nishi
a633b39cfa Add device name to About Phone page.
The device name is reflected in three places: A Settings.Global flag
which can be read by third party apps, the Bluetooth device name, and
the Wi-Fi tethering hotspot name.

The Bluetooth and Wi-Fi names can be changed independently of the device
name, but if the user sets the device name, they are all changed in
parallel.

Due to the naming restrictions of Bluetooth devices and SSIDs, the SSID
naming restrictions apply to the device name.

Bug: 63819909
Test: Robotest
Change-Id: I3a81535fc07d183557a6fa5d54baef3c7868499c
2018-01-24 11:35:30 -08:00
Fan Zhang
ec4e0d3008 Merge "2nd attempt to fix crash when getting unavailable service" 2018-01-24 19:08:46 +00:00
TreeHugger Robot
eb4dceea7f Merge "Add bluetooth as a supported Slice" 2018-01-24 18:39:18 +00:00
Fan Zhang
925a4f8f79 Make homepage icons more colorful!
Change-Id: I84b4744abf8a2955e2a0c54cdfc9261ddd88d3bd
Fixes: 69314641
Test: visual
2018-01-24 10:36:44 -08:00
Daniel Nishi
adb949da4c Merge "Add a new toggle for Bluetooth while driving." 2018-01-24 18:22:15 +00:00
TreeHugger Robot
f3b61d1206 Merge "Fix the app ops settings tests by adding FLAG_ACTIVITY_NEW_TASK to Intents." 2018-01-24 18:02:18 +00:00
Dianne Hackborn
4d5ffbd1dd Merge "Fix issue #72116995: Add permission guarding Service#startForeground" 2018-01-24 17:58:50 +00:00
Qingxi Li
f2dc400964 Fix typo in the description of eSIM reset.
Bug: 72419412
Test: E2E
Change-Id: Iaa8005d343b454dccc65bffe046ab5836fbd04e8
2018-01-24 09:54:53 -08:00
TreeHugger Robot
09a7a819a4 Merge "Add EID into SIM status dialog" 2018-01-24 17:06:57 +00:00
TreeHugger Robot
929f0b7789 Merge changes Ibd1291ff,I5224900b
* changes:
  Add ability to show/hide System Update.
  Clean up SystemUpdatePreferences tests.
2018-01-24 08:10:14 +00:00
TreeHugger Robot
0ad01ef2e0 Merge "Added activity for the ACTION_DIRECTORY_ACCESS_SETTINGS intent." 2018-01-24 06:09:21 +00:00
TreeHugger Robot
74ea7efe8f Merge "Fix the crash when editing or deleting APN." 2018-01-24 03:53:39 +00:00
TreeHugger Robot
a44105c6dc Merge "Update strings for suggestions." 2018-01-24 03:46:34 +00:00
TreeHugger Robot
fca5948a6f Merge "Tweak master switch's right padding" 2018-01-24 03:36:41 +00:00
TreeHugger Robot
7f8ffff06f Merge "Turn on new battery settings page" 2018-01-24 03:10:27 +00:00
TreeHugger Robot
b04556453a Merge "Migrate functionality to Me Card fragment." 2018-01-24 02:56:39 +00:00
TreeHugger Robot
a80535a62d Merge "Update string for work mode toggle" 2018-01-24 02:32:38 +00:00
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