220592 Commits

Author SHA1 Message Date
Pablo Ceballos
dce45fd66b Merge "Add missing OpenGLES 3.1 bitfield constants." 2015-10-27 17:57:28 +00:00
Jorim Jaggi
6a6644c739 Merge "Add traces when windows are animating" 2015-10-27 17:04:50 +00:00
Steve McKay
f0e209ca09 Merge "Delete TestDocumentsProvider." 2015-10-27 16:51:43 +00:00
Jorim Jaggi
d9cabc50d1 Add traces when windows are animating
Change-Id: If52f72c27c88060f7a0e2ff53adb1579bf181f59
2015-10-27 09:38:16 -07:00
Winson Chung
980606d01b Merge "Refactoring the focus state to be independent of view focus." 2015-10-27 16:33:37 +00:00
Jorim Jaggi
5ac3a8a836 Merge "Coalesce layout traversal when resizing stacks" 2015-10-27 16:28:15 +00:00
Jorim Jaggi
c402520fe0 Coalesce layout traversal when resizing stacks
When resizing the docked stack, the other stacks are also resized,
leading to multiple layout traversals. Coalesce these by
introducing the concept of layout traversal coalscing.

In addition, don't cause layout refreshs for the stacks that are
currently not visible.

Bug: 25015474
Change-Id: I5692d00c044572a1bbb3ea218b0c31572585f5bd
2015-10-27 09:26:02 -07:00
Jorim Jaggi
7c4b0829ea Merge "Add development option to force everything resizable" 2015-10-27 16:21:14 +00:00
Jorim Jaggi
95d6bf143f Merge "Add long press on recents to dock top most task" 2015-10-27 16:20:30 +00:00
Wale Ogunwale
c8a5e4c16d Merge "[ActivityManager] Fix IndexOutOfBoundsException" am: a61515720a am: 6c8b91d8c2
am: 7dafc74fda

* commit '7dafc74fda1b4333d9035892502657e1015f91c6':
  [ActivityManager] Fix IndexOutOfBoundsException
2015-10-27 15:35:07 +00:00
Wale Ogunwale
7dafc74fda Merge "[ActivityManager] Fix IndexOutOfBoundsException" am: a61515720a
am: 6c8b91d8c2

* commit '6c8b91d8c2c657eb8a5b0afa00a3b93044447f56':
  [ActivityManager] Fix IndexOutOfBoundsException
2015-10-27 15:27:16 +00:00
Wale Ogunwale
6c8b91d8c2 Merge "[ActivityManager] Fix IndexOutOfBoundsException"
am: a61515720a

* commit 'a61515720ab95f6aa307c1fa4337c5c2078bad26':
  [ActivityManager] Fix IndexOutOfBoundsException
2015-10-27 15:19:56 +00:00
Jorim Jaggi
8ccdf3ac49 Add development option to force everything resizable
Add a development setting to force all activites to be
resizable. Currently, a restart is required after changing
this setting. Also remove all the code that forced a single
task to be resizable, as we have a global option now.

Bug: 24815256
Change-Id: I3237c9b6ce96ff9aa9819592ab0c2807fde88dc4
2015-10-27 08:18:36 -07:00
Jorim Jaggi
75b2597e58 Add long press on recents to dock top most task
- Change the gesture to unpin a locked task into long pressing
the back button.
- When long pressing recents, dock top most task.

Change-Id: I1386151e781f4034cfb97d3c8d46c709d19fe779
2015-10-27 08:17:03 -07:00
Wale Ogunwale
a61515720a Merge "[ActivityManager] Fix IndexOutOfBoundsException" 2015-10-27 15:12:56 +00:00
Keisuke Kuroyanagi
5918519f97 Merge "Add null check for MotionEvent#getDevice." 2015-10-27 11:08:38 +00:00
Keisuke Kuroyanagi
276793a808 Merge "Stop making a reversed selection with mice." 2015-10-27 09:45:32 +00:00
Daichi Hirono
78312be559 Merge "Let MtpDatabase add device name to storage root." 2015-10-27 08:34:34 +00:00
Keisuke Kuroyanagi
9a4450ba6c Add null check for MotionEvent#getDevice.
MotionEvent#getDevice can return null when the device is
unknown.

