221615 Commits

Author SHA1 Message Date
Todd Kennedy
ec059d839d Move 'un/install' to cmd
Move the implementation of the install variants and uninstall to the cmd
command. Additionally, make two other important changes: 1) replace calls
to the legacy PackageManager#installPackageAsUser with the PackageInstaller
2) allow streaming package bits for 'pm install'

Change-Id: Ia49dac0ccd6470f9d1c1964bdeb3c0b22b856075
2015-11-06 09:27:22 -08:00
Jeff Sharkey
7ecaea83d4 Block directory selection in openable modes.
When picking documents to return to apps requesting CATEGORY_OPENABLE
we can't let the user select directories.

Bug: 25455200
Change-Id: I8076883ee5b019eab4d2adb841952865f21e413e
2015-11-06 09:16:22 -08:00
Svet Ganov
f2acc54aad Fix some docs
Change-Id: Ie28788330249a1f96b7b168a05546d3d0862a9cf
2015-11-06 17:16:06 +00:00
Matt Sarett
746f86815b Rename SkBitmapRegionDecoder to BitmapRegionDecoder
This is temporary, we are planning to delete this class.
Renaming will allow us to have an SkBitmapRegionDecoder class
in Skia.

Change-Id: I8d24d481d4e8cf782f578fa6deb6e3245c998a37
2015-11-06 16:30:34 +00:00
Jorim Jaggi
dcf467ca36 Fix flicker at the end of docked stack divider animation
Because w.isDragResize() was still true but we already
cleared the flag of the divider controller that it was
resizing, there was a frame at the end of the resize
operation at which all stack surfaces were placed at 0/0,
leading to a flicker.
Fix flicker at the end of docked stack divider animation

Because w.isDragResize() was still true but we already
cleared the flag of the divider controller that it was
resizing, there was a frame at the end of the resize
operation at which all stack surfaces were placed at 0/0,
leading to a flicker.

Change-Id: I126765a31703e5405687bcc511960a41024eb652
2015-11-06 16:18:14 +01: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
a7262a8956 Immediately start resizing when touching docked divider
Before, the surface was made full-screen only after
a certain amount of time. Now, immediately make the surface
full-screen, as soon as the divider is touched, to make
resizing much snappier.

Bug: 24507122
Change-Id: I9425785fca4e62964a959a432c80a81d346602c5
2015-11-06 16:17:42 +01:00
Jorim Jaggi
253a20fad8 Fix black holes and flickering in docked resizing
When we start a resize with the docked stack divider,
set the surface background to be full-screen, and use
the traditional surface clipping/positioning in window
manager to adjust the size. This ensures that we don't
have any black holes because of asynchronicity (except
at the very beginning, but this can be worked around
later), and the position of the right/bottom activity
is always in sync with the position of the divider.

Also fix a bug in NonClientDecorView where the first
request to draw was dropped (because the thread hasn't
started up yet), and the main thread was waiting for it
indefinitily.

Bug: 24507122
Change-Id: I623bd48d5be64fac2fba45241b84f265944d200d
2015-11-06 16:17:14 +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
Bart Sears
8382f98f62 Merge "Revert "Clarify geometry management for SurfaceView"" 2015-11-06 09:08:46 +00:00
Bart Sears
7d73643f7a Revert "Clarify geometry management for SurfaceView"
This reverts commit 78a45f2bd8794d7a85e7443820862d466edf2324.

Change-Id: I782f688f52a85df84d9facef2fbf88c28f4a7082
2015-11-06 09:07:58 +00:00
Pablo Ceballos
6aff9068f9 jni: Regenerated EGL/GLES JNI files to support null arguments
Bug 9321681

Change-Id: I397c1fbdfcc38a697b4f608546822a739e55e1d9
2015-11-05 20:14:34 -08:00
Rob Carr
b9765b4c15 Merge "Clarify geometry management for SurfaceView" 2015-11-06 02:09:35 +00:00
Vladislav Kaznacheev
36ebe4c618 Merge "Expose the desktop location of an unconsumed drag and drop" 2015-11-06 01:31:54 +00:00
Svetoslav Ganov
a2e846013b Merge "Take into account default app for default grants" am: 7abb36599d am: 57fb4bd4f7
am: 66ce9698dc

* commit '66ce9698dc06662b4f3d5aece80f33d52efca53f':
  Take into account default app for default grants
2015-11-06 00:52:35 +00:00
Filip Gruszczynski
6e9650d7ec Merge "Fix wallpaper flicker when docking a window from freeform." 2015-11-06 00:51:04 +00:00
Svetoslav Ganov
66ce9698dc Merge "Take into account default app for default grants" am: 7abb36599d
am: 57fb4bd4f7

