9265 Commits

Author SHA1 Message Date
Svetoslav
5a554fb5b9 Merge "Update the color pallete of the print options UI." into lmp-dev 2014-07-15 16:05:07 +00:00
Svetoslav
fd9369c7ae Update the color pallete of the print options UI.
The print options UI now uses the material theme with custom
branding collors that follow the rest of the system UI.

bug:16301325

Change-Id: I5fefcd95ada0172a028574550dcfdf628f9ce22d
2014-07-15 11:40:09 -07:00
Dan Sandler
6d8edb1170 Merge "Pressed the "dim" button on the clock one too many times." into lmp-dev 2014-07-15 16:05:45 +00:00
Dan Sandler
bd8797616d Pressed the "dim" button on the clock one too many times.
Bug: 16202293
Change-Id: I0d1c746bb775f56db018c231a296daca848e9235
2014-07-15 13:38:41 -04:00
Winson Chung
82c8c5e987 DO NOT MERGE Using a fixed sized ImageView to prevent unnecessary layouts.
- Preparing for task view clipping using the view outline

Change-Id: I4aae4189a759a48057f1e3729cc2a9e6d553c11e
2014-07-15 17:25:21 +00:00
John Spurlock
a7cf5597e3 QS: Fix bug in header toggle switch.
Bug:16314528
Change-Id: Ia6061c61bbbad73862d2e63331135b324f102feb
2014-07-15 10:56:46 -04:00
Adrian Roos
945654188e Merge "Make user switcher appear inside the QS panel" into lmp-dev 2014-07-14 21:09:14 +00:00
Adrian Roos
1ef80fe590 Make user switcher appear inside the QS panel
Bug: 15545213
Change-Id: I0f15214a7474ae5303c3af0b7ef6f6a11be572b8
2014-07-15 15:43:31 +02:00
Wei Liu
b7697c698b am c84e73d1: am 9d43fa84: Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
* commit 'c84e73d1035d99743da243a202c1499f70518620':
  Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
2014-07-15 00:49:30 +00:00
Wei Liu
c84e73d103 am 9d43fa84: Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
* commit '9d43fa84054dc3c0229f5138495f6b6cdf0477db':
  Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
2014-07-14 23:18:00 +00:00
Adrian Roos
5f1652c285 Add strings for QS user switcher
Bug: 15545213
Change-Id: Iec98b704cd4b662d3cc5ff0b76671d44f93837d5
2014-07-14 22:39:54 +02:00
Winson Chung
85cfec811e Fixing potential crash when attemping to read null thumbnail (Bug. 16289301)
- Refactoring to remove unnecessary updates of RecentsConfiguration
- Removing unused logs

Change-Id: If427e565ab7260009ffb9be8ca45ba833c8262af
2014-07-14 21:52:34 +00:00
Adrian Roos
915fcd1075 Merge "Add strings for QS user switcher" into lmp-dev 2014-07-14 18:40:56 +00:00
Svetoslav
17d734fee4 Page size not always adjusted
A user can select the pages to print by selecting a range from the
UI after which the selected pages appear in the preview list. Now
the user can further prune pages by clicking on them. If the number
of pages change to two or one the page position and size were not
adjusted. Now after the constraints of desected by clicking pages
are propafated the page size position is also computed.

bug:16297811

Change-Id: I62c0ae8ab5b1d91b120cbf9faa9653ef4ccbd97f
2014-07-14 13:31:23 -07:00
Svet Ganov
25885ecbe4 Rename historical records if printer name changed.
We keep track of previously used printers. It is possible that the name
of a previously used printer changed. In this case we want to change
this printer's name in the historical records to be able to show the
correct name in the UI when loading the history.

bug:13524346

Change-Id: I0a37bd52a564df5a84c816abfcf03db83de93b97
2014-07-14 17:28:01 +00:00
Winson Chung
fbff489167 Merge "DO NOT MERGE Fixing some regressions" into lmp-dev 2014-07-14 17:14:37 +00:00
Winson Chung
93748a11cb DO NOT MERGE Fixing some regressions
- Removing some legacy code with task loading
- Ensure that doze triggers are set correctly on configuration change
- Adding WCAGv2 contrast checking for deciding which foreground color to use for labels
- Bumping up the max thumbnail cache size slightly
- Fixing case where visibility state was not correct if you toggle recents too quickly

Change-Id: I5e954890d53948547842edce3c76c34d74e180a8
(cherry picked from commit e99e1009ce49caf220aa51c044ed53ac0a3b7cc6)
2014-07-14 17:11:48 +00:00
John Spurlock
33f4e04e32 Volume: Delay adjustments made when showing ringer UI.
Since the volume rocker is now the primary system UI for
entering ringer modes, we need to provide a way to display
the ui without making a sound.

