OSDN Git Service

android-x86/frameworks-base.git
8 years ago[RenderScript] Update documentation for Allocation.setAutoPadding().
Miao Wang [Tue, 29 Mar 2016 22:56:55 +0000 (15:56 -0700)]
[RenderScript] Update documentation for Allocation.setAutoPadding().

Bug: 26862970
Change-Id: Iaa88ac0266e5d2cac2837f1d13353aacc6177274

8 years ago[RenderScript] Fix IntrinsicConvolve documentation.
Miao Wang [Tue, 29 Mar 2016 22:29:10 +0000 (15:29 -0700)]
[RenderScript] Fix IntrinsicConvolve documentation.

Bug: 25117120

  - Better format.
  - Typo fixes.

Change-Id: Ic6f8d1dacecdaf9993dd8298de7a801f5fd2a937

8 years ago[RenderScript] Update the documentation of Script.LaunchOptions
Miao Wang [Tue, 29 Mar 2016 22:14:21 +0000 (15:14 -0700)]
[RenderScript] Update the documentation of Script.LaunchOptions

Bug: 26916665

  - Add description of the endArg.
  - Update the example.
  - Update the incorrect description.

Change-Id: Idd07db5d790e2d6462fff9cb580115ec45cfd4f0

8 years agoMerge "Fix API numbering issues" into nyc-dev
Andrii Kulian [Mon, 28 Mar 2016 19:28:22 +0000 (19:28 +0000)]
Merge "Fix API numbering issues" into nyc-dev

8 years agoMerge "Add VIA number column to CallLog Database" into nyc-dev
Brad Ebinger [Mon, 28 Mar 2016 19:27:18 +0000 (19:27 +0000)]
Merge "Add VIA number column to CallLog Database" into nyc-dev

8 years agoMerge "Use X509ExtendedTrustManagers" into nyc-dev
Chad Brubaker [Mon, 28 Mar 2016 19:14:21 +0000 (19:14 +0000)]
Merge "Use X509ExtendedTrustManagers" into nyc-dev

8 years agoMerge "Recover focus on size change in ListView" into nyc-dev
Yigit Boyar [Mon, 28 Mar 2016 19:10:07 +0000 (19:10 +0000)]
Merge "Recover focus on size change in ListView" into nyc-dev

8 years agoMerge "Add accessor for buckets scanned in ScanData" into nyc-dev
Mitchell Wills [Mon, 28 Mar 2016 18:41:02 +0000 (18:41 +0000)]
Merge "Add accessor for buckets scanned in ScanData" into nyc-dev

8 years agoMerge "Consume TextureView matrix safely" into nyc-dev
Chris Craik [Mon, 28 Mar 2016 18:30:21 +0000 (18:30 +0000)]
Merge "Consume TextureView matrix safely" into nyc-dev

8 years agoMerge "Added missing constants to GnssMeasurement" into nyc-dev
Lifu Tang [Mon, 28 Mar 2016 18:22:26 +0000 (18:22 +0000)]
Merge "Added missing constants to GnssMeasurement" into nyc-dev

8 years agoMerge "Dump more info for View when IMM#DEBUG is true." into nyc-dev
Yohei Yukawa [Mon, 28 Mar 2016 18:20:55 +0000 (18:20 +0000)]
Merge "Dump more info for View when IMM#DEBUG is true." into nyc-dev

8 years agoFix API numbering issues
Andrii Kulian [Mon, 28 Mar 2016 17:37:44 +0000 (10:37 -0700)]
Fix API numbering issues

This fixes issues with API numbering introduced in
2e751b8c778fd991fcdcec3bc2d1f32a722f436b.

Original commit replaced 'minimalSize' resource with 'minimalWidth' and
'minimalHeight' and 'make update-api' shifted the numbering of other resources.
This change reverts the shift, reuses number of 'minimalSize' and adds
another one new.

Bug: 27528326
Change-Id: I7d327f00043c2bd2aab7285e03223a042e8c97a3

8 years agoMerge "Clean-up a workaround that is no longer necessary." into nyc-dev
Yohei Yukawa [Mon, 28 Mar 2016 17:55:24 +0000 (17:55 +0000)]
Merge "Clean-up a workaround that is no longer necessary." into nyc-dev

8 years agoUse X509ExtendedTrustManagers
Chad Brubaker [Sun, 27 Mar 2016 06:04:04 +0000 (23:04 -0700)]
Use X509ExtendedTrustManagers