Change-Id: I902a96300307e3b2d3b324a2998e470254388e27
2015-10-27 17:29:53 +09:00
Daichi Hirono
85a808bf96 Let MtpDatabase add device name to storage root.
We have added device name to storage root by ag/790395.
But the change was not added to MtpDatabase class.

BUG=25162822

Change-Id: I019a9cf770a91c43b4e2f4e81e74b40175fd4872
2015-10-27 17:27:16 +09:00
Daichi Hirono
afe97dd103 Merge "Remove fullpath from MtpDatabase." 2015-10-27 08:26:45 +00:00
Keisuke Kuroyanagi
ead6ba3a63 Stop making a reversed selection with mice.
Bug: 24889605
Bug: 24475013
Change-Id: I6d39e050656dc28e523fab862c84054169e6300b
2015-10-27 17:26:07 +09:00
Daichi Hirono
88d2f781f0 Remove fullpath from MtpDatabase.
If the remote MTP device is backed by typical file system, the file name
is unique among files in a directory. However, MTP protocol itself does
not guarantee the uniqueness of name so we cannot use fullpath as ID.

Instead of fullpath, we use artifical ID generated by MtpDatabase
itself. So we don't need to store fullpath in the database.

BUG=25162822

Change-Id: I06598ce631a3221ed72e11734dbdaefef4c6349c
2015-10-27 17:14:50 +09:00
Daichi Hirono
71abc95dc9 Merge "Move TestResources class to the outside of MtpDocumentProviderTest." 2015-10-27 08:09:25 +00:00
Daichi Hirono
b999b0cb0f Move TestResources class to the outside of MtpDocumentProviderTest.
TestResources class will be used in MtpDatabaseTest.

BUG=25162822

Change-Id: I4f51b517532bbc111e95e7ebd96787a2e6f0f87a
2015-10-27 17:08:20 +09:00
Keisuke Kuroyanagi
742bd40328 Merge "Fix: Last char can be excluded from mouse selection." 2015-10-27 05:46:47 +00:00
Keisuke Kuroyanagi
09424c83d6 Merge "Add mouse interaction UI test for TextView." 2015-10-27 05:46:00 +00:00
Geoff Mendal
97dffdb72f Merge "Import translations. DO NOT MERGE" into cw-e-dev am: 337495bded -s ours am: 515e97a52c -s ours
am: ff20c28c38  -s ours

* commit 'ff20c28c3813f412379c03457c6b3f31e53d81c4':
  Import translations. DO NOT MERGE
2015-10-27 04:51:39 +00:00
louis_chang
8f0555ac55 [ActivityManager] Fix IndexOutOfBoundsException
Symptom:
The stack was deleted during cleanup, so the stack
list size has reduced by one and cause this issue.

IndexOutOfBoundsException: Invalid index 1, size is 1

Change-Id: Ic6722aed98a0ad789b331d00e89cb74bf3b36d4c
2015-10-27 10:45:53 +08:00
Winson
0d14d4da91 Refactoring the focus state to be independent of view focus.
- This allows us to ensure that a task is always focused in the stack,
  which simplified focus logic, and allows us to unify the accessibility
  focus and normal view focus handling.
- Refactoring some focus actions to events
- Adding flags to experiment with fast-toggle.

Change-Id: I5623f2a5584994033f1ebf1760b55e8bd019944b
2015-10-26 17:38:29 -07:00
Dianne Hackborn
780318180f Merge "Bring back the sensing alarm. We need it!" 2015-10-27 00:15:02 +00:00
Chong Zhang
0c4a76959a Merge "Use saved window surface to start entering animation" 2015-10-26 23:57:13 +00:00
Mitchell Wills
61da59bd9c Merge "Fix TimeUtils.formatDuration for exactly one of a unit" 2015-10-26 23:53:57 +00:00
Chong Zhang
db20b5f7a1 Use saved window surface to start entering animation
When app is paused, keep the window surface around. Use it to start
enter animation if size remains unchanged on next launch.

