Commit Graph

57734 Commits

Author SHA1 Message Date
Yohei Yukawa
4c5d6e5eb7 Merge "Dump more info for View when IMM#DEBUG is true." into nyc-dev am: feade80
am: ab0dbb1

* commit 'ab0dbb1d53a4b85098129beae034a6515f8dc935':
  Dump more info for View when IMM#DEBUG is true.
2016-03-28 21:13:01 +00:00
Yohei Yukawa
a6e08639cc Merge "Clean-up a workaround that is no longer necessary." into nyc-dev am: 207d325
am: 34b4ff2

* commit '34b4ff24a052c92cb8425d5a251874c9b285e99e':
  Clean-up a workaround that is no longer necessary.
2016-03-28 21:12:32 +00:00
Eino-Ville Talvala
2c72580d2c Merge "Camera: Add bandaid for preview orientation on reverse-landscape cameras" into nyc-dev am: 8c349f5
am: 6da63cf

* commit '6da63cfb19be997671419fe8773d1f8f0ddd67d5':
  Camera: Add bandaid for preview orientation on reverse-landscape cameras
2016-03-28 21:10:15 +00:00
Yohei Yukawa
ab0dbb1d53 Merge "Dump more info for View when IMM#DEBUG is true." into nyc-dev
am: feade80

* commit 'feade806098a0fe6bc53e1a531dedb6af13fac57':
  Dump more info for View when IMM#DEBUG is true.
2016-03-28 21:03:43 +00:00
Yohei Yukawa
34b4ff24a0 Merge "Clean-up a workaround that is no longer necessary." into nyc-dev
am: 207d325

* commit '207d325c52b94f61a4ad645597fe88ef7374708d':
  Clean-up a workaround that is no longer necessary.
2016-03-28 21:03:11 +00:00
Eino-Ville Talvala
6da63cfb19 Merge "Camera: Add bandaid for preview orientation on reverse-landscape cameras" into nyc-dev
am: 8c349f5

* commit '8c349f5d3b764d4ab726070dba397a2a292a6858':
  Camera: Add bandaid for preview orientation on reverse-landscape cameras
2016-03-28 21:02:27 +00:00
Yohei Yukawa
feade80609 Merge "Dump more info for View when IMM#DEBUG is true." into nyc-dev 2016-03-28 18:20:56 +00:00
Yohei Yukawa
207d325c52 Merge "Clean-up a workaround that is no longer necessary." into nyc-dev 2016-03-28 17:55:26 +00:00
Eino-Ville Talvala
8c349f5d3b Merge "Camera: Add bandaid for preview orientation on reverse-landscape cameras" into nyc-dev 2016-03-28 17:47:20 +00:00
George Mount
d1fe045611 Merge "If resume occurs, force finish of exiting activity." into nyc-dev am: fe77fdf
am: e4f870a

* commit 'e4f870a14eae83095e7ab170e9770a76b3de5475':
  If resume occurs, force finish of exiting activity.
2016-03-28 17:29:23 +00:00
George Mount
5cf657ce0b Merge "Disable suppressLayout in Visibility Activity Transitoins." into nyc-dev am: 20d51f5
am: b031fef

* commit 'b031fef2ecf947b1f2dcbf01cc4926a0db24014f':
  Disable suppressLayout in Visibility Activity Transitoins.
2016-03-28 17:29:21 +00:00
George Mount
e4f870a14e Merge "If resume occurs, force finish of exiting activity." into nyc-dev
am: fe77fdf

* commit 'fe77fdf8b35d6893e7d96c9b8eeb77c4eb16980a':
  If resume occurs, force finish of exiting activity.
2016-03-28 17:25:35 +00:00
George Mount
b031fef2ec Merge "Disable suppressLayout in Visibility Activity Transitoins." into nyc-dev
am: 20d51f5

* commit '20d51f550f1e134feb74dc7c23aa5f29f7062685':
  Disable suppressLayout in Visibility Activity Transitoins.
2016-03-28 17:25:33 +00:00
George Mount
fe77fdf8b3 Merge "If resume occurs, force finish of exiting activity." into nyc-dev 2016-03-28 17:21:11 +00:00
George Mount
20d51f550f Merge "Disable suppressLayout in Visibility Activity Transitoins." into nyc-dev 2016-03-28 17:20:53 +00:00
Shuo Gao
0d7b69ca01 Merge "Enable shader cache for applications that shared UID with multiple packages too" into nyc-dev-plus-aosp
am: 8de1bcd

* commit '8de1bcd896c1fab36290edb4c4eba49485d3ab7e':
  Enable shader cache for applications that shared UID with multiple packages too
2016-03-28 16:22:42 +00:00
John Reck
8de1bcd896 Merge "Enable shader cache for applications that shared UID with multiple packages too" into nyc-dev-plus-aosp 2016-03-28 16:17:10 +00:00
Yohei Yukawa
5c1e6751a5 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
2016-03-28 01:52:47 -07:00
Yohei Yukawa
241eac21a0 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
       aaa38c9f1a
  [2]: I66f51da1299532793ef8fa700f35b0811670f235
       4e5184f929

Bug: 27868748
Change-Id: Ic59af43343eb44d1d2c23a3f4018565e7a75b143
2016-03-28 00:28:50 -07:00
Yohei Yukawa
3f838f79df Merge "Ensure IC#finishComposingText() is called on the correct Handler." into nyc-dev am: 9194f34
am: f53bbbc

* commit 'f53bbbc73049ab948649a420ee73ddc2659d8dc5':
  Ensure IC#finishComposingText() is called on the correct Handler.