Move the X509TrustManagers for the Network Security Config from
X509TrustManagers to X509ExtendedTrustManagers.

Bug: 27271561
Change-Id: I084a6c6022fe69730192d2bdcbabaf58e8f92f04

8 years agoMerge "Add a couple more tests around bitmap uploads" into nyc-dev
Chris Craik [Mon, 28 Mar 2016 17:47:51 +0000 (17:47 +0000)]
Merge "Add a couple more tests around bitmap uploads" into nyc-dev

8 years agoMerge "Camera: Add bandaid for preview orientation on reverse-landscape cameras"...
Eino-Ville Talvala [Mon, 28 Mar 2016 17:47:19 +0000 (17:47 +0000)]
Merge "Camera: Add bandaid for preview orientation on reverse-landscape cameras" into nyc-dev

8 years agoMerge "If resume occurs, force finish of exiting activity." into nyc-dev
George Mount [Mon, 28 Mar 2016 17:21:10 +0000 (17:21 +0000)]
Merge "If resume occurs, force finish of exiting activity." into nyc-dev

8 years agoMerge "Disable suppressLayout in Visibility Activity Transitoins." into nyc-dev
George Mount [Mon, 28 Mar 2016 17:20:52 +0000 (17:20 +0000)]
Merge "Disable suppressLayout in Visibility Activity Transitoins." into nyc-dev

8 years agoConsume TextureView matrix safely
Chris Craik [Sat, 26 Mar 2016 01:34:11 +0000 (18:34 -0700)]
Consume TextureView matrix safely

Fixes: 27825042

TextureView's matrix may not be set at record time - delay using it
until on RenderThread, when deferring the op.

Change-Id: Icf8b55d656e304ec049ca803b042dc2359482db2

8 years agoRecover focus on size change in ListView
Yigit Boyar [Fri, 25 Mar 2016 00:44:28 +0000 (17:44 -0700)]
Recover focus on size change in ListView

This CL fixes a bug in ListView where if items are not selectable,
not focusable(in terms of ListView flags) but get focus (because
they can), ListView would not recover the focus properly although
it would make the child visible.

The major issue seems like AbsListView marks data set changed when
the list resizes. It seems like a workaround for some other issue
and the code is from 2009 so instead of changing it, I've decided
to implement a workaround to minimize the potential of breaking
something else.

Bug: 27488391
Change-Id: I5babd00e97bba7cb8cc9cfd0697ef79dfae12b97

8 years agoMerge "Fix menu popup rendering" into nyc-dev
Deepanshu Gupta [Mon, 28 Mar 2016 17:07:12 +0000 (17:07 +0000)]
Merge "Fix menu popup rendering" into nyc-dev

8 years agoMerge "[STOPSHIP] PackageManager: Add package setting flag for N upgrade" into nyc-dev
Andreas Gampe [Mon, 28 Mar 2016 17:01:09 +0000 (17:01 +0000)]
Merge "[STOPSHIP] PackageManager: Add package setting flag for N upgrade" into nyc-dev

8 years agoMerge "RecoverySystemService: Dump exception stack on IOExceptions." into nyc-dev
Tao Bao [Mon, 28 Mar 2016 17:00:04 +0000 (17:00 +0000)]
Merge "RecoverySystemService: Dump exception stack on IOExceptions." into nyc-dev

8 years agoMerge "Use correct task bounds after updating override config" into nyc-dev
Andrii Kulian [Mon, 28 Mar 2016 16:59:26 +0000 (16:59 +0000)]
Merge "Use correct task bounds after updating override config" into nyc-dev

8 years agoFix menu popup rendering
Deepanshu Gupta [Mon, 28 Mar 2016 16:57:24 +0000 (09:57 -0700)]
Fix menu popup rendering

Change-Id: I3394866d72af7fd1762ac477529a4a1bc473b7dc

8 years agoMerge "Work around buggy DMAgent." into nyc-dev
Jeff Sharkey [Mon, 28 Mar 2016 16:35:43 +0000 (16:35 +0000)]
Merge "Work around buggy DMAgent." into nyc-dev

8 years agoMerge "ShortcutManager: Handle package broadcasts." into nyc-dev
Makoto Onuki [Mon, 28 Mar 2016 16:32:45 +0000 (16:32 +0000)]
Merge "ShortcutManager: Handle package broadcasts." into nyc-dev

