Commit Graph

32611 Commits

Author SHA1 Message Date
Jaewan Kim
a1dcb87565 Merge "Revive volume up/down long press in TV" 2016-01-13 04:58:46 +00:00
Jaewan Kim
765487f929 Revive volume up/down long press in TV
PhoneWindowManager.interceptKeyBeforeQueuing isn't good place
to handle long press because rejecting a down event will not
synthesize further key repeat.

Move the logic to PhoneWindowManager.interceptKeyBeforeDispatching
instead.

This is the regression caused by following CL
001c59c Route volume keys directly to the audio system on TVs

Bug: 26268032
Change-Id: Ic8f6dfaec473c0d45ffa42475763622dc700e635
2016-01-13 13:55:46 +09:00
Wale Ogunwale
96eb366db9 Merge "Fixed some activity visiblility issues in picture-in-picutre mode" 2016-01-13 00:59:34 +00:00
Jim Miller
1fcd0c2e65 Merge "Fix problem where keyguard shows spontaneously" 2016-01-13 00:49:46 +00:00
Adam Lesinski
84c5c08e3b Merge "resolve merge conflicts of 551fc6823a to master." 2016-01-13 00:43:39 +00:00
Adam Lesinski
881f6f9266 resolve merge conflicts of 551fc6823a to master.
Change-Id: I2778bf2a364c103fc0d351f2afc4fc73bede2f19
2016-01-12 16:41:48 -08:00
Thierry Strudel
c1a1823cb8 Merge changes I96415ec6,I5d3aa7f9,I6294915e,I361928c0
* changes:
  Report SwapPss in dumpsys meminfo when requested and available
  Report SwapPss in am_pss reports
  Add Swap and SwapPss to meminfo checkin dump.
  Report SwapPss usage if available as part of Pss
2016-01-13 00:33:13 +00:00
Jean-Michel Trivi
de41d3cd5a Merge changes from topic 'recordingcallback'
* changes:
  Audio recording notification API
  AudioManager event dispatcher: make more generic
2016-01-13 00:20:56 +00:00
Jean-Michel Trivi
d3c71f075b Audio recording notification API
AudioService can register a recording callback with AudioSystem.
Callbacks are handled in a new class, RecordingActivityMonitor.
This class notifies registered AudioManager instances
  of updates, only if this AudioManager has client callbacks.
Each AudioManager dispatches updates to its registered
  callbacks.

Bug 22876530

Change-Id: I95c6e5ec0631e53af53a490bcecca96089490089
2016-01-12 16:10:42 -08:00
Wale Ogunwale
f81c1d164a Fixed some activity visiblility issues in picture-in-picutre mode
- Previously when don't re-launch an activity due to configuration
change if the activity is currently pausing. And, once the pause is
complete we destroy the activity. This logic is based on the assumption
that all activities are fullscreen and pausing is the same as stopping
which means the activity is no longer visible and can be destoried.
This assumption is not true in multi-window mode where you can have
visible activities in the paused state.
We now relaunch the activity once it is done pausing.

- Previously we set the return type of the top task in a stack to home
if the previously focused stack is home while add the task to the stack.
This logic is based on the assumption that the focus stack is the front
stack which isn't true for pinned stack. This causes an activity behind
the top translucent activity in the pinned stack to be marked as invisible
and stopped since the top task is over the home task so we should be
showing the home task behind it and not other tasks in the stack.
We now set the return to task type to application type for task added to
the pinned stack.

Bug: 26273032
Change-Id: I0ffac81f46c57e2d0d900db3417381f059aee7ea
2016-01-12 13:41:22 -08:00
Jeff Sharkey
fdeeeea6cf Follow installd changes, throw exceptions.
Start by passing down flags to work on both CE and DE storage areas;
a future change will refine this further.

Force consistent argument checking and null handling for all
installd callers.  Throw explicit exceptions instead of returning int
values that can accidentally be ignored.

Bug: 26466827
Change-Id: Iddb591f6b3c7786d210d3f132ff7f9886a97b749
2016-01-12 14:21:24 -07:00
Jeff Sharkey
b5f07f868b Don't spin up encryption unaware providers twice.
Bug: 26503591
Change-Id: I31b92f3a31103dffb17de8ac8d887d864cb0de28
2016-01-12 13:44:36 -07:00
Zach Kuznia
7ef1e7ffbc Merge "Renable split tapping while in Touch Explore mode." 2016-01-12 19:34:48 +00:00
Thierry Strudel
5aa3c441cf Report SwapPss in dumpsys meminfo when requested and available
When requested (-a or -S options), add to the meminfo dump the
proportional swap when available to the system. The reported amount is
the PSS memory not having being accessed recently and being swapped out
of memory.

Total PSS by process:
     76,265K: system (pid 912)                                             (      290K in swap)
     67,080K: com.android.systemui (pid 3133)                              (      270K in swap)
