Commit Graph

35289 Commits

Author SHA1 Message Date
Victor Chang
dc068eba6f Deleting lock screen clears all CA approvals
When both screenlocks for profile user and parent user has been removed (both set to none),
remove CA approvls on that user, and show the "Certificate authority installed" notification.

Bug: 28161447
Change-Id: I3c78dc5cfcdf7c02c91b64abe44984ee790d8f3e
2016-04-21 16:55:34 +01:00
Jeff Sharkey
89fa73fd7a Merge "Unlock should always wait for pending PRE_BOOT." into nyc-dev 2016-04-19 17:11:20 +00:00
Julia Reynolds
3da3d7f455 Merge changes I01afb5e9,I90d1adaf into nyc-dev
* changes:
  Add content intent to autogroup summary.
  Logging for ranker bundling.
2016-04-19 12:50:34 +00:00
Tony Mak
882a0802a7 Merge "User action should only stop lock task mode if it is in pinned mode" into nyc-dev 2016-04-19 10:32:33 +00:00
TreeHugger Robot
7d5c695520 Merge "Use .equals() to compare two UUIDs in SoundTriggerHelper, rather than ==" into nyc-dev 2016-04-19 02:29:06 +00:00
Chris Thornton
41e04a4525 Use .equals() to compare two UUIDs in SoundTriggerHelper, rather than ==
Also refactors ModelData::clearState to clear a bit more of the state.

Bug:28251543
Change-Id: I18d7ccd90a6a9ee8bc8743d9a92c48f17d87c842
2016-04-18 17:58:37 -07:00
TreeHugger Robot
84f0b791e2 Merge "Properly resume paused activity when docked stack in maximized" into nyc-dev 2016-04-19 00:47:29 +00:00
Craig Donner
3e38e6accf Merge "Checks for existence of vr components before trying to disable them." into nyc-dev 2016-04-19 00:10:54 +00:00
TreeHugger Robot
3eefb4c313 Merge "Use right starting window resource in multi-window mode." into nyc-dev 2016-04-19 00:04:00 +00:00
Craig Donner
672afaa43b Checks for existence of vr components before trying to disable them.
Fixes: 28249296
Change-Id: I98506c263387c9deb05ae6bc997e92e0000b71ad
2016-04-18 16:31:52 -07:00
Adam Lesinski
0d47f4b646 Merge "BatteryStats: Introduce Async external stats requests" into nyc-dev 2016-04-18 23:27:10 +00:00
Wale Ogunwale
3ad75d608d Properly resume paused activity when docked stack in maximized
Force focus to the fullscreen stack so that its activity is resumed
regardless of it current state when moving all tasks from the docked
stack to the fullscreen stack and the fullscreen stack should be on
top.

Bug: 28247643
Bug: 28196862
Change-Id: Ic60c3794db765e9ee31b0facbbc4f461d65f30c2
2016-04-18 16:18:42 -07:00
Wale Ogunwale
dfc18623ed Use right starting window resource in multi-window mode.
Use the override configuration for the task the app is contained
in to generate resources for the starting window.

Bug: 28220001
Change-Id: I6fdf39a6d6de41287b44b25861a76f58fe58dd53
2016-04-18 15:09:34 -07:00
Chong Zhang
b1dea03f0a Merge "Misc fixes for IME adjust" into nyc-dev 2016-04-18 22:01:10 +00:00
Chong Zhang
198afac5ce Misc fixes for IME adjust
- Use thinner divider when IME adjusted

- Dim non-focused stack

- Restrict IME adjustment so that top pane is shrunk to 30% at most

- Move top stack up together with IME adjust

- Move bottom stack up even when not focused for thinner divider

bug: 28175599

Change-Id: I83556535e5a171f0ec28d88429186fa1315b910c
2016-04-18 14:52:34 -07:00
Jeff Sharkey
84a4c971c4 Unlock should always wait for pending PRE_BOOT.
While processing an unlock request, we might go async to handle
long-running operations like dispatching PRE_BOOT_COMPLETED.  This
change ensures that all unlock requests for a particular user wait
in line behind any pending async operations.

Without this CL, any subsequent unlock requests would immediately
return successful, even though PRE_BOOT_COMPLETED events were still
being processed.

Bug: 28240584
Change-Id: I307d6aaebfb8f38028f3666a2e19e4399b7cf3a7
2016-04-18 15:38:35 -06:00
Jim Miller
8df940000d Merge "Fix operator precedence bug causing a crash." into nyc-dev 2016-04-18 21:09:52 +00:00
Jim Miller
c1e61b83c2 Fix operator precedence bug causing a crash.
This fixes a bug where string expression was being evaluated
and then compared to null.  The result is a constant expression
which always passes, resulting in inadvertently accessing the
null variable.

Fixes bug 28237450

