5505 Commits

Author SHA1 Message Date
Sander Alewijnse
d2a1eec400 Add Device Policy API to disable screen capture.
WindowManager will set secure flag on SurfaceControl for
all windows of a flagged user to prevent screen capture.
API is consistent with the camera disable API.

Change-Id: Ib180f67f1ad827b6f4aca2af615274256cce58f4
2014-07-23 13:44:28 +00:00
John Spurlock
312b792421 Shade: Don't clip header icons pre-expand.
Bug:16496619
Change-Id: I1d3a391b2203b172bd525396719b671fe5cc3784
2014-07-22 22:28:13 -04:00
Alan Viverette
ed8e09b664 Remove dialog icons
BUG: 16493564
Change-Id: Ica59abb70a924cccd705172d323a535ef9b75cf1
2014-07-22 18:41:37 -07:00
Winson Chung
d6c3db5e5a Fixing animation when dismissing certain tasks. 2014-07-23 00:05:36 +00:00
John Spurlock
0323bf7553 Merge "BatterySaver: Make the bars orange." into lmp-dev 2014-07-22 22:02:55 +00:00
John Spurlock
0ff62e0911 BatterySaver: Make the bars orange.
Bug:16203820
Change-Id: I85f700d30a90212202626fc10fb289aca7f2b688
2014-07-22 18:53:08 -04:00
Winson Chung
dcfa7976fa Intermediate refactoring to move towards in-app view transitions.
- Fixing bug where we weren't toggling to the right task when using affiliations
- Refactoring task rect calculation to allow full screen task view to be laid out for transitions
- Refactoring the view bounds animations into a separate class
- Refactoring the footer view (for lock-to-task) out of TaskView
- Refactoring some transform code out of TaskView
- Removing fullscreen overlay view
- Fixing case where extra invalidations and layouts were still happening in FixedSizeImageView
- Adding debug overlay to replace specific debug drawing code

Change-Id: Ibf98b6a0782a68cd84582203c807cece1ff3379f
2014-07-22 22:25:33 +00:00
Winson Chung
7ea62ba97b Always enable HW layers on task views. (Bug 15986310)
- Use color filter to apply dim to the task view layer
- Fixing bug where you would see a flash of the task view when animating out of Recents.
2014-07-22 23:33:06 +00:00
Adrian Roos
1e1d6ac541 Kill flashlight when launching the camera from lockscreen
Bug: 16357300
Change-Id: I6838ac405bb30047b076c8acb98bd124e8d00fd6
2014-07-22 22:01:29 +00:00
Adrian Roos
930aaa717e QS: Hide flashlight tile if camera is busy
Currently behind a flag because the camera API for this not working
correctly yet.

Bug: 16357300
Change-Id: Ib10a2eafb1323fd611f38db03a2e0b4d7aa67db0
2014-07-22 22:00:14 +00:00
Jason Monk
464cb8fdc2 Merge "Implement hotspot tile" into lmp-dev 2014-07-20 04:41:30 +00:00
Jason Monk
51e4dc0a15 Implement hotspot tile
This tile enables/disables hotspot and will show up for 30 days
after hotspot is used.

Bug: 16234190
Change-Id: Iceb4842e021c27c2c4c18651bccdb12957055c3d
2014-07-22 15:35:04 -04:00
Craig Mautner
dc00cbe2c1 Create API for launching from recents
Relaunch apps from recents using the same uid and package as was used
in the original launch.

Fixes bug 16358208.

Change-Id: I340800bfee79926b197929360d69f1d570bbf1eb
2014-07-22 18:13:34 +00:00
Baligh Uddin
4979926830 Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-07-18 22:16:50 +00:00
Baligh Uddin
fc68e86e0c Import translations. DO NOT MERGE
Change-Id: I2093c5d8b426d447e97a99b98bd67338eab4fcc0
Auto-generated-cl: translation import
2014-07-22 16:42:41 +00:00
John Spurlock
657c62c31e QS: Hide Location, Cast tiles when showing secure keyguard.
Bug:15725186
Bug:15725223
Change-Id: I7c23d8c764f5712ee31d248f4d8fc6d35d0add97
2014-07-22 12:24:37 -04:00
Adrian Roos
70441467f4 Guest: Switch back to previous user when exiting
Adds code to track the last non-guest that was switched
to. Previously, it would always switch back to the owner.

Bug: 15759636
Change-Id: I31415206010f0ab22eedd48eb551cc7ce9b5570f
2014-07-22 15:19:25 +00:00
John Spurlock
bfd2929d5d Merge "QS: Move flashlight tile before location tile." into lmp-dev 2014-07-17 19:26:18 +00:00
John Spurlock
00e004e653 QS: Move flashlight tile before location tile.
Bug:16464515
Change-Id: Id1f790a56935cd10ea268153842654b29cca24d5
2014-07-22 09:48:03 -04:00
Selim Cinek
3107cfacd3 Fixed a bug with low priotity notification coloring
When there where only low priority notifications, the topmost
notification was not colored correctly.

