Commit Graph

32994 Commits

Author SHA1 Message Date
Fan Zhang
a96b11f65d Build a sitemap manager to keep track of breadcrumbs
- Have a new db to track parent-child page relation at index time.
- Make a registry class to track (in IA) which page host what type of
  sub pages.
- Make a manager class that queries the db as well as IA to compute
  breadcrumbs

Fix: 32936784
Test: RunSettingsRoboTest

Change-Id: I5f1583fae772c3d477d2ad186e111b79cc3e41aa
2017-01-23 20:41:39 -08:00
TreeHugger Robot
03cd212f17 Merge "Full screen default app fragment" 2017-01-24 01:38:43 +00:00
Fan Zhang
35692cf439 Full screen default app fragment
Fix: 34280137
Test: make RunSettingsRoboTests
Change-Id: Ib44e39589781d68c7952a2c16a44682791a422f1
2017-01-23 16:08:42 -08:00
Bartosz Fabianowski
f1587900a5 Merge "Show DO Disclosures for secondary users" 2017-01-23 22:09:39 +00:00
TreeHugger Robot
6a03a92e42 Merge "Add power management settings into Settings->Battery" 2017-01-23 21:07:30 +00:00
TreeHugger Robot
1c750fb7c0 Merge "Update WebView implementation Dev Setting - new looks + descriptions." 2017-01-23 20:20:17 +00:00
TreeHugger Robot
b90264c993 Merge "Distribute battery cost of screen to all the other apps." 2017-01-23 19:55:50 +00:00
Stefano Tommasini
73076b03d6 Merge "Add SuggestionFeatureProvider interface." into nyc-mr2-dev am: bd16255ee1
am: 698862f60d

Change-Id: Ibe7321cb8ce937e43ec10696ad6f6a8d54b77657
2017-01-23 19:09:55 +00:00
Gustav Sennton
4d3334c50b Update WebView implementation Dev Setting - new looks + descriptions.
Now that we are changing the WebView package mechanism so that a package
can only be used as WebView implementation if that package is enabled
for all users of the device we need to tell the user why a package can't
be chosen as WebView implementation.
With this CL we do so in the 'Set WebView Implementation' Developer
Setting.

We code for the WebView implementation Developer Setting is now based on
the same code as that of the Debug App Developer Setting.

Bug: 32894154
Test: Ensure WebView Implementation setting shows correct packages.
Test: Ensure WebView Implementation setting shows correct descriptions
for why a package is not usable - including the case where packages are
disabled/uninstalled for a second user.
Test: Ensure the summary for the WebView Implmentation setting is
updated after changing WebView package.
Test: Ensure the WebView package Activity
(Settings.ACTION_WEBVIEW_SETTINGS) is similar to the Dev Setting.
Test: ensure non-admin user cannot start WV-picker activity through
'adb shell am start -n com.android.settings/.WebViewImplementation'

Change-Id: Ia6e6e9e12ce8f8f45ec539807cd0c6479acb8ecb
2017-01-23 18:34:11 +00:00
jackqdyulei
722fc818c7 Add power management settings into Settings->Battery
The items been added to group are: Adaptive brightness, Sleep.
Battery saver has been moved into this group as well.

Also refactor the code a little bit to make it fit the
preferenceController. Whole refactor of PowerUsageSummary and
PowerUsageDetail will be tracked in b/34386721

Bug: 34279051
Test: runSettingsRoboTests & Screenshot
Change-Id: I702d8479d1b80f7e9cf1a46752c75bf5d189e0f6
2017-01-23 10:20:07 -08:00
Stefanot
f4e0650713 Merge commit 'eecfc2c5f7513c1d5f7eb352575f54c7d0a792b5' into manual_merge_eecfc2c5f7
Change-Id: Ic6dac401be7f823931954741fa8914986226eb1c
2017-01-23 10:51:26 +00:00
Fan Zhang
d9d463be8b Merge "Add basic breadcrumb on search result." 2017-01-22 18:24:28 +00:00
Fan Zhang
bde3ce5ebc Merge "Add screen title to prefs." 2017-01-22 17:57:24 +00:00
Fan Zhang
9b346968e8 Add screen title to prefs.
Scanned prefs that we currently index and added screen title if the root
node didn't have any.

