15841 Commits

Author SHA1 Message Date
Robin Lee
a0576c61d8 Merge "Disallow prepare()-ing over an always on VPN app" into nyc-dev 2016-04-06 19:12:43 +00:00
Jorim Jaggi
f583427b0d Fix dialog placement
When calculating the frame for non-fullscreen windows, we incorrectly
used the wrong bounds to calculate the frame, which lead to wrong
positioning.

To fix this, we use the inset bounds, which we consider the source
of truth for all layout related aspects, to calculate the frame,
and then offset everything by the difference between the inset bounds
and the task bounds to position them correctly.

Bug: 28012565
Bug: 27860956
Bug: 27441808
Change-Id: I90d45054e0bcce78d021ad2cd20e5ef7f79ded3d
2016-04-06 19:08:51 +00:00
Phil Weaver
847afadd7a Merge "Eliminate deadlock in magnification." into nyc-dev 2016-04-06 17:49:48 +00:00
Lenka Trochtova
9745ea3536 Merge "Put disallow-safe-boot restriction to system settings to make it accessible during boot." into nyc-dev 2016-04-06 17:37:23 +00:00
Jeff Sharkey
ee2c7c7d63 Merge "Wrap logcat invocations with timeout." into nyc-dev 2016-04-06 17:33:45 +00:00
Russell Brenner
e11eb10e8d Merge "Match SUW package after FBE reboot" into nyc-dev 2016-04-06 17:32:56 +00:00
Todd Kennedy
4bb80305fb Merge "Move cert tracing to PackageParser" into nyc-dev 2016-04-06 17:27:58 +00:00
Todd Kennedy
0f4bc2b800 Move cert tracing to PackageParser
Tracing for cert collection in PackageManagerService was only
catching one of a couple usages. Move tracing lower in the
call stack to ensure tracing exists for all calls.

Also added a new tag to differentiate between verifying v1 & v2
signatures.

Bug: 27502465
Change-Id: Ie29f326e44f32cdbea1572714689c82f07ca12ba
2016-04-06 10:25:24 -07:00
Chong Zhang
52c30b0cf8 Merge "Set up none transition for relaunching apps during screen freeze" into nyc-dev 2016-04-06 17:18:53 +00:00
Yohei Yukawa
d4c676131f Merge "Add an overlayable config for IME switcher visibility." into nyc-dev 2016-04-06 17:15:48 +00:00
Lenka Trochtova
6474f0e02b Put disallow-safe-boot restriction to system settings
to make it accessible during boot.

BUG: 26251884

Change-Id: I1dee58dfc2aa746e0e97a6675c611c6e313ec91c
2016-04-06 19:11:23 +02:00
Phil Weaver
445fd2afe9 Eliminate deadlock in magnification.
Use the lock from AccessibilityManagerService in
MagnificationController, since the two services call each other with
locks held.

Bug: 27725795
Change-Id: Iaed6749bf217210457325c3912da0f7aa0f6319a
2016-04-06 16:43:44 +00:00
Chris Wren
ac17049fbd Merge "don't pin ranking updates at the end of the queue." into nyc-dev 2016-04-06 16:36:54 +00:00
Jeff Sharkey
fe523c67bc Wrap logcat invocations with timeout.
We've seen evidence that the logcat binary can end up wedged, which
means we can eventually starve system_server for FDs.  To mitigate
this, wrap logcat using the timeout utility to kill and clean up if
it takes too long to exit.

Bug: 27994717, 28021719, 28009200
Change-Id: Ieed1460d89598628a5db868645fd305d0e9054ed
2016-04-06 10:22:44 -06:00
Russell Brenner
d69c9e7efb Match SUW package after FBE reboot
Add MATCH_DIRECT_BOOT_* flags when querying for SUW package.

Bug: 28027590
Change-Id: Ibd454340053ce24299f316e92cd6ec6b350d695e
2016-04-06 09:18:59 -07:00
David Brazdil
4ac550f681 Merge "Re-enable Optimizing apps dialog" into nyc-dev 2016-04-06 15:21:23 +00:00
Chris Wren
52020492f2 don't pin ranking updates at the end of the queue.
Apparently we schedule ranking updates all the time, so the job gets pulled
to the end of the queue, and can get starved. This change makes sure we
don't schedule multiple updates by leaving it in the queue. If a job in the
queue behind hte update request needs to send an update it will jsut
request one anyway, so we shouldn't miss updates.

Bug: 28015158
Change-Id: Id5b9d05ea6eb35e610ee34651e4cde8cddd4ae66
2016-04-06 11:12:02 -04:00
Julia Reynolds
3397c88f79 Merge "Notify app op watchers when audio restrictions change." into nyc-dev 2016-04-06 14:27:35 +00:00
David Brazdil
0fd0f893dd Re-enable Optimizing apps dialog
Bug: 27350503
Change-Id: I98ae03571817792265780c9283b395c323638e14
2016-04-06 15:11:02 +01:00
Andrei Stingaceanu
f671147434 Keyboard Shortcuts: protect against NPE in WindowManagerService
Using an unresponsive app [while (true) { Thread.sleep(1000) }]
produces NPE:

