15786 Commits

Author SHA1 Message Date
Selim Cinek
0f9dd1e2f5 Deprecated the contentinfo and the number
It was mainly adding noise to the notification
rather than useful information.

Bug: 27431551
Change-Id: Ie22c9935d60eeac1cca5d9ce97239aadfac9b3cf
2016-04-06 12:18:31 -07:00
Makoto Onuki
eae454b4fd Merge "Do not enable binder exception logging." into nyc-dev 2016-04-05 00:09:47 +00:00
Rob Carr
df9b907814 Merge "Correct screenshot bounds calculation." into nyc-dev 2016-04-05 00:01:00 +00:00
Jorim Jaggi
fe3442d366 Merge "Fix minimized dock" into nyc-dev 2016-04-04 23:05:38 +00:00
Makoto Onuki
e23283a6fa Do not enable binder exception logging.
Bug 28005618

Change-Id: Ie13fd5b6d1fcbf27ad480501e30b5cb1774e8b48
2016-04-04 15:58:39 -07:00
Rob Carr
e15fb0172c Merge "Do not constrain width/height of child windows at layout." into nyc-dev 2016-04-04 22:33:45 +00:00
Robert Carr
bd9993662d Correct screenshot bounds calculation.
If we intersect each window in the application with
our screenshot bounds we will end up reduced to the bounds
of the smallest window. Modify logic to just check for
intersection without modifying the bounds.

Bug: 27996291
Change-Id: Ib0ebb6bd02a313f67f1562dabcfb394efa8f16cf
2016-04-04 15:30:31 -07:00
Gustav Sennton
3d48074ed9 Merge "Provide command to change WebView implementation." into nyc-dev 2016-04-04 22:09:36 +00:00
Jorim Jaggi
ef92d6fd24 Fix minimized dock
- When SysUI crashed, make sure state is up-to-date
- When divider gets invisible, update state because animations
won't finish
- Make sure to keep mMinimizedDock up-to-date in all cases, even
if docked stack is already gone.
- If docked stack is going away, reset minimized state
- Disallow undocking when minimized.

Bug: 27588187
Bug: 27486464
Change-Id: I6ea48562fae3a8df038a690a488580d758681370
2016-04-04 15:00:29 -07:00
Andrii Kulian
1e9c685d45 Merge "Set correct bounds when docked stack is removed" into nyc-dev 2016-04-04 21:13:49 +00:00
Gustav Sennton
ab3b6b1258 Provide command to change WebView implementation.
Add a shell command for switching webview implementation so that this
can be done automatically - without interacting with a Dev Setting.

Bug: 27540566
Change-Id: I3c4acaa1b8f4ba24c637ef8a1d48cc7b2616bd91
2016-04-04 20:46:50 +00:00
Jorim Jaggi
bcff1431dd Move docked stack to the side in landscape instead of clip
Bug: 27154882
Bug: 27972642
Change-Id: Ie170571e356199bfbde014c80d670fd238825828
2016-04-04 20:31:04 +00:00
Jorim Jaggi
e1d4361497 Fix screen rotation animation
Bug: 25019187
Change-Id: I65b5a76147b93e081466035bfc3cce0c9473610e
2016-04-04 20:30:26 +00:00
Rob Carr
817ef323c7 Merge "Ensure we leave space between layers in docked stack." into nyc-dev 2016-04-04 20:24:29 +00:00
Gustav Sennton
7182d98777 Merge "Move more code from WebViewUpdateService to separate overridable class" into nyc-dev 2016-04-04 20:19:56 +00:00
Makoto Onuki
24b74150fb Merge "ShortcutManager: More command for CTS, more tests.." into nyc-dev 2016-04-04 20:03:22 +00:00
Robert Carr
063988c40c Properly handle DimLayers which become fullscreen.
If a DimLayer becomes fullscreen while it is animating out,
then it will not be the shared fullscreen dim layer. However,
state.continueDimming will be false (as we are ending the Dim),
so around DimLayerController.cpp L191 we will identify it as
fullscreen, skip animating it for now, and not set fullScreenAndDimming
to the index (because continueDimming is false). fullScreenAndDimming
will be -1 so we will now animate the dimmer at index "fullscreen"
this will simply be the last fullscreen state we found, which would be
fine if the state we had skipped was the shared fullscreen dim layer,
but it wasn't. Ensure that we identify the layer as fullscreen and the
shared fullscreen dim layer.

Bug: 27775427
Change-Id: I49d4f59bb09af6a7e5bd666e499be1c7e11ee766
2016-04-04 18:36:19 +00:00
Rob Carr
84e69c3bbb Merge changes I7d406cc8,Id6cf70ea into nyc-dev
* changes:
  Do not set docked divider as IME target.
  Fix IME adjustment for docked.
