OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add API to disable snapshotting of activities"
Jorim Jaggi [Wed, 22 Mar 2017 16:42:52 +0000 (16:42 +0000)]
Merge "Add API to disable snapshotting of activities"

7 years agoMerge "Use only official pdfium APIs"
Philip P. Moltmann [Wed, 22 Mar 2017 16:20:35 +0000 (16:20 +0000)]
Merge "Use only official pdfium APIs"

7 years agoMerge "Don't unlock the work profile if it is turned off."
TreeHugger Robot [Wed, 22 Mar 2017 16:11:42 +0000 (16:11 +0000)]
Merge "Don't unlock the work profile if it is turned off."

7 years agoMerge "Unhide Typeface construction APIs."
TreeHugger Robot [Wed, 22 Mar 2017 15:40:11 +0000 (15:40 +0000)]
Merge "Unhide Typeface construction APIs."

7 years agoMerge "Null check! Now with a test"
TreeHugger Robot [Wed, 22 Mar 2017 15:20:31 +0000 (15:20 +0000)]
Merge "Null check! Now with a test"

7 years agoMerge "Move global actions to sysui and add plugin interface"
TreeHugger Robot [Wed, 22 Mar 2017 15:06:42 +0000 (15:06 +0000)]
Merge "Move global actions to sysui and add plugin interface"

7 years agoAdd API to disable snapshotting of activities
Jorim Jaggi [Wed, 22 Feb 2017 15:45:48 +0000 (16:45 +0100)]
Add API to disable snapshotting of activities

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Test: Launch DisableScreenshotsActivity, go to recents, make sure
content is white.
Bug: 31339431

Change-Id: I329925d2fca389e561da3389a67fe888b5bb1033

7 years agoMerge "Move Accounts NotificationChannel earlier, before clearCallingIdentity"
TreeHugger Robot [Wed, 22 Mar 2017 14:51:24 +0000 (14:51 +0000)]
Merge "Move Accounts NotificationChannel earlier, before clearCallingIdentity"

7 years agoMerge "Allow the Instant App installer to be dynamic"
Todd Kennedy [Wed, 22 Mar 2017 14:27:38 +0000 (14:27 +0000)]
Merge "Allow the Instant App installer to be dynamic"

7 years agoMerge "Allow channels to have a user visible description."
TreeHugger Robot [Wed, 22 Mar 2017 14:03:56 +0000 (14:03 +0000)]
Merge "Allow channels to have a user visible description."

7 years agoMove global actions to sysui and add plugin interface
Jason Monk [Wed, 22 Mar 2017 00:33:59 +0000 (20:33 -0400)]
Move global actions to sysui and add plugin interface

 - Move default global actions ui to sysui
 - Add fallback legacy interface in case sysui breaks
 - Switch to fallback if sysui dies or isn't responding

Test: Long-press power
Change-Id: I943522611de5dbbee61e66c67cf3a56379091e97

7 years agoMerge "XML Support for non system font providers"
TreeHugger Robot [Wed, 22 Mar 2017 13:22:36 +0000 (13:22 +0000)]
Merge "XML Support for non system font providers"

7 years agoMerge "Explicitly rebind to a transport after timeout"
TreeHugger Robot [Wed, 22 Mar 2017 13:18:31 +0000 (13:18 +0000)]
Merge "Explicitly rebind to a transport after timeout"

7 years agoDon't unlock the work profile if it is turned off.
Andrew Scull [Fri, 3 Mar 2017 15:38:48 +0000 (15:38 +0000)]
Don't unlock the work profile if it is turned off.

Test: Turn off work, lock and unlock device with PIN/password/pattern,
turn on work and now you get a screen lock prompt.
Test: runtest frameworks-services -c com.android.server.LockSettingsServiceTests

Change-Id: I0c6946af4ffb1546ffbd4d80c11fa4b8ab5555bc

7 years agoXML Support for non system font providers
Clara Bayarri [Tue, 21 Feb 2017 18:19:11 +0000 (18:19 +0000)]
XML Support for non system font providers

The certs needed to identify non preinstalled providers
can now be declared in XML, using a resources array.

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
runtest --path frameworks/base/core/tests/coretests/src/android/content/res/FontResourcesParserTest.java
Bug: 35025705
Change-Id: Ibf12ad409aa5a873ddb32b1383c147728e664c23

7 years agoExplicitly rebind to a transport after timeout
Michal Karpinski [Mon, 6 Mar 2017 17:24:57 +0000 (17:24 +0000)]
Explicitly rebind to a transport after timeout

