Commit Graph

34170 Commits

Author SHA1 Message Date
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
roger xue
42cce1e610 move PermissionsSummaryHelper into SettingsLib to share with car settings
Bug: 34679894
Test: make RunSettingsRoboTests -j128
Change-Id: I53a3f3d8d2a05b33d2cff52a06236dd7d31dbe63
2017-03-02 16:12:29 -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
Daniel Nishi
dbc54a1736 Use the screen context when adding preferences.
When the context from the controller itself is used, it is
not the correct context and causes the created preferences to
be styled incorrectly. By using the screen's context directly,
we can ensure that the preferences inherit the correct style.

Change-Id: I02503e5f4fab8f8110e5d29bd3a479f0ce1d6aca
Fixes: 35891968
Test: Robotest
2017-03-02 15:08:29 -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
Julia Reynolds
ca662cc9a7 Notification channel group res id labels.
Test: manual
Change-Id: Icf7208dc952a7306f04d53f4d681ec794563f2fd
2017-03-02 16:02:17 -05:00
TreeHugger Robot
b79eec9e50 Merge "Align dropdown preference's dropdown with preference text" 2017-03-02 20:03:01 +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
Julia Reynolds
601d2cd991 Merge "Show localized channel names" 2017-03-02 17:50:13 +00:00
Peter Qiu
738695e5e8 Merge "wifi: use Passpoint API when forgetting a Passpoint network" am: ff960ed859 am: c5848718ee
am: d49c2ff80f

Change-Id: I2ffbf8cccd698cc8bd5145a7896243ea35107518
2017-03-02 17:01:27 +00:00
Peter Qiu
d49c2ff80f Merge "wifi: use Passpoint API when forgetting a Passpoint network" am: ff960ed859
am: c5848718ee

Change-Id: I05bf08cbd3231c5c6579c3a1949c24e0cccfd446
2017-03-02 16:59:23 +00:00
Peter Qiu
c5848718ee Merge "wifi: use Passpoint API when forgetting a Passpoint network"
am: ff960ed859

Change-Id: I0e085c5c31656c943d7674770ea9f28d963f2726
2017-03-02 16:57:25 +00:00
Treehugger Robot
ff960ed859 Merge "wifi: use Passpoint API when forgetting a Passpoint network" 2017-03-02 16:52:42 +00:00
Julia Reynolds
3327eac198 Show localized channel names
Test: manual
Change-Id: I85d60e564aeff8074cdb8138fe7ac1c078be986a
2017-03-02 10:35:33 -05:00
TreeHugger Robot
485cc446ac Merge "Change MaskableBitmap to AdaptiveBitmap Test: $ make dist -j30 b/35399620" 2017-03-02 15:15:43 +00:00
Fan Zhang
87e67b3366 Align dropdown preference's dropdown with preference text
Change-Id: I9446758464fd9220a2670df4203406ba49e24901
Fix: 35807231
Test: RunSettingsRoboTests
2017-03-01 17:47:19 -08:00
Garfield Tan
6d3947e2c1 Merge "Remove DocumentsContract.ACTION_BROWSE." 2017-03-02 00:35:59 +00:00
TreeHugger Robot
32fc861547 Merge "Display cast/print/storage settings to restricted users." 2017-03-02 00:25:30 +00:00
TreeHugger Robot
90cbcce9e5 Merge "Fix crash when switching to fragment with null name." 2017-03-01 23:44:58 +00:00
Hyunyoung Song
c9e36393d4 Change MaskableBitmap to AdaptiveBitmap
Test: $ make dist -j30
b/35399620

Change-Id: I2ee830a10ba5a5e51f1c885bca3b4c0d298c8501
2017-03-01 15:21:23 -08:00
Fan Zhang
c580b91cc4 Display cast/print/storage settings to restricted users.
Change-Id: Id974afe9062a6c04ae61502284e5219f637d7295
Fix: 35862198
Test: make RunSettingsRoboTests
2017-03-01 15:00:30 -08: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
TreeHugger Robot
58240e6a52 Merge "Remove Battery Dashboad alias." 2017-03-01 20:55:53 +00:00
Daniel Nishi
021e7bc69b Merge "Use storage fast track to query packages in app info." 2017-03-01 20:55:01 +00:00
Daniel Nishi
01a9935528 Merge "Use the new package stats query." 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
Garfield Tan
2d01be108d Remove DocumentsContract.ACTION_BROWSE.
Test: Code builds and tests pass.
Bug: 35760993
Change-Id: I7e540b71a7be60d250ffec899eb5c08941dc24a8
2017-03-01 12:09:56 -08:00
Li Bai
593d2faddf Merge "Change default long-press time to 400ms" am: b96cbedfb2 am: 957b15c9ae
am: b09610a3dc