Bug: 32936784
Test: reindex db and verify through sqlite3.
Change-Id: Iafdff982e04bd45c8666bfdd01d312f5979f9681
2017-01-21 14:54:05 -08:00
Fan Zhang
248d95c618 Add basic breadcrumb on search result.
- Some line formatting
- Some UI tweak to make it more polished
- Updated the way we generate docid
- Use screen title as leaf level breadcrumb and display on UI (TBD how
  to get parent level titles)
- Hardcode breadcrumb for installed app results

Bug: 32936784
Test: make RunSettingsRoboTests
Change-Id: I18e0780f91b1123bbf25cd99adf2e2a5f684a83c
2017-01-21 14:02:09 -08:00
TreeHugger Robot
fac57416b8 Merge "Misc fix on settings themes." 2017-01-21 21:17:49 +00:00
Stefano Tommasini
698862f60d Merge "Add SuggestionFeatureProvider interface." into nyc-mr2-dev
am: bd16255ee1

Change-Id: Ia13886f7e3214e355db017b4463a956c0971b021
2017-01-21 19:50:24 +00:00
Stefanot
eecfc2c5f7 Add SuggestionFeatureProvider interface.
am: 2eac39b393

Change-Id: I87fae019229983b97c19710b6cf73f4e1d05dff1
2017-01-21 19:50:22 +00:00
Stefano Tommasini
bd16255ee1 Merge "Add SuggestionFeatureProvider interface." into nyc-mr2-dev 2017-01-21 19:44:16 +00:00
Fan Zhang
92f1e942da Misc fix on settings themes.
- Use dark status bar for confirmDeviceCreditials theme to match dark
  window background
- Remove SubSettingsDialogWhenLarge theme in favor of full screen
  settings for O.
- Update font/dize preview text color to match light background

Bug: 33558692
Test: visual

Change-Id: Id8704c96e2ce35247e80e50eefd531786479b193
2017-01-21 11:10:06 -08:00
Stefanot
2eac39b393 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-21 14:34:04 +00:00
Shahriyar Amini
48717f5c2d Merge "Add security status icons." 2017-01-21 02:48:05 +00:00
jackqdyulei
aedeb71d84 Distribute battery cost of screen to all the other apps.
It doesn't make sense to show battery cost of "SCREEN". In this cl, I
attribute this cost to all the other apps/services.

Bug: 34390125
Test: RunSettingsRoboTests
Change-Id: Ia6ff39d5fa21eacf1ff97a28e2ff59d1cf169885
2017-01-20 18:42:26 -08:00
TreeHugger Robot
32bc813f04 Merge "Add new preference class MasterSwitchPreference." 2017-01-21 02:00:06 +00:00
Bill Yi
1c75f44eb3 Import translations. DO NOT MERGE am: 2c570117a8 -s ours
am: f8a7c81d66  -s ours

Change-Id: Ieb5ae5ad705792a6ba87f182531bca9666cddb4d
2017-01-21 01:26:03 +00:00
Bill Yi
f8a7c81d66 Import translations. DO NOT MERGE
am: 2c570117a8  -s ours

Change-Id: Ibffbb54ef91658ce4df98228fd4e672995fa9aec
2017-01-21 01:21:06 +00:00
TreeHugger Robot
2ecdc2514f Merge "Showing recents in search" 2017-01-21 00:41:25 +00:00
TreeHugger Robot
8e6cc9b8ed Merge "Fix installed app search query." 2017-01-21 00:21:17 +00:00
Doris Ling
1432cb8529 Add new preference class MasterSwitchPreference.
- Add a new preference type that has Title and optional summary on the
  left, and a toggle switch on the right. Clicking the left part of the
  preference will open a settings screen.
- Update Connected devices->Bluetooth to use this new preference.
- Refactor BluetoothSettings and BluetoothEnabler to share code between
  the new bluetooth preference controller and the bluetooth setting.

Bug: 34280769
Test: make RunSettingsRoboTests
Change-Id: I109ecdba640ecdd4748a6e5b2b4f4c47cbf653fd
2017-01-20 16:19:00 -08:00
TreeHugger Robot
7ba9162af6 Merge "Remove char limit from summary strings." 2017-01-20 23:16:17 +00:00
Shahriyar Amini
a25afbbaaa Add security status icons.
Bug: 31002801
Test: make RunSettingsRoboTests

