Commit Graph

32991 Commits

Author SHA1 Message Date
Jack He
244ebc1e31 Fix Bluetooth pairing dialogue crash
am: e51972868c

Change-Id: I15e2263b5907f10f385d07e2797b43240e2eed65
2017-01-19 23:45:28 +00:00
Robin Lee
cb1968148a Merge "Clear VPN after Clear credentials if VPN is being established" am: 4ce19f5c4f am: fde3c6d74a
am: 185275e0ad

Change-Id: If1956964597ad1885dde00f23c55a4492f867977
2017-01-19 23:31:21 +00:00
Robin Lee
185275e0ad Merge "Clear VPN after Clear credentials if VPN is being established" am: 4ce19f5c4f
am: fde3c6d74a

Change-Id: Id20c96f550ecf7c05926eaea8a29575aeb8aaa07
2017-01-19 23:23:37 +00:00
TreeHugger Robot
5228059c50 Merge "Add example of google truth in a non robolectric test" 2017-01-19 23:15:49 +00:00
Robin Lee
fde3c6d74a Merge "Clear VPN after Clear credentials if VPN is being established"
am: 4ce19f5c4f

Change-Id: Ib35450b0c389da1bbba311c05d1d0346eb612b9e
2017-01-19 23:13:04 +00:00
Sunny Goyal
115e114032 Merge "Updating CreateShortcut activity to use the new ShortcutManager APIs for creating shortcuts" 2017-01-19 23:10:34 +00:00
Robin Lee
4ce19f5c4f Merge "Clear VPN after Clear credentials if VPN is being established" 2017-01-19 23:02:21 +00:00
Jack He
e51972868c Fix Bluetooth pairing dialogue crash
When pairing passkey is invalid, onCreate() should return early to
prevent any dialog from displaying, which will then call onDestroy()
to destroy the activity. However mReceiver should be registered before
onDestroy() is called as onDestroy() will call unregisterReceiver(mReceiver)
that will throw an IllegalArgumentException when mReceiver was not registered.

This fix adds a flag that tracks whether mReceiver has been registered.
In addition, this fix fails the passkey confirmation request upon invalid
passkey.

Bug: 32577328
Test: Test with PTS TC_SERVER_SA_BI_01_C
Change-Id: Ifc047bad6bd99abca04404af9cd54d2034cd35aa
(cherry picked from commit 6f8e9eda2d9ed830d47971d93327792906db2dc1)
2017-01-19 22:39:17 +00:00
Zac Iqbal
b61434348a Merge "Refactored TrustAgentUtils to allow agent check injection." 2017-01-19 22:21:47 +00:00
jackqdyulei
51db61dcd5 Remove OS items in battery main page.
We want to hide the OS items from battery usage page and let users
focus on the items that they can control.

Currently the hidden items are:
Android OS, Android System, Phone idle, Cell Standby

Bug: 34274844
Test: RunSettingsRoboTests & screenshots
Change-Id: I75165376d5038b6ec17a7b73ae3c5fcd24753fa9
2017-01-19 13:49:26 -08:00
Sunny Goyal
9a6b675096 Updating CreateShortcut activity to use the new ShortcutManager APIs
for creating shortcuts

Test:  adb shell am instrument -e class com.android.settings.CreateShortcutTest \
 -w com.android.settings.tests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I09fb73ae2a0687a3269f3714bdb2c5d92c99ea87
2017-01-19 13:39:13 -08:00
Stefanot
6ec9e89fff Add SuggestionFeatureProvider interface.
The interface is added so that a vendor can add new suggestions to the
settings app, and customize details for these suggestions.

Test: make RunSettingsRoboTests

BUG: 34219298

Change-Id: I373c63709b1aaf68360aa2561a2ecfc3194e0e2b
2017-01-19 20:50:35 +00:00
Zachary Iqbal
ccae73f228 Refactored TrustAgentUtils to allow agent check injection.
Notes:
- TrustAgentUtils defined a method that allowed callers to determine if a Trust Agent package is allowed to provide trust. If it is, it adds it to the list of available trust agents that can be displayed in the Settings->Security screen.
- The logic used to define what agents are permitted on the device can now be injected.

