OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 "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 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 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 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

7 years agoExpose Typeface creation APIs with ttc and font variation.
Seigo Nonaka [Wed, 18 Jan 2017 11:31:27 +0000 (20:31 +0900)]
Expose Typeface creation APIs with ttc and font variation.

Introduce Builder class for creating Typeface from various
sources with optional TTC index and font variation settings.

Bug: 33062398
Test: Manually verified new Builder create Typeface.
Change-Id: Ia23ee6a73516707d854c7387fe75fbb22f80673d

7 years agoUpdate string from cellular to mobile.
Fan Zhang [Tue, 21 Mar 2017 20:14:10 +0000 (13:14 -0700)]
Update string from cellular to mobile.

Change-Id: I8ec79b436cb4c22bf0180e881eef07397fce35a9
Fix: 36290223
Test: builds

7 years agoShame developers that are calling hidden APIs.
Jeff Sharkey [Tue, 21 Mar 2017 20:13:41 +0000 (14:13 -0600)]
Shame developers that are calling hidden APIs.

Test: builds, boots
Change-Id: Id3edf1a7890f7dbc4cff2a2699bbeabc247c6e90

7 years agoAdd special URI to MediaStore for directories.
Garfield Tan [Tue, 21 Mar 2017 00:21:55 +0000 (17:21 -0700)]
Add special URI to MediaStore for directories.

Bug: 36048049
Bug: 31001477
Change-Id: I69032481271b7f53c22403c3526560e6830bd9e8
(cherry picked from commit 1ca2837111c8383f9c8daf1420356998f4fb218f)

7 years agoRevert "Revert "Add remote callbacks for persistent vr mode""
Steven Thomas [Thu, 16 Mar 2017 21:32:37 +0000 (14:32 -0700)]
Revert "Revert "Add remote callbacks for persistent vr mode""

This reverts commit 2abf1c60cc2fc6ec9bc590cb35e94581ecf93c2e.

We need the ability to register remote callbacks for persistent vr mode,
so vr flinger can register for persistent vr mode events.

Bug: 35885165

Test: Manually confirmed vr flinger can register and receive persistent
vr mode events.

Change-Id: I7713c4c8acae9a369fd0c06695ef712fddd12be8

7 years agoMerge "Ensure we don't set visibility after action is destroyed."
Winson Chung [Tue, 21 Mar 2017 19:59:47 +0000 (19:59 +0000)]
Merge "Ensure we don't set visibility after action is destroyed."

7 years agoMerge "Prevent updating aspect ratio unless it is different."
Winson Chung [Tue, 21 Mar 2017 19:59:33 +0000 (19:59 +0000)]
Merge "Prevent updating aspect ratio unless it is different."

7 years agoMerge "Fixing NPE when animating bounds."
Winson Chung [Tue, 21 Mar 2017 19:59:06 +0000 (19:59 +0000)]
Merge "Fixing NPE when animating bounds."

7 years agoMerge "Prevent handling bad touches."
Winson Chung [Tue, 21 Mar 2017 19:58:50 +0000 (19:58 +0000)]
Merge "Prevent handling bad touches."

7 years agoMerge "Improved WebView -> ViewStructure mapping for Autofill."
TreeHugger Robot [Tue, 21 Mar 2017 19:49:34 +0000 (19:49 +0000)]
Merge "Improved WebView -> ViewStructure mapping for Autofill."

7 years agoMerge "Update battery settings duration remaining summary text."
TreeHugger Robot [Tue, 21 Mar 2017 19:39:54 +0000 (19:39 +0000)]
Merge "Update battery settings duration remaining summary text."

7 years agoMerge "resolve merge conflicts of 9034b2717c88 to master"
Andreas Gampe [Tue, 21 Mar 2017 19:37:32 +0000 (19:37 +0000)]
Merge "resolve merge conflicts of 9034b2717c88 to master"

7 years agoMerge "Add new "storage not low" job scheduler constraint."
Dianne Hackborn [Tue, 21 Mar 2017 19:26:56 +0000 (19:26 +0000)]
Merge "Add new "storage not low" job scheduler constraint."

7 years agoresolve merge conflicts of 9034b2717c88 to master
Andreas Gampe [Tue, 21 Mar 2017 19:17:16 +0000 (12:17 -0700)]
resolve merge conflicts of 9034b2717c88 to master