Change the policy for the ringer stream to only display the
UI on the initial adjustment request, don't actually make
an adjustment.  However, don't break previous ability to
press and hold the vol keys down to vibrate, so allow this
after the standard framework long-press delay.

Audio service had no way of knowing whether or not the registered
volume controller was visible, so add a mechanism for the
controller (volume panel) to send that info back to the service.

Found and fixed a discrepancy between AudioManager.handleKeyDown
and MediaSessionLegacyHelper so that an adjustment over the
keyguard is allowed to vibrate as well as play sound during
adjustments.

Bug:16202639
Change-Id: Icd36c23e8d08c4ed57922c05724b281f32049be7
2014-07-14 16:49:34 +00:00
Svet Ganov
a4ab780877 Fix broken actions in print notifications.
The notification handling broadcast receiver was renamed but the
manifest was not updated, hence the receiver was not registered.

bug:16289408

Change-Id: I094e20e472abff1f926e1dbfbac32f422f498f74
2014-07-14 15:43:16 +00:00
Svet Ganov
6f60e56b3c Improve print options click to open behavior.
When print options are closed we show a summary and a handle to open
the options panel. Often the user instinctively clicks on the summary
and also the expand handle is a somehow small target. To improve user
experience clicking on the summary also opens the print options.

Change-Id: Ia2f3b80f5acf11b40af864729f67fa29e82729fc
2014-07-14 15:25:13 +00:00
Wei Liu
9d43fa8405 Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
BUG: 15589908

Change-Id: I69e176343906c8f87b8f50ba844b15e3e89f0c48
2014-07-11 23:11:04 +00:00
John Spurlock
1a462c1d23 QS: Update rotation lock icons.
Only three states: unlocked / portrait / landscape, no animation.

Bug:16161728
Change-Id: Id916b81c09925455f87cfccf1350ac4977bad42e
2014-07-14 11:01:24 -04:00
John Spurlock
549dbd601a Merge "QS: Cellular usage warning marker + policy cycle." into lmp-dev 2014-07-10 21:28:08 +00:00
Svet Ganov
9fb7b07c6c Dimming deselected preview pages
For print preview we show the pages the user selected in the range
affordance but the user can optionally further prune pages to be
printed by deselecting them in the preview. The deselected pages
change elevation and now also are dimmed.

bug:15912256

Change-Id: I53357b8e8b592387bbc26b937eda786bb4660d85
2014-07-14 07:31:07 +00:00
Svet Ganov
48fec5c9a3 Top printer not properly selected.
We keep track of historically used printers and when the print dialog
is opened we load them. We were selecting the first printer before the
historical ones are loaded which led to a case where the PDF printer
is selected and then a better printer appears but we have the PDF one
selected.

Also we were asking the printer spinner for the current printer but
if the data set of the adapter changes and we ask the spinner for the
selection we get a wrong answer because the adapter and the view are
off sync since the view is updated on the next message.

Change-Id: I0c12d2d3b19227a8f6af6e421b92013ec06cc021
2014-07-14 07:15:34 +00:00
John Spurlock
d11a19b8ea QS: Cellular usage warning marker + policy cycle.
Add warning marker to graph from policy, and use the
cycle day from policy to determine the usage period.

Change-Id: I31711eea6a0bf54ad0eb5841d2aa9b8e5927ed58
(cherry picked from commit b5e88019cd69d9320639b6736fabf7f407444967)
2014-07-13 22:24:51 +00:00
John Spurlock
1e6eb17a22 QS: Introduce cast control panel.
Make cast controller more granular, at the route level, and
bind a common detail item panel to the available routes.

Fix tile icon, add connecting label.

Remove dialog presentation, no longer needed.

Add the new empty state, and add controller state to dump.

Found a bug in keyguard when in presentation mode, added
a workaround - don't crash when no owner info in keyguard
status view.

Bug:15833210
Change-Id: I19afec390eac2260bccf4a7064065b666b7bceca
2014-07-13 12:06:21 -04:00
John Spurlock
486b78e426 QS: Introduce bluetooth control panel.
- Factor out common detail item panel view, share with Wifi.
- Add an empty state (large icon + text)
- Implement connect / disconnect for supported BT profiles.
- Wire up "scanning" state, but still waiting on asset.
- Add BT controller info to dump.