Test: Ran 'm RunSettingsRoboTest' and added a new test for the TrustAgentFeatureProviderImpl.
Bug: 34354635
Change-Id: I24c54c14bde26073ce6fa907379b86aae2841600
2017-01-19 12:39:38 -08:00
Fan Zhang
a7689b4f2a Change theme base back to Theme.DeviceDefault.Settings
Bug: 33558692
Test: visual
Change-Id: I526f8ff19bb2a4c471ff567e926574e19c0d307a
2017-01-19 12:30:48 -08:00
Stephen Chen
20bfe52959 Add drawable resources for Wi-Fi picker friction icons.
Bug: 34281330
Test: manual inspection, make
Change-Id: I7a98ececf4804e3444514ff1c438e5ed4f9705d5
2017-01-19 12:21:06 -08:00
TreeHugger Robot
0d3d5e4a8e Merge "Add SuggestionFeatureProvider interface." 2017-01-19 20:16:41 +00:00
TreeHugger Robot
5a2a8f8ad3 Merge "Move indexing into the Search Fragment" 2017-01-19 20:06:39 +00:00
Matthew Fritze
1212b0ea3f Add example of google truth in a non robolectric test
Change-Id: I6549ae01b31df39462d252e767fc3255b05813fe
Fixes: 34277648
Test: make SettingsUnitTests, make RunSettingsRoboTests
2017-01-19 11:21:20 -08:00
Fyodor Kupolov
91bae6ca23 Tron metric for force stop app
Test: Manual
Bug: 31008660
Change-Id: I7c7818036286764ffa10bdc0d718b71a459846d9
2017-01-19 11:06:34 -08:00
Anton Philippov
1d51b81563 Merge "Moves "Factory data reset" to a different page." 2017-01-19 18:28:34 +00:00
Matthew Fritze
34c27609d6 Move indexing into the Search Fragment
Cold start latency for Settings increased drastically
from the indexing of the Search Database. Moving it into
the Search Fragment moves that latency to cases where
users are actually searching.

Change-Id: I11368af610ac9e80f9901654f980c2c1e26342a5
Fixes: 34142852
Test: make RunSettingsRoboTests
2017-01-19 10:27:37 -08:00
Fan Zhang
6f7164c5a9 Add SuggestionFeatureProvider interface.
The feature provider will contain all logic for suggestions.

Test: RunSettingsRoboTests
Change-Id: I45a0dcdc101d97acb07babd531db50b80bb3b308
2017-01-19 10:15:35 -08:00
Paul Duffin
d265ad68d4 Merge "Prepare for removal of legacy-test from default targets" am: a6b0c881fd am: a3da659863 am: cf967da02a
am: 61316803f2  -s ours

Change-Id: Icdf52be53ad5df9a175d10a9a882943f2a48f820
2017-01-19 15:24:57 +00:00
Paul Duffin
61316803f2 Merge "Prepare for removal of legacy-test from default targets" am: a6b0c881fd am: a3da659863
am: cf967da02a

Change-Id: Ifc88129c31c074674f42ee356382dd6aa5022952
2017-01-19 15:22:55 +00:00
Paul Duffin
cf967da02a Merge "Prepare for removal of legacy-test from default targets" am: a6b0c881fd
am: a3da659863

Change-Id: Id36b48a4a25aa564b5270ad16aa5a2eb1eadfadb
2017-01-19 15:20:26 +00:00
Paul Duffin
a3da659863 Merge "Prepare for removal of legacy-test from default targets"
am: a6b0c881fd

Change-Id: Iadb65fd5a2630e74071866f2d0b4347d29a71af1
2017-01-19 15:17:53 +00:00
Treehugger Robot
a6b0c881fd Merge "Prepare for removal of legacy-test from default targets" 2017-01-19 15:13:15 +00:00
Paul Duffin
8cedf7e8e8 Merge "Prepare for removal of legacy-test from default targets" 2017-01-19 11:56:38 +00:00
Andre Lago
e474bd5f0f [Sound Settings] Act on managed user added/removed
Use the new callbacks for managed profile being added/removed to update
visibility of work sound settings

Test: make RunSettingsRoboTests
Bug: 31701003

Change-Id: I3167e52102bcf9f18a58e85dd9c3117691c6ad3f
2017-01-19 11:48:20 +00:00
Bartosz Fabianowski
ccd4fa8e60 Add Device Owner disclosure to Add Accounts dialog
This CL adds a footer to the Add Accounts dialog that tells the user
when the device is managed by a Device Owner app.

Bug: 32692748
Test: make RunSettingsRoboTests

Change-Id: I0dd161eb0bbbc87c04692d4fa6547bd41dab05e0
2017-01-19 11:09:45 +01:00
Paul Duffin
b67ddbbd25 Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Merged-In: I5d2c0685b74ea5ba368c777d9646b9d3ac24dca9
Change-Id: I980111b4b83d16ccd9d3a277ab2587bf638a2c8a
2017-01-19 09:43:07 +00:00
Suprabh Shukla
57d92315a4 Adding Manage External Sources Settings
Added a settings fragment to manage external sources. It lists all
applications that have either requested REQUEST_INSTALL_PACKAGES or have
their app op changed from default.

Test: Will include in follow-up CL. Tracked in b/33792674