Change-Id: Ifcc9fdbf8581e81a61f7a279c2b7d3177e972596

7 years agoMerge "Add setScannable to AdvertisingSetParameters (1/2)" am: 7f14b8f095 am: 8d06b41826
Jakub Pawlowski [Tue, 21 Mar 2017 18:59:57 +0000 (18:59 +0000)]
Merge "Add setScannable to AdvertisingSetParameters (1/2)" am: 7f14b8f095 am: 8d06b41826
am: 34d23b7794

Change-Id: I960254d1c051f58c882a6c39bb6fb2173a47c0ef

7 years agoMerge "Add missing txPower parameter" am: a6c1f6def1 am: 43f71975d0
Jakub Pawlowski [Tue, 21 Mar 2017 18:58:31 +0000 (18:58 +0000)]
Merge "Add missing txPower parameter" am: a6c1f6def1 am: 43f71975d0
am: ac5adba90e

Change-Id: I0f7b282fb1a0d09742f8a8e9aca5a62b841adf0a

7 years agoMerge "Zygote: Preserve capabilities in WrapperInit" am: 1ae7af10ff
Andreas Gampe [Tue, 21 Mar 2017 18:58:27 +0000 (18:58 +0000)]
Merge "Zygote: Preserve capabilities in WrapperInit" am: 1ae7af10ff
am: 1d9c3ba10d

Change-Id: Ia9b6111705486d7da69ef2436d03cd19272502b6

7 years agoMerge "Zygote: Preserve capabilities in WrapperInit"
Andreas Gampe [Tue, 21 Mar 2017 18:54:22 +0000 (18:54 +0000)]
Merge "Zygote: Preserve capabilities in WrapperInit"
am: 1ae7af10ff

Change-Id: Ia1ffb03d6e03b098cc634ef2deb3785c6bb87202

7 years agoMerge "Add setScannable to AdvertisingSetParameters (1/2)" am: 7f14b8f095
Jakub Pawlowski [Tue, 21 Mar 2017 18:52:03 +0000 (18:52 +0000)]
Merge "Add setScannable to AdvertisingSetParameters (1/2)" am: 7f14b8f095
am: 8d06b41826

Change-Id: I8cc220bd494841841f89eeba840ce71b1c2a0692

7 years agoMerge "Add missing txPower parameter" am: a6c1f6def1
Jakub Pawlowski [Tue, 21 Mar 2017 18:50:51 +0000 (18:50 +0000)]
Merge "Add missing txPower parameter" am: a6c1f6def1
am: 43f71975d0

Change-Id: If6dbc369985eaf18db9c8fd0670683768d613406

7 years agoMerge "Zygote: Preserve capabilities in WrapperInit"
Andreas Gampe [Tue, 21 Mar 2017 18:45:00 +0000 (18:45 +0000)]
Merge "Zygote: Preserve capabilities in WrapperInit"

7 years agoMerge "Add setScannable to AdvertisingSetParameters (1/2)"
Jakub Pawlowski [Tue, 21 Mar 2017 18:44:36 +0000 (18:44 +0000)]
Merge "Add setScannable to AdvertisingSetParameters (1/2)"
am: 7f14b8f095

Change-Id: I26846383be5c0fe88501ffd1011b27f39896a74a

7 years agoMerge "Add missing txPower parameter"
Jakub Pawlowski [Tue, 21 Mar 2017 18:43:21 +0000 (18:43 +0000)]
Merge "Add missing txPower parameter"
am: a6c1f6def1

Change-Id: I61ac50f7f2a5d3d3ea2a3e23b441fa22bb69f52a

7 years agoMerge "Add setScannable to AdvertisingSetParameters (1/2)"
Jakub Pawlowski [Tue, 21 Mar 2017 18:37:34 +0000 (18:37 +0000)]
Merge "Add setScannable to AdvertisingSetParameters (1/2)"

7 years agoAdd setScannable to AdvertisingSetParameters (1/2)
Jakub Pawlowski [Mon, 20 Mar 2017 22:57:46 +0000 (15:57 -0700)]
Add setScannable to AdvertisingSetParameters (1/2)

There must be a proper way to specify if advertisment is scannable, when
updating the parameters.

Test: manual
Bug: 30622771
Change-Id: Ie520609d3fff07ccc2960015c19311d773842852

