Commit Graph

277484 Commits

Author SHA1 Message Date
Vladislav Kuzkokov
157b98c134 Merge "Add DevicePolicyManager.setBackupServiceEnabled as hidden API." into nyc-mr1-dev
am: dd6230d466

Change-Id: I92ab3621a9345a1322eba8cff81009d6baf05cea
2016-09-22 20:03:43 +00:00
Vladislav Kuzkokov
8a48085267 Add DevicePolicyManager.setBackupServiceEnabled as hidden API.
am: 5a122a1ce9

Change-Id: I134891f0b24cc666c34ae54cb3c937ba2f16648e
2016-09-22 20:03:40 +00:00
Wale Ogunwale
f5d1e35316 Don't take app screenshot in minimize docked stack.
When the docked stack is minimized its app windows are cropped
significantly so any screenshot taken will not display the apps
contain. So, we avoid taking a screenshot in that case.

This situation is going to be improve some in O when we switch
recents to also use saved surfaces in which cases it will be able
to display the last app content the user saw vs. just the app's
background color.

Bug: 29830173
Change-Id: I003aa074126ddcb57d5ff6dda756293146646196
2016-09-22 13:03:23 -07:00
Pavlin Radoslavov
c7dda10ee9 Removed MESSAGE_BIND_PROFILE_SERVICE messages on unbind
Add a missing call to remove all MESSAGE_BIND_PROFILE_SERVICE
message when unbinding and finishing.

Bug: 31442739
Test: manual, and "frameworks/base/core/tests/bluetoothtests" unit tests
Change-Id: I7e9a8f79a38d4eb8ab8b53be04650226fc72732e
(cherry picked from commit 2bbe13ebccb163c03fd6e74c4450dfd3a43b3984)
2016-09-22 20:02:33 +00:00
Jaewan Kim
8d45b4522d DO NOT MERGE Check caller for sending media key to global priority session am: 4e9af38ec4 -s ours am: 031fb04776 am: 2d88f87a82 am: 64110c6bf1 -s ours am: 8d14f464b5 am: f595add2ff am: e1e6f0a7f5 am: 9632afe809 -s ours am: b96d410537
am: 9b790e27b7

Change-Id: I9d22f3dd260464e2aa82e33c7b0764c5bfae9a4e
2016-09-22 20:02:03 +00:00
Todd Kennedy
56054285f3 Merge "Add remote control of Instant Apps" into nyc-mr1-dev
am: 03779f227a

Change-Id: I5a6339f9398cacc0feedca8dfc5dcac5d46c4b04
2016-09-22 20:01:10 +00:00
Jaewan Kim
3e2f3c2e31 Merge "DO NOT MERGE Check caller for sending media key to global priority session" into lmp-mr1-dev am: 162c80bf0c am: e47b5adce2 am: bea0b3ec06 -s ours am: 91ccfa1def am: 4167620d33 am: 2c9ad0ff81 am: b6d6519e34 -s ours am: 61fda61d20
am: 83ded12e86

Change-Id: I06e443fa305dea4f8465158eeca19931d89cfd71
2016-09-22 20:01:06 +00:00
Jaewan Kim
5886b4ca7b DO NOT MERGE Check caller for sending media key to global priority session am: 6a1567c267 am: 709d112eca am: 6bf115121c -s ours am: 30d1440861 am: ba1d8300be am: 016d110993 am: 1adff2ee05 -s ours am: 78efad6418
am: 53adfd6294

Change-Id: I4389cf598e8aa4789717439da450c7de3e9e37dc
2016-09-22 20:00:10 +00:00
Treehugger Robot
f4c8c3590a Merge "Skip uninstalled package for getPackagesForUid()" 2016-09-22 20:00:01 +00:00
Colin Cross
6f02f57f12 Merge "Remove has_trivial_move trait from StringPool types"
am: d333f28397

Change-Id: I6d606897a3edeb01425748105efeb86a43719226
2016-09-22 19:59:13 +00:00
Ajay Panicker
0471ffa55c Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into lmp-dev am: f78ff48d0d -s ours am: 7cd1668893 am: a5e128ba97 am: 94c08c2bed -s ours am: d4fe288933 am: f65661939b am: 630d577349 am: c9830d56e5 -s ours am: c5442c263a
am: b809b1f8aa