Change-Id: I755b4466fd1985bd7f8984c17e06839ac4a30642
2016-04-18 14:08:37 -07:00
Craig Donner
de5dbec3ab Merge "Disables VR components by default, but enables them if a VR app is installed." into nyc-dev 2016-04-18 21:01:33 +00:00
Jorim Jaggi
3c800a4917 Set correct stack before restoring tasks
When restoring a task when starting it from recents, we need to set
all the relevant state for the transition before we actually restore
the task and attach the docked stack, as all kinds of weird things
might go wrong otherwise.

Bug: 28194162
Bug: 27607141
Change-Id: I21d173a43c62d425e507e8cc3a1a576f95cfe048
2016-04-18 20:16:15 +00:00
Jorim Jaggi
d450aa9ac5 Fix IME layout
When introducing the fitToDisplay variable, it should have been

fitToDisplay = task != null -> (implies) !task.isFloating();

but was written as task != null && !task.isFloating.

Bug: 28182018
Change-Id: If0be86f1ed8bb88914ce167e9f5273b6b3dc2571
2016-04-18 20:15:49 +00:00
Jeff Sharkey
fed6c65f2a Merge "Iterate through all known users after moving." into nyc-dev 2016-04-18 19:43:50 +00:00
Jeff Sharkey
ad14b884f4 Merge "Consistent creation/destruction of user data." into nyc-dev 2016-04-18 19:43:18 +00:00
TreeHugger Robot
77ca3629f6 Merge "Reduce activity lifecycle churn when exiting split-screen mode." into nyc-dev 2016-04-18 19:22:39 +00:00
Ruben Brunk
9d1d006cb3 Merge "Fix VR->VR Activity transitions." into nyc-dev 2016-04-18 19:04:30 +00:00
Craig Donner
9906259202 Disables VR components by default, but enables them if a VR app is installed.
If an existing app or newly installed app is installed, then enable them,
otherwise, they stay disabled.

Fixes: 26568985
Change-Id: I8274b061220f41b9462d83b8aff501905d84a508
2016-04-18 11:59:29 -07:00
Rob Carr
8dd32a56f7 Merge "Always update DimLayer bounds when starting dim." into nyc-dev 2016-04-18 18:10:58 +00:00
Rob Carr
36ac7e9f88 Merge "Promote input method dialogs layers with input method." into nyc-dev 2016-04-18 18:10:20 +00:00
Shishir Agrawal
3f6e211d73 Merge "Adding slotId to certain Telephony broadcasts." into nyc-dev 2016-04-18 16:28:16 +00:00
Tony Mak
853304c0b1 Show work challenge in if user in docked stack is locked
Register docked stack listener in ActivityManagerService.
If the docked stack is leaving minimized state, check whether the user
of the docked stack is locked. If yes, show credential confirmation.
Also, we now show work challenge in home task.

And we now scan the entire top task to handle the case the work app is
somewhere in the middle of the task. (eg: open personal camera in work app)

Bug: 27565539
Bug: 28094505

Change-Id: Iaf0738f43ae916a535b17949ec0f322bbfb194dc
2016-04-18 15:35:36 +00:00
Paul Jensen
520ae86666 Merge "Avoid APF JNEBS instruction with R1 as it doesn't work" into nyc-dev 2016-04-18 10:56:14 +00:00
Tony Mak
2c11dc9963 User action should only stop lock task mode if it is in pinned mode
There are two lock task modes: pinned and locked.
Pinned mode is the one that one that need users action to accept the pinned
request. For locked mode, it is triggered by DPM.
We should not allow user to stop locked mode by user action.
Please notice that it does not happen before because the action to dismiss
lock task mode is pressing both back and recents button and recents button
is hidden in locked mode. But it becomes a problem after the user action
is changed to long pressing back button.

So changes are as follows:
1. Only stop lock task mode if it is pinned mode in
   stopLockTaskModeOnCurrent
2. Remove the permission checking in stopLockTaskModeOnCurrent. I can't
   see the reason we are having this because there is no permission
   checking to in stopLockTaskMode when it is in pinned mode. So you
   can always stop pinned lock task mode anyway by calling
   stopLockTaskMode directly.

Bug: 28184751
Change-Id: I610cc1dfade7737e0b08fc9a13dad29e62e09a32
2016-04-18 11:43:28 +01:00
Narayan Kamath
a09b4d2a61 Remove unnecessary allocation+unboxing of objects.
Transforming String->int can be done with 0 allocations
using Integer.parseInt.

bug: 28078871
Change-Id: I8d9f322d7154728849dde61ef282046032858d60
2016-04-18 09:55:59 +01:00
TreeHugger Robot
988a20a94b Merge "Always send configuration changes to activity." into nyc-dev 2016-04-18 05:43:16 +00:00
TreeHugger Robot
02ebaa02c4 Merge "Don't allow pinned activities to request visible behind" into nyc-dev 2016-04-18 04:19:36 +00:00
Robert Carr
d82b748b26 Promote input method dialogs layers with input method.
When raising the layer of the input method window we also
have to raise the layer of its assosciated dialogs which
thankfully are already collected for us.