7 years agoMerge "Add missing txPower parameter"
Jakub Pawlowski [Tue, 21 Mar 2017 18:36:14 +0000 (18:36 +0000)]
Merge "Add missing txPower parameter"

7 years agoAdd missing txPower parameter
Jakub Pawlowski [Tue, 21 Mar 2017 00:02:20 +0000 (17:02 -0700)]
Add missing txPower parameter

Test: manual
Bug: 30622771
Change-Id: Iaf3111d7545f9bb046b5a23b680347a75125ca7e

7 years agoMerge "Update to 2017a." am: 2ca0abc8de am: eeca6add23
Joachim Sauer [Tue, 21 Mar 2017 18:32:27 +0000 (18:32 +0000)]
Merge "Update to 2017a." am: 2ca0abc8de am: eeca6add23
am: 2fc77f78f5

Change-Id: I52889a24c3a81875d6e26897034634677836e426

7 years agoChange 'idx' to 'index' in SubscriptionManager & TelephonyManager apis.
Sanket Padawe [Sat, 11 Mar 2017 00:18:20 +0000 (16:18 -0800)]
Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis.

Bug: 35767068
Test: No build failure.
Change-Id: I3b15901ff18742b5e99f03e74a6412d352461458

7 years agoMerge "Update to 2017a." am: 2ca0abc8de
Joachim Sauer [Tue, 21 Mar 2017 18:28:16 +0000 (18:28 +0000)]
Merge "Update to 2017a." am: 2ca0abc8de
am: eeca6add23

Change-Id: I7dd23af7452ed9836fb26dad0d7774ce9aef1c36

7 years agoMethod to allow testing of Loopers
Jason Monk [Fri, 10 Mar 2017 15:57:34 +0000 (10:57 -0500)]
Method to allow testing of Loopers

Add a wrapper object that provides some control and access to
the package hidden methods on Looper only for the purpose of
testing. Will not work on non-instrumented apps.

Test: none
Change-Id: I55cdfeac17ddc0d251852ab764501544079fc888

7 years agoMerge "Update to 2017a."
Joachim Sauer [Tue, 21 Mar 2017 18:22:44 +0000 (18:22 +0000)]
Merge "Update to 2017a."
am: 2ca0abc8de

Change-Id: I0a6dd7f5cef6f7f3634413d012c8f1c84c807aac

7 years agoPrevent handling bad touches.
Winson Chung [Tue, 21 Mar 2017 17:47:09 +0000 (10:47 -0700)]
Prevent handling bad touches.

Bug: 36466104
Test: Interact with PiP
Change-Id: I53321f22f2058ce8b3d0132f9d57818eb1a22d95

7 years agoPrevent updating aspect ratio unless it is different.
Winson Chung [Tue, 21 Mar 2017 17:20:20 +0000 (10:20 -0700)]
Prevent updating aspect ratio unless it is different.

- The old check of the bounds assumed there was no expanded state, so when
  a PiP activity tries to set the aspect ratio from a a menu action, it
  will cause an animation to the normal bounds again.

Bug: 36462497
Test: Set aspect ratio in pip action handler
Change-Id: Iba5e9571a3024c8369c2a24d32c2d8f34831ede4

7 years agoEnsure we don't set visibility after action is destroyed.
Winson Chung [Tue, 21 Mar 2017 16:29:04 +0000 (09:29 -0700)]
Ensure we don't set visibility after action is destroyed.

- The activity call to setVisible() does not check before using the
  decor view (which is reset once the activity is destroyed).

Bug: 36469656
Test: Test PIP app which finishes in response to action handling
Change-Id: I50e49bd6e9759c11edd71c0c5cac61939e3bf276

7 years agoFixing NPE when animating bounds.
Winson Chung [Tue, 21 Mar 2017 03:06:46 +0000 (20:06 -0700)]
Fixing NPE when animating bounds.

Bug: 36163225
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I68f807f80768d279cdd55243592f87d3f752b1c6

7 years agoMerge "Fix QS/status bar BT state"
TreeHugger Robot [Tue, 21 Mar 2017 18:09:58 +0000 (18:09 +0000)]
Merge "Fix QS/status bar BT state"

7 years agoMerge "Update to 2017a."
Treehugger Robot [Tue, 21 Mar 2017 18:09:33 +0000 (18:09 +0000)]
Merge "Update to 2017a."