2016-03-28 06:58:47 +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
cabc670d2c Merge "Improve selection handle behavior for bidi text." into nyc-dev am: 1e632ba
am: 7c90769

* commit '7c90769e94bca613488fae23623bb3ec1a8e92a1':
  Improve selection handle behavior for bidi text.
2016-03-28 06:17:24 +00: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
Keisuke Kuroyanagi
1e632ba426 Merge "Improve selection handle behavior for bidi text." into nyc-dev 2016-03-28 06:06:02 +00:00
Jeff Sharkey
9bd527d0f6 Merge "Include "invisible" volumes in new storage API." into nyc-dev am: 4d9b6e4
am: 0f6805e

* commit '0f6805ee0566d170c520610a9b2c0802ae930b62':
  Include "invisible" volumes in new storage API.
2016-03-28 05:49:05 +00: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
Jeff Sharkey
4d9b6e4f57 Merge "Include "invisible" volumes in new storage API." into nyc-dev 2016-03-28 05:18:40 +00:00
Andrii Kulian
11073cda39 Merge "Update ActivityInfo#WindowLayout apis (1/3)" into nyc-dev am: 47869bd
am: d5afdc7

* commit 'd5afdc71c96960ec9acf405a8ae1222aba48ebf2':
  Update ActivityInfo#WindowLayout apis (1/3)
2016-03-28 00:34:11 +00: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
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
bdd6417989 Add methods to probe current storage state. am: c9a40cd
am: cd3af14

* commit 'cd3af14d2eea6d54c3227fa92fa17e57a6ed4e0b':
  Add methods to probe current storage state.
2016-03-27 19:27:04 +00: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
3c664a9b39 Update PRE_BOOT_COMPLETED for FBE. am: bd91e2f
am: bef5aad

* commit 'bef5aad065fd2f5f222ac14a8d063d12348c7c34':
  Update PRE_BOOT_COMPLETED for FBE.
2016-03-27 17:50:04 +00: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
Chad Brubaker
ba3624ecef Merge "Add handleTrustStorageUpdate" into nyc-dev am: e4c5c16
am: c24d142

* commit 'c24d142092da7407baedfb966d56bcefec4c0bf9':
  Add handleTrustStorageUpdate
2016-03-26 16:44:12 +00:00
Chad Brubaker
c24d142092 Merge "Add handleTrustStorageUpdate" into nyc-dev
am: e4c5c16

* commit 'e4c5c161dd366dae36cc3c8728168533ea5351ef':
  Add handleTrustStorageUpdate
2016-03-26 16:41:28 +00:00
Chad Brubaker
e4c5c161dd Merge "Add handleTrustStorageUpdate" into nyc-dev 2016-03-26 16:36:31 +00:00
Jorim Jaggi
c2e27322df Merge changes from topic \'recents_transition\' into nyc-dev am: a04c532
am: ea42b59

* commit 'ea42b59a06f27b9ba282b448aec1d93436221711':
  Implement transition for docking task in recents #6
  Implement transition for docking task in recents #5
  Implement transition for docking task in recents #4
  Implement transition for docking task in recents #3
  Implement transition for docking task in recents #2
  Implement transition for docking task in recents #1
  Show a scrim activity if task is not resizable
2016-03-25 22:35:08 +00:00
Jorim Jaggi
ea42b59a06 Merge changes from topic \'recents_transition\' into nyc-dev
am: a04c532

* commit 'a04c532a09b8d946ebc9a086f673220059218869':
  Implement transition for docking task in recents #6
  Implement transition for docking task in recents #5
  Implement transition for docking task in recents #4
  Implement transition for docking task in recents #3
  Implement transition for docking task in recents #2
  Implement transition for docking task in recents #1
  Show a scrim activity if task is not resizable
2016-03-25 22:32:27 +00:00
Edward Cunningham
0ac521ed8c Merge "DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""" into nyc-dev
am: d0ee17d

* commit 'd0ee17d926cce445bcd22b15e80e725aa4639895':
  DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""
2016-03-25 22:32:25 +00:00
Jorim Jaggi
a04c532a09 Merge changes from topic 'recents_transition' into nyc-dev
* changes:
  Implement transition for docking task in recents #6
  Implement transition for docking task in recents #5
  Implement transition for docking task in recents #4
  Implement transition for docking task in recents #3
  Implement transition for docking task in recents #2
  Implement transition for docking task in recents #1
  Show a scrim activity if task is not resizable
2016-03-25 22:22:05 +00:00
Jorim Jaggi
c69bd2246f Implement transition for docking task in recents #6
- Use a future to provide the app thumbnail so the app can restart
in parallel when recents draws the bitmap (extremely expensive).
- Don't call startRecents from AM when recents is already running - this
messes up the transition information.
- Make sure to put the task into resizing mode if it needs to be restored
from the disk.
- Some minor fixes for the transition animation spec.
- Add NO_MOVE_ANIMATION to recents flags to prevent wallpaper
flickering.

Bug: 27607141
Change-Id: I7d0c75b88775ab467927b8cf94303ddb60222e7f
2016-03-25 15:13:36 -07:00
Edward Cunningham
d0ee17d926 Merge "DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""" into nyc-dev 2016-03-25 22:01:07 +00:00
Jorim Jaggi
787e9dd6c8 Implement transition for docking task in recents #5
- Move task along a curved path.

Bug: 27607141
Change-Id: I945071de55efed0d327b68045e48fea6989adf63
2016-03-25 14:53:19 -07:00