Also tested manually in app.

Change-Id: I7496d9910657600c381202c0f3f78315e2de42ad
2017-01-20 15:11:42 -08:00
Fan Zhang
ba83109807 Fix installed app search query.
Now it shows system apps when user query match name.

Change-Id: Ic4d622d2d4872554172e34aa9be250b36a3c3da3
Fix: 34257148
Test: make RunSettingsRoboTests
2017-01-20 14:53:37 -08:00
Fan Zhang
a8b089db8a Showing recents in search
A list of recent queries will display when search first launches, or
when text query is empty.

Fix: 32452066
Test: make RunSettingsRoboTests
Change-Id: Ic697f8c0795f2315a01406537c7ce1bbf9a813be
2017-01-20 14:50:15 -08:00
Michal Karpinski
e44be9f729 Merge "Check for whether fingerprint can be used in work challenge moved from onCreate() to onResume()" 2017-01-20 22:02:35 +00:00
Amin Shaikh
dfb11d1642 Remove char limit from summary strings.
The summary wraps to the next line, so the limit was unnecessary.

Test: make
Bug: 34443635
Change-Id: Ie0392405ad1afc62c5aa56cd70f7c5e7c6a5b1c4
2017-01-20 13:20:55 -08:00
TreeHugger Robot
3c89f50119 Merge "Index input & gesture settings page." 2017-01-20 21:15:12 +00:00
Bill Yi
2c570117a8 Import translations. DO NOT MERGE
Change-Id: I6aed674efc270223bddfd6fbdae50a98ae695276
Auto-generated-cl: translation import
2017-01-20 12:31:51 -08:00
Michal Karpinski
35c32db800 Check for whether fingerprint can be used in work challenge moved
from onCreate() to onResume()

Test: manual
Bug: 29825955
Change-Id: Id01a21fecf395ba29858e099947eeb83a4cee8fc
2017-01-20 19:16:15 +00:00
Fan Zhang
f10a5a22d0 Index input & gesture settings page.
Test: make RunSettingsRoboTests -j40
Change-Id: Ifbd68d596838b05e47d228396f266316b90a0f27
2017-01-20 11:10:07 -08:00
TreeHugger Robot
7ce10b653b Merge "Show closed friction icon for saved and secure networks." 2017-01-20 18:52:21 +00:00
TreeHugger Robot
2f2d982f67 Merge "[Sound Settings] Act on managed user added/removed" 2017-01-20 18:31:41 +00:00
Lei Yu
589bb08f49 Merge "Remove OS items in battery main page." 2017-01-20 17:59:35 +00:00
TreeHugger Robot
a909a54835 Merge "Change theme base back to Theme.DeviceDefault.Settings" 2017-01-20 17:20:08 +00:00
Julia Reynolds
37d64387a3 Merge "Show deleted channels." 2017-01-20 14:30:23 +00:00
Bartosz Fabianowski
bf80bde9e8 Show DO Disclosures for secondary users
DO Disclosures should be shown for all users, including secondary.
This used to be the case in the original Settings UI but got lost
in the switch to the new IA.

Bug: 34121792
Test: Manual
Change-Id: I1ffcf34c4f98abd83aafaefebcf1e87808e42730
2017-01-20 15:24:13 +01:00
TreeHugger Robot
60c7f095d5 Merge "Adding Manage External Sources Settings" 2017-01-20 12:08:20 +00:00
TreeHugger Robot
98df9a43c5 Merge "Permission changes for scoring in Wifi Picker." 2017-01-20 02:03:33 +00:00
TreeHugger Robot
12587f0348 Merge "Tron metric for force stop app" 2017-01-20 01:31:12 +00:00
Stephen Chen
59882384f3 Show closed friction icon for saved and secure networks.
This is a temporary adjustment for the friction UI logic, will
make a more permanent refactor when design decisions are finalized.

Test: manual inspection.
Change-Id: I06cd02b1092ed7e29a36cc83a9de297c513cbac8
2017-01-19 17:28:44 -08:00
Jack He
e3ca36a060 Fix Bluetooth pairing dialogue crash am: e51972868c
am: 244ebc1e31  -s ours

Change-Id: I275eea31757afd6801cce5096a380b203fb4b763
2017-01-20 01:23:43 +00:00