7 years agoRemove libtextclassifier from local shared libraries.
Colin Cross [Tue, 21 Mar 2017 17:59:07 +0000 (10:59 -0700)]
Remove libtextclassifier from local shared libraries.

Move libtextclassifier from LOCAL_SHARED_LIBRARIES to
LOCAL_REQUIRED_MODULES so that it is still installed to the
system image but not linked against libandroid_runtime.  Avoids
ODR issues between libprotobuf-cpp-lite and libprotobuf-cpp-full.

Test: Checked that libtextclassifier is still built into the system image
      but not linked to libandroid_runtime.
Bug: 36350884
Change-Id: I6e57b4323a84c14e05f1b9e463ce93625d9cb3d7

7 years agoMerge "Exfiltrate cert code from DevicePolicyManager"
TreeHugger Robot [Tue, 21 Mar 2017 17:58:44 +0000 (17:58 +0000)]
Merge "Exfiltrate cert code from DevicePolicyManager"

7 years agoUpdate battery settings duration remaining summary text.
Doris Ling [Tue, 21 Mar 2017 17:46:00 +0000 (10:46 -0700)]
Update battery settings duration remaining summary text.

- revert the prevoius change and update the correct string.

Bug: 36375846
Test: builds
Change-Id: Ia958b253fe420e8f9aed1286d72ae2b6eeb80abe

7 years agoMerge "Clean up logs in DexManager"
Calin Juravle [Tue, 21 Mar 2017 17:51:33 +0000 (17:51 +0000)]
Merge "Clean up logs in DexManager"

7 years agoMerge "Allocate new UID for OTA update resource tracking."
TreeHugger Robot [Tue, 21 Mar 2017 17:49:02 +0000 (17:49 +0000)]
Merge "Allocate new UID for OTA update resource tracking."

7 years agoMerge "Remove leftover DO/PO check in isPackageSuspended"
TreeHugger Robot [Tue, 21 Mar 2017 17:35:44 +0000 (17:35 +0000)]
Merge "Remove leftover DO/PO check in isPackageSuspended"

7 years agoAllow draw hw bitmap on software canvas for hierarchyviewer
sergeyv [Tue, 21 Mar 2017 02:07:46 +0000 (19:07 -0700)]
Allow draw hw bitmap on software canvas for hierarchyviewer

Test: runs hierarchyviewer on app with hw bitmaps
bug:34745484
Change-Id: I35f70f7927be23edebac171f3bc96405b14ca794

7 years agoAllow multi line preference title.
Doris Ling [Mon, 20 Mar 2017 20:33:45 +0000 (13:33 -0700)]
Allow multi line preference title.

Add an attribute to Preference to specify whether single line is to
be used for the preference

Change-Id: I578b496cdc4c5b0e3b3146183c6c30c4dee02eab
Fix: 36389770
Test: manual

7 years agoMerge "Update SkiaPipelineTests.cpp to use new onNewImageSnapshot signature Test...
TreeHugger Robot [Tue, 21 Mar 2017 17:07:37 +0000 (17:07 +0000)]
Merge "Update SkiaPipelineTests.cpp to use new onNewImageSnapshot signature Test: code compiles & test continues to succeed"

7 years agoMerge "Request logs from logd with 3s overlap to avoid missing events."
TreeHugger Robot [Tue, 21 Mar 2017 17:01:28 +0000 (17:01 +0000)]
Merge "Request logs from logd with 3s overlap to avoid missing events."

7 years agoMerge "Fix NPE in NavigationBarFragment"
Casey Burkhardt [Tue, 21 Mar 2017 16:40:01 +0000 (16:40 +0000)]
Merge "Fix NPE in NavigationBarFragment"

7 years agoMerge "[Resources] preloaded drawables few"
TreeHugger Robot [Tue, 21 Mar 2017 16:16:58 +0000 (16:16 +0000)]
Merge "[Resources] preloaded drawables few"

7 years agoMerge "Improvements to ActivityManagerService stack dumping"
Brian Carlstrom [Tue, 21 Mar 2017 16:11:51 +0000 (16:11 +0000)]
Merge "Improvements to ActivityManagerService stack dumping"

7 years agoAllocate new UID for OTA update resource tracking.
Jeff Sharkey [Tue, 21 Mar 2017 16:09:50 +0000 (10:09 -0600)]
Allocate new UID for OTA update resource tracking.

