Commit Graph

1146 Commits

Author SHA1 Message Date
Fan Zhang
2869157ba9 Display setting and support in a tab layout - DO NOT MERGE
Bug: 28269035
Bug: 28139604
2016-04-20 11:42:15 -07:00
Jason Monk
9cc4a117ef Merge "Potential fix for receiver leak problem" into nyc-dev am: 623a289 am: 523f522
am: 9bb25af

* commit '9bb25af64652c40de3a96b993810f61f6b5b6697':
  Potential fix for receiver leak problem

Change-Id: I1f0ef0c093637e9b954e52138198e558223a83d5
2016-04-20 14:08:20 +00:00
Jason Monk
623a289b9a Merge "Potential fix for receiver leak problem" into nyc-dev 2016-04-20 13:49:32 +00:00
Fan Zhang
6fca010cd6 Merge "Request SupportFeatureProvider to provide a support tab." 2016-04-19 17:13:16 +00:00
Fan Zhang
bd1c27ee1e Request SupportFeatureProvider to provide a support tab.
Bug: 28139604

In dashboard container, if supportFeatureProvider is able to provide a
tab, we display it in tabbed layout. Otherwise, display just
DashboardSummary without changing UI.

Change-Id: Ib7601ac925e1315e6b0928d020fe2d09bd389cd7
2016-04-19 08:30:20 -07:00
Zoltan Szatmary-Ban
f533314aad Merge "Apply policy transparency to HotspotCondition and WiFi settings..." into nyc-dev am: 295f106 am: f89218e
am: c82afdc

* commit 'c82afdc5dc24d311b29bcbcc6889924d8b39ef2c':
  Apply policy transparency to HotspotCondition and WiFi settings...

Change-Id: I13deb3633ef6c6606498f8152f6395c37a015f90
2016-04-19 13:38:35 +00:00
Zoltan Szatmary-Ban
295f1060e9 Merge "Apply policy transparency to HotspotCondition and WiFi settings..." into nyc-dev 2016-04-19 13:25:22 +00:00
Jason Monk
8ab081e304 Potential fix for receiver leak problem
The background thread is not stopping listening fast enough and is
resulting in first a receiver leak message followed by a crash when
trying to finally unregister the receiver.

Fix this by adding a registerReceiver to SummaryLoader that will
automatically unregister the receiver on the main thread to ensure
it happens in time.

Change-Id: I0104e929d5505eb53993f6765e4c90120df35cf6
Fixes: 28211606
2016-04-18 15:30:42 -04:00
Zoltan Szatmary-Ban
3f6208170d Apply policy transparency to HotspotCondition and WiFi settings...
...when there is an active hotspot and user restriction for disallowing
tether config is in effect. This is to avoid getting security exceptions
from WifiManager when engaging with HotspotCondition or Wifi enable switch.

Bug:27936528
Change-Id: Ib3324e853277c177966b55668758d349ffe6ecf5
2016-04-15 16:13:27 +01:00
Benjamin Franz
70d759c131 Merge "Only try disabling quiet mode" into nyc-dev am: 89726fd
am: e4a793f

* commit 'e4a793f02d44f371ac465a0fc928f1bcf50dd642':
  Only try disabling quiet mode

Change-Id: I971956822a2d874180311d78fa163faacb804773
2016-04-15 14:58:15 +00:00
Benjamin Franz
89726fd952 Merge "Only try disabling quiet mode" into nyc-dev 2016-04-15 14:53:16 +00:00
Jason Monk
73a4d4eb06 Merge "Don\'t debug log on ConditionManager" into nyc-dev am: 452e371
am: 2f781b7

* commit '2f781b7401a6bfbf8ddc5bd589c89dc1a5e36aee':
  Don't debug log on ConditionManager

Change-Id: Ic85a694889e0402701a282c2cfe04ff7892b8532
2016-04-14 20:29:11 +00:00
Jason Monk
452e371aa1 Merge "Don't debug log on ConditionManager" into nyc-dev 2016-04-14 13:14:44 +00:00
Jason Monk
d49a846a39 Don't debug log on ConditionManager
Change-Id: I383c8ca4cfea732ace8213a17df375babad5f793
2016-04-13 15:30:07 -04:00
Jason Monk
3948712e7c Merge "Settings dashboard tablet fixes" into nyc-dev am: 906927f
am: e6a98a0

* commit 'e6a98a0e17d830740e95358c12abe0b38864c5f4':
  Settings dashboard tablet fixes

