OSDN Git Service

android-x86/frameworks-base.git
7 years agoUse a single thread to handle multiple AppFuse mounts.
Daichi Hirono [Thu, 2 Feb 2017 04:56:45 +0000 (13:56 +0900)]
Use a single thread to handle multiple AppFuse mounts.

Previously StorageManagerService launched a thread per AppFuse mount
point. The CL changes the behavior so that it just launches a single
thread to handle multiple AppFuse mounts.

Bug: 34903085
Test: CTS and manually testing
Change-Id: I2d9e7232834b0c8eff633b85110a3b38534171f7

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 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 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 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 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 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 "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 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 agoRemove the now-empty WearBluetoothService from SystemServer am: 3bcc688bce
Calvin On [Tue, 21 Mar 2017 20:28:22 +0000 (20:28 +0000)]
Remove the now-empty WearBluetoothService from SystemServer am: 3bcc688bce
am: 9a80c1799c

Change-Id: I5d6bff145f0f77b75184dd9e794130ff70509b58

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 agoRemove the now-empty WearBluetoothService from SystemServer
Calvin On [Tue, 21 Mar 2017 20:18:59 +0000 (20:18 +0000)]
Remove the now-empty WearBluetoothService from SystemServer
am: 3bcc688bce

Change-Id: Id95770faa65878282d9b49c01fad258b8eb57c06

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