Recent changes to OTA updates started "blaming" network usage on the
system UID, which makes it difficult to triage incoming bugreports
that claim heavy network usage.  Instead, this change gives OTA
updates an explicit UID to make triage easier.

Test: builds, boots
Bug: 36130264
Change-Id: I541299f83def41cfebc010dd825093467f372e79

7 years agoMerge changes I7f7a9842,I4c74b269
Jorim Jaggi [Tue, 21 Mar 2017 15:53:48 +0000 (15:53 +0000)]
Merge changes I7f7a9842,I4c74b269

* changes:
  Implement new thumbnail loading strategy
  Also store reduced resolution screenshots

7 years agoZygote: Preserve capabilities in WrapperInit
Andreas Gampe [Mon, 13 Mar 2017 21:36:09 +0000 (14:36 -0700)]
Zygote: Preserve capabilities in WrapperInit

Preserve the capabilities a zygote fork has across the sh exec in
WrapperInit. Use ambient capabilities.

Test: m
Test: adb shell setprop wrap.com.android.bluetooth logwrapper && adb shell kill `pid com.android.bluetooth`
Merged-In: I3526d6a31aaadf082365c9ce31da0950e17677eb
Change-Id: I3526d6a31aaadf082365c9ce31da0950e17677eb

7 years agoUpdate SkiaPipelineTests.cpp to use new onNewImageSnapshot signature
Robert Phillips [Mon, 20 Mar 2017 17:44:46 +0000 (13:44 -0400)]
Update SkiaPipelineTests.cpp to use new onNewImageSnapshot signature
Test: code compiles & test continues to succeed

https://skia-review.googlesource.com/c/9882/ (Remove budgeted parameter
from SkSurface::makeImageSnapshot (take 2)) seems to have stuck so this
should be safe to land.

Change-Id: I9e6fdcc8debe7964e9522f7acd8829b54bc90986

7 years agoChannel updates should trigger ranking updates
Julia Reynolds [Tue, 21 Mar 2017 15:09:14 +0000 (11:09 -0400)]
Channel updates should trigger ranking updates

- Uid, not user id
- unspecified importance really does mean 'don't override'

Change-Id: Ia60aade179f70cd5d5278eed41c707b9ab6590e0
Fixes: 36007628
Fixes: 36355913
Test: manual, runtest systemui-notification

7 years agoRequest logs from logd with 3s overlap to avoid missing events.
Pavel Grafov [Sat, 25 Feb 2017 19:45:43 +0000 (19:45 +0000)]
Request logs from logd with 3s overlap to avoid missing events.

Example: If we got a batch with timestamps [1, 4, 8] and an event
with timestamp 7 was delayed and was added to the buffer later,
if we request the next batch starting from timestamp 8 or 9 that
event will be lost.

The last 3 seconds of events are kept and checked against the next
batch.

Test: afw-test-tradefed-ci run afw-do-security-logging
Change-Id: I55727cfc6143c172edc7dabfd995776f9a0f7eab
Bug: 35373582
Bug: 35026180
Bug: 35648675

7 years agoMerge "Do not remove the default display during tests."
Bryce Lee [Tue, 21 Mar 2017 14:33:21 +0000 (14:33 +0000)]
Merge "Do not remove the default display during tests."

7 years agoMerge "Delete the Default Channel when an app starts using channels."
Geoffrey Pitsch [Tue, 21 Mar 2017 14:12:17 +0000 (14:12 +0000)]
Merge "Delete the Default Channel when an app starts using channels."

7 years agoImplement new thumbnail loading strategy
Jorim Jaggi [Fri, 17 Mar 2017 16:22:47 +0000 (17:22 +0100)]
Implement new thumbnail loading strategy

- By default, we load only the reduced resolution screenshots.
- As soon as the user stops scrolling fast, we also start loading
full resolution screenshots.
- We prefetch reduced resolution screenshots when scrolling from
back to front, as the other direction is automatically prefetched
because the thumbnails aren't immediately visible.

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124

7 years agoAlso store reduced resolution screenshots
Jorim Jaggi [Fri, 17 Mar 2017 16:06:50 +0000 (17:06 +0100)]
Also store reduced resolution screenshots

