2512 Commits

Author SHA1 Message Date
Michael Wright
c39d47a8e7 Add MediaProjection APIs.
The new MediaProjection infrastructure allows the system to hand out
tokens granting the ability to capture the screen's contents, audio,
etc. at a granular level. It's intended to be used both for screen
casting, via the cast APIs, as well as screen sharing via third party
applications.

The screen sharing case is implemented, but all of audio capturing
is still forthcoming.

Change-Id: I4b24669bed7083e11413c10ed8d6b025f5375316
2014-07-17 14:30:19 -07:00
Jason Monk
a5600d2de0 am af58ce3c: am 4a6da95d: am d8288538: Merge "Implement hotspot tile" into lmp-dev
* commit 'af58ce3c4a4ab75ff70a8ac84a2846254c66083f':
  Implement hotspot tile
2014-07-22 19:47:49 +00:00
Baligh Uddin
14321d8405 Import translations. DO NOT MERGE
Change-Id: Ib212ded22a9d6e6b6e84366fdceea8f93e3f1f74
Auto-generated-cl: translation import
2014-07-22 16:42:49 +00:00
John Spurlock
b71e68f9aa Volume: Rocker animation + style updates.
- Add more spacing at the top
- Update window animations to fades
- Improve style for alarm warnings

Bug:16200897
Change-Id: I7a64e235eff1f9a77fc697a98a4440bc69043386
2014-07-17 23:23:11 -04:00
John Spurlock
ad494bc0e4 Volume: Remove silent mode icon.
Instead of changing the slider icon and state in silent mode,
maintain the previous state, but disable.

Add VolumePanel to sysui dumpstate.

Bug:16209908
Change-Id: If9730b51ae9190e1ace5888d92a6ab5ce241f8f2
2014-07-20 17:39:44 -04:00
Baligh Uddin
7226b9b62d Import translations. DO NOT MERGE
Change-Id: Iad977cd9e130e353572188f6cac5c004268fc28d
Auto-generated-cl: translation import
2014-07-20 20:43:58 +00:00
Dan Sandler
4d75c079f3 Shrink user profile bitmaps to 48dp^2.
Can save megabytes of memory.

Bug: 16371371
Change-Id: Ifec5cff3a3376d045ee4e3b605edeb8d9ac93799
2014-07-18 15:26:48 +02:00
Baligh Uddin
802603572c Merge "Remove deprecated locales - DO NOT MERGE" into lmp-dev 2014-07-17 19:13:40 +00:00
Baligh Uddin
50af6d7ae6 Remove deprecated locales - DO NOT MERGE
Change-Id: Iac5489639edae2373ed0ce92f7d0fe22629a249a
2014-07-19 13:05:12 -07:00
Adrian Roos
88f4de130a am 26f08cdc: Merge "QS Guest fixes" into lmp-dev
* commit '26f08cdc82a6534b3acb4eef81c205ab6764bd96':
  QS Guest fixes
2014-07-17 18:09:59 +00:00
Baligh Uddin
10ad34ed51 Import translations. DO NOT MERGE
Change-Id: I2fd968db41fad34de4cbabdac45b4b4d9bad0c05
Auto-generated-cl: translation import
2014-07-19 21:42:13 +00:00
John Spurlock
3fc3ffd736 am 791c827c: Merge "Zen: Return of the alarm warning." into lmp-dev
* commit '791c827c22c8d0179500f0df201a58bce62ad68e':
  Zen: Return of the alarm warning.
2014-07-17 15:51:21 +00:00
Adrian Roos
5cb7dde7ac am 3e7b4279: Merge "Update QS user switcher colors to spec" into lmp-dev
* commit '3e7b4279abee870d5094f505a9bbdcd42c9a7256':
  Update QS user switcher colors to spec
2014-07-17 14:19:21 +00:00
Dan Sandler
9591597f53 am ce4dc71c: Merge "Album artwork returns triumphantly to the lockscreen." into lmp-dev
* commit 'ce4dc71cfc0ecbfe1bd504b5d906fbd81b2164b1':
  Album artwork returns triumphantly to the lockscreen.
2014-07-17 14:17:16 +00:00
John Spurlock
6530a89c8e am efe8514f: Merge "Update data limit notification icon + strings." into lmp-dev
* commit 'efe8514f89c8f8ecd256f8fc1ef577cbcec05421':
  Update data limit notification icon + strings.
2014-07-17 14:17:12 +00:00
John Spurlock
89f060a1e0 Zen: Return of the alarm warning.
- Remove the term timers from subtitle, the term "alarms"
  is now inclusive of timers.
- Resurrect the alarm warning, give it a more prominent
  appearance if we can detect an overlap in a time-based
  exit condition and the next alarm time.

Change-Id: I5d6d67694c7acc9e2a5a7c63e647069744a22cec
2014-07-17 11:41:18 -04:00
Adrian Roos
9d32507a86 Merge "Update QS user switcher colors to spec" into lmp-dev 2014-07-17 00:15:07 +00:00
Adrian Roos
a1b6cfd719 Merge "QS Guest fixes" into lmp-dev 2014-07-17 00:10:10 +00:00
Adrian Roos
e9c7d431da QS Guest fixes
- Fixes NPE when guest has not been created yet
- Reloads pictures only when they changed
- Adds "Exit guest" affordance