Bug: 31002700
Change-Id: Ibd2a1922be214b62aec4eefa45f7b9691256b205
2017-01-18 21:00:30 -08:00
Bill Yi
5782b390dd Import translations. DO NOT MERGE am: 0446865d68 -s ours
am: a46e4a4e49  -s ours

Change-Id: I23088e1911540ebb2108d5682c319c2e24491dc8
2017-01-19 04:58:57 +00:00
Bill Yi
a46e4a4e49 Import translations. DO NOT MERGE
am: 0446865d68  -s ours

Change-Id: I389d6dd23abc7e3476d00a25ab958d1de44b7e09
2017-01-19 04:51:51 +00:00
TreeHugger Robot
27cb8b4a65 Merge "Import translations. DO NOT MERGE" 2017-01-19 04:38:50 +00:00
Shahriyar Amini
31357bb9a8 Consider res package when updating security icons.
Bug: 31002801
Test: make RunSettingsRoboTests
Change-Id: Icef83cbe18d4b48c4091bdf421018bc817bcf33c
2017-01-18 19:26:37 -08:00
TreeHugger Robot
17fb7d30a9 Merge "Fix null pointer in dashboard fragment test." 2017-01-19 03:10:29 +00:00
Bill Yi
0446865d68 Import translations. DO NOT MERGE
Change-Id: I610fb1c188fb93d6e2d70dd52da7dd766d27c209
Auto-generated-cl: translation import
2017-01-18 19:10:06 -08:00
Bill Yi
bcf8cefeab Import translations. DO NOT MERGE
Change-Id: I026af7e5ced0b053fbfa178d4963dfb22ad06fc2
Auto-generated-cl: translation import
2017-01-18 19:04:58 -08:00
Doris Ling
fd83b2eb52 Fix null pointer in dashboard fragment test.
- use context instead of activity to retrieve resource details.
- revert the change previously made in getActivity() calls.
- add null checking in package name and tile intent.

Fix: 34396855
Test: make RunSettingsRoboTests

Change-Id: Ic853939fee3c381b663c0320354da51d3b2a0e11
2017-01-18 17:31:11 -08:00
TreeHugger Robot
1c6f9de1a1 Merge "Settings for new accessibility shortcut." 2017-01-19 01:17:03 +00:00
Pavlin Radoslavov
1d0e6c8cee Merge "Update/cleanup Bluetooth Codec strings in Developer Settings" am: b057b2da02 am: 058533ae25 am: 4dac712d7c
am: 4d70b69d7a

Change-Id: I03f43da0bce9b7661ce8ce7a6c0eaaf45c87c07e
2017-01-18 22:40:12 +00:00
Tamas Berghammer
e298e85f0b DO NOT MERGE: Revert "Update package names to work with the proto3 compiler" am: 5a638a6ad1
am: 6031fba9f2  -s ours

Change-Id: I3ef4ce03f26c527793224ae5aadbb065e747f829
2017-01-18 22:13:32 +00:00
Pavlin Radoslavov
4d70b69d7a Merge "Update/cleanup Bluetooth Codec strings in Developer Settings" am: b057b2da02 am: 058533ae25
am: 4dac712d7c

Change-Id: I0680026da45bb1828c70ec051e789b0845176702
2017-01-18 20:41:29 +00:00
Pavlin Radoslavov
4dac712d7c Merge "Update/cleanup Bluetooth Codec strings in Developer Settings" am: b057b2da02
am: 058533ae25

Change-Id: I49b4565644c584a69897f4b642a1b308fe9df0f0
2017-01-18 20:29:44 +00:00
TreeHugger Robot
16f1fc66c2 Merge "Tron metrics for special permissions" 2017-01-18 20:27:49 +00:00
Pavlin Radoslavov
058533ae25 Merge "Update/cleanup Bluetooth Codec strings in Developer Settings"
am: b057b2da02

Change-Id: I892ea30d6fb15ba10859cd48788260e5ad8ad380
2017-01-18 20:25:52 +00:00
Tamas Berghammer
6031fba9f2 DO NOT MERGE: Revert "Update package names to work with the proto3 compiler"
am: 5a638a6ad1

Change-Id: If23c0926eecf6a08ed0c0ab174cdddb43e31cc00
2017-01-18 20:24:36 +00:00
Treehugger Robot
b057b2da02 Merge "Update/cleanup Bluetooth Codec strings in Developer Settings" 2017-01-18 20:20:48 +00:00
Tamas Berghammer
964bcccd62 Update package names to work with the proto3 compiler am: fbd5f5fdce
am: 6cd7e52b9e  -s ours

Change-Id: I3cf9d3c6758b1180fad7491da0afcff141b8ec04
2017-01-18 19:56:35 +00:00