Bug: 16197778
Change-Id: I9fe8da79cfa78a3b94a3107c9e1af83b859a093e
2014-07-22 15:28:54 +02:00
Dan Sandler
7dea0eeb06 Old habits die hard.
Bug: 16458225
Change-Id: Ie5edebbb406412ed5643fda65ab94e92a86b217e
2014-07-21 21:07:15 -04:00
Adrian Roos
5005244f10 More user switching goodness
- Confirmation when exiting guest
- Dialog when resuming existing guest session (will be HUNed in follow-up CL)
- Properly center user name in QS user switcher

Bug: 15759638
Bug: 16378966
Change-Id: I63a1dd524975408618c10d90a18052f15deec756
2014-07-21 15:54:03 +00: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
John Spurlock
8b4f091b49 Merge "Volume: haptic feedback entering vibrate using touch." into lmp-dev 2014-07-17 19:26:18 +00:00
John Spurlock
ac9ab5b4e7 Volume: haptic feedback entering vibrate using touch.
Bug:15386667
Change-Id: Ia575c171f59f435afe669c2b7fd9c22155865b20
2014-07-20 13:09:44 -04:00
John Spurlock
eb2727bb2f Volume: new coat of paint.
- Two sections (lighter header, darker detail) like QS.
- Fewer text variants.
- Remove backgrounds for segmented buttons.
- Remove alarm warning background.
- Fix slider-only style.
- Ensure all touch-targets are 48dp.

Bug:16419191

Change-Id: I220f3a736eba3dd7a1b9ff58a8fe4bf3d21db61a
2014-07-20 02:50:34 -04:00
John Spurlock
4f558f7301 Volume: Design followup.
Fix button height so header matches QS, use same elevation between
layers.

Bug:16419191
Change-Id: I56d9c69fe72e926261a32579a0b142d2fac18871
2014-07-20 11:50:35 -04: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
John Spurlock
7b41467704 Zen mode filtering should use new usage constants.
Refactor stream-based calls to usage-based calls.

Bug:15279516
Change-Id: I3f7757d8123c14670e2ad5f8e6aa4e9803efe7ec
2014-07-19 11:57:51 -04:00
John Spurlock
a082e35d94 Merge "Volume: No sound effects on the ringer toggle." into lmp-dev 2014-07-17 19:20:15 +00:00
John Spurlock
ab4ea76ede Volume: No sound effects on the ringer toggle.
We beep and blort enough in the rocker when switching modes.

Bug:16377522
Change-Id: I4a61979cb323d6a9623d10e10547a19982db384f
2014-07-19 18:50:16 -04:00
Evan Charlton
1019719e46 Migrate TelecommConstants to TelecommManager
Change-Id: Icdd7637ba1ae27ce7d1f13714257b4a946961037
2014-07-19 15:33:59 -07:00
John Reck
c01bd1167a Return Animator instead of ValueAnimator
Change-Id: I29a7cfdc7ffbb3a4d33f9e64f9d7ca791f5c947c
2014-07-19 02:00:15 +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
Chris Craik
31ba192dd2 Tweaks to outline API
b/15283203
b/16142564

Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.

Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
2014-07-19 00:13:59 +00:00
Winson Chung
57eea0f788 Merge "Add setting to guard the lock-to-app recents icon" into lmp-dev 2014-07-17 21:58:28 +00:00
Jason Monk
56e09b42a0 Add setting to guard the lock-to-app recents icon
Lock-to-app (soon to be screen-pinning) will now only show up once
it has been enabled in settings.

Bug: 16378448
Change-Id: Ide333463f86310eacb7a1d8b6dc7b1aea8722713
2014-07-18 16:45:34 -07:00
Dan Sandler
03dd983bad Don't crash if user profile bitmap is null.
Bug: 16398850
Change-Id: Ie8ddb0841af255bbde098a213cb0ec1690d14c4c
2014-07-18 21:18:52 +00:00
Dan Sandler
2083deb8f9 Merge "Actually show secret notifications sometimes." into lmp-dev 2014-07-17 19:26:18 +00:00
Dan Sandler
1b71878e4e Actually show secret notifications sometimes.
Factor out the "should we be hiding sensitive data"
predicate so we get it right everywhere.

Show visibility stuff in Notification.toString().

Bug: 16307122
Change-Id: Ifd16d073c4595add2ac3582ffc0d0179e55246e5
2014-07-18 13:37:33 -04: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
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
1f9cd414b2 Merge "Volume: Dismiss shade when launching settings from rocker." into lmp-dev 2014-07-17 19:20:15 +00:00
John Spurlock
c86f573fb8 Volume: Dismiss shade when launching settings from rocker.
The volume dialog can appear over the expanded QS panel.  Dismiss
the shade when launching zen settings so that it is not obscured.

Bug:16397104
Change-Id: Icc9e7107572305d366a9648f5082096ff92a8b71
2014-07-18 11:45:05 -04:00
John Spurlock
c2d09dd746 Merge "Shade: Hide status icons, take 2." into lmp-dev 2014-07-17 19:20:15 +00:00
John Spurlock
604ae09142 Shade: Hide status icons, take 2.
Restore visibility logic (for mirrored view) and remove a bad
optimization from the clipping calculation.

Bug:16337935
Change-Id: I7eb82ef6c87f30da9d8b70136e05dab3abdbdead
2014-07-17 18:22:45 -04:00
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
Winson Chung
3e3365babd Fixing issue where we weren't restoring touch state on dismissed Task cards. (Bug 16322100) 2014-07-18 18:49:53 +00:00