20494 Commits

Author SHA1 Message Date
Winson Chung
5ac33e194f Merge "Adding history view." 2015-11-25 19:43:10 +00:00
Winson
c29ff0025b Adding history view.
- Initial changes to show a history view within Overview (behind tuner
  flag)
- Restoring the task view dim in the stack

Change-Id: I0503d11768736c86f3145942404391dfacd0ddd6
2015-11-25 11:42:19 -08:00
Geoff Mendal
87c6aefba5 Merge "Import translations. DO NOT MERGE" 2015-11-25 13:50:24 +00:00
Geoff Mendal
2dac6ccaa6 Import translations. DO NOT MERGE
Change-Id: Iec73269d9960af59bddd9ed0189fea144526850c
Auto-generated-cl: translation import
2015-11-25 05:48:34 -08:00
Geoff Mendal
92eda4fd29 Merge "Import translations. DO NOT MERGE" 2015-11-25 13:37:42 +00:00
Geoff Mendal
0634fbb334 Import translations. DO NOT MERGE
Change-Id: I8ab271a3bfdd0b4d4917cc21234b70b79063e3cf
Auto-generated-cl: translation import
2015-11-25 05:37:11 -08:00
Geoff Mendal
cb37f2566e Import translations. DO NOT MERGE
Change-Id: Iede8cc7c1f459d1f3506dce88dc435c7b5f85ee7
Auto-generated-cl: translation import
2015-11-25 05:18:41 -08:00
Winson
7afe8c9002 Fixing two small regressions in stack layout.
- Fixed issue with max scroll position being placed beyond the max
  scroll if the task height is larger than the stack height.
- Fixed issue with single task offsets being calculated incorrectly

Change-Id: I3cb1ecf2c13de7196bd68cd4f9d9f4f4736ed3ce
2015-11-25 01:59:00 +00:00
Jorim Jaggi
54fdfaa3b5 Merge "Crash when exception in event bus handler happens" 2015-11-25 01:52:48 +00:00
Jorim Jaggi
ba54881231 Merge "Allow stacks to be placed outside of display" 2015-11-25 01:49:50 +00:00
Jorim Jaggi
54b1a6deeb Crash when exception in event bus handler happens
Also fixes another crash when dragging in recents.

Change-Id: I24eff235adc63190369a7e054e65c55fdf594931
2015-11-24 17:48:26 -08:00
Jorim Jaggi
2fbe033f9d Allow stacks to be placed outside of display
When dismissing the docked stack, we animate the divider to position
-12dp, so the full-screen stack is exactly full-screen when the dismiss
animation is done. Previously, this was prevented by window manager.
Allow it to fix the animation.

Change-Id: Iee4505023dc3f6907d56851965b156235f9f97f2
2015-11-24 17:37:03 -08:00
Jorim Jaggi
bd7cafa6da Merge "Don't trigger click if long press already happened" 2015-11-25 00:55:44 +00:00
Jorim Jaggi
053f21864a Don't trigger click if long press already happened
So when long pressing recents, we don't dimiss recents
immediately again.

Change-Id: I8092cceb03bd6786b964390f7a3a93686feb1b75
2015-11-24 16:10:33 -08:00
Jorim Jaggi
d79a245ac2 Merge "Reload tasks when doing drag gesture" 2015-11-24 23:22:52 +00:00
Jorim Jaggi
b0cab35c18 Merge changes Ieb3c8c73,If494fddf,Ia9415fa6
* changes:
  Add ability to supply initial bounds when docking task
  Make sure to clear pending spec
  Clear spec future when clearing transition
2015-11-24 23:11:34 +00:00
Jorim Jaggi
435b2e43cb Reload tasks when doing drag gesture
To make sure we always have the updated stack id's
for the task.

Change-Id: I8bfda33aa26b470cb5f087cee9e8e8560c0e3ba2
2015-11-24 15:09:30 -08:00
Jorim Jaggi
9ea2f7ba31 Add ability to supply initial bounds when docking task
Add an optional parameter in moveTaskToDockedStack to supply an
initial rect to be used when creating the dockeds tack. Pass in
the adjusted rect when dragging up from the navbar so it doesn't
flicker anymore.

Change-Id: Ieb3c8c73b9e2a769a2ec6270bd76a713201a2aed
2015-11-24 15:08:49 -08:00
Makoto Onuki
05d0d44034 Merge "DPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user" 2015-11-24 23:03:46 +00:00
Makoto Onuki
c8a5a555f1 DPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user
- Previously on MNC, they would return the same result regardless who
the calling user is.

