31868 Commits

Author SHA1 Message Date
Vladislav Kaznacheev
f91e74d9a9 Merge "Implement View.cancelDrag" 2015-11-18 19:13:13 +00:00
Dianne Hackborn
32bb7bc314 Merge "Fix issue #25673462: Shamu update from MMB29J -> 29K does not complete" 2015-11-18 19:07:43 +00:00
Yohei Yukawa
33e81798fa Tell the reason why IMMS unbinds IME client.
As a preparation to fix Bug 25373872, this introduce an additional
parameter to IInputMethodClient.unbind() so that the IME client
that is running in the application side can know why IMMS needs
to unbind the connection.

In future the "unbindReason" parameter is supposed to be used to
optimize the behavior of IMM runtime running in the application process,
but for now it is not used unless we build the sytem with debug message
enabled.  Hence there should be no user-visible change with this CL.

Bug: 25373872
Change-Id: I74e83c8ca9d1d53e31e9c7b5bda1dec6274e59c8
2015-11-17 21:14:42 -08:00
Yohei Yukawa
85d9fed140 Merge "Factor out IMMS#resetCurrentMethodAndClient()." 2015-11-18 03:56:45 +00:00
Dianne Hackborn
c83189b5d6 Fix issue #25673462: Shamu update from MMB29J -> 29K does not complete
The direct path to the package manager returns null on failure, oops!

Change-Id: Id33ea299b605a59b0703dab200bafb754dd66e78
2015-11-17 18:17:57 -08:00
Chong Zhang
0ba005fcc6 Merge "Fix crash with animation specs" 2015-11-18 02:16:33 +00:00
Dianne Hackborn
cc2925c45b Merge "Fix issue #25727069: Top sleeping activity overrides foreground service" 2015-11-18 02:05:30 +00:00
Dianne Hackborn
3ea71cf263 Fix issue #25727069: Top sleeping activity overrides foreground service
Change-Id: I9a085cd650604f9d6277ad343bf3c3852324cafc
2015-11-17 18:03:20 -08:00
Chong Zhang
be2ca45c62 Fix crash with animation specs
Change-Id: I72ed5b19aaede0c58ea0b8665409721824ec6480
2015-11-17 17:55:43 -08:00
Jun Mukai
28d5615147 Merge "Introduce animated pointer icon for STYLE_WAIT." 2015-11-18 01:46:58 +00:00
Yohei Yukawa
bc7b526043 Factor out IMMS#resetCurrentMethodAndClient().
As a preparation to fix Bug 25373872, this CL does a mechanical
code clean-ups in InputMethodManagerService.

As a follow up of I6c3186050592526fc95c5b27f18e2155acff5ebc, this CL
introduces IMMS#resetCurrentMethodAndClient() to make it clear when we
are resetting both IMMS->IME and IMMS->Apps connections.

This is literally mechanical.  No behavior change is intended.

Bug: 25373872
Change-Id: Ia4161854d9da71783fd028fcb79407e4b9463aee
2015-11-17 17:38:41 -08:00
Jun Mukai
808196f139 Introduce animated pointer icon for STYLE_WAIT.
Change-Id: I893f8276e09351db6187c553f349008794b95690
2015-11-17 17:36:08 -08:00
Svetoslav Ganov
488b4b5872 Merge "Handle renamed packages during default grants" am: 140b101fcd am: 60cb22008c
am: 9bf367030c

* commit '9bf367030c24e93c711d2ba9ca5594e70a652596':
  Handle renamed packages during default grants
2015-11-17 23:31:42 +00:00
Colin Cross
b2b5c89d8c Merge "Vibra: Add loading of the vibrator hardware module." am: 5603eca33c am: 358ad4980f
am: 68cea4e7d1

* commit '68cea4e7d17cf00ce3001cf23fe36a7f1e77fe86':
  Vibra: Add loading of the vibrator hardware module.
2015-11-17 23:30:18 +00:00
Vladislav Kaznacheev
93cf731b26 Implement View.cancelDrag
View.cancelDrag cancels a drag operation initiated by
View.startDrag.

It has to be called on a View in the same window (under the
same ViewRootImpl) that the view which started the drag.

Bug: 24415683
Change-Id: Iae5ff3534b6c747ae174f170fdd01ff4d3b1c312
2015-11-17 14:39:21 -08:00
Makoto Onuki
a87401054f Merge "Allow PO to clear password even if the same apk has DA" 2015-11-17 22:11:20 +00:00
Makoto Onuki
c2f521a7d8 Allow PO to clear password even if the same apk has DA
Bug 25645900