Change-Id: Iec6c67b5250bfacd8d795c48aae726e24e5d0be5
2016-04-13 19:28:51 +00:00
Benjamin Franz
e00cd80a1e Only try disabling quiet mode
The underlying API has slightly changed to require the profile
challenge if the profile that we're trying to enable hasn't been
unlocked yet.

Bug: 27764124
Change-Id: I9efb3d3ed49034b573abb4c18119ffadcccfe947
2016-04-13 19:14:37 +01:00
Jason Monk
79f3706785 Settings dashboard tablet fixes
Change-Id: I21b306f6932af4fc2c5b79feeba60cdd820e2b8a
Fixes: 27834674
2016-04-13 12:24:54 -04:00
Jason Monk
c87aacb169 Work on settings startup speed
- Cut down on amount stored in conditions xml
 - Remove extra work from dashboard startup
 - Move summary to min priority

Change-Id: I51ca3828e4446632d6faa60dcfbab3446d19d335
Fixes: 28134360
2016-04-13 10:18:24 -04:00
Jason Monk
5673ced93c Work on settings startup speed
- Cut down on amount stored in conditions xml
 - Remove extra work from dashboard startup
 - Move summary to min priority

Change-Id: I51ca3828e4446632d6faa60dcfbab3446d19d335
Fixes: 28134360
2016-04-12 15:19:50 -04:00
Fan Zhang
4bffbdb928 Revert "Add suggestion carousel view and dependencies to settings"
This reverts commit 0050ac0bb7.

Change-Id: Ic61137bae0fa1a6de5ba4970e8a3a3b4fe0469a3
2016-04-11 09:56:46 -07:00
Fan Zhang
3645373b6f Remove DashboardStatusFragment and hide sliding tab layout.
Bug: 28090184
Change-Id: I34ff46d0f5ba87c824d1484f1018fad154696e15
2016-04-11 09:56:39 -07:00
Fan Zhang
872c61249b Revert "Add a RecyclerView adapter for first tab in settings."
This reverts commit 44e7be1289.

Change-Id: I1391f41a19526ebd02a0c06e628fb1e18d454a71
2016-04-11 09:13:16 -07:00
Fan Zhang
dcb2b500d4 Revert "Dashboard status cards UI."
This reverts commit d42e233bf0.

Change-Id: I58b4bcb2e153da26fb043bff2ce58d2c474b567b
2016-04-11 08:41:22 -07:00
Jason Monk
19fad2550e Merge "Settings tweaks" 2016-04-11 13:24:38 +00:00
Jason Monk
c19eb986f3 Settings tweaks
Change-Id: I68829fa8e49534d4635a008c94dced3c7ab6f4b1
Fixes: 27834471
Fixes: 27834626
Fixes: 27567838
Fixes: 27834676
2016-04-11 09:21:24 -04:00
Suprabh Shukla
2775de111b Fixed obsolete import
Change-Id: Ibee0284c61f3e559efeb9a28788b55e86a8355c6
2016-04-10 02:15:07 +00:00
Jason Monk
db3fcfb7cb Merge "Settings tweaks" into nyc-dev 2016-04-08 20:46:49 +00:00
Jason Monk
be8d5aa2b9 Settings tweaks
Change-Id: I68829fa8e49534d4635a008c94dced3c7ab6f4b1
Fixes: 27834471
Fixes: 27834626
Fixes: 27567838
Fixes: 27834676
2016-04-08 16:44:31 -04:00
Suprabh Shukla
1d464b9677 Merge "Moving HelpUtils to SettingsLib" into nyc-dev 2016-04-08 19:31:37 +00:00
Fan Zhang
d42e233bf0 Dashboard status cards UI.
Bug: 27907841

This adds a card view type to display status in Settings dashboard. Also
added necessary pieces to layout status and condition views properly.

The data for status is not wired up yet.

Change-Id: I8ed624177645f389ec0bb71420f073c6dbc03ccb
2016-04-07 13:23:37 -07:00
Fan Zhang
a911917162 Merge "Add a RecyclerView adapter for first tab in settings." 2016-04-06 20:40:28 +00:00
Fan Zhang
228a0e49c2 Merge "Fix animation when expand conditional notices in Settings." into nyc-dev am: df634d0
am: 4b2519d

* commit '4b2519d3c1d1030cae6212e37565ecf42bbef5b2':
  Fix animation when expand conditional notices in Settings.

Change-Id: I8109c31e037d2bedba15965210b74fef41077ac1
2016-04-06 19:31:51 +00:00
Fan Zhang
44e7be1289 Add a RecyclerView adapter for first tab in settings.
Bug: 27907841

The new adapter eventually will contain: conditionals, status,
suggestions.