* commit '57fb4bd4f704c93ff73e055e6602ee18f7dbf669':
  Take into account default app for default grants
2015-11-06 00:46:35 +00:00
Svetoslav Ganov
8800ac78e9 Merge "Revert "Take into account default app for default grants"" am: 9ae3aeec53 am: 0c4ce4474f
am: 88cdc715c0

* commit '88cdc715c0795969be7f68d7363a0edfecebeea2':
  Revert "Take into account default app for default grants"
2015-11-06 00:43:44 +00:00
Svetoslav Ganov
57fb4bd4f7 Merge "Take into account default app for default grants"
am: 7abb36599d

* commit '7abb36599d9537296d9a51f766152025c6ed0491':
  Take into account default app for default grants
2015-11-06 00:40:48 +00:00
Svetoslav Ganov
88cdc715c0 Merge "Revert "Take into account default app for default grants"" am: 9ae3aeec53
am: 0c4ce4474f

* commit '0c4ce4474ff0020b2b041f26fb00efbdc0783285':
  Revert "Take into account default app for default grants"
2015-11-06 00:36:44 +00:00
Svetoslav Ganov
7abb36599d Merge "Take into account default app for default grants" 2015-11-06 00:34:21 +00:00
Svetoslav
5d05bbea5f Take into account default app for default grants
Change-Id: Ib78c7dbda65d405bbf74544cad18e5e10bfcdeec
2015-11-05 16:33:05 -08:00
Filip Gruszczynski
dcdb3342a1 Merge "Fix minor problems when resizing/maximizing docked window." 2015-11-06 00:32:35 +00:00
Svetoslav Ganov
0c4ce4474f Merge "Revert "Take into account default app for default grants""
am: 9ae3aeec53

* commit '9ae3aeec532ce5a7908d395049efb61399875360':
  Revert "Take into account default app for default grants"
2015-11-06 00:31:13 +00:00
Chong Zhang
30126299bb Merge "Destroy dimLayer surface in removeDimLayerUser() if it is not fullscreen." 2015-11-06 00:26:07 +00:00
Svetoslav Ganov
9ae3aeec53 Merge "Revert "Take into account default app for default grants"" 2015-11-06 00:24:59 +00:00
Svetoslav Ganov
d2bbf1bf0a Revert "Take into account default app for default grants"
Apparently OEMs can set the chooser so this patch is not enough since it assumes the chooser is a platform component.

This reverts commit fce33d58d87fd494686aae4e21332b58ec260b73.

Change-Id: I3b8e499d2f0a731a227d193f6c5d6ed528be2272
2015-11-06 00:24:47 +00:00
Filip Gruszczynski
63a35e2343 Fix minor problems when resizing/maximizing docked window.
When maximizing the transition should originate from visible bounds, so
the first frame matches what is visible to the user. When switching to
the big surface, we only need to increase the layer by one, instead of
having artificially large value. If we use the large value, it will
cause a flicker over system windows.

Also includes some cleanup, like static imports and necessary logging.

Bug: 24913915

Change-Id: I84d7594622aa639e2008c662f941edf9c20b3202
2015-11-05 16:16:19 -08:00
Tenghui Zhu
992fb80d8e Merge "When the incoming light source is invalid, don\'t generate any shadow" am: 3226c57321 am: cca2857ebb
am: a1d1d184ac

* commit 'a1d1d184ac4d44e44d051de881106e07aee0464d':
  When the incoming light source is invalid, don't generate any shadow
2015-11-06 00:10:41 +00:00
Tenghui Zhu
a1d1d184ac Merge "When the incoming light source is invalid, don\'t generate any shadow" am: 3226c57321
am: cca2857ebb

* commit 'cca2857ebb52d3ba06bbd42de7db2c33e04cf0cc':
  When the incoming light source is invalid, don't generate any shadow
2015-11-06 00:06:02 +00:00
Tenghui Zhu
cca2857ebb Merge "When the incoming light source is invalid, don\'t generate any shadow"
am: 3226c57321

* commit '3226c57321f15384ef7c1e93589c6d2a58cbe86c':
  When the incoming light source is invalid, don't generate any shadow