bug: 19940527
Change-Id: Icf88d81f08b59e8bd946e410611f5098b253eb10
2015-10-26 16:30:16 -07:00
Chris Craik
ac7062e7f1 Merge "Initial version of clipped saveLayer in new pipeline" 2015-10-26 23:12:46 +00:00
Steve McKay
bbbb644a2e Delete TestDocumentsProvider.
We can use StubProvider.

Change-Id: I8a38acd86e2ce57ff50f05710cb7f7f4c1fec63d
2015-10-26 16:09:06 -07:00
Chris Craik
818c9fbf1d Initial version of clipped saveLayer in new pipeline
Additionally disables usage of FBO cache, so FBO destruction safely
interacts with renderstate caching.

Change-Id: I25c277cb7afec2ca33bf226445d6c8867a15a915
2015-10-26 15:51:48 -07:00
Filip Gruszczynski
541f92cb19 Clean up and document app transition animation loading.
We had three different sources of information about where the
animated window will start/end: appFrame, containingFrame,
containingWidth/Height. We can merge these into one, because
containingWidth/Height can be calculated from containingFrame and
appFrame is actually used only once and the containingFrame is not
used in the same scenario.

Also, documentation about the frames and insets. The rest is fairly
simple, but frames and insets need explanation of how they are used.

Finally, simplify naming.

Bug: 25246833

Change-Id: I0accc2f23792bca4e1b9941007c6249745e023ce
2015-10-26 14:55:31 -07:00
Filip Gruszczynski
455f8e2414 Merge "Improve infrastructure for replacing windows." 2015-10-26 21:48:30 +00:00
John Reck
1e4313dfd0 Merge "eglSwapBuffers can also return EGL_BAD_NATIVE_WINDOW" 2015-10-26 21:32:52 +00:00
Dianne Hackborn
18acb55de5 Bring back the sensing alarm. We need it!
Change-Id: I9f42dc19b99b7550189449d0a5100caa140810c1
2015-10-26 14:31:07 -07:00
Filip Gruszczynski
b6e6662462 Improve infrastructure for replacing windows.
We need to be more precise when removing the window that is being
replaced. We used to depend on the fact that we can remove it after
the first draw of the new added window. However, due to resizing the
old window might reset its draw state and that will trigger a removal
of that window.

We need to add an information about the window that is replacing the
old one and only when this new window draws itself, we remove the old
one.

This improves the transition after maximizing docked window. This is
a situation where first resize operation finishes and immediately
after we have a replacement operation.

Bug: 24914011
Change-Id: Ia8e5bb7872787e663ba23f26588f9c4db1a5e574
2015-10-26 14:11:32 -07:00
Filip Gruszczynski
20070371f3 Merge "Align the freeform to docking animation." 2015-10-26 21:09:27 +00:00
Filip Gruszczynski
2dfcf840aa Align the freeform to docking animation.
It was not aligned, because we didn't take into account that the
docked window will be cropped by the status bar and navigation
bar. We need to account for that when creating the animation.

Bug: 24913915
Change-Id: Idb82eefa14d65fe3bf6b25a9bd94c12dc8cbe648
2015-10-26 14:08:22 -07:00
John Reck
c2547fa6f9 eglSwapBuffers can also return EGL_BAD_NATIVE_WINDOW
Bug: 25017107
Change-Id: I545a746ba89d577de5769bc3e7dd335a100638c0
2015-10-26 13:52:52 -07:00
Steve McKay
44063d7559 Merge "Address followup comments from 793838." 2015-10-26 20:51:09 +00:00
Steve McKay
1eafb666c2 Address followup comments from 793838.
Change-Id: Ie77112ea38796f970a8f688c1c94aeb05f46ab78
2015-10-26 13:27:59 -07:00
Phil Burk
2cce579ed2 Merge "MIDI docs: add missing bracket" 2015-10-26 20:26:11 +00:00
Xiaohui Chen
29635859b8 Merge "Scan package with null user context." 2015-10-26 20:01:51 +00:00
Xiaohui Chen
8e46e7db5d Scan package with null user context.
Bug: 25185277
Change-Id: Ib15c04b55b10e315f186dd58a9489bbfcd527061
2015-10-26 20:00:16 +00:00