Commit Graph

627 Commits

Author SHA1 Message Date
TreeHugger Robot
e0b65fce67 Merge "Remove code that check for dashboard feature." 2017-03-07 20:57:28 +00:00
Doris Ling
f2cf2aea37 Remove code that check for dashboard feature.
- remove DashboardFeatureProvider.isEnabled() and all relating code
and tests.

Bug: 35764802
Test: make RunSettingsRoboTests
Change-Id: If7796677abc8904b7436525836d50cdef38e37a4
2017-03-07 11:15:03 -08:00
TreeHugger Robot
2437d3c64a Merge "Add default IME to Privacy Settings page" 2017-03-07 18:36:55 +00:00
Daniel Nishi
c7bf800ebf Merge "Align the profile calculation with other screens." 2017-03-07 17:49:28 +00:00
Daniel Nishi
5e1f6dc241 Merge "Fast track the installed app details storage." 2017-03-07 17:48:54 +00:00
Tony Mak
ef4c83962d Fix failed to remove account in managed profile
Fix: 35996483

Test: m -j RunSettingsRoboTests
Test: manual test
          1. Remove account in work profile
          2. Remove account in user 0


Change-Id: I3ed9364afbf8ef5cddd0edc0d4e0e5e48d2dd62a
2017-03-07 15:33:20 +00:00
Bartosz Fabianowski
2700cdbdac Add default IME to Privacy Settings page
This CL adds information about default IMEs set by Device Owner and/or
Profile Owners to the Enterprise Privacy Setting page.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: I9f78ab4792a5a1d444808048ff33e3e20a0483dc
2017-03-07 12:43:42 +01:00
TreeHugger Robot
126d9ae6f4 Merge "Create settings page for choosing default Network Scorer." 2017-03-07 02:06:09 +00:00
TreeHugger Robot
5914d143e7 Merge "Update preference logger to log pref change as ACTION" 2017-03-07 02:00:32 +00:00
Lei Yu
0d988208c0 Merge "Add type UNACCOUNTED("miscellaneous") in advanced battery page" 2017-03-07 01:54:21 +00:00
TreeHugger Robot
68ef61a105 Merge "Create whitelist for the most popular settings" 2017-03-06 23:56:33 +00:00
Fan Zhang
c6f4c9c9b5 Update preference logger to log pref change as ACTION
Change-Id: I600cf6ec79cbc876347c3fdb20ea70fffbc04524
Fix: 34775467
Test: make RunSettingsRoboTests
2017-03-06 15:39:22 -08:00
Stephen Chen
9347c95c39 Create settings page for choosing default Network Scorer.
Bug: 35203304
Bug: 35852687
Test: make RunSettingsRoboTests -j40
Change-Id: Iaef671e0a9e8beb560e1d2c9864f44ef46993a6b
2017-03-06 14:08:50 -08:00
Daniel Nishi
522e05f169 Align the profile calculation with other screens.
The profile fragment was accidentally adding all of the app's
code data to the profile, even if it was already attributed to the
primary user.

Change-Id: I47000bbe1fcf98d5e9f252eb74b22fee05b7034d
Fixes: 35919232
Test: Settings Robotest
2017-03-06 13:56:57 -08:00
Daniel Nishi
ad7aa871e7 Fast track the installed app details storage.
Change-Id: Ic96a7b4bea6d92a32669887dacbc1f4e54e25ea9
Fixes: 35805032
Test: Settings robotest
2017-03-06 13:55:00 -08:00
TreeHugger Robot
490e4ea011 Merge "Add code coverage support for robolectric tests" 2017-03-06 20:51:34 +00:00
Matthew Fritze
b759516cbf Create whitelist for the most popular settings
As a temporary solution to getting the most popular
settings to be the top rank, we have created a white list.
If a prioritized setting shows up somewhere in the results
then it will be given an elevated rank to be at the top.