In order to speed up loading time when scrolling through it
in recents. They will be used in recents in the next CL. Also, we
use JPG instead as loading JPG is much faster than PNG.

Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotCacheTest
Bug: 34829962
Change-Id: I4c74b26969ae459bd3b1a42707011a49f425abd9

7 years agoMerge "Fix build following change 0763650"
TreeHugger Robot [Tue, 21 Mar 2017 13:55:25 +0000 (13:55 +0000)]
Merge "Fix build following change 0763650"

7 years agoMerge "BZZZZZZT! BZZZZZT! New Vibrator APIs"
TreeHugger Robot [Tue, 21 Mar 2017 13:40:31 +0000 (13:40 +0000)]
Merge "BZZZZZZT! BZZZZZT! New Vibrator APIs"

7 years agoMerge "Modify VectorDrawable to scale path through canvas matrix"
TreeHugger Robot [Tue, 21 Mar 2017 13:29:16 +0000 (13:29 +0000)]
Merge "Modify VectorDrawable to scale path through canvas matrix"

7 years agoMerge "Do not allow WebView instantiation from privileged processes."
TreeHugger Robot [Tue, 21 Mar 2017 13:25:19 +0000 (13:25 +0000)]
Merge "Do not allow WebView instantiation from privileged processes."

7 years agoUpdate to 2017a.
Joachim Sauer [Tue, 21 Mar 2017 12:39:26 +0000 (12:39 +0000)]
Update to 2017a.

This commit adds America/Punta_Arenas to time_zones_by_country.xml to
allow it to automatically be picked based on cell network information.

Bug: 35861784
Test: builds & boots & automatic timezone detection still works
Change-Id: I1bfa327fbb58f82eb951028e288fad819bf0f231

7 years agoFix build following change 0763650
Diego Perez [Tue, 21 Mar 2017 11:47:47 +0000 (11:47 +0000)]
Fix build following change 0763650

Test: N/A
Change-Id: Ie376cb34f0a6ea1f33fab3871abb9db43c5fcf62

7 years agoRemove leftover DO/PO check in isPackageSuspended
Edman Anjos [Mon, 20 Mar 2017 18:40:22 +0000 (19:40 +0100)]
Remove leftover DO/PO check in isPackageSuspended

We already check if the caller is a DO, PO, or a delegate in
enforceCanManageScope, the additional call to
getActiveAdminForCallerLocked makes this function inaccessible to
delegate applications and was removed.

Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: I5df0f19a017a3b6e130329940c79b12cbb95ec9e

7 years agoMerge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f am: 9e46faff07
Erik Kline [Tue, 21 Mar 2017 10:29:58 +0000 (10:29 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f am: 9e46faff07
am: d9f71bcf6d

Change-Id: I6b2a5aa4054fc0a2a465b940aea11194d3bc39a8

7 years agoMerge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f
Erik Kline [Tue, 21 Mar 2017 10:22:21 +0000 (10:22 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f
am: 9e46faff07

Change-Id: I227d8bcd27ae2970ee65d6cc83faa37ff4e4f17a

7 years agoMerge "add and incorporate TetheringConfiguration.dump()"
Erik Kline [Tue, 21 Mar 2017 10:14:19 +0000 (10:14 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()"
am: 9eb959320f

Change-Id: I29c80b36ddd14e1e03c88c63d35ee9982dcef887

7 years agoMerge "add and incorporate TetheringConfiguration.dump()"
Treehugger Robot [Tue, 21 Mar 2017 10:05:41 +0000 (10:05 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()"

7 years agoMerge "Added ETWS primary message default message support" am: 2d3fb48b39 am: dfe1743b37
Jack Yu [Tue, 21 Mar 2017 09:32:53 +0000 (09:32 +0000)]
Merge "Added ETWS primary message default message support" am: 2d3fb48b39 am: dfe1743b37
am: 0f127ea929  -s ours

Change-Id: I8eef7fc8f253a647469b71328eb6d89a0210f6ff

7 years agoMerge "Added ETWS primary message default message support" am: 2d3fb48b39
Jack Yu [Tue, 21 Mar 2017 09:26:51 +0000 (09:26 +0000)]
Merge "Added ETWS primary message default message support" am: 2d3fb48b39
am: dfe1743b37

Change-Id: I71a1be66cb84ed8030df4ab9d406c390872f5346