...
Total PSS by category:
    287,803K: .dex mmap                                                    (        0K in swap)
    264,575K: Native                                                       (   25,184K in swap)
    241,077K: Dalvik                                                       (    9,391K in swap)

Bug: 26190445
Change-Id: I96415ec65b60c9f60e397d2b3acca9a6e1399aba
2016-01-12 10:42:40 -08:00
Udam Saini
b6bb986889 Merge "Makes captive portal server calculation in one place." 2016-01-12 18:40:45 +00:00
Thierry Strudel
f0a44183cd Report SwapPss in am_pss reports
Change-Id: I5d3aa7f9d4b7b0b167ec214fa50fdf665cdc328f
2016-01-12 10:16:16 -08:00
Martijn Coenen
41f94edd5a Add Swap and SwapPss to meminfo checkin dump.
And make --checkin an accepted argument.

Change-Id: I6294915ec02c49415c7071f54ad995aa76b67e6c
2016-01-12 10:16:15 -08:00
Joseph Pirozzo
951bc3b514 Merge "Update Activity Manager to prevent popups while driving." 2016-01-12 18:01:25 +00:00
Philip P. Moltmann
05e3423070 Deal with UserState#getEnabledPrintServices returning null.
Bug: 26492364
Change-Id: I234b1632168c88d32bdd134630442756701118b6
2016-01-12 09:13:21 -08:00
Victor Chang
c754dffe19 Merge "Create a new device policy for controlling work contacts search" 2016-01-12 11:51:01 +00:00
Victor Chang
1060c61866 Create a new device policy for controlling work contacts search
BUG=25981902

Change-Id: I5cea59d7d09bf54051ae0e56e824e4d3a08a49e7
2016-01-12 11:31:16 +00:00
Jeff Sharkey
9229ee5959 Merge "Install non-EA providers once user is unlocked." 2016-01-12 03:16:22 +00:00
Filip Gruszczynski
2e263c4a12 Merge "Deliver onNewIntent before onResume when launching recents." 2016-01-12 01:49:12 +00:00
Filip Gruszczynski
e826f327cf Deliver onNewIntent before onResume when launching recents.
Bug: 25837292
Change-Id: I9da5d2a87c0e33006ef1488dfab5389911955922
2016-01-11 17:47:58 -08:00
Chong Zhang
f2c9628cac Merge "Apply scroll to windows added to a non-resizeble task that's docked" 2016-01-12 01:39:26 +00:00
Chong Zhang
2a88fc31cf Apply scroll to windows added to a non-resizeble task that's docked
bug: 26447921
Change-Id: I933e277137fb127a9e961035cf48cba2bef52042
2016-01-11 17:15:40 -08:00
Adam Lesinski
551fc6823a Merge "UsageStatsService: Fix app idle issue at rollover time" into mnc-dr1.5-dev am: 15df80f069
am: 1f1cbc01c1

* commit '1f1cbc01c1c137892da86b969dd54d7bc0809280':
  UsageStatsService: Fix app idle issue at rollover time
2016-01-12 00:56:22 +00:00
Zachary Kuznia
a70778f1c9 Renable split tapping while in Touch Explore mode.
b/26496116

Change-Id: I9c819e8d3fb2332120b143cf074c0d7cc3921eae
2016-01-11 16:50:30 -08:00
Adam Lesinski
1f1cbc01c1 Merge "UsageStatsService: Fix app idle issue at rollover time" into mnc-dr1.5-dev
am: 15df80f069

* commit '15df80f069c72989539df560c02f377ae9214ae2':
  UsageStatsService: Fix app idle issue at rollover time
2016-01-12 00:38:09 +00:00
Todd Kennedy
12705131b9 Hide ephemerality
Change-Id: Ibf60366b3f00b1920e330cd804bcc1c550f8882a

Bug: 26404647
2016-01-11 16:21:03 -08:00
Filip Gruszczynski
7c132d82c5 Merge "Start recents when bringing docked task to the front." 2016-01-11 23:54:00 +00:00
Filip Gruszczynski
303210bbdd Start recents when bringing docked task to the front.
We don't want the docked activity to be on top by itself, so we need to
force the recents to come up to.

Bug: 25838525
Change-Id: Icb8184db5cc67e536561674b887bf481595257cc
2016-01-11 15:41:07 -08:00
Jorim Jaggi
737af724eb Snap docked stack after screen rotation
- Move DividerSnapAlgorithm to com.android.internal, also move
some utility stuff into DividerUtils which is used from both
SystemUI and window manager
- When the screen rotation changes, rotate the stacks like before
but then also snap the docked stack to a valid snap position.

Change-Id: I9e1aa13f42f398a25c9016e6f20395ee212e405b
2016-01-11 23:05:56 +00:00
Julia Reynolds
04fc35428f Merge "Notification banning updates." 2016-01-11 21:32:37 +00:00
Wale Ogunwale
29765d04d8 Merge "Fixed NPE in Task#isResizeableByDockedStack" 2016-01-11 21:08:54 +00:00
Wale Ogunwale
5e7409cf6a Fixed NPE in Task#isResizeableByDockedStack
It is possible for the DisplayContent to be null.