Bug: 35048659
Test: make RunSettingsRoboTests
Change-Id: I92b563a17b42d8f91d980dd1d8e5f8f29ca5aa9c
2017-03-06 12:31:41 -08:00
TreeHugger Robot
bdaf7572d9 Merge "Add tests for NonIndexableKeys in NFC payments" 2017-03-06 18:52:36 +00:00
Anton Philippov
8e667cf2d4 Merge "Fix search results for backup settings." 2017-03-06 10:24:17 +00:00
TreeHugger Robot
98fa7780a9 Merge "Fix ServiceConnectionLeak in network fragment" 2017-03-04 16:25:12 +00:00
Matthew Fritze
5e1ab7f974 Add tests for NonIndexableKeys in NFC payments
Also serves as an example for testing NIKs.

Test: make RunSettingsRoboTests
Fixes: 35931606, 35657617

Change-Id: Ia4de8ec3c508ceaa6573252ecd372b479b5ce815
2017-03-03 18:23:28 -08:00
Fan Zhang
f5f71a9be2 Fix ServiceConnectionLeak in network fragment
Change-Id: I43efe9ae31fc2f58361abdb034b0205a3f3e2b71
Fix: 35957226
Test: make RunSettingsRoboTests
2017-03-03 18:01:19 -08:00
TreeHugger Robot
2f7d8bc086 Merge "Adding "Install Other Apps" in App Info page" 2017-03-04 00:39:22 +00:00
TreeHugger Robot
271dd30704 Merge "Update theme for filter widget." 2017-03-04 00:35:07 +00:00
Fan Zhang
3ca5e45425 Update theme for filter widget.
Bug: 35933748
Test: visual

Change-Id: I0c09c90360c436e25ca4a40993dde31cb2b4287b
2017-03-03 14:53:13 -08:00
Suprabh Shukla
86d52db588 Adding "Install Other Apps" in App Info page
Added a preference link to manage external sources in the app info
screen just like other special access permissions.

Test: Manually checked that the link appears on apps once their app op
is set to allow or deny.
Also, added some basic robolectric unit tests:
make -j32 RunSettingsRoboTests

Bug: 35481942
Change-Id: If687778b7a64fb7d278508b78d06272253a98e3e
2017-03-03 14:46:16 -08:00
Soroosh Mariooryad
606cb64097 Fixing a bug in suggestion logging and adding more tests.
Test: RunSettingsRoboTests
Fixes: b/35802845

Change-Id: I216b3ff344ccdffd038d924649109483e80f5437
2017-03-03 10:18:52 -08:00
Anton Philippov
9a5220e7c3 Fix search results for backup settings.
Make BackupSettingsAcitivity searchable and remove PrivacySettings from
the search index.

Bug: 35720213
Test: make RunSettingsRoboTests -j40
Change-Id: Id2e091c978e4da078dcc6bc57760ec830e439c0c
2017-03-03 12:49:40 +00:00
TreeHugger Robot
ce6e17ddfe Merge "Set config for enabling support UI in Settings" 2017-03-03 04:21:38 +00:00
TreeHugger Robot
a9ee4e8649 Merge "Show uninstall for all users option menu in app info." 2017-03-03 04:19:07 +00:00
TreeHugger Robot
d749dfadcb Merge "Show settings app icon and name in recents" 2017-03-03 03:59:28 +00:00
Fan Zhang
801be627fc Share preference controllers between fragment/searchIndexer
Test: make RunSettingsRoboTests
Change-Id: I9042bac87b7c063b89c143d3089ed4d94f77b994
Fix: 35812240
2017-03-02 17:03:03 -08:00
Fan Zhang
6ff6add756 Set config for enabling support UI in Settings
Change-Id: I85b7c7a7e465084d534757e083667b67928b8e43
Fix: 35870668
Test: make RunSettingsRoboTests
2017-03-02 17:02:06 -08:00
jackqdyulei
64af489a6a Add type UNACCOUNTED("miscellaneous") in advanced battery page
This type is equal to DrainType.UNACCOUNTED.