- Now they properly take DO user-id into account.  Meaning, they'll
always return false and null respectively, if the calling user doesn't
run device owner.

- Note isDeviceOwnerApp() is a public API and getDeviceOwner() is
a system API.  Meaning we're changing the behavior or non-private
APIs.

- Also cleaned up hidden APIs, and gave them explicit suffixes
to avoid confusion.  Bundled code should prefer them for clarity.

Now we have:

* APIs that work cross-users: They all require MANAGE_USERS.
boolean isDeviceOwnerAppOnAnyUser(String packageName)
ComponentName getDeviceOwnerComponentOnAnyUser()

int getDeviceOwnerUserId()
boolean isDeviceOwnedByDeviceOwner()

String getDeviceOwnerNameOnAnyUser()

* APIs that work within user.  No permissions are required.

boolean isDeviceOwnerAppOnCallingUser(String packageName)
ComponentName getDeviceOwnerComponentOnCallingUser()

Bug 24676413

Change-Id: I751a907c7aaf7b019335d67065d183236effaa80
2015-11-24 14:54:48 -08:00
Jorim Jaggi
c4d49cd684 Make sure to clear pending spec
So when it gets out of sync it only fails once

Change-Id: If494fddfcbcb0145e2db1caa3b7612d8452c70d4
2015-11-24 13:48:26 -08:00
Philip P. Moltmann
c9137615e4 Merge changes from topic 'AddPrinters'
* changes:
  Create PrintDiscoverySession for future print services
  Update printer availability when printSpooler is paused. This makes the window update syncronously when in multi-window mode.
2015-11-24 21:33:39 +00:00
Svetoslav Ganov
abef6d6f2b Merge "Allow fragment state loss on fragment transaction" 2015-11-24 20:56:22 +00:00
Svetoslav
d25ddc3d0e Allow fragment state loss on fragment transaction
We are not saving the state of this fragment on onSaveState,
so its Okay to loose state while confirming the transaction.

bug:25847358

Change-Id: I2f6587d528b2d8b8f24a83954cc896a6ff514996
2015-11-24 12:54:21 -08:00
Makoto Onuki
cc99cced2d Merge "Fix "some user restrictions not working" issue" 2015-11-24 20:34:25 +00:00
Selim Cinek
d7c58462ae Merge "Fixed a bug where notifications were not updated inplace" 2015-11-24 02:30:13 +00:00
Winson
8f0e3a68cd Hiding the docked task from the stack.
Bug: 25665312

Change-Id: I1e0deb8c3b02604ce4f21d367430d50da9d3b86b
2015-11-24 01:00:46 +00:00
Winson
805578d848 Fixing animation jump when dismissing paged task.
Change-Id: Ida07053da59f14f8ef3820e48a7bc73eef15840f
2015-11-24 00:44:32 +00:00
Winson
b1e71d09f2 Making stack visibility more specific to the launching tasks.
- When going from freeform -> overview, hide all freeform tasks until
  the final frame of the enter transition, if the stack we are
  launching to/from is in the freeform stack
- When going from overview -> freeform, hide all freeform tasks after
  the first frame of the exit transition, if we are launching a task
  in the freeform stack
- Separate the dragging gesture from the freeform launch visibility

Bug: 25842568

Change-Id: Ibcd17a02eeb70244ac73f599b8c23c71d22f73fd
2015-11-23 16:37:45 -08:00
Winson
e5f1faa9f8 Porting over keyboard changes from other branch.
- Allow ignoring alt-key release when interacting via touch while 
  alt-tab is pressed (ag/814903)
- Cancel window animations only if the stack scrolls via alt-tab 
  (ag/809873)
- Fixing issue with old task load plan being consumed if user alt-tabs
  before Recents is resumed (ag/811354)
- Canceling enter animations when the stack scrolls (ag/814461)

Change-Id: I7450f0a280571e98212f321b1e61219d149fed65
2015-11-23 15:56:37 -08:00
Winson
397ae74733 Removing unused code
- Removing code related to dismiss-all and stack filtering

Change-Id: Ife3c300970b234a5f7828a3c04f1eb9cb861399f
2015-11-23 15:56:26 -08:00
Winson
8b1871d741 Adding tuner params for paging and full screen thumbnails.
- Adding “focused” stack state to support paging
- Changing the paging to match UX spec (only auto-page after the first
  tap)
- Removing old header focus animation

