12570 Commits

Author SHA1 Message Date
Julia Reynolds
e122d30557 Merge "Allow DND mode to suppress visual interruptions." 2015-11-17 21:16:05 +00:00
Julia Reynolds
f612869ae1 Allow DND mode to suppress visual interruptions.
Bug: 25423508
Change-Id: Idd8242e4bc00a749dbe0b5503c458375fc017072
2015-11-17 21:10:36 +00:00
Winson
a2236f11c6 Fixing some Recents landscape issues.
- Tasks were drawing under the navigation in landscape since we did 
  not account for the nav bar space
- Fixing issue with tiny tasks in landscape
- Fixing issue where pooled views were not being measured or laid out
  after resizing.
- Fixing issue where the stack scroll would have out of bounds when 
  tasks were resized (we animate them into bounds)

Change-Id: Id301dc6891e7ff2692cb040a7df1a5a854ac84a3
2015-11-17 19:30:23 +00:00
Winson
c742f973b1 Adding tuner param to enable fast-toggling.
- Moving constants to a more explicit flags class, which also handles
  tuner changes.
- Removing some unused flags

Change-Id: If370581d431784f606c4b8d0c0face5b9a4b9fad
2015-11-17 19:26:46 +00:00
Filip Gruszczynski
1a4dfe593a Synchronize recents to freeform transition.
Recents to freeform animation must hang on the first frame and inform
Recents to hide its views. This mirrors the transition from freeform
to Recents, where the animation needs to hang on the last frame.

We need a special window flag for recents to force a redraw after the
animation launches. At this point Recents will become not visible
from the perspective of the activity manager, which would prevent
further drawing. We make recents ignore that and instead depend on
window visibility which will change after recents exit animation
finishes.

Bug: 24913782
Change-Id: Ief743b7e6fcebb3d8789d4745fb122ac607c1cf0
2015-11-17 10:03:19 -08:00
Selim Cinek
54d8539d09 Merge "Fixed a crash with the heads up manager" 2015-11-16 18:52:32 +00:00
Selim Cinek
81831c9cd3 Merge "Fixed error in GroupManager" 2015-11-16 18:46:33 +00:00
Selim Cinek
f5fae39a55 Merge "Fixed a bug where a notification could get removed" 2015-11-16 18:44:56 +00:00
Selim Cinek
d18a45743f Merge "Allow clicking fullscreen intent notifications now" 2015-11-16 18:43:33 +00:00
Winson
e86deb8adb Ensuring that fast-alt tab works from Home as well as other apps.
Change-Id: Ie4a6e95e790483c283d4257b15cf1b7dd315db28
2015-11-13 22:53:28 +00:00
Winson Chung
d8f89e5f9f Merge "Ensure that the device is provisioned before showing Recents." 2015-11-13 18:38:12 +00:00
Winson
e924356ddf Ensure that the device is provisioned before showing Recents.
Bug: 25476219
Change-Id: I87b78d4c3ca1e4d71280f057f3e076cc456bbf8f
2015-11-13 18:37:46 +00:00
Filip Gruszczynski
fba5632f2b Merge "Fix wrong dock stack bounds after rotation." 2015-11-13 00:35:57 +00:00
Filip Gruszczynski
b38b0003e2 Merge "Fix recents to freeform animation." 2015-11-12 23:02:38 +00:00
Filip Gruszczynski
fe9823f64c Fix recents to freeform animation.
We should use freeform animation spec not only when the task is already
freeform, but also when it is entering freeform.

Bug: 25669457
Change-Id: I30cba79a149183b0a8b9e1e4751a215cef6a490f
2015-11-12 14:35:59 -08:00
Filip Gruszczynski
f6d8e9e85f Fix wrong dock stack bounds after rotation.
When setting the stack bounds from the system UI we need depend on
DisplayInfo.logicalWidth/Height instead of DisplayMetrics.
DisplayMetrics have values adjusted for status bar and nav bar, but the
Activity Manager doesn't know about that. It expects the stack bounds to
use full display size.

Bug: 25665425
Change-Id: Idf5f3192105b72686d1ad11fe4f42c894bb87fbe
2015-11-12 13:39:20 -08:00
Bart Sears
0c22429bfa Revert "Ensuring that fast-alt tab works from Home as well as other apps."
This reverts commit 55ff9de8aed998468caf320a3b7ecb7407e721e1.

Change-Id: I37213ea9bbd43a83835a9de6f873ccd1b549ad17
2015-11-12 19:20:31 +00:00
Winson
55ff9de8ae Ensuring that fast-alt tab works from Home as well as other apps.
Change-Id: I920fdd06d5b9e3e63d197dce5a366a4316361ed5
2015-11-12 18:27:03 +00:00
Winson
3fb67562c5 Removing hacks to delay app animations until window animations complete.
- We should have been using onEnterAnimationComplete instead, which is 
  more reliable and respects the window transition developer option.

