236699 Commits

Author SHA1 Message Date
George Mount
bf72e03dd5 Merge "Wrong layout file chosen for 6" phones." into nyc-dev 2016-03-28 14:33:48 +00:00
Geoff Mendal
685c0c4daa Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-28 14:33:00 +00:00
Geoff Mendal
1be5477dbe Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-28 14:32:44 +00:00
Geoff Mendal
1b40d344f8 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-28 14:32:12 +00:00
Derek Sollenberger
b64da4cac4 Merge "Compute text bounds on a per glyph basis when drawing from an SkPicture." into nyc-dev 2016-03-28 14:31:17 +00:00
Geoff Mendal
60e532a47f Import translations. DO NOT MERGE
Change-Id: If53b6bafc90089964ee5de76e683bf196160c171
Auto-generated-cl: translation import
2016-03-28 07:27:25 -07:00
Geoff Mendal
717bf27e77 Import translations. DO NOT MERGE
Change-Id: I8e62258c3b6d7a4a3a201084410e6420eaf8fbfa
Auto-generated-cl: translation import
2016-03-28 07:26:36 -07:00
Jason Monk
8d344698a9 QS: Toggle flashlight on long click
Bug: 27599572
Change-Id: Ie333a7b5cc63fa8e9536ed705ca997c8a8409d22
2016-03-28 10:24:01 -04:00
Geoff Mendal
4a29c84990 Import translations. DO NOT MERGE
Change-Id: I841ff855e2ecfa65c2ce1e7432c9f5c67543ad4e
Auto-generated-cl: translation import
2016-03-28 07:18:33 -07:00
Jason Monk
ace22ae26c Merge "Update the QS page indicator" into nyc-dev 2016-03-28 14:18:04 +00:00
Jason Monk
8469407126 Merge "Don't show low battery notification if bat saver" into nyc-dev 2016-03-28 14:12:46 +00:00
Jason Monk
39c98e652f QS edit drag and drop accessibility
Bug: 27667843
Change-Id: Ief0980af25d855942b0565e5a9bfcc0d266bdbe0
2016-03-28 09:57:39 -04:00
Shubham Ajmera
47f542fc04 Merge "Add OpenJDK Arrays parallelSetAll methods" into nyc-dev 2016-03-28 10:57:31 +00:00
Shubham Ajmera
88c2c90a12 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
2016-03-28 11:53:20 +01:00
Calin Juravle
d9435ea051 Merge "Don't check if forward locked apps are used by others" into nyc-dev 2016-03-28 10:26:36 +00:00
Yohei Yukawa
9194f344b9 Merge "Ensure IC#finishComposingText() is called on the correct Handler." into nyc-dev 2016-03-28 06:47:50 +00:00
Yohei Yukawa
aaa38c9f1a 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
2016-03-27 23:46:04 -07:00
Keisuke Kuroyanagi
1e632ba426 Merge "Improve selection handle behavior for bidi text." into nyc-dev 2016-03-28 06:06:02 +00:00
Daichi Hirono
77a1c65610 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
2016-03-28 14:57:23 +09:00
Jeff Sharkey
4d9b6e4f57 Merge "Include "invisible" volumes in new storage API." into nyc-dev 2016-03-28 05:18:40 +00:00
Daichi Hirono
1337deb6ea Update the comment of MtpDevice#getObjectSizeLong
BUG=27805369

Change-Id: I63762fedf540e89e9ca811a143cb178881ef1830
2016-03-28 04:37:14 +00:00
Daichi Hirono
1c431625b3 Merge "Get object size that is more than 4GB." into nyc-dev 2016-03-28 04:36:01 +00:00
Daichi Hirono
64111e08d9 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
2016-03-28 13:34:03 +09:00
Daichi Hirono
57e1539a8f Merge "Add new text for USB type C host." into nyc-dev 2016-03-28 04:28:53 +00:00
Andreas Gampe
9948c37e48 Merge "PackageManager: Introduce first-boot dexopt reason" into nyc-dev 2016-03-28 03:10:01 +00:00
Daichi Hirono
b6abccc8f3 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
2016-03-28 10:52:17 +09:00
Andrii Kulian
47869bd446 Merge "Update ActivityInfo#WindowLayout apis (1/3)" into nyc-dev 2016-03-28 00:25:01 +00:00
Andrii Kulian
3e670dc06d Merge "Don't set insets if task frame doesn't fit the screen" into nyc-dev 2016-03-27 23:40:03 +00:00
Andrii Kulian
2e751b8c77 Update ActivityInfo#WindowLayout apis (1/3)
Adds documentation, renames Layout to WindowLayout and
splits #minimalSize to #minimalWidth and #minimalHeight.