Change-Id: Id72825b8a1b1c0a2238ee184a6695b13c1d8cb1c
2015-11-23 15:55:52 -08:00
Winson
4993c2f17e Initial changes to stack layout to support paging and nonsquare thumbs.
- Moving to a couple piecewise curves to define the various overview
  layout states.  Added a new state for focus (to be used in follow up
  CL) to control paging of overview from the nav bar button.  This 
  allows us to control the visible range of items on the curve, and 
  to better fit other UI controls around the stack.
- Removed the scaling of the tasks in the stack
- Also refactoring parametric curve to just use the system Path

Change-Id: I4108da77986d86896576e36fa8f31189d6fcb6f3
2015-11-23 15:55:46 -08:00
Selim Cinek
a6a6f03c1b Fixed a bug where notifications were not updated inplace
The logic was inverted before.

Change-Id: Iaa16fc38905ebd6b10ba6eb925b8f332306feaa5
2015-11-23 23:49:33 +00:00
Adrian Roos
10613a9472 Merge "Visuals for Inline Reply" 2015-11-23 22:19:09 +00:00
Adrian Roos
fe84e1f436 Visuals for Inline Reply
Change-Id: I374a7ec82795f95fe2f3ce8c9e6b02c1479433af
2015-11-23 20:07:49 +00:00
Jorim Jaggi
f471594009 Fix velocity when dragging up from nav bar
Change-Id: I4afd0f41050ffaecd05de455afda5d006be2c30b
2015-11-23 18:53:51 +00:00
Makoto Onuki
28da2e3490 Fix "some user restrictions not working" issue
SettingsProvider used to prevent any changes to certain settings
when the corresponding user restriction is set, which isn't really what
these restrictions mean.
Even if a user restriction is set, it should still changing in the more
restricting direction.

Also stop setting "" to LOCATION_PROVIDERS_ALLOWED, which will simply
be ignored.

Bug 25614198

Change-Id: Ifa8edc2927e21e6c6174620c8c874c86c1dc0f75
2015-11-23 10:48:16 -08:00
Jorim Jaggi
bb42a46631 Don't play recents window animation when using affordance
Change-Id: Ifef60529ddda824790bf10cdb91abbb176703aac
2015-11-23 18:45:55 +00:00
Jorim Jaggi
030979c1e4 Don't play animation when docking stack with affordance
Change-Id: I1bb8ae4047e3de3a4ea159e7fad718914b9b5ba7
2015-11-23 18:35:02 +00:00
Philip P. Moltmann
c0c73271b0 Merge "printspooler.NotificationCOntroller: Remove deprecated APIs and silence other warnings." 2015-11-23 16:18:57 +00:00
Filip Gruszczynski
b9faa5d25c Merge "Move hiding of stack views into onStart from onResume." 2015-11-23 16:12:14 +00:00
Geoff Mendal
e4c77b8771 Merge "Import translations. DO NOT MERGE" 2015-11-23 14:06:13 +00:00
Geoff Mendal
0919aad855 Import translations. DO NOT MERGE
Change-Id: I870906bccabd39a122bcc6e0d8000cc8559fba78
Auto-generated-cl: translation import
2015-11-23 06:03:16 -08:00
Geoff Mendal
da8612ac12 Merge "Import translations. DO NOT MERGE" 2015-11-23 14:00:13 +00:00
Geoff Mendal
ffd5ef0a76 Merge "Import translations. DO NOT MERGE" 2015-11-23 13:57:17 +00:00
Geoff Mendal
d36d67445c Import translations. DO NOT MERGE
Change-Id: I852a848512375e624b758709aa12aacdb7fb98b2
Auto-generated-cl: translation import
2015-11-23 05:51:56 -08:00
Geoff Mendal
7684a41009 Import translations. DO NOT MERGE
Change-Id: I46e625b01bd8cdec98ad7c097c4c12e1e211f6d2
Auto-generated-cl: translation import
2015-11-23 05:48:40 -08:00
Geoff Mendal
569a7ab571 Import translations. DO NOT MERGE
Change-Id: I5eb347309ecaa015fb1486196e7600ab98d06b67
Auto-generated-cl: translation import
2015-11-23 05:33:01 -08:00
Philip P. Moltmann
dd635ce95c printspooler.NotificationCOntroller: Remove deprecated APIs and silence other warnings.
Change-Id: I53000e49793dccd6f53b0813e5ce97c5c6929832
2015-11-20 16:51:51 -08:00