8 years agoMerge "Update the Drawable.inflate() documentation" into nyc-dev
Tenghui Zhu [Mon, 28 Mar 2016 16:30:56 +0000 (16:30 +0000)]
Merge "Update the Drawable.inflate() documentation" into nyc-dev

8 years agoMerge "More Data Saver / Battery Saver modes cleanup" into nyc-dev
Felipe Leme [Mon, 28 Mar 2016 16:28:21 +0000 (16:28 +0000)]
Merge "More Data Saver / Battery Saver modes cleanup" into nyc-dev

8 years agoMerge "Add full bar mode for search view on small devices" into nyc-dev
Aga Wronska [Mon, 28 Mar 2016 16:18:56 +0000 (16:18 +0000)]
Merge "Add full bar mode for search view on small devices" into nyc-dev

8 years agoAdd full bar mode for search view on small devices
Aga Wronska [Fri, 25 Mar 2016 01:22:09 +0000 (18:22 -0700)]
Add full bar mode for search view on small devices

Fixed: 27406434

Change-Id: I828ff72752cdb35dff453ea405209f169e550c1a

8 years agoMerge "Read "dalvik.vm.usejitprofiles" for package compile command" into nyc-dev
Calin Juravle [Mon, 28 Mar 2016 15:44:49 +0000 (15:44 +0000)]
Merge "Read "dalvik.vm.usejitprofiles" for package compile command" into nyc-dev

8 years ago[STOPSHIP] PackageManager: Add package setting flag for N upgrade
Andreas Gampe [Sat, 26 Mar 2016 03:03:51 +0000 (20:03 -0700)]
[STOPSHIP] PackageManager: Add package setting flag for N upgrade

First upgrade to N level needs to compile apps with the first-boot
reason, as profiles are missing. The SDK level check does not work
for the preview, as the version is not incremented, yet.

Add a flag to the package settings to track the status.

Note: STOPSHIP, this will be reverted before release.

Bug: 27689078
Bug: 27872764
Change-Id: Ifd460d5235348f041ef64c9b61068af47113ddcb

8 years agoRead "dalvik.vm.usejitprofiles" for package compile command
Calin Juravle [Mon, 28 Mar 2016 11:31:52 +0000 (12:31 +0100)]
Read "dalvik.vm.usejitprofiles" for package compile command

Bug: 27859630
Change-Id: I8c6fff6762646e4abe5b72428c23ceefa90b1f53

8 years agoWork around buggy DMAgent.
Jeff Sharkey [Mon, 28 Mar 2016 15:14:07 +0000 (09:14 -0600)]
Work around buggy DMAgent.

They're targeting new API level, but they aren't handling the new
constants.