Bug: 27528326
Change-Id: Idb440cb081a14ccdc83309284e906454633c4504
2016-03-27 15:35:33 -07:00
Jeff Sharkey
c02bfae73e 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
2016-03-27 15:06:57 -06:00
Jeff Sharkey
c9a40cd844 Add methods to probe current storage state.
Bug: 27811575
Change-Id: I2586fe3ec4d5c98c5b956f4b4a4cec425c81b0b1
2016-03-27 12:10:38 -06:00
Jeff Sharkey
bd91e2f3f6 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
2016-03-27 10:56:48 -06:00
Muyuan Li
40e1135ea2 sysui: refactor for extensibility
Making mZenModeController in PSB protected.

Bug: 27101250
Change-Id: Ibb3e66fb59b245aa293bbc32d1c1009ac1a0499a
(cherry picked from commit ac72fc49227fc02a919827a877637df4b0a65cf0)
2016-03-26 20:38:00 +00:00
Philip P. Moltmann
59d1c9430a Merge "If the print spooler gets started onUserUnlock use less of a priority to have less impact on the system." into nyc-dev 2016-03-26 18:15:49 +00:00
Philip P. Moltmann
b5be5ec3b7 Merge "Handle all configuration changes in PrintActivity as it cannot be destroyed synchronously." into nyc-dev 2016-03-26 18:13:24 +00:00
Philip P. Moltmann
cd7c97bcf7 Merge "PDFium interface changed, hence adjust the adapter jni code." into nyc-dev 2016-03-26 18:12:59 +00:00
Bill Yi
be3bcae7f6 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-26 17:28:48 +00:00
Chad Brubaker
e4c5c161dd Merge "Add handleTrustStorageUpdate" into nyc-dev 2016-03-26 16:36:31 +00:00
Muyuan Li
df79218cb2 Merge "Removed redundant public modifier in CommandQueue.Callbacks" into nyc-dev 2016-03-26 05:42:55 +00:00
Muyuan Li
16d62fc2bd Merge "sysui: refactor for extensibility" into nyc-dev 2016-03-26 05:40:50 +00:00
Bill Yi
d2a620f8bf Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-26 05:02:20 +00:00
Bill Yi
c0acb87748 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-26 05:00:25 +00:00
Bill Yi
7977855d81 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-26 04:48:17 +00:00
Muyuan Li
35b630c064 Removed redundant public modifier in CommandQueue.Callbacks
Change-Id: I31783f4aa68742c6a8a4ebe352ab7ec41e21c8fc
(cherry picked from commit eb1cfb75595cf5c7120396d7575bc2beaf4f1967)
2016-03-26 03:40:24 +00:00
Muyuan Li
5969004032 sysui: refactor for extensibility
Make mQsExpansionEnabled protected in NotficationPanelView.

Bug: 27836776
Change-Id: I35479e990607d6801effd3fa64fd3ffb1f9503dd
(cherry picked from commit 8af5736425d60641268943fe4d7e23a2b7d99c8a)
2016-03-26 03:26:04 +00:00
Andreas Gampe
6823f6d038 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
2016-03-25 19:46:39 -07:00
Bill Yi
397fb345ba Import translations. DO NOT MERGE
Change-Id: I311ab683a598426efc4739408be109d766aad721
Auto-generated-cl: translation import
2016-03-25 19:34:39 -07:00
Bill Yi
5564dc14d4 Import translations. DO NOT MERGE
Change-Id: Idba908d9f62c1052034a89f2ff6979d47248fee9
Auto-generated-cl: translation import
2016-03-25 19:32:21 -07:00
Bill Yi
365b39a30f Import translations. DO NOT MERGE
Change-Id: I0c9fd440261f12d31c22fbc6bffc0081a90ab187
Auto-generated-cl: translation import
2016-03-25 19:28:29 -07:00
Bill Yi
35286960cb Import translations. DO NOT MERGE
Change-Id: Ida79dc685e550bd3c2765b1e93821a04c4effc52
Auto-generated-cl: translation import
2016-03-25 19:23:57 -07:00