Bug: 35926913
Test: RunSettingsRoboTests
Change-Id: I2be73a5220c6d674593508f2578e7c4f6e111ea9
2017-03-02 15:20:37 -08:00
Doris Ling
2508ed56ca Show uninstall for all users option menu in app info.
- when there is only 1 user installed the app, also check if it is
installed by the current user or by other user to determine whether or
not to show the uninstall for all button.

Change-Id: I1eecb13a7748c92159cb0626e2b6fe1ed6987d15
Fix: 34760157
Test: make RunSettingsRoboTests
2017-03-02 13:30:59 -08:00
Lei Yu
64fee1cfe1 Merge "Add metric enums for menu in battery settings page." 2017-03-02 21:05:44 +00:00
Antony Sargent
fa9da424a8 Merge "New design for instant apps in app details header" 2017-03-02 21:03:40 +00:00
jackqdyulei
6c355f5d4b Show settings app icon and name in recents
If user opens a settings activity by intent, it will show icon and
label get from activity. However, we should show settings app icon
and name constantly.

Bug: 34645742
Test: RunSettingsRoboTest
Change-Id: Ic2f0fef32529ba3f425a0130d25ead47fa0bb97d
2017-03-02 11:29:41 -08:00
jackqdyulei
b0b45c3225 Add metric enums for menu in battery settings page.
Bug: 35063415
Test: RunSettingsRoboTests
Change-Id: I23f58a73f7e17da56796687209610165dd688aa6
2017-03-02 11:24:17 -08:00
TreeHugger Robot
05c3333cbd Merge "Ensure DashboardFragment shares pref controlls with search" 2017-03-02 18:56:09 +00:00
Garfield Tan
6d3947e2c1 Merge "Remove DocumentsContract.ACTION_BROWSE." 2017-03-02 00:35:59 +00:00
TreeHugger Robot
90cbcce9e5 Merge "Fix crash when switching to fragment with null name." 2017-03-01 23:44:58 +00:00
Lei Yu
8f7cefe707 Merge "Hide bluetooth and media in battery settings page." 2017-03-01 22:27:33 +00:00
TreeHugger Robot
afb57ecc35 Merge "Let fragment and indexProvider share prefControllers" 2017-03-01 22:12:35 +00:00
Doris Ling
cb69baf8f6 Fix crash when switching to fragment with null name.
Check for null fragment name before trying to launch the fragment.

Change-Id: Ibee6f7a1f27f7bc7d556a600c7e43fd30c2f1d6c
Fix: 35203478
Test: make RunSettingsRoboTests
2017-03-01 13:53:46 -08:00
Fan Zhang
c1c708f979 Ensure DashboardFragment shares pref controlls with search
Test: make RunSettingsRoboTests
Change-Id: I48be270d9706539925d00874bae29d46406ac491
Fix: 35812240
2017-03-01 13:29:11 -08:00
jackqdyulei
44e8968662 Hide bluetooth and media in battery settings page.
Media is a bundled process which contains the following packages:

com.android.providers.downloads
com.android.mtp
com.android.providers.media
com.android.providers.downloads.ui

This cl moves them to advanced battery page.
1. Bluetooth lives in category bluetooth
2. Media lives in category system

Bug: 35811926
Test: RunSettingsRoboTests
Change-Id: Ie229fa15e2e62b67d571988f7f4e7788a665bcdd
2017-03-01 13:22:12 -08:00
Fan Zhang
b00811da64 Let fragment and indexProvider share prefControllers
Bug: 35812240
Test: make RunSettingsRoboTests
Change-Id: Ifd96f935836a52e0a56f170f3cdf9b9ddf7c499a
2017-03-01 12:56:58 -08:00
Daniel Nishi
021e7bc69b Merge "Use storage fast track to query packages in app info." 2017-03-01 20:55:01 +00:00
TreeHugger Robot
6c146f2ab5 Merge "Remove old code relating to SystemSettings not used in new IA." 2017-03-01 20:44:48 +00:00