Change-Id: If697d7d9fe6305379d7186425e57b17572e9b30e
2017-03-01 19:33:31 +00:00
long.x.qiao
a1a888f031 Merge "Show search results when query string contains trailing space" am: 8eb0c24e5a am: 19000b747c
am: e0e00077bc

Change-Id: I8f125b899dc80928ab884376f0bcf26908845d53
2017-03-01 19:31:29 +00:00
Li Bai
b09610a3dc Merge "Change default long-press time to 400ms" am: b96cbedfb2
am: 957b15c9ae

Change-Id: I7a0b5216e5551223b626b0ab1c7addf4cec2463c
2017-03-01 19:31:06 +00:00
long.x.qiao
e0e00077bc Merge "Show search results when query string contains trailing space" am: 8eb0c24e5a
am: 19000b747c

Change-Id: I250cc44ea08498ef751c3f9cf370b09b7cd0e39f
2017-03-01 19:28:43 +00:00
Li Bai
957b15c9ae Merge "Change default long-press time to 400ms"
am: b96cbedfb2

Change-Id: I953076ce2fe44fb96f2cfbd60e771694c225fc99
2017-03-01 19:28:38 +00:00
Treehugger Robot
b96cbedfb2 Merge "Change default long-press time to 400ms" 2017-03-01 19:26:16 +00:00
long.x.qiao
19000b747c Merge "Show search results when query string contains trailing space"
am: 8eb0c24e5a

Change-Id: Ic0382e8b3ce65b52ae2d77987ff4a79945fddb4f
2017-03-01 19:25:42 +00:00
Treehugger Robot
8eb0c24e5a Merge "Show search results when query string contains trailing space" 2017-03-01 19:20:26 +00:00
Doris Ling
4ffca2a8e5 Remove Battery Dashboad alias.
- merge Battery Dashboard metadata into PowerUsageSummary and remove
  Battery Dashboard alias.

Bug: 35764802
Test: make RunSettingsRoboTests
Change-Id: I7ed2e297f6b897e65b1bce2c9a5f426b51507e9c
2017-03-01 10:49:10 -08:00
Peter Qiu
4ec020a424 wifi: use Passpoint API when forgetting a Passpoint network
Use WifiManager#removePasspointConfiguration when forgetting a
Passpoint network to remove the configuration.

This maintains the legacy behavior, where forgetting a Passpoint
network/AP will remove its provider's profile.

Bug: 34207710
Test: manual test
Change-Id: I8b7f6d9fb20fa9f0f0d90566f76c2a39308ce420
2017-03-01 10:13:07 -08:00
long.x.qiao
9973b01489 Show search results when query string contains trailing space
The query expression used to search for a term prefix is the prefix
itself with a '*' character appended to it. However, if query string
contains trailing space, the query expresssion (e.g. "screen *") doesn't
work. So to fix this issue, the unnecessary trailing space should be
removed.

Bug: 35231587
Test: manual - go to search in Settings and enter "screen "

Change-Id: Ifa5d96f5d38ad5454272f140da440b8ff55d5614
2017-03-01 21:00:57 +09:00
Daniel Nishi
3344782bac Use storage fast track to query packages in app info.
App info used to use the old ApplicationsState path. This
removes the size query and replaces it with an AsyncTask to
load the sizes.

Fixes: 35805032
Test: Robotest
Change-Id: Ica1c88da2b407c3cbd4d7f970c7c44e4064393b3
2017-02-28 18:36:34 -08:00
Doris Ling
d299b03f28 Remove old code relating to SystemSettings not used in new IA.
- remove activity alias: DevelopmentSettingsDashboardAlias,
DateTimeDashboardAlias, AboutDeviceDashboardAlias,
BackupResetDashboardAlias, EnterprisePrivacyDashboardAlias, and
AccessibilityDashboardAlias and updated the corresponding target
activities with the alias metadata.

- remove InputMethodAndLanguageSettingsActivity and
GestureSettingsActivity and the associated xml.

Bug: 35764802
Test: make RunSettingsRoboTests
Change-Id: I7d4922f8dfaac40e8ad077a68008185cd9fe3304
2017-02-28 17:46:24 -08:00
Daniel Nishi
3ee0f4f5d0 Merge "Fix capitalization on Photos & videos." 2017-03-01 00:52:34 +00:00