Change-Id: I0a85038ae71a24fb5613237d771bc9222dd61cde
2016-01-11 13:07:45 -08:00
Shreyas Basarge
89ee618280 Flex time for periodic jobs in JobScheduler
A periodic job will start only within time
satisfying period - flex < time % period < period.

Bug: 26254850
Change-Id: I97a840446e5592e5151d784800855d909f1790b8
2016-01-11 20:58:29 +00:00
Chong Zhang
db02dc190f Merge "Fix black screen when launching app from Recents into non-docked area" 2016-01-11 20:42:34 +00:00
Chong Zhang
573e8e1706 Fix black screen when launching app from Recents into non-docked area
In this case, we're putting the app into a fullscreen stack that is
resized due to docked stack. When setting up the thumbnail scale up
animation, we have to treat this case as animating into freeform window,
as the containing frame will not be fullscreen, and it's not a clip
rect. For freeform windows, we set up scaling and translation, and
don't change the clip rect.

bug: 26435476
Change-Id: Ic1ac71bfc814afd62572027fa11663c80d903a2d
2016-01-11 12:35:12 -08:00
Jim Miller
2967f48f85 Fix problem where keyguard shows spontaneously
A recent change caused keyguard to ignore the sequence number
when calling doKeyguardLaterLocked().

It also appears we can get into a situation where multiple
requests to show keyguard are pending.  This change ensures
only the latest request gets handled.

Fixes bug 26326350

Change-Id: Ic6cba0054fe235a8838ca8c242b1840c9e8309d6
2016-01-11 12:15:31 -08:00
Gustav Sennton
1075d812f6 Merge "Fix WebView loading logic to allow changing provider if current disabled" 2016-01-11 18:43:05 +00:00
Winson Chung
d0b0fa16a3 Merge "Revert "Snap docked stack after screen rotation"" 2016-01-11 17:53:40 +00:00
Winson Chung
3dc52ed179 Revert "Snap docked stack after screen rotation"
This reverts commit e65d6bb207.

Change-Id: I245aa9be3ea98ff742e02b02f6f1d344bc2e8182
2016-01-11 17:53:17 +00:00
Phil Weaver
0ff7f17984 Merge "Gesture dispatch from accessibility services." 2016-01-11 17:42:54 +00:00
Phil Weaver
a6b64f5099 Gesture dispatch from accessibility services.
Add public APIs to describe gestures and dispatch them from
an accessibility service. Added a new capability that
services must declare to have this capability.

Bug: 22514086

Change-Id: I9bff2d9335f0310115112d14b7ed033a6d6c2393
2016-01-11 09:32:43 -08:00
Jorim Jaggi
e65d6bb207 Snap docked stack after screen rotation
- Move DividerSnapAlgorithm to com.android.internal, also move
some utility stuff into DividerUtils which is used from both
SystemUI and window manager
- When the screen rotation changes, rotate the stacks like before
but then also snap the docked stack to a valid snap position.

Change-Id: Ifb0c65dfbdfca2343a76b12de982c0701fe0c3ab
2016-01-11 16:58:54 +00:00
Jeff Sharkey
bc215b8426 Merge "Fix NPE when UID has no packages." 2016-01-10 20:18:20 +00:00
Jeff Sharkey
377ded0fce Fix NPE when UID has no packages.
Bug: 25224723
Change-Id: I637214666a1f02bd23474c27a285eea9152cfa9d
2016-01-10 13:15:43 -07:00
Jeff Sharkey
2bd31dbd02 Install non-EA providers once user is unlocked.
When starting encryption-aware apps while the device is locked, we
can only spin up ContentProviders that have been marked as
encryption-aware.  Once the user is unlocked, we need to go back and
install non-encryption-aware providers in already running apps.

Fix bugs in getPackageInfo() where only one of the various MATCH_
flags was being consulted (!).  Move matching logic to single unified
location in PackageUserState so we have consistent behavior.

Fix another class of bugs where Safe Mode wasn't correctly filtering
package details (!).  These bugs are fixed by splicing in the new
MATCH_SYSTEM_ONLY flag as part of state-based flag mutation that was
added for encryption.

Bug: 25944787
Change-Id: I39c8da74b1f9ba944cc817176983f50ba322329c
2016-01-09 19:28:09 -07:00
Jeff Sharkey
4175be2f4e Triage SearchManagerService for missing apps.
Searchables aren't available until after the user is unlocked.  We
could scan for them while locked, but we're aiming for a minimalist
environment, and scanning them while locked would require us to send
a changed broadcast on every boot.

Switch to using new SystemService lifecycle for faster event
delivery.  Restore broken global search observer.  Verified that
apps on external storage are handled correctly.

Bug: 26471205
Change-Id: Id99ffe2ea6db37a394454cc7dfa4eab10280ff35
2016-01-09 14:57:47 -07:00