Bug: 28138068
Bug: 28186814
Change-Id: I4e63a642199c5aad3b3322e773df287ced80d641
2016-04-17 19:47:10 -07:00
Hugo Benichi
2677b1957b Fix spurious DHCP parse error logging.
This patch moves the event logging of DHCP response packet parse errors
to DHCPClient in a single place. It also logs receive IO errors as
DHCPErrors instead of DHCPClientEvents.

BUG=28197345

Change-Id: I7ad666cff4d8b97915880477347fbb3f588fdb2a
2016-04-18 11:27:35 +09:00
Robert Carr
7393c7b3ec Always update DimLayer bounds when starting dim.
Otherwise animateDimLayers can occur before
updateDimLayers and we can show the dim at the
wrong size.

Bug: 26908486
Change-Id: Ifd664e48f3daa77900a7f0bffa58a379efa6b53c
2016-04-17 19:26:36 -07:00
Wale Ogunwale
c8da41e2f4 Reduce activity lifecycle churn when exiting split-screen mode.
- Ignore calls to resize the docked stack due to it detaching while we are
already resizing stacks due to the docked stack switching to fullscreen mode.
- Defer resuming activities in a stack we are resizing to fullscreen when the
docked stack is going away. The activities may not be the top most activity
anymore since the activity in the docked stack might be moved on top of it.
- Removed call to ensure configuration in ASS.positionTaskInStackLocked.
This isn't needed as the ensure activities visible call will make sure
the activity is in the right configuration if it is going to be visible and
we don't want to be relaunching it if it isn't going to be visible.

Bug: 28196862
Change-Id: I26460dd9c649b8ec1bf296d5182e9ff6cafe6df0
2016-04-16 13:34:52 -07:00
Wale Ogunwale
f7dab1e53f Always send configuration changes to activity.
We are not sending override configuration changes to activities if the change in
configuration is not significant enough (i.e did resources will not be reloaded
due to the change). This breaks apps that rely on getting onConfigurationChanged()
call whenever the config changes regardless of if resources will be reloaded.
We no deliver all configuration changes to the activity.

Bug: 28177873
Bug: 23904868
Change-Id: Icc979dabb8bc93ae8a976ef6074cd2559aedca67
2016-04-16 11:38:50 -07:00
Wale Ogunwale
43896cffe6 Don't allow pinned activities to request visible behind
Also, release visible behind when pinning a visible behind activity.

Bug: 28042883
Change-Id: I1162d7639626f669f648ff82f5c367cb7b3fe6e6
2016-04-16 10:54:30 -07:00
Makoto Onuki
e2be9f4a67 Merge "ShortcutManager: Categories should be Set, not List." into nyc-dev 2016-04-16 15:18:39 +00:00
TreeHugger Robot
c99f05e1b0 Merge "Fix broken statusbar disable flags" into nyc-dev 2016-04-16 00:53:22 +00:00
Makoto Onuki
be73a8068f ShortcutManager: Categories should be Set, not List.
Bug 27923857

Change-Id: Ife859da8e66478174f6c4463316886a23e5aa4e0
2016-04-15 17:15:29 -07:00
Ruben Brunk
b56b72a846 Fix VR->VR Activity transitions.
- Briefly delay unBinding VrListenerService and making HAL calls
  when leaving VR mode Activity in case subsequent activity will
  be immediately re-entering VR mode.

Bug: 28115931
Change-Id: I3f362131ed2beb6a29ce78fe01e9301d8b396520
2016-04-15 16:42:49 -07:00
Adrian Roos
2a62910691 Fix broken statusbar disable flags
Fixes a bug where the disable flags were
always applied to user 0 instead of the current
user because the user switch dispatch from
WindowManager was broken.

Change-Id: Ib2faf0777c5367af5bf07cb2d11c51ed0222d65c
Fixes: 28062568
2016-04-15 16:28:41 -07:00
Adam Lesinski
010bf374d8 BatteryStats: Introduce Async external stats requests
Instead of calling out to external processes with a blocking IPC,
pass along a Binder on which the external process can pass back
the response. The calling process can then wait for the reply with
a timeout.

This eliminates watchdog restarts of the system_server when an external
process like telephony or bluetooth hangs.

Bug:26842468
Change-Id: I1b242e4ed22a63f1a4a0be8c78de8ac4d7bf56c5
2016-04-15 15:27:52 -07:00
Svetoslav Ganov
286c5b7741 Merge "Properly notify magnification listener" into nyc-dev 2016-04-15 21:32:05 +00:00
Svetoslav Ganov
7d477d4845 Properly notify magnification listener
bug:28088856

Change-Id: Iffd848082f035319aab3af177921bb3085844ab0
2016-04-15 14:30:47 -07:00
Jim Miller
275c94aea3 Merge "Fix missing permission check when saving pattern/password" into nyc-dev 2016-04-15 21:03:16 +00:00