2016-04-04 18:34:39 +00:00
Robert Carr
6412d755f4 Ensure we leave space between layers in docked stack.
We need to leave space WINDOW_LAYER_MULTIPLIER between Z-order
adjacent normal windows, for things such as Dim Layers, etc. The
existing logic was breaking DIM_UNDER DimLayers in DockedStack. Consider
two normal windows, the second on top and with a DIM_UNDER. If we are
docked we will have restacked all the docked windows at HighestLayer+1
HighestLayer+2, etc...and so our second normal window is only one higher
than our first one. So when we put a dim under the second window
we end up with the same layer and the output is undefined.

Bug: 27721903
Change-Id: Ic27e0a10da2d1ab4a6058e0755ad4409b29527eb
2016-04-04 11:26:22 -07:00
Makoto Onuki
ac21497f17 ShortcutManager: More command for CTS, more tests..
and fix flakey tests.

Bug 27548047

Change-Id: Ia5f189278f6111850277ca16aa747469f48c5f14
2016-04-04 11:02:06 -07:00
Yohei Yukawa
3942978af2 Merge "Show toast when subtype is rotated by Meta-Space." into nyc-dev 2016-04-04 17:56:36 +00:00
Chong Zhang
ebdb34d67a Merge "Never "save" if the surface control is null." into nyc-dev 2016-04-04 17:31:06 +00:00
Chong Zhang
133b07a0a7 Merge "Fix missing exit animation when app is closed during starting window" into nyc-dev 2016-04-04 17:30:52 +00:00
Yohei Yukawa
ebda7d7ae1 Show toast when subtype is rotated by Meta-Space.
This follows up to my previous CL [1], with which we changed global
hardware key combinations regarding how multilingual user can manage
multiple keyboard layouts / input methods.  Now we offer Meta-Space to
rotate input method (subtype), while we offered Shift-Space to rotate
hardware keyboard layouts previously.

One thing that is lost during above transition is an indication when the
such a key combination takes effect.  Actually there was a toast that
shows new keyboard layout name, which is now lost.

With this CL, we bring back a toast so that we can show the new input
method (subtype) name. Note that the toast will be shown if all of the
following conditions are met.
 - The input method (subtype) is rotated by a hardware key combination.
 - IME window does not have IME_VISIBLE bit.  Otherwise, showing a toast
   is likely to cause UI overlap with the current IME's window.

  [1]: I4005692215edfcf8bed3e86b1e07000148f986f5
       ae61f7118a92e097e854c840d5726c0920f5db0e

Bug: 27547054
Change-Id: If3fe17adbffe4c1125783fc77fed3cfe78fc7933
2016-04-04 17:30:12 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00
Todd Kennedy
6dffdf8285 Merge "Fix intent filter priorities" into nyc-dev 2016-04-04 14:20:17 +00:00
Gustav Sennton
065b7e6ef5 Move more code from WebViewUpdateService to separate overridable class
Move more code from WebViewUpdateService to utility classes (methods
handling settings and uninstalling/enabling/disabling packages) to be
overridden during tests.

Also rename system utility class.

Bug: 27635535

Change-Id: If49999fba4fd0962f103f389898fa5ddf19365bd
2016-04-04 14:47:46 +01:00
Martijn Coenen
23c8292acc Merge "Grant NFC tag app default permissions." into nyc-dev 2016-04-04 08:05:16 +00:00
Donghyun Cho
9ccff51b54 Don't broadcast <Standby> message during shutdown when setting is disabled
When the system is shutting down or the screen is going to be off, <Standby>
message will be broadcasted if and only if the setting variable,
Settings.Global#HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, is enabled. This change
will make the shutdown case to be checked with the setting properly, too.

Bug: 27781559
Change-Id: Ia6605d6b5627ab1ff67285d72846b618a09548bc
2016-04-04 05:17:03 +00:00
Donghyun Cho
5ee693f460 Merge "Turn on HDMI-related logs conditionally for better debugging" into nyc-dev 2016-04-04 05:04:05 +00:00
Svetoslav Ganov
699632c6fc Merge "Kill app if revoking a permission while resetting app prefs" into nyc-dev 2016-04-04 04:18:52 +00:00
Svet Ganov
893e097157 Kill app if revoking a permission while resetting app prefs
bug:25895994

Change-Id: I78616ab5f9addbd91d2f4d12a8161544f482ec43
2016-04-03 21:16:19 -07:00
Jeff Sharkey
7d718bb252 Merge "Support direct-boot tests." into nyc-dev 2016-04-03 03:59:23 +00:00
Jeff Sharkey
b5e89c6deb Support direct-boot tests.
Add shell commands to check on current FBE status and system ready
status.  Mark variables without first-class locking as volatile.

Fix bug where UI automation would crash while device was locked by
marking it as forced direct-boot aware.