Change-Id: I7d2d9fbf6a4dc65ac63fb14e6ee6b9abc1f1c0e7
2015-11-17 14:10:12 -08:00
Julia Reynolds
e122d30557 Merge "Allow DND mode to suppress visual interruptions." 2015-11-17 21:16:05 +00:00
Julia Reynolds
f612869ae1 Allow DND mode to suppress visual interruptions.
Bug: 25423508
Change-Id: Idd8242e4bc00a749dbe0b5503c458375fc017072
2015-11-17 21:10:36 +00:00
Svetoslav Ganov
9bf367030c Merge "Handle renamed packages during default grants" am: 140b101fcd
am: 60cb22008c

* commit '60cb22008c602c5345504eacb4eb68ea0ac69cf0':
  Handle renamed packages during default grants
2015-11-17 20:24:06 +00:00
Colin Cross
68cea4e7d1 Merge "Vibra: Add loading of the vibrator hardware module." am: 5603eca33c
am: 358ad4980f

* commit '358ad4980fd6ea0ed22e81b3816572ec9ba39f53':
  Vibra: Add loading of the vibrator hardware module.
2015-11-17 20:06:25 +00:00
Svetoslav Ganov
60cb22008c Merge "Handle renamed packages during default grants"
am: 140b101fcd

* commit '140b101fcdbdf413b914b5625b19577784ad9d88':
  Handle renamed packages during default grants
2015-11-17 20:06:21 +00:00
Svet Ganov
f443384d9e Handle renamed packages during default grants
If an L device has a privileged app on the system image which was
updated and an M OTA renames the app package (supported only for
privileged apps) we end up with a disabled system package setting
with no package information. Since we are not doing a null check
of the package we get from the disabled package settings during
default grants we crash leaving the system in a bad state.

bug:25687380

Change-Id: I4f2ebcaf471e4bd1696298eab4716b50c52ca5c4
2015-11-17 11:53:31 -08:00
Colin Cross
358ad4980f Merge "Vibra: Add loading of the vibrator hardware module."
am: 5603eca33c

* commit '5603eca33c8e322997029d3101fd2442df3c274e':
  Vibra: Add loading of the vibrator hardware module.
2015-11-17 19:51:57 +00:00
Colin Cross
5603eca33c Merge "Vibra: Add loading of the vibrator hardware module." 2015-11-17 19:31:19 +00:00
Dianne Hackborn
8958c1effb Merge "Initial stab at background check." 2015-11-17 19:13:32 +00:00
Svetoslav Ganov
fc1a1bad33 Merge "Don't grant runtime permissions on install to legacy apps" 2015-11-17 19:08:34 +00:00
Alan Treadway
0e563f00b5 Merge "Fix edge-cases for split-user provisioning cases." 2015-11-17 18:32:42 +00:00
Svet Ganov
505184bf45 Don't grant runtime permissions on install to legacy apps
bug:25329324

Change-Id: Ia020b96eaef8895f0c2a13bddacfa7a053c56d32
2015-11-17 18:17:14 +00:00
Filip Gruszczynski
1a4dfe593a Synchronize recents to freeform transition.
Recents to freeform animation must hang on the first frame and inform
Recents to hide its views. This mirrors the transition from freeform
to Recents, where the animation needs to hang on the last frame.

We need a special window flag for recents to force a redraw after the
animation launches. At this point Recents will become not visible
from the perspective of the activity manager, which would prevent
further drawing. We make recents ignore that and instead depend on
window visibility which will change after recents exit animation
finishes.

Bug: 24913782
Change-Id: Ief743b7e6fcebb3d8789d4745fb122ac607c1cf0
2015-11-17 10:03:19 -08:00
Alan Treadway
0c9ce28c12 Fix edge-cases for split-user provisioning cases.
Split-user systems will allow for combinations of management modes,
specifically managed-{user,profile} on systems with a device-owner.

Bug: 25671630
Bug: 25680065
Change-Id: I5716f55eb6c8318129b4614adc22897d53901bee
2015-11-17 17:41:41 +00:00
Alan Viverette
214fb68767 APIs for querying and controlling display magnification
Also separates magnification state and touch event handling. Moves
callbacks for window manager changes and display state changes into
the magnification controller.

Bug: 22718911
Change-Id: I3a8ba060a07d8f1f51856855a5f85601766fd45d
2015-11-17 09:48:25 -05:00
Nicolas Geoffray
0283d44c08 Merge "Remove DEBUG_JIT from Zygote flags." 2015-11-17 12:26:01 +00:00
Filip Gruszczynski
1d21988fe1 Merge "Don't animate move triggered by resizing using dock divider." 2015-11-17 05:07:56 +00:00
Filip Gruszczynski
f52dd205b9 Don't animate move triggered by resizing using dock divider.
Also includes some small, nice refactoring:
* move code that sets the move animation into WindowStateAnimator;
* a few fields can be made private in WindowStateAnimator this way;
* one boolean flag in WindowStateAnimator popped out as unused after
being privatized, so could be deleted.