Bug:16235253
Change-Id: Icf854cafba962fe4b63767d7206e309d80b7b87b
2014-07-12 18:41:57 -04:00
Winson Chung
d336042f7a Merge "Adding missing passthrough of task affiliate id." 2014-07-11 16:34:41 +00:00
Winson Chung
8236f525f9 Adding missing passthrough of task affiliate id.
Change-Id: Ied2997418ae4c17d0d130c9e6434c0e6e645da41
2014-07-11 19:24:15 -07:00
Winson Chung
305addefcd Piping through task affiliation to Recents. 2014-07-11 19:15:17 -07:00
Winson Chung
5f1970cc4d Merge "Piping through task affiliation to Recents." 2014-07-11 23:25:18 +00:00
Chris Craik
7b7ca3cdf2 Disable setOutline() functionality, pending full removal
bug:15283203
Change-Id: Ibf127fecfcda835117c6087180c64f622b3041e4
2014-07-11 19:02:28 -07:00
Winson Chung
1f24c7e37b Initial changes to support lock-to-app on the foremost task. (Bug 16221876) 2014-07-12 00:10:11 +00:00
John Spurlock
dfd6b4e9f4 Merge "Volume: Extend the volume dialog timeout for notifications." 2014-07-10 21:35:02 +00:00
John Spurlock
ea9938ca5f Volume: Extend the volume dialog timeout for notifications.
Even when the condition panel is collapsed, increase the timeout
a bit to aid readability.

Bug:16237299
Change-Id: I36d01300a94f17e02ee35b5a6f549ed180532ad8
2014-07-11 18:51:32 -04:00
Svetoslav
15cbc8a032 Addressing comments for the print preview feature.
Change-Id: Ib72140a912e22f859258d970e0d1c4ef06e807d5
2014-07-11 16:46:46 +00:00
Svetoslav
000f88c9e8 Adding back accidentally removed constants
Change-Id: Ib99000da8f31437e7d40eceb69779a0f4c2982e1
2014-07-11 22:54:28 +00:00
Svetoslav
39afc200f2 Remove commented out dead code
Change-Id: I3e59d0ee55fd864ea0d8bc5f99cdb74d9b0e49bb
2014-07-11 22:49:59 +00:00
Svetoslav
1710e0318d Fix print preview rendered page preloading.
After the preview list is scrolled we are preloading the
pages around the ones that are shown, so now if the user
does a slight adjustment (expected after a scroll) the
pages around are rendered. There was an off by one error
and one of the bitmaps of the shown pages was reused and
as a result the wrong content was shown.

Change-Id: If04aebf46bcc637491221c6218005ecc1a7253d2
2014-07-11 22:23:58 +00:00
Svetoslav
53912d07d2 Fix the print button appearance.
Change-Id: Ie19a52eaf08e1e39bb488c5afa2344c72e646b0b
2014-07-11 21:42:06 +00:00
Jorim Jaggi
329fa24048 Split AM/PM from the rest of the time in expanded QS
This allows us to scale AM/PM independently of the rest of the time
string to allow for a different scale when QS is expanded.

Bug: 16177564
Change-Id: I472db549c875f6975583a6a426cb1ebc2fc37ac3
2014-07-11 20:43:23 +00:00
John Spurlock
e217145b69 Merge "Zen: Be more defensive against old time conditions." 2014-07-10 21:21:20 +00:00
John Spurlock
bc5858f489 Zen: Be more defensive against old time conditions.
Bug:16192570
Change-Id: If5097174fac89c5d809271241645d1efca92476e
2014-07-11 14:33:18 -04:00
Winson Chung
083baf99ff Fixing a few potential crashes, preparing for Task affiliations framework changes.
- Deferring widget host listening to speed up startup
- Ensuring that we animate to the right task position in the stack and not just the front-most
- Removing assumption that we can only get screenshots for the most recent task
2014-07-11 17:36:57 +00:00
Jorim Jaggi
fb98a5023e Fix weird state when tracking and pressing back
Bug: 10934514
Change-Id: I60bbd6005e664033ed22c87b404ddc918e5f2c0e
2014-07-11 15:28:58 +00:00
John Spurlock
be8df5aea8 Merge "Volume: delay dismissing panel when starting settings." 2014-07-10 21:35:02 +00:00
John Spurlock
1dad272337 Volume: delay dismissing panel when starting settings.
Bug:16211952
Change-Id: I067721d932076dafb35c6afd99583301acff9bea
2014-07-11 11:07:53 -04:00
Leon Scroggins III
d66a8719b0 Merge "Simplify Shader.setLocalMatrix." 2014-07-10 21:35:02 +00:00
Leon Scroggins III
ab87983a11 Simplify Shader.setLocalMatrix.
Previously, calling setLocalMatrix updated any Paint that had the
Shader attached. This depended on deprecated behavior in Skia. Use
new Skia APIs, and do not modify any Paints that use the Shader.

In addition, update callers to call setShader (again) after modifying
the Shader.

Sample app at ag/499573 for testing.

Depends on I673801444f0a8fd4f192b5b7effdde1aa83e702b in external/skia.

BUG:14315916
Change-Id: I3c3316377874e89fccc85afb864bc038b0ef3890
2014-07-10 18:01:22 -04:00