Bug: 26498834
Change-Id: Ib4dfb9350925e5413f93a09baacf84c62f2ba0ea
2016-04-02 19:31:19 -06:00
Simranjit Kohli
1bb269d8fe Merge "Fix extra data in cache" into nyc-dev 2016-04-02 06:09:27 +00:00
Simranjit Kohli
858511cd2d Fix extra data in cache
Reverting the revert.
The original CL(commit a666d74d4bc7e1298314c516d1309571fb87c212) had a 
bug in it. It was calling accountExistsCacheLocked(), while holding 
accounts.cacheLock. The function accountExistsCacheLocked, was in turn
calling into getUserAccounts, which acquires mUsers. And this causes
trouble. mUsers is a a lock on all accounts, and hence calling it after
holding accounts.cachelock is calling for trouble. Since the locks are 
acquired in other order, it causes a potential deadlock issue, which we 
discovered later on.

That bug was fixed by commit 0e592733ecbde2b7e7f2aa92001656dfbcae9641.
We already have useraccount object and should reuse it.

This reverts commit 27d0e1fd660a7e92644ab6a2893ac1149f0c0488. This 
commit was unneeded as the bug had been fixed by that time.

Change-Id: I5328c31fd485fd2c1c652cd0e7c2c4bded38a5fd
2016-04-02 05:10:47 +00:00
Chong Zhang
57f3d4632b Fix missing exit animation when app is closed during starting window
When the transistion starts and we setTokenVisibilityLocked, mark all
relevant window flags on a starting window that's running exit animation.
This makes sure the starting window is removed when animation finishes.

bug: 27747191
Change-Id: I917ca18583e31db9a3e49ea70aae932c242877b8
2016-04-01 19:11:43 -07:00
Andrii Kulian
41da89cddf Set correct bounds when docked stack is removed
Set bounds to null when docked stack is removed and other stacks are
resized to occupy whole display area. It ensures that stacks will have
correct fullscreen status.

Bug: 27857485
Change-Id: Ifbb8de54e6e5af3da1266b60d53656e4278fb75d
2016-04-01 17:44:59 -07:00
Jorim Jaggi
f4fa8cb79b Fix flicker when unlocking
When the device was locked the fullscreen stack was laid out
fulllscreen, even though the configuration was half-screen, which
lead to a race between the app drawing and the unlock animation
so sometimes you could see the fullscreen frame when the unlock
animation started.

Instead, only layout in fullscreen if the docked stack is fully
"hidden".

Bug: 27154882
Change-Id: I4ba0c396eb0312c2bf2d911903b68c88d28aae8c
2016-04-02 00:14:56 +00:00
Felipe Leme
c83ce39a8e Merge "Removed get-metered-network command." into nyc-dev 2016-04-01 23:43:39 +00:00
Makoto Onuki
b1a684c646 Merge "ShortcutManager: implement backup & restore" into nyc-dev 2016-04-01 23:18:43 +00:00
Ajay Panicker
4bb4830b75 Get name and address without enabling Bluetooth
Bug: 27665077
Change-Id: I2a06c1a65f22b2f9095a859f5bdd39d4626da165
2016-04-01 22:53:52 +00:00
Jorim Jaggi
409635b20b Allow app to force orientation if dock minimized
Change-Id: I4bf1346de83922f866095465470e1a1c305b71a1
Fixes: 27437129
2016-04-01 22:40:03 +00:00
Felipe Leme
b9aee90ab5 Removed get-metered-network command.
The behavior of this command was not well specified in case of errors,
so it's better to remove it and let clients use 'list wifi-networks'
instead, checking for the value of the 'metered' column.

BUG: 27808364

Change-Id: I3f4216c143b4b2a803b99002585fafe0e3885665
2016-04-01 15:38:05 -07:00
Chong Zhang
6c71c0b86b Never "save" if the surface control is null.
This may or may not happen, but putting in some preventative measure and
extra logging to help debug crashes related to null mSurfaceController.

bug: 27533667
Change-Id: I010147da819402c48efd26a7cc631776052a702d
2016-04-01 15:23:10 -07:00
Chong Zhang
fbe10f175f Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev 2016-04-01 21:56:45 +00:00
Makoto Onuki
2e210c4d0f ShortcutManager: implement backup & restore
Also:
- Fix cross profile pinning.  Now ShortcutLauncher correctly keeps
track of target package user IDs.

- Add performance stats for package manager calls and show them on
dumpsys.

Bug 27548047

Change-Id: I2472980b2955b6c70947aaaa9b76f75d0616db6e
2016-04-01 14:06:56 -07:00
Chong Zhang
167bbfac24 Avoid extra relaunch when rotating side-by-side apps
Update configuration with WM first and check if the stacks need to be
resized due to the update. If so, let activity manager resize the stacks
inline, instead of letting WM schedule another pass of resizeStack. This
way the configuration will be updated to the latest before ensureActivity-
ConfigurationLocked, and we don't need another relaunch there.

bug: 27834014

Change-Id: Ib761a96cada0c3247b0480f18370670c593159da
2016-04-01 13:58:41 -07:00
Carlos Valdivia
bb5e52f928 Merge "introduce GET_PASSWORD_PRIVILEDGED permission." into nyc-dev 2016-04-01 20:02:00 +00:00
Chris Wren
b38fa4e724 Merge "actually cancel sounds when we get a quiet update" into nyc-dev 2016-04-01 19:58:46 +00:00