Change-Id: Ib7cd2868283cfe0e5fc79863818a614375072e0f
2015-11-11 17:58:52 -08:00
Jeff Sharkey
7d0b9856fc Merge "More file-based encryption work." 2015-11-12 00:20:27 +00:00
Amith Yamasani
536258c531 Merge "Once system is provisioned, lock the screen on system user" 2015-11-11 20:05:06 +00:00
Amith Yamasani
cb15d66f1c Once system is provisioned, lock the screen on system user
If the device provisioning is complete, check if we need to show
the keyguard. We don't want it to show launcher after finishing
with setupwizard in the system user.

Bug: 25326078

Change-Id: I326069e29122ebf19a59fc00a9120cd5de70f231
2015-11-11 10:58:29 -08:00
Jeff Sharkey
f9fc6d6cc0 More file-based encryption work.
Add granular StorageManager APIs for key creation/destruction and
unlocking/locking.  Start passing through an opaque token as part
of the unlock command, but leave it empty for now.  We now have a
separate "prepare" method that sanity checks that user directories
are correctly setup.

Define a handful of system properties used for marking devices that
should be operating in FBE mode, and if they're emulating FBE.  Wire
a command to "sm", but persisting will come later.

Start using new "encryptionAware" flag on apps previously marked with
coreApp flag, which were apps running in the legacy CryptKeeper
model.  Small tweaks to handle non-encryptionAware voice interaction
services.  Switch PackageManager to consult StorageManager about the
unlocked state of a user.

Bug: 22358539
Change-Id: Ic2865f9b81c10ea39369c441422f7427a3c3c3d6
2015-11-11 10:47:23 -08:00
Winson Chung
cef9219fda Merge "Fixing issue with wrong transition when tasks are offscreen." 2015-11-11 17:30:24 +00:00
Winson
83c1b07a99 Fixing issue with wrong transition when tasks are offscreen.
- Fixing issue with wrong animation specs being created for tasks that
  are offscreen
- Removing unused code and simplifying the logic for task launching, also
  pulling this out into another file so that it is easier to read and
  understand
- Removing old incorrect call to moveTaskToFront() instead of
  startActivityFromRecents()

Bug: 25590404

Change-Id: I25d9530d089a7984fb8c94954a34dd124420755a
2015-11-11 09:25:54 -08:00
Jorim Jaggi
8b717e7ad1 Make all calls go through mExecutor
So we don't run into race conditions when both the main thread and
the executor thread are calling into window manager.

Bug: 25591212

Change-Id: I6d02170f6b105c9b7b861b6dfc4b76452632d562
2015-11-11 17:06:09 +00:00
Jason Monk
befd54e3e7 Vibrate when the gear gets up to speed
Bug: 25198361
Change-Id: I2a87c2b5594cef39b247de9ae524664c60e2a0ee
2015-11-11 11:20:50 -05:00
Xiaohui Chen
bcc0471e2b Merge "app shelf: Change logging level" 2015-11-11 00:23:44 +00:00
Xiaohui Chen
38d01bf315 app shelf: Change logging level
It seems common for apk to not have launcher activity. I see it quite
a lot during SUW. It does not seems to be an error.

Change-Id: Iee417b0614ef17940371da9710ff14adbad82e3a
2015-11-10 15:02:29 -08:00
Jason Monk
10bd1daf5e Merge "Fix tuner-related crashes" 2015-11-10 21:05:57 +00:00
Jason Monk
72def0de65 Fix tuner-related crashes
- Make the dialog a fragment
 - add a null check

Bug: 23341500
Bug: 25341011
Change-Id: I4d9991657c487ea3b5ced8cce2a5072c8adb2ee5
2015-11-10 16:03:41 -05:00
Winson
142af42fd6 Fixing issue with regression with launching focused task.
- Only update the focused task as you scroll if we are in touch
  exploration mode.
- Use stack's notion of focused task as the currently focused task may
  not have a TaskView and can be scrolled offscreen.

Bug: 25590404

Change-Id: I5ef1b66ec74aa1a3131993ed84905210f1e45f18
2015-11-10 08:53:44 -08:00
Jorim Jaggi
29deb334cd Reset mAppTransitionAnimationSpecs so they are only used once
Because we didn't reset it after sending it to window manager,
they were used again in the next transition, leading to a
wrong animation.

Also fix a bug where we waited forever because
getAppTransitionAnimationSpecs returned null.

Bug: 25583739
Change-Id: Ifcccf2d3cee649f66b4ded1d92c059acfa02ba5b
2015-11-10 12:26:07 +00:00
Jorim Jaggi
7af8ea8a7c When recent changes its layout, update contents
When the window gets resized, we need to synchronize the
views with the model.