Bug: 25690109
Change-Id: I8144114244892c4f27aff21455e8e76eddbd039f
2015-11-16 21:05:37 -08:00
Rom Lemarchand
9c5ac7bf5b resolve merge conflicts of 152d353e87 to master.
Change-Id: Ida54b932d0a077d6eaeb2418a6cbf58f96035fff
2015-11-16 19:48:50 -08:00
Dianne Hackborn
bef28feba5 Initial stab at background check.
Actually, this implementation is more what we want for ephemeral
apps.  I am realizing the two are not really the same thing. :(

For this implementation, we now keep track of how long a uid has
been in the background, and after a certain amount of time
(currently 1 minute) we mark it as "idle".  Any packages associated
with that uid are then no longer allowed to run in the background.
This means, until the app next goes in the foreground:

- No manifest broadcast receivers in the app will execute.
- No services can be started (binding services is still okay,
  as this is outside dependencies on the app that should still
  be represented).
- All alarms for the app are cancelled and no more can be set.
- All jobs for the app are cancelled and no more can be scheduled.
- All syncs for the app are cancelled and no more can be requested.

Change-Id: If53714ca4beed35faf2e89f916ce9eaaabd9290d
2015-11-16 17:58:32 -08:00
Daichi Hirono
0fe13b1f70 Merge "Add a mehtod definition to StorageManager for appfuse." 2015-11-17 01:05:20 +00:00
Dianne Hackborn
1653ac4395 Merge "Don't send PACKAGE_CHANGED of components to manifest receivers." 2015-11-17 00:41:35 +00:00
Dianne Hackborn
354c3bc394 Merge "Some debugging improvements." 2015-11-17 00:41:07 +00:00
Dianne Hackborn
627dfa1dda Be smarter about determining when we can stop idle maintenance.
The device idle service now knows when the system is actively
doing significant things (syncs, jobs, alarms, downloads).  It
uses this, when in an idle maintenance window, to determine when
it can end that window early -- when such work is no longer
happening.

For now this just allows us to shorten the windows.  In the future
we should use this to allow us to expand the windows to a longer
potential time, adjusting future windows to shorter durations if
earlier ones use more time.  This will allow us to batch occasional
long operations (such as downloads) into one window, making up
for that with much shorter later windows.

Change-Id: Ie482abd50bc43be9a8917a769a5175851eee4ec4
2015-11-16 16:38:29 -08:00
Wale Ogunwale
5e7fda2ea1 Merge "Crop window input region to stack bounds." 2015-11-16 23:45:13 +00:00
Daichi Hirono
9e8d9e250b Add a mehtod definition to StorageManager for appfuse.
BUG=25091416

Change-Id: Id4d4a000daf89fab4917528fcd0d1270547fbfa4
2015-11-17 08:44:06 +09:00
Wale Ogunwale
484d009cf6 Merge "Set-up dummy animation when setting a replacing window token" 2015-11-16 23:16:07 +00:00
Wale Ogunwale
053c8e4ef4 Crop window input region to stack bounds.
Prevents the input region of a window from extending outside
the stack bounds. For example, if you have a non-sizeable
activity in docked mode you don't want the app getting touchs
when you tap on the side occupied by the other app.

Bug: 25710884
Change-Id: I044b4e87448fbd3eb51822e6d71e8ed8d06f55ec
2015-11-16 14:27:21 -08:00
Wale Ogunwale
3cd48043a3 Set-up dummy animation when setting a replacing window token
Set-up dummy animation so we can start treating windows associated
with the replacing app token like they are in transition before the
new app window is ready for us to run the real transition animation.
This allows us to make the right decisions at various call points
where an animation is expected to be running for a replacing window
but the real animation isn't set yet.

Also, removed unused field indicating if an app token is animating
a replacement window since it was always set to true and checked/set
to the same value as AppWindowToken.mWillReplaceWindow.

Bug: 25645069
Change-Id: Ie216ed5bd60fb2a15da61c7050c9344c48b1c5fb
2015-11-16 13:09:29 -08:00
Fyodor Kupolov
11c5b0aff7 Merge "Reduce excessive locking in UserManager" 2015-11-16 20:52:05 +00:00
Filip Gruszczynski
608797e210 Remove unnecessary DisplayContent.mDisplaySizeLock synchronization.
All operations are performed with WindowManagerService.mWindowMap lock
held, therefore the second lock is not necessary.

Change-Id: I762fb322ddeb8b45191a3d297de0d33a10674f8a
2015-11-16 12:12:15 -08:00
Jeffrey Vander Stoep
25bfb2b3d8 Merge "pm: selinux support for AutoPlay apps" 2015-11-16 19:38:33 +00:00
Todd Kennedy
3b91bd2173 resolved conflicts for 7de7e0b0 to stage-aosp-master
(cherry picked from commit 9f8602644418ecfb1a5c9555792ceed285fa72bd)

Change-Id: I4e45e5bbaebb98b0e740167eaf7517f99d917f30
2015-11-16 10:43:53 -08:00