Commit Graph

239308 Commits

Author SHA1 Message Date
Jason Monk
fdf809beb5 QS: Toggle flashlight on long click
am: 8d34469

* commit '8d344698a97c5cccc02ddb6a48cdee1d2bed7339':
  QS: Toggle flashlight on long click
2016-03-28 14:35:47 +00:00
Jason Monk
f11db881d8 Merge "Update the QS page indicator" into nyc-dev
am: ace22ae

* commit 'ace22ae26cf6c6c145db58fe1168aa1c7c64bec9':
  Update the QS page indicator
2016-03-28 14:28:11 +00:00
Jason Monk
8d344698a9 QS: Toggle flashlight on long click
Bug: 27599572
Change-Id: Ie333a7b5cc63fa8e9536ed705ca997c8a8409d22
2016-03-28 10:24:01 -04:00
Jason Monk
f277f5196c Merge "Don\'t show low battery notification if bat saver" into nyc-dev
am: 8469407

* commit '8469407126ccfe92d5bb8b5587500720aefe1ed1':
  Don't show low battery notification if bat saver
2016-03-28 14:20:47 +00:00
Jason Monk
6ecba059b9 QS edit drag and drop accessibility
am: 39c98e6

* commit '39c98e652fd3e0e3ea3a334d60ba6ee979985978':
  QS edit drag and drop accessibility
2016-03-28 14:20:45 +00: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
f7d1d6582b Merge "Add OpenJDK Arrays parallelSetAll methods" am: 1aafd31
am: fc20d6d

* commit 'fc20d6d421441beb08cdb3274045897a45ca2a53':
  Add OpenJDK Arrays parallelSetAll methods
2016-03-28 11:12:08 +00:00
Shubham Ajmera
aedf9610e3 Merge "Add OpenJDK Arrays parallelSetAll methods" into nyc-dev
am: 47f542f

* commit '47f542fc04f966e98de5f9929b375478d2e3e7b2':
  Add OpenJDK Arrays parallelSetAll methods
2016-03-28 11:08:28 +00:00
Shubham Ajmera
fc20d6d421 Merge "Add OpenJDK Arrays parallelSetAll methods"
am: 1aafd31

* commit '1aafd31b4a8df4fe6f0c22ca3447bc762aecbb4d':
  Add OpenJDK Arrays parallelSetAll methods
2016-03-28 11:08:28 +00:00
Shubham Ajmera
1aafd31b4a Merge "Add OpenJDK Arrays parallelSetAll methods" 2016-03-28 10:57:38 +00: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 4293e554db)
Change-Id: Iaa4a0749d8bb95ea8a0072a43bfbd6d6f459ff28
2016-03-28 11:53:20 +01:00
Calin Juravle
15e4b663cf Merge "Don\'t check if forward locked apps are used by others" into nyc-dev
am: d9435ea

* commit 'd9435ea0514d70923a8e7ba51ee677aa4e0d36ba':
  Don't check if forward locked apps are used by others
2016-03-28 10:35:30 +00: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
f53bbbc730 Merge "Ensure IC#finishComposingText() is called on the correct Handler." into nyc-dev
am: 9194f34

* commit '9194f344b922cd04e5e44206ada6191865631daa':
  Ensure IC#finishComposingText() is called on the correct Handler.
2016-03-28 06:55:07 +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
       afb6558c8f
  [2]: Ibe94f115e607a198d12ecd3d4e4f91a7d9469c98
       16e2c7b59a
  [3]: I66f51da1299532793ef8fa700f35b0811670f235
       4e5184f929

Bug: 27868748
Change-Id: If2a03bc84d318775fd4a197fa43acde086eda442
2016-03-27 23:46:04 -07:00
Keisuke Kuroyanagi
7c90769e94 Merge "Improve selection handle behavior for bidi text." into nyc-dev
am: 1e632ba

* commit '1e632ba426ac3e07b82299505aa32495ebb3c709':
  Improve selection handle behavior for bidi text.
2016-03-28 06:13:56 +00:00
Daichi Hirono
74600b1b23 Open 4G+ file by using AppFuse.
am: 77a1c65

* commit '77a1c65610618891ba28d7a10e4f107ea27e392e':
  Open 4G+ file by using AppFuse.
