Commit Graph

34096 Commits

Author SHA1 Message Date
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
Adrian Roos
73c52f291d SecuritySubSettings: Show trust agent label on lock timeout setting
Fixes: 35475555
Test: Observe description of 'Automatically lock' and 'Power button instantly locks' options, should mention trust agent when one is enabled.
Change-Id: I7967e44d5155c6620dc44cc4d284a8470166d687
2017-02-28 16:16:42 -08:00
Lei Yu
d030d7b58f Merge "Add batterysipper type check in PowerUsageFeatureProvider" 2017-03-01 00:04:12 +00:00
Doris Ling
f5f6635c77 Merge "Remove old code from SoundSettings not used in new IA." 2017-03-01 00:00:40 +00:00
TreeHugger Robot
a0cf877ce0 Merge "Remove drawer from settings" 2017-02-28 23:38:46 +00:00
TreeHugger Robot
80513838de Merge "Allow switch preferences to span lines." 2017-02-28 23:32:13 +00:00
Antony Sargent
d06aaa8fd0 New design for instant apps in app details header
Bug: 35098444
Test: make RunSettingsRoboTests

In the previous design for instant apps, some metadata about the app
such as developer title, maturity rating, etc. was going to be shown
in the app header. In the latest design, we instead are just showing
a little label that says "Instant app".

The two CL's for this topic work together to change this:

frameworks/base : adds code to work around the problem that
robolectric doesn't know about the new isInstantApp method of the
ApplicationInfo class, so we need to avoid calling it during tests.

pacakges/apps/Settings: removes the code that previously displayed
the instant app metadata, and instead just insert the "Instant app"
label.

Change-Id: I2cbc70bf4827c401e862c58ea4ca7f8f9ba1cf58
2017-02-28 14:30:05 -08:00
Daniel Nishi
1b2886720b Fix capitalization on Photos & videos.
Bug: 35712292
Test: Manual
Change-Id: Iad4c10527a44f62fcf6a634af61149df5b65c56a
2017-02-28 14:26:11 -08:00
TreeHugger Robot
1f1be36aee Merge "Remove ParcelableString references" 2017-02-28 22:09:06 +00:00
Doris Ling
4731167500 Remove old code from SoundSettings not used in new IA.
- remove the old sound settings xml
- merge Sound Dashboard metadata into SiybdSettingsActivity instead
and remove Sound Dashboard.
- remove OtherSoundSettings

Bug: 35764802
Test: make RunSettingsRoboTests
Change-Id: I25bb94b375cfe0277b3c961e4bee6fec9a14fb98
2017-02-28 14:02:54 -08:00
TreeHugger Robot
b567ff46c3 Merge "Remove old code from DisplaySettings not used in new IA." 2017-02-28 21:33:32 +00:00
Julia Reynolds
762a733afa Allow switch preferences to span lines.
Test: manual
Change-Id: Ifcc801873ed143c4d9ceb6fb928c276808a95f81
2017-02-28 16:30:48 -05:00
Daniel Nishi
73a1c2afb3 Use the new package stats query.
This allows us to remove the logic w.r.t. uid merging.

Bug: 35754646
Test: StorageAsyncLoaderTest
Change-Id: I93aff1d55e0e761269c135f0e821ed2067eeda06
2017-02-28 13:30:13 -08:00
TreeHugger Robot
88d9977b88 Merge "Add a content description to the app info button." 2017-02-28 21:12:40 +00:00
Doris Ling
c626f00b01 Remove old code from DisplaySettings not used in new IA.
- removed the old display settings xml
- merge DisplayDashboard metadata into DisplaySettingsActivity instead
and remove DisplayDashboard.

Bug: 35764802
Test: make RunSettingsRoboTests
Change-Id: I9280c9b5c586acd9d97602b0fb12025fafca8af5
2017-02-28 11:52:55 -08:00
Daniel Nishi
93e08ebf80 Add a content description to the app info button.
This resolves an issue where Talkback would call the
app info button "unlabelled."

Change-Id: I59d8639584c48d8eeb7640bdac3d18bc7667009f
Fixes: 35338852
Test: Settings Robotest
2017-02-28 11:04:05 -08:00
Daniel Nishi
4bc25cc224 Merge "Use "Music & audio" as the title for the music view." 2017-02-28 18:01:38 +00:00
Antony Sargent
a24d7d4ccd Merge "Increase character limit for filter_instant_apps string in Settings" 2017-02-28 17:52:30 +00:00
William Luh
c8c6c4b1c7 Merge "Query the security feature provider on separate threads." 2017-02-28 17:20:32 +00:00
TreeHugger Robot
92033fdb6f Merge "Import translations. DO NOT MERGE" 2017-02-28 08:01:02 +00:00
jackqdyulei
238c1c000b Add batterysipper type check in PowerUsageFeatureProvider
This cl adds isTypeSystem to PowerUsageFeatureProvider and
changes isTypeService. After this cl, the following items will
be moved to advanced battery page:
1. Calendar Storage(Move to System)
2. MediaServer(Move to System)

Create this check in FeatureProvider to make sure this check
is flexible in different cases. Also refactor the PowerUsageSummary
to use same test fragment

Bug: 35629871
Bug: 35628690
Bug: 35317876
Test: RunSettingsRoboTest
Change-Id: I8c083cb2557a7e900aea01e682c13a000bacb7a9
2017-02-27 19:42:22 -08:00
Bill Yi
216107c857 Import translations. DO NOT MERGE
Change-Id: I66b665fc65a0a0bb316196f621b96882ea038f2b
Auto-generated-cl: translation import
2017-02-27 18:31:19 -08:00
TreeHugger Robot
a4c1a27672 Merge "Fix empty summary when no theme is set." 2017-02-28 02:12:23 +00:00
Fan Zhang
78ab9f98de Remove drawer from settings
Change-Id: Ib11376206cf8366c86c427104c47740c3ca8b0d0
Fix: 35809663
Test: make RunSettingsRoboTests
2017-02-27 17:45:05 -08:00
Daniel Nishi
b6059a9e98 Use "Music & audio" as the title for the music view.
Change-Id: I33bc5ccf55ee09842368b2fd4a83b9fd492eded0
Fixes: 35713002
Test: Manual
2017-02-28 01:36:22 +00:00