2015-11-06 00:00:33 +00:00
Tenghui Zhu
3226c57321 Merge "When the incoming light source is invalid, don't generate any shadow" 2015-11-05 23:56:56 +00:00
Chong Zhang
d841628aef Merge "Exclude system decor area from tap detection." 2015-11-05 23:50:39 +00:00
Chris Craik
6d9df3974b Merge "Add z-reordering support to OpReorderer" 2015-11-05 23:48:54 +00:00
Teng-Hui Zhu
83ea5b7b22 When the incoming light source is invalid, don't generate any shadow
b/25417885

Change-Id: I4b87e35ca68091fd0409cb9fe9b9400af860a507
2015-11-05 15:48:35 -08:00
Chris Craik
161f54b2d4 Add z-reordering support to OpReorderer
Change-Id: I3fa969fe53cf648d145810f69fa7dada376c0b9a
2015-11-05 15:45:59 -08:00
Sanket Agarwal
a00acdd1b4 Fix signature for a function in java (int (I) -> long (L) ).
Change-Id: Icd632ca9ba79be7f4dc322b35c25ca9f853258a3
2015-11-05 15:45:47 -08:00
Robert Carr
78a45f2bd8 Clarify geometry management for SurfaceView
In the hardware accelerated case, RenderThread needs
to be the authority of information on the geometry of
the SurfaceView (this will occur via moving the
repositionWindow call to RenderThread). In order
to support this we have to enable calling relayoutWindow
without geometry (so that it will not fight with
repositionWindow). Add such a mode to relayoutWindow
and use it from SurfaceView. Add size to repositionChild
while we are here.

Change-Id: I12f85f586a38bf86367f3d964cb49f19003d441f
2015-11-05 15:37:42 -08:00
Chris Craik
679f9863f9 Merge "Add more RenderNode property support in OpReorderer path" 2015-11-05 23:32:30 +00:00
Chong Zhang
cb1887ecf9 Destroy dimLayer surface in removeDimLayerUser() if it is not fullscreen.
For a non-fullscreen dimLayerUser, its dimLayer surface is not shared with
other dimLayerUsers and should be destroyed when we remove it from mState.

Change-Id: Iaf300178c2534b87fccca99a836ae3416605c9ca
2015-11-05 15:28:40 -08:00
Chris Craik
76caecf421 Add more RenderNode property support in OpReorderer path
Change-Id: I0163fe91d8145e33019739c191bbab0432a5f9aa
2015-11-05 15:25:12 -08:00
Sanket Agarwal
7058e4ca58 Radio features for Automotive usecase.
1. Add clock to metadata - If the CAR does not have a clock (no network
or bad clock) then Radio RDS could be used as a proxy.
2. Add support for emergency announcement - If the CAR wants to make an
emergency announcement.
    2.1 Add support for callbacks.

Bug: b/24807501
Bug: b/22701655

Change-Id: Ib3131de03a022181559fd31da6701d9d3fa8698d
(cherry picked from commit 659688a129189f2a9aa353ddf9e107d5f293c4ca)
2015-11-05 22:50:59 +00:00
Vladislav Kaznacheev
c748241523 Expose the desktop location of an unconsumed drag and drop
When dispatching DragEvent for ACTION_DRAG_ENDED action
getX and getY will return the location of the drop if it was not
consumed by any app.

Consumed drops will return (0,0) location as before.

Bug: 25486808
Change-Id: Ic57d94b42de62d8327e9ce47d92ba335c21b8ae2
2015-11-05 14:40:27 -08:00
Jeff Tinker
45eb9b39f4 Extend MediaCodec.CryptoInfo to support Sample AES
API changes only, implementation to follow

b/23719082

Change-Id: I7cbd0cdf03a8b5b67628cde200c3df6a9253fdbf
2015-11-05 14:21:25 -08:00
Paul Lawrence
557b64abad Merge "Fix build" 2015-11-05 22:19:52 +00:00
Adam Lesinski
b88b69a792 Fix non-positional format strings
AAPT doesn't detect non-positional format strings across tags. AAPT2 does.

Change-Id: I9c517f714727e39f195f760816482b6e088cc5f6
2015-11-05 22:18:11 +00:00
Paul Lawrence
6bcc32504f Fix build
Change-Id: I0ebff8e41c2aa5bec2466d075d9143a5a525e02d
2015-11-05 14:17:03 -08:00
Colin Cross
290b23a1e1 Fix build
std::abs requires <cstdlib>

Change-Id: I0722340d17aed88c4c8dabcb723d432b05cebedb
2015-11-05 22:15:18 +00:00
Makoto Onuki
803d6757fd Do not allow DO and PO running on the same user.
Bug 25346603

Change-Id: Ic5fbed82466a538fbf64ef802fc2624dd67313bb
2015-11-05 14:11:53 -08:00