2016-03-28 06:08:02 +00: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
0f6805ee05 Merge "Include "invisible" volumes in new storage API." into nyc-dev
am: 4d9b6e4

* commit '4d9b6e4f5724a4ef2340bc4725b824ca573f474c':
  Include "invisible" volumes in new storage API.
2016-03-28 05:44:44 +00:00
Daichi Hirono
bd48200e89 Update the comment of MtpDevice#getObjectSizeLong
am: 1337deb

* commit '1337deb6eac47b9eeef0999a928caba0cfca7126':
  Update the comment of MtpDevice#getObjectSizeLong
2016-03-28 05:44:26 +00:00
Daichi Hirono
e97adabf2e Merge "Get object size that is more than 4GB." into nyc-dev
am: 1c43162

* commit '1c431625b38480a146ae2bbaf118753e912061a8':
  Get object size that is more than 4GB.
2016-03-28 05:44:22 +00:00
Daichi Hirono
c49bdf5737 Merge "Add new text for USB type C host." into nyc-dev
am: 57e1539

* commit '57e1539a8f8c09c8fbf9676c310f0d210cec734a':
  Add new text for USB type C host.
2016-03-28 05:44:16 +00: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
d1d83830b4 Merge "PackageManager: Introduce first-boot dexopt reason" into nyc-dev
am: 9948c37

* commit '9948c37e482f59f43b4ff7418f39fe4388f44a3e':
  PackageManager: Introduce first-boot dexopt reason
2016-03-28 03:15:38 +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
d5afdc71c9 Merge "Update ActivityInfo#WindowLayout apis (1/3)" into nyc-dev
am: 47869bd

* commit '47869bd446e0de36bdb4848d3c286a15fc3fdbf7':
  Update ActivityInfo#WindowLayout apis (1/3)
2016-03-28 00:31:16 +00:00
Andrii Kulian
47869bd446 Merge "Update ActivityInfo#WindowLayout apis (1/3)" into nyc-dev 2016-03-28 00:25:01 +00:00
Andrii Kulian
3f847b2a3f Merge "Don\'t set insets if task frame doesn\'t fit the screen" into nyc-dev
am: 3e670dc

* commit '3e670dc06d78333c617f7a8fc8afef1f2a8fb810':
  Don't set insets if task frame doesn't fit the screen
2016-03-27 23:47:57 +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
cd3af14d2e Add methods to probe current storage state.
am: c9a40cd

* commit 'c9a40cd8448410316716e45ce051c9f1a3fc7054':
  Add methods to probe current storage state.
2016-03-27 19:24:07 +00: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
bef5aad065 Update PRE_BOOT_COMPLETED for FBE.
am: bd91e2f

* commit 'bd91e2f3f6aca512a02be645b2515b5e3331e177':
  Update PRE_BOOT_COMPLETED for FBE.
2016-03-27 17:47:15 +00: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
6ee07f9ac1 sysui: refactor for extensibility
am: 40e1135

* commit '40e1135ea2780fefecf532fb7a1cc43e26bcecc2':
  sysui: refactor for extensibility
2016-03-26 20:42:49 +00: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
7ebbc99b43 Merge "If the print spooler gets started onUserUnlock use less of a priority to have less impact on the system." into nyc-dev
am: 59d1c94

* commit '59d1c9430aa8b65febf1b77f99930328fd739844':
  If the print spooler gets started onUserUnlock use less of a priority to have less impact on the system.
2016-03-26 18:19:48 +00:00
Philip P. Moltmann
c0c7ecbea1 Merge "Handle all configuration changes in PrintActivity as it cannot be destroyed synchronously." into nyc-dev
am: b5be5ec

* commit 'b5be5ec3b70c2c310601e9d035b4e8fd0db8b085':
  Handle all configuration changes in PrintActivity as it cannot be destroyed synchronously.
2016-03-26 18:19:47 +00:00
Philip P. Moltmann
7ebad31b94 Merge "PDFium interface changed, hence adjust the adapter jni code." into nyc-dev
am: cd7c97b

* commit 'cd7c97bcf720abca3c364a27427d54ffcfa502f4':
  PDFium interface changed, hence adjust the adapter jni code.
2016-03-26 18:19:44 +00:00