Bug: 25584567
Bug: 25584399
Change-Id: I27d6738cb4984ce91ce79671298bcdc0d317c6e1
2015-11-10 12:25:28 +00:00
Amith Yamasani
a8d3e1ff63 Merge "Allow activities to show on user 0 until provisioned" 2015-11-09 19:50:50 +00:00
Geoff Mendal
aab2feaac4 Import translations. DO NOT MERGE
Change-Id: I4e19184520f6d4b3c9145fa13e16488cb3fe1c23
Auto-generated-cl: translation import
2015-11-09 05:56:05 -08:00
Winson
13d30660ef Fixing issue with canceling the thumbnail in addition to the app window.
Bug: 25392381
Change-Id: Ib507f53bcd2aad4771c2546f5e8bfe771769e9a2
2015-11-06 15:30:29 -08:00
Winson
7395ef0cdb Reverting debug flag.
Change-Id: I918d43827ecd7be52b41fb632850775161aa3902
2015-11-06 14:54:41 -08:00
Winson
6b92c6e524 Adding fast alt-tab trigger to prevent full animation.
Change-Id: I3df7a99977d0c2687eea084a95a0953429e8ff47
2015-11-06 14:42:14 -08:00
Winson
1b58561f66 Fixing up some more focus edge cases.
- Disallow touch while alt-tabbing
- Allow keyboard to focus tab while scrolling
- Cleaning up some old classes that aren’t really being used

Change-Id: Ibabea093afb711b07f398677d25735421b7c7e53
2015-11-06 13:48:45 -08:00
Jorim Jaggi
c97ba49d23 Update divider shadow when it is moving
Change-Id: Ifc67ba3ee640929248cad6479d9c0df818e32f40
2015-11-06 21:08:57 +00:00
Selim Cinek
c9e6834622 Fixed a crash with the heads up manager
Bug: 25551571
Change-Id: Id852e342000bff6de0ce19f442eb53b21e935b7b
2015-11-06 11:34:36 -08:00
Jorim Jaggi
e48f428b98 Restore changes lost during merge
Change-Id: I619be025988470e27b614ed0ad009e5d785f19eb
2015-11-06 20:25:49 +01:00
Amith Yamasani
27e025b687 Allow activities to show on user 0 until provisioned
In a split-user mode, allow SUW and related apps to show UI
until the device is provisioned. Basically this changes the
logic a bit for when to force keyguard to always show on user 0.

Bug: 25326078
Change-Id: I8e862adae1c38efe9874479b532baa7446070035
2015-11-06 10:34:41 -08:00
Jorim Jaggi
1fcbab6ae5 Implement divider UX interactions
- Update visuals to spec
- Divider lifts when touching
- Implement basic version of snap points and animations
- Implement touch conflict behavior: If touched around 48x48dp
area around the handle, the divider handles all these touches.
If touched outside of the black background divider, touch goes
directly to underlying window. If touch on the black background
divider, touch is considered slippery and thus the window in
which the touch trace moves gets the touches.

Change-Id: I0307c191ae032672c4b73d439c23cf9833d3fce6
2015-11-06 16:17:57 +01:00
Jorim Jaggi
61f39a7b98 Migrate docked divider drawing to SysUI
Move docked divider drawing to SysUI. This let's us have real
time shadows in the future. Keep DockedStackDividerController
for placing/visibility in window manager.

Change-Id: I82c10add626d30f2ba180ee2a21cdbe6ddfe0371
2015-11-06 16:13:11 +01:00
Jorim Jaggi
2f7d292596 Supply app transition specs with a future
Because we retain activity surfaces now, the app transition specs
which were calculated/generated after the onPause() call when going
from recents -> app were too slow. Instead, supply a cross-process
future, which gets fetched when the window manager is about to be
ready to execute the app transition. In practice, this still gets
executed immediately after the onPause call.

If we have a retained surface, this adds some latency, but since we
absolutely need the specs to execute the transition, we have that
latency no matter where exactly we generate the specs.

If we don't have a retained surface, the specs are not calculated on
the critical path, so it's faster.

Bug: 19940527
Change-Id: I80d2c6f6b3a6568a70339619ecefbc3bd8409bd8
2015-11-06 16:12:59 +01:00
Julia Reynolds
0ca82fecc2 Fix radio button flash on hour change.
Also delete confusing debug variable.

Bug: 25459795
Change-Id: I9208ece4edf5fbcff5f257994f47d81a901766e8
2015-11-05 11:08:02 -05:00
Winson Chung
986739a65d Merge "Adding dnd to/from freeform workspaces." 2015-11-05 01:59:57 +00:00
Winson
eca4ab6e99 Adding dnd to/from freeform workspaces.
Change-Id: I5b75fe5a942e9a2e344e62229e860b5108f9872e
2015-11-04 17:56:36 -08:00