15808 Commits

Author SHA1 Message Date
Jeff Sharkey
e1412415d1 Merge "Invalidate caches when locale changes." into nyc-dev 2016-04-05 21:21:19 +00:00
Chong Zhang
505a8d9ddf Merge "Fix meminfo accounting for visible apps" into nyc-dev 2016-04-05 20:42:14 +00:00
Chong Zhang
854dcfd192 Fix meminfo accounting for visible apps
Visible apps could have sub levels within the visible category.
Scores between 101 and 199 should be attributed to visible
category instead of perceptible.

bug: 27987575
Change-Id: I2dbe8af65e6829bafc86ffb5222a5f1aeac2d8b4
2016-04-05 13:27:44 -07:00
Chong Zhang
c0b8c119d3 Merge "Add the app back to mOpeningApps if transition is unset but ready." into nyc-dev 2016-04-05 19:40:37 +00:00
Chong Zhang
81a1c176ba Add the app back to mOpeningApps if transition is unset but ready.
This means a rotation is started while we have a transition pending,
and startFreezingDisplayLocked() called mAppTransition.freeze() to
cancel the transition by setting it to TRANSIT_UNSET but ready
immediately. Screen unfreeze will wait for mOpeningApps to empty.
handleAppTransitionReadyLocked() will remove the app from
mOpeningApps once it's drawn, and allow screen to unfreeze.

We don't add the app to mOpeningApps if the transition is neither
set nor ready. We don't have any transtition and the app won't be
removed from mOpeningApps.

bug: 27784481
bug: 27391256
Change-Id: Id2c0759732593121769c402ae0c6edde3ebc7dc6
2016-04-05 19:36:04 +00:00
Yohei Yukawa
0c9d1b06c3 Merge "Revert "Do not set docked divider as IME target."" into nyc-dev 2016-04-05 18:53:03 +00:00
Yohei Yukawa
f98b1d4dba Revert "Do not set docked divider as IME target."
This reverts commit ebe9c0dbebbd8c2a23a76ff827b90e66ce3813bf [1],
because it caused a regression that IME window becomes transparent on
the lock screen (Bug 28013209).

 [1]: I7d406cc88aae40a8b22c1fc1d856ccb7b6bb4558

Bug: 26387930
Bug: 28013209
Change-Id: I11243703030e34b917136b69a35245e9ef73c87c
2016-04-05 11:35:35 -07:00
Andrii Kulian
5cec2d8aa9 Merge "Fix override insets when dragging divider in split-screen" into nyc-dev 2016-04-05 18:19:18 +00:00
Jorim Jaggi
18e89da19b Merge "Fix wrong inset bounds" into nyc-dev 2016-04-05 18:07:52 +00:00
Tony Mak
80189cdece getProfiles should only returns non-partial user info
Bug: 26928524
Change-Id: I537bb0a9632cad603717a367b81d5e072452a6d7
2016-04-05 16:59:39 +00:00
Dianne Hackborn
a7d301c5d4 Merge "Fix issue #28001806: Background check is incorrectly restricting binding of services" into nyc-dev 2016-04-05 16:54:36 +00:00
Dianne Hackborn
4fb9c4af59 Fix issue #28001806: Background check is incorrectly restricting binding of services
Change-Id: Ie79937d2696e28651c8ef2bdcc5c9c84f9f801c6
2016-04-05 09:53:09 -07:00
Rubin Xu
63d1ee45ee Merge "Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two." into nyc-dev 2016-04-05 14:52:02 +00:00
Lorenzo Colitti
19e84f7b75 Merge changes Ibb63f6b4,Ib64559a5 into nyc-dev
* changes:
  Clean up netd state when tethering fails.
  Clear LinkProperties on interface removed.
2016-04-05 13:35:09 +00:00
Lorenzo Colitti
c42c97540f Clean up netd state when tethering fails.
If we do not call untether, NetworkController will still think
that wlan0 is part of the LOCAL network, and thus any attempt to
use wlan0 for anything else is doomed to fail.

Bug: 27917299
Change-Id: Ibb63f6b477b85b92281d9667adf8af148deb266c
2016-04-05 20:28:57 +09:00
Andrii Kulian
d900337da8 Fix override insets when dragging divider in split-screen
Previously, if frame extended beyond screen, override inset was set
to zero for corresponding dimension. This caused issues while dragging
down in vertical split-screen because navigation bar inset was not
included.
This CL sets override inset value as a difference between corresponding
content area dimension and screen dimension.

Bug: 27970692
Change-Id: I5bd16077a7deb039516bc9e11aa58315f809455a
2016-04-05 00:02:26 -07:00
Jorim Jaggi
f15a7351a0 Fix wrong inset bounds
When passing tempTaskBounds != null but tempInsetBounds == null,
we ended up using the stack bounds to calculate the insets, which
is really wrong. First fallback onto tempTaskBounds, and then the
stack bounds.

Bug: 27887505
Change-Id: I66ee0da1415a67af824f4c63b56644d590728813
2016-04-04 23:54:30 -07:00
Pavel Zhamaitsiak
f8565cd3f3 Merge "resolve merge conflicts of 20ebbb3 to nyc-dev" into nyc-dev 2016-04-05 04:29:12 +00:00
Erik Kline
3609013c86 Delete unused default DNS setting code
Change-Id: I601a647714171f205d179d6fef6c112949fc5a94
2016-04-05 11:48:01 +09:00
Pavel Zhamaitsiak
ce13079ab3 resolve merge conflicts of 20ebbb3 to nyc-dev
Change-Id: I31d76a02456b3f09a6bdac11c6dbc5e913f5f7df
2016-04-04 17:42:05 -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
Jeff Sharkey
a3ebfec731 Invalidate caches when locale changes.
When loading roots for the first time, we're okay using any cached
data from the system, but if the locale changes we need to
force-refresh everything.

Now that we're always using the system cache, we have a nice strong
signal for "empty" versus "not cached" results, so we don't need to
wait around for the first loading pass to finish.

Add logic to invalidate system cache when locale changes, and fix
locking bug.

Bug: 27977906
Change-Id: Ic50083eff360bea887799583f6c9f02c129eec91
2016-04-04 16:46:01 -06: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
Rubin Xu
e95057ade1 Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two.
Add more comment to EXTRA_QUIET_MODE

Bug: 27532254
Change-Id: I68a217561afca8b87f523c62393cdad097d5b75d
2016-04-04 16:08:47 +01: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