WindowManager: Window Manager Crash
WindowManager: java.lang.NullPointerException: Attempt to read
               from field 'android.view.IWindow
               com.android.server.wm.WindowState.mClient' on a
               null object reference
WindowManager: at com.android.server.wm.WindowManagerService
               .requestAppKeyboardShortcuts
               (WindowManagerService.java:10628)

Which puts down SysUI (and requires restarting SysUI).

Protect against this by checking for nulls. The end result
is that the dialog is no longer shown for unresponsive apps
and SysUI does not break.

Bug: 27914463
Change-Id: I37f0b0d5980f6ddc50f3bb778582d23ee1c7e9c3
2016-04-06 14:55:07 +01:00
Erik Kline
94887874e3 Don't flush DNS cache on route changes.
Since Lollipop, routes are isolated within Networks.  Flushing a
Network's DNS cache whenever that same Network's routes are updated
doesn't provide any benefit.  Any system components depending on this
behaviour need to uncovered and fixed.

Additionally, clean up no-longer-used flushNetworkDnsCache().  This
should be replaced, when needed, by a proper binder interface to netd.

Change-Id: I34bf79e4839da014d466058a876d754209d0c007
2016-04-06 11:30:51 +09:00
Chong Zhang
4f408eee9a Set up none transition for relaunching apps during screen freeze
Set up a none transition for the relaunching apps, and add them
to mOpeningApps so that display unfreeze wait for these apps to draw.

bug: 27834014
Change-Id: Id8f98c8160bdb92e93fbf948fde1d3bfece4eaa9
2016-04-05 17:54:36 -07:00
Rob Carr
5323c58fc0 Merge "Do not set docked divider as IME target." into nyc-dev 2016-04-05 22:44:58 +00:00
Jeremy Joslin
b770ed1328 Merge "Have the NetworkScoreService bind to the scorer." into nyc-dev 2016-04-05 22:27:11 +00:00
Svetoslav Ganov
6c773c5daa Merge "UID appop state should always override package appop" into nyc-dev 2016-04-05 22:15:45 +00:00
Alex Klyubin
f2cf5987a6 Merge "Permit package downgrades on debuggable platforms." into nyc-dev 2016-04-05 21:57:12 +00:00
Robert Carr
9da141fe5c Do not set docked divider as IME target.
If we do this, we will fail to adjust the proper IME target
to make it visible. Accomplish relative ordering of IME and
Docked Divider in WindowLayersController instead.

We need to take care that adjustSpecialWindows won't push windows
down if they are already positioned above the highest application
layer. We also take care to not adjust the IME if the docked divider
isn't really visible.

Bug: 26387930
Change-Id: I26ca36c4f7ecf9d97f44e15c67df82b8154a169c
2016-04-05 14:24:22 -07:00
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
Svetoslav Ganov
1984bba8c8 UID appop state should always override package appop
bug:27831867

Change-Id: I32829137f84a2f1d70363b6d1481ccbb87c15d1c
2016-04-05 13:40:02 -07: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
Julia Reynolds
bb21c25b3f Notify app op watchers when audio restrictions change.
Bug: 27702159
Change-Id: I09c70708b8a32c0bf9a21a3c256100796167780e
2016-04-05 16:01:49 -04: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
Yohei Yukawa
fa0e47e0d4 Add an overlayable config for IME switcher visibility.
Seems that there are two mutually exclusive requests about how IME
switcher visibility should be controlled.
  A. Requests like Bug 19496012.  We should show the IME switcher
     as a quick access to "Show input method" setting when a physical
     keyboard is attached via wireless connections that do not have
     clear connection/disconnection affordance (e.g. Bluetooth
     keyboards).
  B. Requests like Bug 25432652.  We should not have a rule like A
     when a physical keyboard is attached with clear
     connection/disconnection affordance (e.g. USB wired keyboards,
     2-in-1 convertible tables w/ magnetic contacts).

Currently satisfying both requests at the same time is really difficult
because InputDevice does not have such an attribute.  Even with such an
attribute, it's still an open question about how to deal with two or
more keyboards.  As a short term solution, this CL add an overlayable
config so that each device can configure which strategy to apply as the
default behavior.

Bug: 26245853
Change-Id: Id2aef6597916422ea63435ae9c31a9a9b5ddf5b8
2016-04-05 09:55:56 -07: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
Alex Klyubin
40ccfdd831 Permit package downgrades on debuggable platforms.
This is to make it easier to test on debuggable builds. Debuggable
platform builds trade off being as close as possible in behavior to
non-debuggable builds and being more testable/debuggable. Thus,
debuggable platform builds make no security guarantees and it is thus
acceptable to disable this security mechanism on debuggable platform
builds to help with development/testing/QA.

Bug: 27327503
Change-Id: I19340b95f08c57ff2aba59a08babb6a941c93c3a
2016-04-04 19:46:47 -07:00