Bug: 16363920
Bug: 15759638
Change-Id: I99ff1c4be06fee96c5169fd7c2d31b1b13f7a389
2014-07-17 18:31:22 +02:00
Dan Sandler
d10b2f17a1 Merge "Album artwork returns triumphantly to the lockscreen." into lmp-dev 2014-07-16 23:37:00 +00:00
Dan Sandler
16128f4523 Album artwork returns triumphantly to the lockscreen.
It is pulled from the metadata of the active media
session, which we fetch in one of two ways:

1. From a proper media notification, we can extract the
   session token from EXTRA_MEDIA_SESSION.
2. If none of these is found, we ask MediaSessionManager for
   any outstanding media sessions whose packages match an
   active notification. These include legacy RCC clients,
   whose notifications are oblivious to EXTRA_MEDIA_SESSION.

We then pull the album artwork out of the metadata and fade
it in on the lockscreen.

Bug: 15147533
Bug: 15135254
Change-Id: Ia967bfba310b6c792b14673872cb132ddd7052a5
2014-07-16 23:51:54 -04:00
Adrian Roos
19f653ec19 Update QS user switcher colors to spec
Bug: 15545213
Change-Id: Id0e48e4406c64d2a8a19ed8fdcec398896ca11c0
2014-07-17 01:32:30 +02:00
John Spurlock
aedebda776 Update data limit notification icon + strings.
- Use a more specific disabled cellular data icon.
- Reword framework strings to use "Cellular" instead of "Mobile"
  and avoid "enabled/disabled"
- Update SystemUI's network limit dialog to follow suit.

Bug:16185238
Change-Id: Ie9191990fab17cd7dc04395fad39f84bfff8349d
2014-07-16 23:32:44 -04:00
Baligh Uddin
fa8d78019c Import translations. DO NOT MERGE
Change-Id: I499617c1385457c1f844f73b042ef5c360ad14cc
Auto-generated-cl: translation import
2014-07-16 18:13:44 -07:00
Dan Sandler
5c95b3de42 Merge "Clean up autoredaction text." into lmp-dev 2014-07-16 00:46:50 +00:00
Adrian Roos
00a0b1f397 Implement real QS user switcher
Replaces the stop-gap user switcher with the real deal.
Dimensions may need some further adjustments.

Bug: 15545213
Change-Id: I4399635c03553dac935049d5b8297fe5f5c1dc9a
2014-07-16 16:25:30 +00:00
Dan Sandler
18bb4f9920 Clean up autoredaction text.
Also show the timestamp if the original notification does.

Bug: 16289371
Change-Id: I6898990629c036dc7c1a129609449e556f8afa72
2014-07-16 12:04:05 -04: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
Adrian Roos
1ef80fe590 Make user switcher appear inside the QS panel
Bug: 15545213
Change-Id: I0f15214a7474ae5303c3af0b7ef6f6a11be572b8
2014-07-15 15:43:31 +02:00
Adrian Roos
5f1652c285 Add strings for QS user switcher
Bug: 15545213
Change-Id: Iec98b704cd4b662d3cc5ff0b76671d44f93837d5
2014-07-14 22:39:54 +02: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
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
1f24c7e37b Initial changes to support lock-to-app on the foremost task. (Bug 16221876) 2014-07-12 00:10:11 +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
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
Jorim Jaggi
2c5baca5ed Fix panel height when only one notification is shown
Also fix the place holder height for the stack when QS is expanded.

Change-Id: Ia28373c21b5d2155e735425d5657dde2dec49c6d
2014-07-11 15:35:45 +02:00
John Spurlock
8263c3e064 Volume: Elide collapsed condition title if no end.
And make expanded title non-clickable.

Bug:16211705
Change-Id: I675b8ad8d08dca9a3f38292c45b771dc6532de77
2014-07-10 20:33:27 -04:00
John Spurlock
980f9925bb Merge "Volume: Use accent color for selected radio button." 2014-07-10 21:21:20 +00:00
John Spurlock
f7d22132c2 Volume: Use accent color for selected radio button.
Bug:16212456
Change-Id: Ic1badeaf6eec98cd2780592660a36d7087bb677b
2014-07-10 19:03:00 -04:00
John Spurlock
136c5ae2ce Merge "Volume: Promote alarm warning to title." 2014-07-10 21:28:08 +00:00
John Spurlock
86d04fdaa1 Volume: Promote alarm warning to title.
Bug:16211556
Change-Id: I839e08d1ba26ba825a9799f92c9b600feb91a81b
2014-07-10 18:37:45 -04:00
Jorim Jaggi
d4aafe9b70 Add battery level in status bar on Keyguard when charging
Also fixes flickering in the header when overscrolling the
notifications.

Change-Id: I3d6aa95e364298718c6d8b050a1091e7ccd7609d
2014-07-10 21:44:01 +02:00
Jorim Jaggi
362dd6d632 Add glyph rerasterization hack for SystemUI.
Change-Id: I39d84e981b828b501801349d7a5e70a089b5f14e
2014-07-10 01:07:44 +00:00
Winson Chung
a433fa9c17 Updating task grouping logic.
- More fixes for graphical glitches when picking up task views.

Change-Id: I93fab1c2a9cc727c68d8f8fbd506bedaf681715f
2014-07-09 18:49:20 +00:00
Jorim Jaggi
4649c8d53f Fix overlapping status bar icons.
Change-Id: I9ca4b9e026cb3cccdf9e30ab350d10d46b98d47e
2014-07-09 17:04:01 +02:00