Bug: 27785116
Change-Id: I8391294d963c86af1f948b91c7d1de6b7f44f66a

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Mon, 28 Mar 2016 14:49:37 +0000 (14:49 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Freeze apps during upgrade, check if uninstalled." into nyc-dev
Jeff Sharkey [Mon, 28 Mar 2016 14:48:46 +0000 (14:48 +0000)]
Merge "Freeze apps during upgrade, check if uninstalled." into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 28 Mar 2016 14:46:31 +0000 (07:46 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib89b994dbaf04d2c068f33cdf084a90fe9cab769
Auto-generated-cl: translation import

8 years agoMerge "Make sure settings tiles pick up locale changes" into nyc-dev
Jason Monk [Mon, 28 Mar 2016 14:46:05 +0000 (14:46 +0000)]
Merge "Make sure settings tiles pick up locale changes" into nyc-dev

8 years agoMake sure settings tiles pick up locale changes
Jason Monk [Mon, 28 Mar 2016 14:44:43 +0000 (10:44 -0400)]
Make sure settings tiles pick up locale changes

Bug: 27727312
Change-Id: Ic54437805bb264dd8e569ac38673c5ee36b2378a

8 years agoMerge "Wrong layout file chosen for 6" phones." into nyc-dev
George Mount [Mon, 28 Mar 2016 14:33:47 +0000 (14:33 +0000)]
Merge "Wrong layout file chosen for 6" phones." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Mon, 28 Mar 2016 14:32:58 +0000 (14:32 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Mon, 28 Mar 2016 14:32:42 +0000 (14:32 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Mon, 28 Mar 2016 14:32:11 +0000 (14:32 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Compute text bounds on a per glyph basis when drawing from an SkPicture."...
Derek Sollenberger [Mon, 28 Mar 2016 14:31:16 +0000 (14:31 +0000)]
Merge "Compute text bounds on a per glyph basis when drawing from an SkPicture." into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 28 Mar 2016 14:27:25 +0000 (07:27 -0700)]
Import translations. DO NOT MERGE

Change-Id: If53b6bafc90089964ee5de76e683bf196160c171
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 28 Mar 2016 14:26:36 +0000 (07:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8e62258c3b6d7a4a3a201084410e6420eaf8fbfa
Auto-generated-cl: translation import

8 years agoQS: Toggle flashlight on long click
Jason Monk [Mon, 28 Mar 2016 14:19:49 +0000 (10:19 -0400)]
QS: Toggle flashlight on long click

Bug: 27599572
Change-Id: Ie333a7b5cc63fa8e9536ed705ca997c8a8409d22

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 28 Mar 2016 14:18:33 +0000 (07:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: I841ff855e2ecfa65c2ce1e7432c9f5c67543ad4e
Auto-generated-cl: translation import

8 years agoMerge "Update the QS page indicator" into nyc-dev
Jason Monk [Mon, 28 Mar 2016 14:18:02 +0000 (14:18 +0000)]
Merge "Update the QS page indicator" into nyc-dev

8 years agoMerge "Don't show low battery notification if bat saver" into nyc-dev
Jason Monk [Mon, 28 Mar 2016 14:12:44 +0000 (14:12 +0000)]
Merge "Don't show low battery notification if bat saver" into nyc-dev

8 years agoQS edit drag and drop accessibility
Jason Monk [Wed, 16 Mar 2016 13:18:35 +0000 (09:18 -0400)]
QS edit drag and drop accessibility

Bug: 27667843
Change-Id: Ief0980af25d855942b0565e5a9bfcc0d266bdbe0

8 years agoMerge "Add OpenJDK Arrays parallelSetAll methods" into nyc-dev
Shubham Ajmera [Mon, 28 Mar 2016 10:57:29 +0000 (10:57 +0000)]
Merge "Add OpenJDK Arrays parallelSetAll methods" into nyc-dev

8 years agoAdd OpenJDK Arrays parallelSetAll methods
Shubham Ajmera [Mon, 28 Mar 2016 10:53:20 +0000 (11:53 +0100)]
Add OpenJDK Arrays parallelSetAll methods

Adds parallelSetAll(int[], java.util.function.IntUnaryOperator),
parallelSetAll(long[], java.util.function.IntToLongFunction),
parallelSetAll(double[], java.util.function.IntToDoubleFunction),
parallelSetAll(T[], java.util.function.IntFunction<? extends T>)
from the upstream along with the corresponding tests.

Bug: 27540010
(cherry-picked from commit 4293e554dbdc7aae8f965b8da96be03219584a17)
Change-Id: Iaa4a0749d8bb95ea8a0072a43bfbd6d6f459ff28

8 years agoMerge "Don't check if forward locked apps are used by others" into nyc-dev
Calin Juravle [Mon, 28 Mar 2016 10:26:34 +0000 (10:26 +0000)]
Merge "Don't check if forward locked apps are used by others" into nyc-dev

8 years agoDump more info for View when IMM#DEBUG is true.
Yohei Yukawa [Mon, 28 Mar 2016 08:52:47 +0000 (01:52 -0700)]
Dump more info for View when IMM#DEBUG is true.

This is a preparation CL to fix Bug 27858665.  In order to debug issues
like this, we want to record following information about View.
 - Whether the View is focused or not.
 - Whether the Window to which the View belongs is focused or not.
 - Whether the View belongs to a Window or not.

This CL has no impact on production build where IMM#DEBUG is false.

Bug: 18920212
Change-Id: I06bcd5e42d55f96a9e916eb34ed7785cfe14c96f

8 years agoClean-up a workaround that is no longer necessary.
Yohei Yukawa [Mon, 28 Mar 2016 07:28:50 +0000 (00:28 -0700)]
Clean-up a workaround that is no longer necessary.

With the previous commit [1], now Bug 27868748 is fixed and Bug 6789252
is no longer reproducible even without a workaround [2] for that.  Hence
this CL logically reverts [2] in favor of simplicity.

  [1]: If2a03bc84d318775fd4a197fa43acde086eda442
       aaa38c9f1ae019f0fe8c3ba80630f26e582cc89c
  [2]: I66f51da1299532793ef8fa700f35b0811670f235
       4e5184f929d2498714bc7734fe10b9b8810cb071

Bug: 27868748
Change-Id: Ic59af43343eb44d1d2c23a3f4018565e7a75b143

8 years agoMerge "Ensure IC#finishComposingText() is called on the correct Handler." into nyc-dev
Yohei Yukawa [Mon, 28 Mar 2016 06:47:47 +0000 (06:47 +0000)]
Merge "Ensure IC#finishComposingText() is called on the correct Handler." into nyc-dev

8 years agoEnsure IC#finishComposingText() is called on the correct Handler.
Yohei Yukawa [Mon, 28 Mar 2016 06:46:04 +0000 (23:46 -0700)]
Ensure IC#finishComposingText() is called on the correct Handler.

This attempts to reland previously reverted CLs [1][2] due to an
unexpected regression (Bug 27824691).

The Bug 27868748 we want to address by this CL is that currently
InputConnection#finishComposingText() can be called on the root view's
Handler no matter what Handler is associated with
ControlledInputConnectionWrapper.  Actually the root cause of
Bug 6789252 is the same, but there we worked around it by not calling
InputConnection#finishComposingText() in certain situations [3].
With this CL we should be able to logically revert that workaround.

This CL also removes redundant IMM#mServedInputConnection.  This is safe
because the following two fields have the same lifetime.
 - InputMethodManager#mServedInputConnection
 - InputMethodManager#mServedInputConnectionWrapper
We do not need to maintain both of them.  This also allows us to use a
strong refecente in IInputConnectionWrapper#mInputConnection instead of
a WeakReference.  To understand why this is safe, we need to understand
how things previously worked, which is as follows:

  1. InputMethodManager#mServedInputConnection becomes non-null.
    -> IInputConnectionWrapper#mInputConnection.get() is guaranteed to
       be alive.
  2. InputMethodManager#mServedInputConnection becomes null or another
     object.
    -> IInputConnectionWrapper#mInputConnection.get() may not be alive.

Since we know exactly when InputMethodManager#mServedInputConnection is
updated, in theory we do not need to use WeakReference here, and
with this CL we do not use WeakReference anymore.  Actually the initial
commit [1] accidentally removed the last strong reference to the active
InputConnection and WeakReference could be null at any time, which was
what we observed in Bug 27824691.

  [1]: I1181e067aa5bedbdf0c7ec1bcec479257aea511c
       afb6558c8f5e0ee797b252558d7e529e3d946d8f
  [2]: Ibe94f115e607a198d12ecd3d4e4f91a7d9469c98
       16e2c7b59aacf44df7aaa0d04e0228240907487f
  [3]: I66f51da1299532793ef8fa700f35b0811670f235
       4e5184f929d2498714bc7734fe10b9b8810cb071

Bug: 27868748
Change-Id: If2a03bc84d318775fd4a197fa43acde086eda442

8 years agoMerge "Improve selection handle behavior for bidi text." into nyc-dev
Keisuke Kuroyanagi [Mon, 28 Mar 2016 06:06:01 +0000 (06:06 +0000)]
Merge "Improve selection handle behavior for bidi text." into nyc-dev

8 years agoOpen 4G+ file by using AppFuse.
Daichi Hirono [Mon, 28 Mar 2016 05:37:12 +0000 (14:37 +0900)]
Open 4G+ file by using AppFuse.

To open files by using AppFuse, the provider needs to know the size of
file. Previously we cannot open 4G+ files because we cannot obtain file
size for such large files.

Now MtpDatabase contains correct size for 4GB+ file size. The CL starts
opening files by using AppFuse which obtains partial bytes by using
getObjectPartial64 operation.

FIXED=26840097

Change-Id: I1cb41972175c2b98f4aa76981decc6b3ad35486d

8 years agoMerge "Include "invisible" volumes in new storage API." into nyc-dev
Jeff Sharkey [Mon, 28 Mar 2016 05:18:38 +0000 (05:18 +0000)]
Merge "Include "invisible" volumes in new storage API." into nyc-dev

8 years agoFreeze apps during upgrade, check if uninstalled.
Jeff Sharkey [Mon, 28 Mar 2016 05:05:02 +0000 (23:05 -0600)]
Freeze apps during upgrade, check if uninstalled.

When an app is actively being upgraded, mark it as being "frozen"
to prevent it from being launched in a weird state.  Also verify that
app is actually installed before letting Zygote fork it, working
around race conditions during user setup.

When the ProcessRecord of an ActivityRecord is inconsistent,
warn about it, but correct it and keep moving if the UIDs match.

Bug: 2720002226205678
Change-Id: I6628cf1cece5613f07647e0acc2d49265e69dc69

8 years agoUpdate the comment of MtpDevice#getObjectSizeLong
Daichi Hirono [Sun, 27 Mar 2016 23:53:15 +0000 (08:53 +0900)]
Update the comment of MtpDevice#getObjectSizeLong

BUG=27805369

Change-Id: I63762fedf540e89e9ca811a143cb178881ef1830

8 years agoMerge "Get object size that is more than 4GB." into nyc-dev
Daichi Hirono [Mon, 28 Mar 2016 04:36:00 +0000 (04:36 +0000)]
Merge "Get object size that is more than 4GB." into nyc-dev

8 years agoGet object size that is more than 4GB.
Daichi Hirono [Thu, 24 Mar 2016 12:07:38 +0000 (21:07 +0900)]
Get object size that is more than 4GB.

MtpObjectInfo contains object size as 32-bit integer and the provider
needs to invoke MtpDevice#getObjectSizeLong hidden API to get 64-bit
object size.

The CL switches to use MtpDevice#getObjectSizeLong hidden API if
MtpObjectInfo#getCompressedSize() returns 0xffffffffL, which means the
object size is more than 4GB.

BUG=27805369

Change-Id: I87ea02c09aa784246cf016def309d1f39ed20e90

8 years agoMerge "Add new text for USB type C host." into nyc-dev
Daichi Hirono [Mon, 28 Mar 2016 04:28:52 +0000 (04:28 +0000)]
Merge "Add new text for USB type C host." into nyc-dev

8 years agoMerge "PackageManager: Introduce first-boot dexopt reason" into nyc-dev
Andreas Gampe [Mon, 28 Mar 2016 03:10:00 +0000 (03:10 +0000)]
Merge "PackageManager: Introduce first-boot dexopt reason" into nyc-dev

8 years agoAdd new text for USB type C host.
Daichi Hirono [Mon, 28 Mar 2016 01:52:17 +0000 (10:52 +0900)]
Add new text for USB type C host.

If you use USB type C, you can charge Android from USB power or you can
supply power from Android to the other connected device.

Previously Android showed the notification saying "USB for charging".
The CL updates the text so that it shows the current power direction
explicitly.

Change-Id: Ic15ba70eaf8ade028283d8f490ac36e8d5e4db21
FIXED: 27706939

8 years agoMerge "Update ActivityInfo#WindowLayout apis (1/3)" into nyc-dev
Andrii Kulian [Mon, 28 Mar 2016 00:24:59 +0000 (00:24 +0000)]
Merge "Update ActivityInfo#WindowLayout apis (1/3)" into nyc-dev

8 years agoMerge "Don't set insets if task frame doesn't fit the screen" into nyc-dev
Andrii Kulian [Sun, 27 Mar 2016 23:40:01 +0000 (23:40 +0000)]
Merge "Don't set insets if task frame doesn't fit the screen" into nyc-dev

8 years agoUse correct task bounds after updating override config
Andrii Kulian [Thu, 24 Mar 2016 19:56:08 +0000 (12:56 -0700)]
Use correct task bounds after updating override config

Use new task bounds after updating override configuration
when we move existing task to front or launch new one.
This fixes issues when task with defined minimal size is
launched in freeform or split-screen modes. In these cases
minimal size was not applied until task was resized manually.

Bug: 27621228
Change-Id: I0630962578815a77bfb556150cb71fec5a74ee37

8 years agoUpdate ActivityInfo#WindowLayout apis (1/3)
Andrii Kulian [Wed, 16 Mar 2016 23:59:32 +0000 (16:59 -0700)]
Update ActivityInfo#WindowLayout apis (1/3)

Adds documentation, renames Layout to WindowLayout and
splits #minimalSize to #minimalWidth and #minimalHeight.

Bug: 27528326
Change-Id: Idb440cb081a14ccdc83309284e906454633c4504

8 years agoInclude "invisible" volumes in new storage API.
Jeff Sharkey [Sun, 27 Mar 2016 21:06:53 +0000 (15:06 -0600)]
Include "invisible" volumes in new storage API.

The purpose of the new StorageVolume API is to grant access to
volumes that aren't typically "visible" to a developer, so include
them in the returned results.

Also return the real mounted state instead of augmenting based on
the caller's storage permissions.  Clean up API naming slightly and
return as List.

Bug: 27615770
Change-Id: Ida921a4b91e5af81e418e76f672d9108f45a9781

8 years agoAdd methods to probe current storage state.
Jeff Sharkey [Sun, 27 Mar 2016 18:10:38 +0000 (12:10 -0600)]
Add methods to probe current storage state.

Bug: 27811575
Change-Id: I2586fe3ec4d5c98c5b956f4b4a4cec425c81b0b1

8 years agoUpdate PRE_BOOT_COMPLETED for FBE.
Jeff Sharkey [Tue, 22 Mar 2016 21:32:31 +0000 (15:32 -0600)]
Update PRE_BOOT_COMPLETED for FBE.

Now that CE data isn't available until after a user is unlocked, we
need to delay the PRE_BOOT_COMPLETED broadcasts.  This is done by
adding a new RUNNING_UNLOCKING user state to the UserController
lifecycle.

We now track the last fingerprint a user was logged in under, and we
dispatch PRE_BOOT receivers when that fingerprint changes.  To work
around battery pull issues, we only persist the updated fingerprint
once all PRE_BOOT receivers have finished.  This is less granular
than the original solution, but it's still correct.  We only consider
a user as "logged in" once it transitions into the RUNNING_UNLOCKED
state.

When starting a process, track if the user was "unlocked" when
started, so that we only spin up unaware providers in processes
started before user unlock.

Add generic IProgressListener to communicate PRE_BOOT progress and
strings up to lock screen.  For now, LockSettingsService just blocks
until finished, but it could display these strings in the future.

Bug: 27220885
Change-Id: I349439776b885acd32f6a578d8951ffd95640be2

8 years agosysui: refactor for extensibility
Muyuan Li [Wed, 23 Mar 2016 18:43:58 +0000 (11:43 -0700)]
sysui: refactor for extensibility

Making mZenModeController in PSB protected.

Bug: 27101250
Change-Id: Ibb3e66fb59b245aa293bbc32d1c1009ac1a0499a
(cherry picked from commit ac72fc49227fc02a919827a877637df4b0a65cf0)

8 years agoMerge "If the print spooler gets started onUserUnlock use less of a priority to have...
Philip P. Moltmann [Sat, 26 Mar 2016 18:15:47 +0000 (18:15 +0000)]
Merge "If the print spooler gets started onUserUnlock use less of a priority to have less impact on the system." into nyc-dev

8 years agoMerge "Handle all configuration changes in PrintActivity as it cannot be destroyed...
Philip P. Moltmann [Sat, 26 Mar 2016 18:13:23 +0000 (18:13 +0000)]
Merge "Handle all configuration changes in PrintActivity as it cannot be destroyed synchronously." into nyc-dev

8 years agoMerge "PDFium interface changed, hence adjust the adapter jni code." into nyc-dev
Philip P. Moltmann [Sat, 26 Mar 2016 18:12:58 +0000 (18:12 +0000)]
Merge "PDFium interface changed, hence adjust the adapter jni code." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Sat, 26 Mar 2016 17:28:47 +0000 (17:28 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Add handleTrustStorageUpdate" into nyc-dev
Chad Brubaker [Sat, 26 Mar 2016 16:36:30 +0000 (16:36 +0000)]
Merge "Add handleTrustStorageUpdate" into nyc-dev

8 years agoMerge "Removed redundant public modifier in CommandQueue.Callbacks" into nyc-dev
Muyuan Li [Sat, 26 Mar 2016 05:42:54 +0000 (05:42 +0000)]
Merge "Removed redundant public modifier in CommandQueue.Callbacks" into nyc-dev

8 years agoMerge "sysui: refactor for extensibility" into nyc-dev
Muyuan Li [Sat, 26 Mar 2016 05:40:49 +0000 (05:40 +0000)]
Merge "sysui: refactor for extensibility" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Sat, 26 Mar 2016 05:02:19 +0000 (05:02 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Sat, 26 Mar 2016 05:00:24 +0000 (05:00 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Sat, 26 Mar 2016 04:48:16 +0000 (04:48 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoRemoved redundant public modifier in CommandQueue.Callbacks
Muyuan Li [Sat, 26 Mar 2016 02:29:06 +0000 (19:29 -0700)]
Removed redundant public modifier in CommandQueue.Callbacks

Change-Id: I31783f4aa68742c6a8a4ebe352ab7ec41e21c8fc
(cherry picked from commit eb1cfb75595cf5c7120396d7575bc2beaf4f1967)

8 years agosysui: refactor for extensibility
Muyuan Li [Wed, 23 Mar 2016 23:45:16 +0000 (16:45 -0700)]
sysui: refactor for extensibility

Make mQsExpansionEnabled protected in NotficationPanelView.

Bug: 27836776
Change-Id: I35479e990607d6801effd3fa64fd3ffb1f9503dd
(cherry picked from commit 8af5736425d60641268943fe4d7e23a2b7d99c8a)

8 years agoPackageManager: Introduce first-boot dexopt reason
Andreas Gampe [Sat, 26 Mar 2016 00:03:28 +0000 (17:03 -0700)]
PackageManager: Introduce first-boot dexopt reason

On first boot and when upgrading to N, there are no profiles for
apps. Add a new dexopt reason to allow to adjust the compiler
filter for this case.

Bug: 27689078
Change-Id: I7d68e02fe129c8dd12cb210df555bbb6dfc1487b

8 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 26 Mar 2016 02:34:39 +0000 (19:34 -0700)]
Import translations. DO NOT MERGE

Change-Id: I311ab683a598426efc4739408be109d766aad721
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 26 Mar 2016 02:32:21 +0000 (19:32 -0700)]
Import translations. DO NOT MERGE

Change-Id: Idba908d9f62c1052034a89f2ff6979d47248fee9
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 26 Mar 2016 02:28:29 +0000 (19:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0c9fd440261f12d31c22fbc6bffc0081a90ab187
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 26 Mar 2016 02:23:57 +0000 (19:23 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ida79dc685e550bd3c2765b1e93821a04c4effc52
Auto-generated-cl: translation import

8 years agoFix background pivot point
Jorim Jaggi [Sat, 26 Mar 2016 02:11:35 +0000 (19:11 -0700)]
Fix background pivot point

Bug: 27859759
Change-Id: Id4d77d3bd17ae96441960717a4ffe0bf4831562e

8 years agoMerge changes I2586b90d,I67111528,I9aeb191a into nyc-dev
Winson Chung [Sat, 26 Mar 2016 01:55:49 +0000 (01:55 +0000)]
Merge changes I2586b90d,I67111528,I9aeb191a into nyc-dev

* changes:
  Fix config change layout. (Part 2)
  Fixing issue with tasks being laid out with the wrong bounds.
  Launch state/config change audit. (Part 1)

8 years agoHide window swapping behind a flag
Jorim Jaggi [Sat, 26 Mar 2016 01:46:30 +0000 (18:46 -0700)]
Hide window swapping behind a flag

Bug: 27859522
Change-Id: I0e1e578d2d91f7572b0978dbb12ed143acbdf1e1

8 years agoFix config change layout. (Part 2)
Winson [Fri, 25 Mar 2016 23:12:35 +0000 (16:12 -0700)]
Fix config change layout. (Part 2)

- Fixing issue where the initial state was not correct after rotating
  the screen.  We needed to update the layout, but that could only be
  done after the task stack view is laid out.  Now we set a flag to
  update the initial state of the layout on configuration change, and
  only scrolling to the front when it makes sense.

Change-Id: I2586b90d1e869708b97bcd1a4446f4d87fa521cc

8 years agoFixing issue with tasks being laid out with the wrong bounds.
Winson [Fri, 25 Mar 2016 22:14:37 +0000 (15:14 -0700)]
Fixing issue with tasks being laid out with the wrong bounds.

- When hovering over a drop target, we update the stack bounds, which
  changes the task rect.  If we happen to pick up new tasks and measure
  them during this point, they will be measured with the wrong rect, and
  once you stop dragging over a drop target, they will not have the
  right bounds.

Change-Id: I6711152878a4afd48518e01477fd793a4c132648

8 years agoMerge "Some divider handling fixes" into nyc-dev
Jorim Jaggi [Sat, 26 Mar 2016 01:18:45 +0000 (01:18 +0000)]
Merge "Some divider handling fixes" into nyc-dev