When a TransportConnection received onServiceDisconnected() we give automatic rebinding
a chance, but if it doesn't happen within a few minutes we take matters into our hands
and attempt to rebind explicitly.
The timeout is significantly lower if the device is still unprovisioned - this is to increase
chances of proper transport binding during the setup process.

Bug: 34464359
Bug: 30964151
Test: manual, by crashing gms and gms.persistent process with "adb shell cmd activity crash #pid"
      and waiting for timeout to kick in
Change-Id: Ia7e5b0e54faf48ba8566f50057a3cae8bb3ab137

7 years agoMerge "Use getPackageInfoAsUser in requestBufferForProcess"
TreeHugger Robot [Wed, 22 Mar 2017 09:46:44 +0000 (09:46 +0000)]
Merge "Use getPackageInfoAsUser in requestBufferForProcess"

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc...
Daichi Hirono [Wed, 22 Mar 2017 08:04:27 +0000 (08:04 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc am: 42d6843aa4
am: 654d7c498c  -s ours

Change-Id: I43e6660d0578dcb8f8d9f741466b0b51a8f40605

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc
Daichi Hirono [Wed, 22 Mar 2017 07:59:54 +0000 (07:59 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc
am: 42d6843aa4

Change-Id: Idc1b507555415d467669c7e1d1c9035b449de763

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data."
Daichi Hirono [Wed, 22 Mar 2017 07:55:57 +0000 (07:55 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data."
am: 7b26041ccc

Change-Id: Ie747a28fe588c15789d965d6274cb717ea9a5fb0

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data."
Treehugger Robot [Wed, 22 Mar 2017 07:47:19 +0000 (07:47 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data."

7 years agoMerge "Remove mediacodec from NATIVE_STACKS_OF_INTEREST."
TreeHugger Robot [Wed, 22 Mar 2017 06:15:34 +0000 (06:15 +0000)]
Merge "Remove mediacodec from NATIVE_STACKS_OF_INTEREST."

7 years agoStop holding mProxyLock while downloading PAC script data.
Daichi Hirono [Fri, 17 Mar 2017 00:12:12 +0000 (09:12 +0900)]
Stop holding mProxyLock while downloading PAC script data.

Holding PacManager#mProxyLock for long time eventually causes ANR when
launching new applications.

1. ActivityThread#handleBindApplication blocks until

   ActivityThread#handleBindApplication
   -> ConnectivityService#getProxyForNetwork()
   -> ConnectivityService#getDefaultProxy()

  obtains the lock of ConnectivityService#mProxyLock

2. ConnectivityService#mProxyLock can be held by
   ConnectivityService#setGlobalProxy() running on another thread until

   ConnectivityService#setGlobalProxy()
   -> ConnectivityService#sendProxyBroadcast()
   -> PacManager#setCurrentProxyScriptUrl()

  obtains the lock of PacManager#mProxyLock

3. Before the CL, PacManager#mProxyLock could be held by
   mPacDownloader#run() on mNetThread until downloading a PAC script
   completed.

The CL fixes the step 3 so that mPacDownloader#run does not keep the
lock of PacManager#mProxyLock. It eventually fixes long blocking at
ActivityThread#handleBindApplication and ANR when launching an
application.

Bug: 36317236
Test: Build succeeded
Merged-In: I864e41e1142178681f8f1b4fb7750d37e3ab2076
Change-Id: I864e41e1142178681f8f1b4fb7750d37e3ab2076

7 years agoMerge "Revert "Move expensive TextClock operations to onAttach""
TreeHugger Robot [Wed, 22 Mar 2017 05:42:53 +0000 (05:42 +0000)]
Merge "Revert "Move expensive TextClock operations to onAttach""

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data."
TreeHugger Robot [Wed, 22 Mar 2017 05:09:02 +0000 (05:09 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data."

7 years agoStop holding mProxyLock while downloading PAC script data.
Daichi Hirono [Fri, 17 Mar 2017 00:12:12 +0000 (09:12 +0900)]
Stop holding mProxyLock while downloading PAC script data.

Holding PacManager#mProxyLock for long time eventually causes ANR when
launching new applications.

1. ActivityThread#handleBindApplication blocks until

   ActivityThread#handleBindApplication
   -> ConnectivityService#getProxyForNetwork()
   -> ConnectivityService#getDefaultProxy()

  obtains the lock of ConnectivityService#mProxyLock

2. ConnectivityService#mProxyLock can be held by
   ConnectivityService#setGlobalProxy() running on another thread until

   ConnectivityService#setGlobalProxy()
   -> ConnectivityService#sendProxyBroadcast()
   -> PacManager#setCurrentProxyScriptUrl()

  obtains the lock of PacManager#mProxyLock

3. Before the CL, PacManager#mProxyLock could be held by
   mPacDownloader#run() on mNetThread until downloading a PAC script
   completed.

The CL fixes the step 3 so that mPacDownloader#run does not keep the
lock of PacManager#mProxyLock. It eventually fixes long blocking at
ActivityThread#handleBindApplication and ANR when launching an
application.

Bug: 36317236
Test: Build succeeded and manually set PAC script
Change-Id: I864e41e1142178681f8f1b4fb7750d37e3ab2076

7 years agoMerge "Explicitly call out email in "social" category."
TreeHugger Robot [Wed, 22 Mar 2017 04:22:15 +0000 (04:22 +0000)]
Merge "Explicitly call out email in "social" category."

7 years agoMerge "Generalize min/max docs."
TreeHugger Robot [Wed, 22 Mar 2017 04:21:40 +0000 (04:21 +0000)]
Merge "Generalize min/max docs."

7 years agoMerge "Block CE SharedPreferences access before unlocked."
TreeHugger Robot [Wed, 22 Mar 2017 03:58:32 +0000 (03:58 +0000)]
Merge "Block CE SharedPreferences access before unlocked."

7 years agoMerge "Deprecate EXTRA_STREAM."
TreeHugger Robot [Wed, 22 Mar 2017 03:51:54 +0000 (03:51 +0000)]
Merge "Deprecate EXTRA_STREAM."

7 years agoMerge "Better ContentProvider error messages."
TreeHugger Robot [Wed, 22 Mar 2017 03:16:57 +0000 (03:16 +0000)]
Merge "Better ContentProvider error messages."

7 years agoMerge "Update PageViewCursor to correctly load window."
TreeHugger Robot [Wed, 22 Mar 2017 02:57:14 +0000 (02:57 +0000)]
Merge "Update PageViewCursor to correctly load window."

7 years agoUnhide Typeface construction APIs.
Seigo Nonaka [Wed, 22 Mar 2017 02:49:00 +0000 (19:49 -0700)]
Unhide Typeface construction APIs.

These APIs are necessary to construct Typeface from various combination
TTC index, variation settings, etc.

Bug: 33062398
Test: android.graphics.cts.TypefaceTest passes
Change-Id: Ie069700ed4f67efbec55331bef867f94d58e2a61

7 years agoGeneralize min/max docs.
Jeff Sharkey [Wed, 22 Mar 2017 02:47:56 +0000 (20:47 -0600)]
Generalize min/max docs.

Test: builds, boots
Bug: 35854472
Change-Id: Ic2505978f5872322affdc1a1ec23d84c7f1a1522

7 years agoMerge "Fix logic errors when checking the caller."
TreeHugger Robot [Wed, 22 Mar 2017 02:44:32 +0000 (02:44 +0000)]
Merge "Fix logic errors when checking the caller."

7 years agoBlock CE SharedPreferences access before unlocked.
Jeff Sharkey [Wed, 22 Mar 2017 02:31:51 +0000 (20:31 -0600)]
Block CE SharedPreferences access before unlocked.

Otherwise we'll end up "loading" an empty XML file because the errno
is ignored, and then we'll overwrite the real XML data later once
the user is unlocked.

Test: builds, boots
Bug: 36252783
Change-Id: If185e552f661894f79842afaa4e56ab4d796ce2c

7 years agoDeprecate EXTRA_STREAM.
Jeff Sharkey [Wed, 22 Mar 2017 02:23:36 +0000 (20:23 -0600)]
Deprecate EXTRA_STREAM.

ClipData is much more flexible, and it should be used instead of
EXTRA_STREAM moving forward.  To ensure that legacy apps continue
working, the OS will offer to promote/demote the ClipData value
from/to EXTRA_STREAM.  (We already had the promotion logic, but we
were missing the demotion logic.)

Test: builds, boots
Bug: 35293781
Change-Id: I82cd0b95cf021292282649290ab046cc310fe160

7 years agoMerge "Implement runtime account update notifications."
TreeHugger Robot [Wed, 22 Mar 2017 02:19:23 +0000 (02:19 +0000)]
Merge "Implement runtime account update notifications."

7 years agoMerge "Should use getApplicationInfoAsUser instead"
TreeHugger Robot [Wed, 22 Mar 2017 02:13:46 +0000 (02:13 +0000)]
Merge "Should use getApplicationInfoAsUser instead"

7 years agoRevert "Move expensive TextClock operations to onAttach"
Ian Pedowitz [Wed, 22 Mar 2017 02:09:13 +0000 (02:09 +0000)]
Revert "Move expensive TextClock operations to onAttach"

This reverts commit dffe6fdfe1e25e3bad52c00ff6c978deb0327852.

Bug: 36472151
Change-Id: I98ba047bd4225d82414425a40e9a2e50c4473bf9

7 years agoMerge "Declare privileged permissions of Live TV app"
TreeHugger Robot [Wed, 22 Mar 2017 01:56:34 +0000 (01:56 +0000)]
Merge "Declare privileged permissions of Live TV app"

7 years agoMerge "Support expiration of preloaded file cache"
Fyodor Kupolov [Wed, 22 Mar 2017 01:56:02 +0000 (01:56 +0000)]
Merge "Support expiration of preloaded file cache"

7 years agoMerge "Add custom presentation (RemoteViews) on Dataset values."
TreeHugger Robot [Wed, 22 Mar 2017 01:43:34 +0000 (01:43 +0000)]
Merge "Add custom presentation (RemoteViews) on Dataset values."

7 years agoMerge "Change WifiTrackerFactory methods to static."
TreeHugger Robot [Wed, 22 Mar 2017 01:42:23 +0000 (01:42 +0000)]
Merge "Change WifiTrackerFactory methods to static."

7 years agoExplicitly call out email in "social" category.
Jeff Sharkey [Wed, 22 Mar 2017 01:40:38 +0000 (19:40 -0600)]
Explicitly call out email in "social" category.

Test: builds, boots
Bug: 35294569
Change-Id: I08b2c1b1b95b6c2fc6fd7be417cd0f9547c8237b

7 years agoBetter ContentProvider error messages.
Jeff Sharkey [Wed, 22 Mar 2017 01:25:34 +0000 (19:25 -0600)]
Better ContentProvider error messages.

Help guide developers towards ACTION_OPEN_DOCUMENT and related
APIs when a Uri is backed by a DocumentProvider.

Also help developer understand that we expected a valid
ContentProvider for Uri notifications.

Test: builds, boots
Bug: 3264279036075317
Change-Id: I8e0e3cb25b183c4a9a094a53018822a4212bdaf9

7 years agoMerge "Fix warning: Potential leak of memory pointed to by 'set'" am: 58ba53bd53...
Yunlian Jiang [Wed, 22 Mar 2017 00:36:30 +0000 (00:36 +0000)]
Merge "Fix warning: Potential leak of memory pointed to by 'set'" am: 58ba53bd53 am: 0889a8a070
am: 2b53748a21

Change-Id: Icec70d3e3efef0eea9c117911821dfd05bcb2ced

7 years agoMerge "Remove bg_non_interactive cgroup" am: c6c19bd6c0 am: 4ff81206e0
Wei Wang [Wed, 22 Mar 2017 00:34:11 +0000 (00:34 +0000)]
Merge "Remove bg_non_interactive cgroup" am: c6c19bd6c0 am: 4ff81206e0
am: 98fa720826

Change-Id: If655104c7fcf319155bae82d0a3a2310f119a455

7 years agoRemove the now-empty WearBluetoothService from SystemServer am: 3bcc688bce am: 9a80c1799c
Calvin On [Wed, 22 Mar 2017 00:32:08 +0000 (00:32 +0000)]
Remove the now-empty WearBluetoothService from SystemServer am: 3bcc688bce am: 9a80c1799c
am: 94a93087c6  -s ours

Change-Id: I3d6b17e4bd1b118fd01b917dd9e261a24a8528f6

7 years agoMerge "Fix warning: Potential leak of memory pointed to by 'set'" am: 58ba53bd53
Yunlian Jiang [Wed, 22 Mar 2017 00:26:09 +0000 (00:26 +0000)]
Merge "Fix warning: Potential leak of memory pointed to by 'set'" am: 58ba53bd53
am: 0889a8a070

Change-Id: I8672f532a2ab43275a9204fe732b6b6ba1604388

7 years agoMerge "Fix warning: Potential leak of memory pointed to by 'set'"
Yunlian Jiang [Wed, 22 Mar 2017 00:21:57 +0000 (00:21 +0000)]
Merge "Fix warning: Potential leak of memory pointed to by 'set'"
am: 58ba53bd53

Change-Id: I7186dc35fb7f4a3c226e35447ce9c748164e7bf8

7 years agoManually merge commit 'f35e6a6c9162d765f37aac33a99bc606bd31fecc'
The Android Automerger [Wed, 22 Mar 2017 00:18:03 +0000 (00:18 +0000)]
Manually merge commit 'f35e6a6c9162d765f37aac33a99bc606bd31fecc'

BUG:36363084

7 years agoMerge "Fix warning: Potential leak of memory pointed to by 'set'"
Treehugger Robot [Wed, 22 Mar 2017 00:17:32 +0000 (00:17 +0000)]
Merge "Fix warning: Potential leak of memory pointed to by 'set'"

7 years agoMerge "Voice Messaging Intent API."
Renat Aksitov [Wed, 22 Mar 2017 00:13:30 +0000 (00:13 +0000)]
Merge "Voice Messaging Intent API."

7 years agoMerge "Revert "Fixing issue with IME not showing after PiP menu is shown.""
Winson Chung [Wed, 22 Mar 2017 00:04:37 +0000 (00:04 +0000)]
Merge "Revert "Fixing issue with IME not showing after PiP menu is shown.""

7 years agoMerge "Update display contents when metrics change"
TreeHugger Robot [Wed, 22 Mar 2017 00:02:21 +0000 (00:02 +0000)]
Merge "Update display contents when metrics change"

7 years agoDeclare privileged permissions of Live TV app
Conrad Chen [Mon, 20 Mar 2017 22:19:11 +0000 (15:19 -0700)]
Declare privileged permissions of Live TV app

Test: build
Bug: 35782070
Change-Id: Ia1e39dcf8fdd3345837ebec1729ad4d02699763b

7 years agoMerge "Add system feature for Companion Device Manager"
Eugene Susla [Tue, 21 Mar 2017 23:58:29 +0000 (23:58 +0000)]
Merge "Add system feature for Companion Device Manager"

7 years agoRevert "Fixing issue with IME not showing after PiP menu is shown."
Winson Chung [Tue, 21 Mar 2017 23:50:28 +0000 (23:50 +0000)]
Revert "Fixing issue with IME not showing after PiP menu is shown."

This reverts commit d703c63c5f7a7caf1f71515da71276ae90bcbef0.

Reason for revert: Causing b/36466104
Test: Revert

Change-Id: I04823cc4294ac5da32908a79da1c8da592d71e34

7 years agoSupport expiration of preloaded file cache
Fyodor Kupolov [Mon, 20 Mar 2017 23:04:57 +0000 (16:04 -0700)]
Support expiration of preloaded file cache

When device is provisioned, we delete all files from /data/preloads
except file_cache. We should do best effort to keep file_cache during
the first config_keepPreloadsMinDays. After that,
persist.sys.preloads.file_cache_expired is set to 1, which indicates
that cache can be deleted when additional storage space is requested.

Bug: 34690396
Test: Manual + RetailDemoModeServiceTest
Change-Id: Ie584a9dd6689bcc5e6b3cb448e95dfe5f73d2eeb

7 years agoRemove mediacodec from NATIVE_STACKS_OF_INTEREST.
Pawin Vongmasa [Tue, 28 Feb 2017 04:37:12 +0000 (20:37 -0800)]
Remove mediacodec from NATIVE_STACKS_OF_INTEREST.

See also: b/36414311.

Test: Camera, Photos, YouTube, and Play Movies apps.
Bug: 35328855
Change-Id: I709644669f5bb7a5f3ad686b325f1f9f37f7a3d3

7 years agoMerge "Add special URI to MediaStore for directories."
TreeHugger Robot [Tue, 21 Mar 2017 23:38:24 +0000 (23:38 +0000)]
Merge "Add special URI to MediaStore for directories."

7 years agoChange WifiTrackerFactory methods to static.
Sundeep Ghuman [Tue, 21 Mar 2017 23:30:59 +0000 (16:30 -0700)]
Change WifiTrackerFactory methods to static.

Bug: b/36403696
Test: Preliminary step to enable creation of Espresso tests b/36403696
Change-Id: I8be0cc43f22d6ae3bddc4e37b557060e256d7df4

7 years agoMerge "Fixed bad link caused by race conditions on git merges."
Felipe Leme [Tue, 21 Mar 2017 23:31:28 +0000 (23:31 +0000)]
Merge "Fixed bad link caused by race conditions on git merges."

7 years agoMerge "Switch display uid whitelist from task to activity"
David Stevens [Tue, 21 Mar 2017 23:29:14 +0000 (23:29 +0000)]
Merge "Switch display uid whitelist from task to activity"

7 years agoFixed bad link caused by race conditions on git merges.
Felipe Leme [Tue, 21 Mar 2017 23:28:26 +0000 (16:28 -0700)]
Fixed bad link caused by race conditions on git merges.

Test: no time for that
Change-Id: Iffbba4ab2aa0751a406e031fe34e8e2c75e0abde

7 years agoMerge "Update string from cellular to mobile."
TreeHugger Robot [Tue, 21 Mar 2017 23:23:54 +0000 (23:23 +0000)]
Merge "Update string from cellular to mobile."

7 years agoMerge "Allow multi line preference title."
TreeHugger Robot [Tue, 21 Mar 2017 23:23:08 +0000 (23:23 +0000)]
Merge "Allow multi line preference title."

7 years agoFix logic errors when checking the caller.
Jeremy Joslin [Tue, 21 Mar 2017 23:16:46 +0000 (16:16 -0700)]
Fix logic errors when checking the caller.

A few methods were incorrectly ORing instead of ANDing the frontline
security check. Fixed and added tests.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Change-Id: I20531ad5a8df6fe9b9e2225198be25a2a070b603

7 years agoMove the resourcesdir option to the global options
Scott Main [Tue, 21 Mar 2017 20:43:31 +0000 (13:43 -0700)]
Move the resourcesdir option to the global options
so that all doc builds put framework images in the right place.

Change-Id: Id7777bf658522df64053380ffd4f4e580dded74d

7 years agoMerge "Move the resourcesdir option to the global options so that all doc builds...
Scott Main [Tue, 21 Mar 2017 23:04:01 +0000 (23:04 +0000)]
Merge "Move the resourcesdir option to the global options so that all doc builds put framework images in the right place."

7 years agoMerge "Method to allow testing of Loopers"
TreeHugger Robot [Tue, 21 Mar 2017 23:00:57 +0000 (23:00 +0000)]
Merge "Method to allow testing of Loopers"

7 years agoMerge "Send launch token to activity manager"
TreeHugger Robot [Tue, 21 Mar 2017 22:55:03 +0000 (22:55 +0000)]
Merge "Send launch token to activity manager"

7 years agoImplement runtime account update notifications.
Dmitry Dementyev [Wed, 15 Mar 2017 00:25:46 +0000 (17:25 -0700)]
Implement runtime account update notifications.

Test: manual, cts.
Change-Id: Iaf9fe4814c3d3c2ca2dca0a5bfa0f997e060bfeb

7 years agoAllow the Instant App installer to be dynamic
Todd Kennedy [Tue, 21 Mar 2017 22:52:08 +0000 (15:52 -0700)]
Allow the Instant App installer to be dynamic

Change-Id: I4f8e341dd3cb993099cdcf170141aef37a62604b
Fixes: 33072933
Test: add/remove/update the instant app installer and see that it changes dynamically

7 years agoMerge "resolve merge conflicts of 94a93087c68c to master"
TreeHugger Robot [Tue, 21 Mar 2017 22:52:48 +0000 (22:52 +0000)]
Merge "resolve merge conflicts of 94a93087c68c to master"

7 years agoMerge "Changes on Assist structure to handle virtual child for autofill:"
TreeHugger Robot [Tue, 21 Mar 2017 22:51:57 +0000 (22:51 +0000)]
Merge "Changes on Assist structure to handle virtual child for autofill:"

7 years agoMerge "Fix various flashes when moving stacks."
Rob Carr [Tue, 21 Mar 2017 22:50:45 +0000 (22:50 +0000)]
Merge "Fix various flashes when moving stacks."

7 years agoMerge "Expose Typeface creation APIs with ttc and font variation."
TreeHugger Robot [Tue, 21 Mar 2017 22:50:12 +0000 (22:50 +0000)]
Merge "Expose Typeface creation APIs with ttc and font variation."

7 years agoMerge "Shame developers that are calling hidden APIs."
TreeHugger Robot [Tue, 21 Mar 2017 22:44:56 +0000 (22:44 +0000)]
Merge "Shame developers that are calling hidden APIs."

7 years agoMerge "Allow dangerous reentrant behavior for older apps"
TreeHugger Robot [Tue, 21 Mar 2017 22:40:07 +0000 (22:40 +0000)]
Merge "Allow dangerous reentrant behavior for older apps"

7 years agoUpdate PageViewCursor to correctly load window.
Steve McKay [Tue, 21 Mar 2017 22:12:53 +0000 (15:12 -0700)]
Update PageViewCursor to correctly load window.

Bug: 36485764
Test: CTS updated and passing.
Change-Id: I2b615d97fdaedef441065889ce3a2988b718795c

7 years agoMerge "Remove bg_non_interactive cgroup" am: c6c19bd6c0
Wei Wang [Tue, 21 Mar 2017 22:26:32 +0000 (22:26 +0000)]
Merge "Remove bg_non_interactive cgroup" am: c6c19bd6c0
am: 4ff81206e0

Change-Id: Ie79e352a5cf60af7f1bce8ae3563bf66ee1db134

7 years agoMerge "Revert "Revert "Add remote callbacks for persistent vr mode"""
Steven Thomas [Tue, 21 Mar 2017 22:24:52 +0000 (22:24 +0000)]
Merge "Revert "Revert "Add remote callbacks for persistent vr mode"""

7 years agoUpdate display contents when metrics change
Andrii Kulian [Tue, 21 Mar 2017 17:17:03 +0000 (10:17 -0700)]
Update display contents when metrics change

There are two separate overrides for display metrics in DisplayManager
and WindowManager:
- In DM - LogicalDisplay#mOverrideDisplayInfo, in most cases not null.
- In WM - DisplayContent#mBaseDisplayWidth/Height/Density, different
from #mInitialDisplayWidth/Height/Density values when some metrics are
forced.

When display was resized its windows weren't updated because of
two problems: old LogicaDisplay#mOverrideDisplayInfo was preventing
WM from detecting the change and override (base) display metrics were
never updated by resize.

When display size changes:
- Before this CL:
DM receives DISPLAY_CHANGED event, it updates internal values.
In most cases there is an override obtained from WM and WM doesn't
get new values from LogicalDisplay#getDisplayInfoLocked().

- With this CL:
DM receives DISPLAY_CHANGED event, it updates internal values and
resets the override received from WM. WM will receive updated values
and will decide whether to apply them or not: if there is no override
in WM - it will apply values from WM, otherwise it will keep the
override. In both cases WM will eventually update its own override
and will update the override in DM.

Bug: 35258051
Bug: 34164473
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testDisplayResize
Test: #testForceDisplayMetrics
Change-Id: I80795434a6a35adb0577fbce334d76fabd2fa03d

7 years agoMerge "Remove bg_non_interactive cgroup"
Wei Wang [Tue, 21 Mar 2017 22:19:41 +0000 (22:19 +0000)]
Merge "Remove bg_non_interactive cgroup"
am: c6c19bd6c0

Change-Id: I35917ee0c52720138c901fd638e07f84ae4c3cf3

7 years agoMerge "Create a way to inject a WifiTracker into WifiSettings."
TreeHugger Robot [Tue, 21 Mar 2017 22:14:42 +0000 (22:14 +0000)]
Merge "Create a way to inject a WifiTracker into WifiSettings."

7 years agoMerge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis."
Sanket Padawe [Tue, 21 Mar 2017 22:12:55 +0000 (22:12 +0000)]
Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis."

7 years agoMerge "Remove bg_non_interactive cgroup"
Treehugger Robot [Tue, 21 Mar 2017 22:09:50 +0000 (22:09 +0000)]
Merge "Remove bg_non_interactive cgroup"

7 years agoMove Accounts NotificationChannel earlier, before clearCallingIdentity
Geoffrey Pitsch [Tue, 21 Mar 2017 21:43:40 +0000 (17:43 -0400)]
Move Accounts NotificationChannel earlier, before clearCallingIdentity

Bug: 36122686
Test: Not sure how to repro, couldn't be worse than it already is
Change-Id: I1e5aa9950b765dd3fbf1a01c5f10668761a2bc2e

7 years agoMerge "Allow draw hw bitmap on software canvas for hierarchyviewer"
TreeHugger Robot [Tue, 21 Mar 2017 21:54:16 +0000 (21:54 +0000)]
Merge "Allow draw hw bitmap on software canvas for hierarchyviewer"

7 years agoSwitch display uid whitelist from task to activity
David Stevens [Sat, 4 Mar 2017 00:18:50 +0000 (16:18 -0800)]
Switch display uid whitelist from task to activity

Tasks can contain activities from multiple UIDs, so the uid whitelists
for private displays need to be based on activities instead of tasks.

This change also stops keeping track of uids on public displays, since
the uid list is not used for those displays.

Test: android.server.cts.ActivityManagerDisplayTests
Test: #testPermissionLaunchMultiUidTask
Change-Id: I38f1434f581af64f0db40221431994fd5a99bab3

7 years agoNull check! Now with a test
Julia Reynolds [Tue, 21 Mar 2017 19:04:50 +0000 (15:04 -0400)]
Null check! Now with a test

Test: runtest systemui-notification
Change-Id: I0b98b3dd6aeaa7e300bba98b7d7f7f5afae16596
Fixes: 36245468

7 years agoMerge "Channel updates should trigger ranking updates"
TreeHugger Robot [Tue, 21 Mar 2017 21:46:29 +0000 (21:46 +0000)]
Merge "Channel updates should trigger ranking updates"

7 years agoAllow channels to have a user visible description.
Julia Reynolds [Fri, 17 Mar 2017 18:23:47 +0000 (14:23 -0400)]
Allow channels to have a user visible description.

Test: runtest systemui-notification, cts
Change-Id: I0d04b82c99deecad663d8cb0565563f00e8a1f56

7 years agoMerge "Remove libtextclassifier from local shared libraries."
Colin Cross [Tue, 21 Mar 2017 20:49:12 +0000 (20:49 +0000)]
Merge "Remove libtextclassifier from local shared libraries."

7 years agoresolve merge conflicts of 94a93087c68c to master
Calvin On [Tue, 21 Mar 2017 20:46:35 +0000 (13:46 -0700)]
resolve merge conflicts of 94a93087c68c to master

Change-Id: Ib2e97ef56b78e4492e1f8392ee294cb293941320

7 years agoUse getPackageInfoAsUser in requestBufferForProcess
Tony Mak [Mon, 20 Mar 2017 18:35:43 +0000 (18:35 +0000)]
Use getPackageInfoAsUser in requestBufferForProcess

Notice that the exception is caught now, so it doesn't crash the app.
And seems the buffer is used for stats only, so seems thing is still
working. But it is still good to have it fixed :)

Fix: 36349295

Test: Install Avast Passwords in work profile only, launch it.
      Observe that no more log complaining failed to get application.

Change-Id: I27b213303e9cf08c32e2ffdb7bda131c2b7f9ecb

7 years agoMove the resourcesdir option to the global options
Scott Main [Tue, 21 Mar 2017 20:43:31 +0000 (13:43 -0700)]
Move the resourcesdir option to the global options
so that all doc builds put framework images in the right place.

Change-Id: Id7777bf658522df64053380ffd4f4e580dded74d

7 years agoFix various flashes when moving stacks.
Robert Carr [Tue, 21 Mar 2017 02:04:30 +0000 (19:04 -0700)]
Fix various flashes when moving stacks.

In this CL we fix two new pinned stack reparenting flashes and
implement a new approach to an old docked stack flash fix, which had
been broken in refactoring.

First we examine the case of dismissing the docked stack and
WindowState#notifyMovedInStack. Previously we invoked this
when reparenting from the docked to the fullscreen stack
(by way of position in stack). It was used to solve an issue
where we were visually hidden by the docked stack crop, but we were
still waiting on an animation pass to set the hidden flag. Our old solution
was if mJustMovedInStack was set, we would just defer updating our crop until
one animation pass had occurred.

We broke this incidentally in refactoring by not calling the
method that sets it anymore. However it's somewhat brittle so I was
hesitant to restore it. The fundamental requirement is for the
ActivityManager to perform multiple operations (change stack, update
visibility) in a single atomic step and this wasn't expressed clearly.

This mirrors some challenges we have with the pinned stack transitions
as well.

1. When dismissing the pinned stack, we move the task to the
fullscreen stack. We need a mechanism to prevent its bounds from
updating before its visibility is updated.
2. When moving to fullscreen while over home, we have layering issues
with the home stack, as we will be moved to the fullscreen stack before the
fullscreen stack is brought to the front of the home stack. This may
not seem like a visibility issue, but if the home activity were simply
hidden the layering wouldn't matter!

Evidently, all three of these issues can be solved with a batching
mechanism from ActivityManager to WindowManager. As all changes are
ultimately Surface changes, SurfaceControl.open/closeTransaction
provides such a mechanism. The only additional complication is that
normally visibility updates on SurfaceControl are deferred to the
animation thread, which may not execute within the bounds of our
transaction. This however, is easily dealt with: In AppWindowToken, if
we are becoming hidden without animation, then we simply apply this
change without waiting for the UI thread

Bug: 35396882
Bug: 34857388
Bug: 36393204
Bug: 36462635
Test: Intensive manual testing of dismissing docked and pinned stack + pinned->fullscreen transition.
Change-Id: Ic110797670cc7ff656a580fd186d4deb44fa54dd