Change-Id: I62f9db3db6557b16255ad94e2ce166b3c376e1bb
2016-04-06 10:13:38 -07:00
Fan Zhang
905002a01d Fix animation when expand conditional notices in Settings.
Bug: 28017593
Change-Id: I8275cb2050f79d26e58c02ffd91cb1a3e32a5ff2
2016-04-06 10:07:03 -07:00
Suprabh Shukla
b84720c075 Moving HelpUtils to SettingsLib
Moved HelpUtils to SettingsLib in frameworks/base so it can be shared by
packageinstaller as well.

Bug: b/22096093
Change-Id: I8d620abcde8279a3b4d11bbcff8ae9b6f46a1895
2016-04-05 14:37:33 -07:00
Rachel Zhang
12b2261033 Merge "Add suggestion carousel view and dependencies to settings" 2016-04-01 17:35:47 +00:00
Fan Zhang
e5287f10ce Merge "Add an empty status fragment for status and suggestions." 2016-04-01 16:08:48 +00:00
Fan Zhang
3feafd22ed Add an empty status fragment for status and suggestions.
Bug: 27927402

Also add a TabLayout to show title for these fragments, inspired by
http://goo.gl/aOt51Q

Change-Id: I40bab3075480670558ac9a896337109f10e8c90c
2016-04-01 09:07:31 -07:00
Fan Zhang
d9d21d6cb1 Move actionbar menu from DashboardSummary to container.
Bug: 27751187
Change-Id: I7730f104805abcbb6d243fccac94e39fad26ddd2
2016-03-31 15:33:45 -07:00
Rachel Zhang
0050ac0bb7 Add suggestion carousel view and dependencies to settings
Bug: 27752219
Change-Id: Idc14227990c902c04de5bfb6649efb6da64c9168
2016-03-31 14:12:26 -07:00
Christopher Tate
a8fe48881e Merge "Track in-progress wallpaper API changes" into nyc-dev am: cb77df2
am: e714194

* commit 'e7141949edd4c5aeb4366e8e773cc6f16ade2950':
  Track in-progress wallpaper API changes

Change-Id: I6ad24595aee24d5ce3be7e8e230295e9cca6fa2e
2016-03-31 19:42:42 +00:00
Chris Tate
cb77df2260 Merge "Track in-progress wallpaper API changes" into nyc-dev 2016-03-31 19:24:41 +00:00
Jason Monk
a37aca16ea Merge "Fix missing summaries" into nyc-dev am: 8143d2a
am: f3a5f79

* commit 'f3a5f7986d41f126d6589296b207285247fb4f8e':
  Fix missing summaries

Change-Id: I6dc00e18687f801a23e12204b7627935bbc90e74
2016-03-31 18:10:30 +00:00
Jason Monk
c064573265 Fix missing summaries
Handle non-cached tiles by doing lookup from component name.

Change-Id: I979e2df2eed4a065f290c5c0e66276d08b4fb0af
Fixes: 27942733
2016-03-31 13:59:46 -04:00
Christopher Tate
25e59e9767 Track in-progress wallpaper API changes
FLAG_*, not FLAG_SET_*

Bug 27365822

Change-Id: I5cb4dbfd251519a80997a86d3010f19240b9ff23
2016-03-31 09:56:37 -07:00
Jason Monk
6de2d0a5a3 Merge changes from topic \'SettingsMetrics\' into nyc-dev am: 50b9592
am: 5c4e4bc

* commit '5c4e4bcb63bcf01907a0b871b4793a029ddb1968':
  Add metrics for suggestions
  Add metrics for settings conditionals

Change-Id: Ic33116cf8ef78094a026ef61514019769e44e674
2016-03-31 15:50:44 +00:00
Jason Monk
45fda2734a Add metrics for suggestions
Bug: 27851236
Change-Id: Ia5aa1d42a40ba09a19db3c3790f0a7342660e613
2016-03-30 16:05:29 -04:00
Jason Monk
f20c718f19 Add metrics for settings conditionals
Bug: 27851236
Change-Id: I400716457d3f628419410a02c2a457d41d19a067
2016-03-30 15:46:26 -04:00
Fan Zhang
94df695453 Add a DashboardContainerFragment to host DashboardSummary.
Eventually the container fragment will host more dashboard-type
fragments. For now it's just DashboardSummary.

Change-Id: I217ad71c2f2bbc4b7247c9dd2c3c2b8c8660d945
2016-03-28 09:35:14 -07:00
Jason Monk
decc767f26 Guard against monkey crash.
Bug: 27784445
Change-Id: I4ba6e02e0cdb6857661a824ae0888feac6762a05
2016-03-22 09:17:12 -07:00