Change-Id: I2cf340eb0f26edadc1edb6bcdf052c45082e3794
2016-09-22 19:58:43 +00:00
Todd Kennedy
f308ffc915 Add remote control of Instant Apps
am: d15bb75af6

Change-Id: I0433b101966f65daeb5d1d2ea04cf648572a8e58
2016-09-22 19:58:11 +00:00
Ajay Panicker
5fc21fdbcc [DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed am: 27b3d578b9 -s ours am: 57fdbb97a6 am: 2cf025f976 am: 9c7ac98157 -s ours am: 1448a693d8 am: 3d4c737736 am: f6d8037708 am: 90eafb5322 -s ours am: b2a1dcb913
am: 6ffdf43ec3

Change-Id: Id58741db4a95f6cb381531d3b9d9a2a9ce67350e
2016-09-22 19:57:44 +00:00
Dirk Dougherty
a0b58a6cf0 Copy IN files to ID, temporarily leaving IN in place.
am: 9bbc0a2421

Change-Id: I9810aa023e82d4ff8d59157c1ba42ce9e6e71dcc
2016-09-22 19:57:05 +00:00
Ajay Panicker
c20376b2a0 Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into lmp-mr1-dev am: 447ac4b31d am: 4431d6cb5b am: 852e5a43b9 -s ours am: a70fffe8e7 am: d677e8d413 am: 73607db5a1 am: 05cd9942d9 -s ours am: 745254f98b
am: d91f2f4d2b

Change-Id: I6a22e59059ff3224de00b756684998392124eb5a
2016-09-22 19:56:53 +00:00
Ajay Panicker
916552b0c9 Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into klp-dev am: c119a677c4 am: 35d1b45b0f am: dc0f9fa9c9 -s ours am: 8919cc83bb -s ours am: 0241b6d88a am: 0fee65e58b am: 08fed21f2c -s ours am: 0029d03c0a am: afeaced48f am: 2a214fc5f2
am: 0ec10c8fdc  -s ours

Change-Id: I66bfa158fdf948f36a98c20c3afc7ee7d73bb920
2016-09-22 19:56:50 +00:00
Ajay Panicker
b412f807af [DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed am: 85bc33a8f4 am: 46442d1be1 am: 8be4dc7e16 -s ours am: c56c079470 am: 1783182332 am: 993015ce9a am: 8e172c638d -s ours am: 9338ffa148 am: 7e78a89923
am: 8e3293e81f

Change-Id: I8efb7cd14dacac60f020784c0395c17d32ab6364
2016-09-22 19:56:43 +00:00
Winson
ffaf07fed0 Fixing index bounds exception when TaskViews are added while dismissing.
Bug: 31518216
Change-Id: I749aa45f54d80d524f069922ac09d2f781c87f86
2016-09-22 19:47:41 +00:00
Winson
96f78f5046 Fixing RTL issues with transition and screen pinning.
Bug: 31367531
Change-Id: Id790293cc5246535d6fb829ec57e4ee640fea1a2
2016-09-22 19:47:31 +00:00
Winson
bd53a314f4 Defer launching next task until after first layout.
Bug: 30192607
Change-Id: I04cd182a795ea9600c9782056dc0adbe9a288af6
2016-09-22 19:46:15 +00:00
Colin Cross
d333f28397 Merge "Remove has_trivial_move trait from StringPool types" 2016-09-22 19:44:28 +00:00
TreeHugger Robot
6b87569b4c Merge "Null check for restoring LoaderManagers" into nyc-mr1-dev 2016-09-22 19:29:25 +00:00
TreeHugger Robot
8da796d0b8 Merge "Save activity state before stopping acitivity when device sleeps" into nyc-mr1-dev 2016-09-22 19:27:27 +00:00
TreeHugger Robot
10bafbd9f9 Merge "Immediately deliver new intent to paused activities." into nyc-mr1-dev 2016-09-22 19:26:36 +00:00
Selim Cinek
705442fa7d Added Emergency affordance feature
Added a service that listens whether emergency affordances
are necessary.

If the they are needed, it adds an option to the
global actions dialog that directly launches the
emergency call and also adds a long-press listener
to the keyguard emergency button.

Test: adb shell settings put global force_emergency_affordance 1 && adb shell settings put global emergency_affordance_number 111112
Fixes: 30404490
Change-Id: Ib96a15da2ef4b568a8d77140ebca6aa6f20f5ddb
2016-09-22 12:25:57 -07:00
Android Build Merger (Role)
62e519d02a Merge "Merge "Removing a temporary redirect for /ndk/guides/cmake.html" into nyc-dev am: 8b05feb5b4" into nyc-dev-plus-aosp 2016-09-22 19:24:07 +00:00
Android Build Merger (Role)
8139010d37 Merge "Removing a temporary redirect for /ndk/guides/cmake.html am: dafcbfa693" into nyc-dev-plus-aosp 2016-09-22 19:23:52 +00:00
Scott Main
f9c35c961b Merge "Removing a temporary redirect for /ndk/guides/cmake.html" into nyc-dev
am: 8b05feb5b4

Change-Id: Ib440e45e49b5c29120b57a4d28cb2760446a66d0
2016-09-22 19:23:12 +00:00
Ajay Panicker
0ec10c8fdc Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into klp-dev am: c119a677c4 am: 35d1b45b0f am: dc0f9fa9c9 -s ours am: 8919cc83bb -s ours am: 0241b6d88a am: 0fee65e58b am: 08fed21f2c -s ours am: 0029d03c0a am: afeaced48f
am: 2a214fc5f2

Change-Id: I95bd7f14d35808722c0453e6e441d3bc96528010
2016-09-22 19:23:06 +00:00
Adarsh Fernando
3955fef4b7 Removing a temporary redirect for /ndk/guides/cmake.html
am: dafcbfa693

Change-Id: I78e5adb6f17d391a16d2b4a8e00078e1390db446
2016-09-22 19:23:05 +00:00
Todd Kennedy
52f179fd0e Pass url to the AIA supervisor
The supervisor needs the URL in order to start the correct AIA.

Change-Id: Ied9b50031b31f6da07196efbccbb27cacda1355f
Fixes: 31664252
Test: manually ran through ephemeral scenario
2016-09-22 12:23:03 -07:00
yuanhuihui
689c4ab00a Merge "[ActivityManager] Reset killed flag at attachApplicationLocked" am: 1d5447d70b
am: 5820f7fff5

Change-Id: I6062fdf8a686fcb64340b26f8aa200d5506fb91c
2016-09-22 19:21:50 +00:00
Wei Liu
aa09bef939 Merge "Allow shell to acquire wakelock." into cw-f-dev
am: 0712525f13

Change-Id: I1a081a2906acb5456f9dfdb57bcd82c99ecf4b60
2016-09-22 19:02:16 +00:00
Wei Liu
973a07c87e Allow shell to acquire wakelock.
am: 6e500010b1

Change-Id: I8331a2a2830551a87953edf040c1ed432e0bfd09
2016-09-22 19:01:42 +00:00
Jaewan Kim
dd883c7e87 Merge "DO NOT MERGE Check caller for sending media key to telephony service" into klp-dev am: 5b05226586 am: b38fbf9894 am: 84ecab6059 -s ours am: 5ac79fa0a1 -s ours am: 890f53a486 am: 1bf809c490 am: 6ad7c0f6ce -s ours am: 1c278e5652
am: bed7636243

Change-Id: I7d0fdb9db8a0593fe279a119751c17f940f88925
2016-09-22 19:01:08 +00:00
Jaewan Kim
0e31d93890 DO NOT MERGE Check caller for sending media key to telephony service am: d1641e8c27 am: 9477c1674c am: 27d24e01cb -s ours am: 8dffbcd169 -s ours am: f140f796ea am: 7eaeeb49bb am: 7ffaaca237 -s ours am: fa9983ec73
am: 900d1c90b3

Change-Id: I03db2d87943557beb6a98aa72f986c1ad0f7f03d
2016-09-22 19:00:14 +00:00
Wei Liu
0712525f13 Merge "Allow shell to acquire wakelock." into cw-f-dev 2016-09-22 18:37:26 +00:00
Jeff Sharkey
7e2bb3e6dd Recursively restorecon when SELinux label changes.
PackageManager has been pretty aggressive about asking installd to
restorecon over app data when it thinks something might have
changed.  However, in the vast majority of cases these are no-op
requests, and we waste a bunch of time recursively walking all
private data, easily costing 60+ seconds on dogfooder devices.

This change relies on new installd "create_app_data" behavior that
kicks off a recursive restorecon if it detects that the top-level
SELinux label on the app private data directory changes.  This means
that PackageManager no longer needs to track restoreconNeeded state.

Test: booted, verified that a label change triggered restorecon
Bug: 30768146
Change-Id: I0c8d4018cf8ff888d0ae07a82adc3d61a6002aad
2016-09-22 12:22:09 -06:00
Jaewan Kim
ded4df2e79 Merge "DO NOT MERGE Fix build" into lmp-dev
am: fce3b76452  -s ours

Change-Id: Iea1a397f79856070d5f801193c71721a8ff69936
2016-09-22 18:09:45 +00:00
Jaewan Kim
499871ebe9 DO NOT MERGE Fix build
am: dfedca4e43  -s ours

Change-Id: Ibf95b4c061129b2cd047e3b8a8da9f90cfea7e8f
2016-09-22 18:09:41 +00:00
Ajay Panicker
2a214fc5f2 Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into klp-dev am: c119a677c4 am: 35d1b45b0f am: dc0f9fa9c9 -s ours am: 8919cc83bb -s ours am: 0241b6d88a am: 0fee65e58b am: 08fed21f2c -s ours am: 0029d03c0a
am: afeaced48f

Change-Id: I579d7384e9a12e942a0afcd80fc41e9f2877eedb
2016-09-22 18:07:40 +00:00
Adam Powell
100ba76d7a Null check for restoring LoaderManagers
Bug 31671195
Test: core/tests/coretests/src/android/app/LoaderLifecycleTest.java

Change-Id: Ib553f7611814cc6759488aec505fd126ee664a9d
2016-09-22 10:53:45 -07:00
Jaewan Kim
fce3b76452 Merge "DO NOT MERGE Fix build" into lmp-dev 2016-09-22 17:46:59 +00:00
Shuo Gao
1e6d77e836 Enable shader cache for applications that shared UID with multiple packages too
Bug: 31224514

Frameworks supported a mature mechanism for shader cache per each package already,
but as a special case such as Settings APP, if there are several packages in this
application which means that multiple packages shared the same SharedUserID with it,
it won't initialize the graphics disk caches, thereby APP like Settings have to
rebuild and relink shader every time during launch, which cause a bad launching
performance, so here to enable the GFX and RS cache initialization for multiple
shared packages case too.

Change-Id: If0f927e3399b775804abf1d9a868887951f471c5
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
(cherry picked from commit 7c69a669a5)
2016-09-22 10:46:49 -07:00
Jaewan Kim
dfedca4e43 DO NOT MERGE Fix build
Bug: 29833954
Change-Id: Ia814969b516ac7cc0ad7431ebab40cc74fdf2a05
2016-09-22 17:43:35 +00:00
yuanhuihui
5820f7fff5 Merge "[ActivityManager] Reset killed flag at attachApplicationLocked"
am: 1d5447d70b

Change-Id: Id51a6dabbf1fec793ca0a905454a412359e0cd57
2016-09-22 17:28:31 +00:00
Dirk Dougherty
9bbc0a2421 Copy IN files to ID, temporarily leaving IN in place.
Change-Id: I1a92e4254fe57817cb555629059539aaec47e182
2016-09-22 10:21:29 -07:00
Colin Cross
cafc05357c Remove has_trivial_move trait from StringPool types
StringPool:entry* are not trivially moveable, as they contain Vector<>
objects.  The data in Vector<> is trivially moveable, but Vector<>
itself is a dynamic type with a vtable, which is not trivially
moveable.

Impact on aapt for frameworks-res is negligible, ~3%.

Bug: 31595853
Test: m -j framework-res
Change-Id: I562a46ef8934aed7aab5c5377db53d9cf64a08b9
2016-09-22 10:09:38 -07:00
Vladislav Kuzkokov
dd6230d466 Merge "Add DevicePolicyManager.setBackupServiceEnabled as hidden API." into nyc-mr1-dev 2016-09-22 17:09:06 +00:00
Scott Main
ba9db4b110 Merge "Removing a temporary redirect for /ndk/guides/cmake.html" into nyc-dev
am: 8b05feb5b4

Change-Id: Ib2367374818a66cb257ab772204dc1be79e47242
2016-09-22 16:57:45 +00:00