Commit Graph

14568 Commits

Author SHA1 Message Date
TreeHugger Robot
b406dd20ee Merge "Fixed bugs with starting windows when displayng forcedResized activity" into nyc-dev 2016-05-17 00:51:41 +00:00
Wale Ogunwale
3b23239d6e Fixed bugs with starting windows when displayng forcedResized activity
- Added ActivityOption to mark a starting activity as a taskOverlay
activity. That is the activity will always be the top activity of the
task and doesn't cause the task to be moved to the front when it is added.
- Only set the starting window state of the ActivityRecord to shown if
window manager actually showed the starting window for the activity.
Avoids incorrectly trying to remove starting window for an activity that
didn't show any.
- When starting additional activity in a task, transfer the starting
window from the top most activity with a starting window. It is possible
the top most window does have a starting window like in the case of the
forcedResized activity.
- Only ensure visiblity of an activity we are starting in a task whose top
activity is a task overlay. They need to start in the visible-paused state
and not the resumed state which just causes extra churn in the system.
- Always add additional starting activities in a task with an overlay
activity below the overlay activity.

Bug: 28751186
Change-Id: I3624a4313ae9c406d42c67a3537f67ad685791af
2016-05-16 16:27:01 -07:00
Jaewan Kim
174aa3346c Merge "Workaround that Recents is shown again after an activity is PIPed" into nyc-dev 2016-05-16 22:38:23 +00:00
Jorim Jaggi
ed0e1a68a4 Don't throw away wallpaper bitmap just because we are hidden.
TRIM_MEMORY_UI_HIDDEN > TRIM_MEMORY_RUNNING constants, so we only
need to throw away the wallpaper if we are actually running low on
memory.

Bug: 28769940
Change-Id: I8aa27d081bbcc2eff553e9420b2b9b0920f3781f
2016-05-16 21:37:59 +00:00
Julia Reynolds
45626c448d Merge "Adjust spacing." into nyc-dev 2016-05-16 21:34:15 +00:00
Julia Reynolds
04132ed420 Adjust spacing.
Bug: 27597108
Change-Id: I75db314162cf0293422bdea6ef5e931a3ee7f813
2016-05-16 16:19:02 -04:00
Selim Cinek
37a4027131 Merge "Fixed the remove animations for notification children" into nyc-dev 2016-05-16 19:44:34 +00:00
Jaewan Kim
9df42a37c3 Workaround that Recents is shown again after an activity is PIPed
Bug: 28333917
Change-Id: Ib85db2ffdb588476b7bc7cd764af95d759f518b5
2016-05-17 04:04:26 +09:00
Jae Seo
7ac2689239 Fix regression from "PIP: Fix NPE when onboarding is shown"
Removed the second "continue" to allow isFirstValidTask to be set to
false.
This is a follow-up fix from commit 91c5066c00.

Bug: 28754669
Change-Id: Ic852afaa78fc79bcd85b04e888975cd3bfc72094
2016-05-13 16:33:43 -07:00
Jorim Jaggi
26c8c42bbb Also freeze configuration when freezing bounds
We also need to freeze the override configuration so we don't report
the new configuration too early, which leads to bugs.

Bug: 27915587
Change-Id: Idffadbb02ab0311796caa760ae1f467fd2d17768
2016-05-13 16:00:50 -07:00
Jorim Jaggi
6cb8a2cfd2 Merge "Fix transition for forced resizable exit" into nyc-dev 2016-05-13 21:22:02 +00:00
Sid Soundararajan
e1293b7d07 Merge "Remove task based on object rather than position" into nyc-dev 2016-05-13 21:19:24 +00:00
Jorim Jaggi
e6d157b936 Fix transition for forced resizable exit
Since the transition is picked from layout params from the activity
below, we need to manually override it.

Bug: 28750938
Change-Id: I7351c7d8bd14a393cba51d6afb1e644204217440
2016-05-13 21:18:52 +00:00
TreeHugger Robot
25018d41f4 Merge "Fixed connectivity state in some power saving scenarios." into nyc-dev 2016-05-13 17:14:13 +00:00
Jaewan Kim
91c5066c00 PIP: Fix NPE when onboarding is shown
Bug: 28754669
Change-Id: Ifca78e111b63422c3875dc4eba48c02e11f83530
2016-05-13 16:18:49 +09:00
Winson Chung
2b8dcdeda4 Merge "Workaround for empty recents, defer the enter animation." into nyc-dev 2016-05-12 23:23:15 +00:00
Winson Chung
723bca4f58 Merge "Fixing flashing when animation the launch task." into nyc-dev 2016-05-12 23:23:07 +00:00
Winson Chung
caedd41a6a Merge "Fixing issue with excluded task showing when docking." into nyc-dev 2016-05-12 23:22:55 +00:00
Sid Soundararajan
060fcd3f86 Remove task based on object rather than position
Is some cases, the adapter is changed before the AnimationListener is
fired. Thus we need to remove the task without relying on position.

BUG: 28703989
Change-Id: If5cfe8589bbf6938c6e57e8e4c7bd54de6e3bd68
2016-05-12 15:39:42 -07:00
Adrian Roos
11c8f5315b Merge "DPM control for remote input when locked" into nyc-dev 2016-05-12 20:52:26 +00:00
Selim Cinek
a5703187a9 Fixed the remove animations for notification children
Previously the children container wasn't fading out.
In addition was the child added to the wrong overlay leading
to completely wrong animations for the children.

Change-Id: I1ae395dc02cecb8629e509dfb55870f9c79d7854
Fixes: 27719756
2016-05-12 12:58:19 -07:00
Felipe Leme
781ba14af2 Fixed connectivity state in some power saving scenarios.
NetworkPolicyManagerService (NPMS) manages 4 type of network restriction
when apps are running on background:

- Data Saver Mode (data usage restriction on metered-networks)
- Battery Saver Mode (power restriction on all networks)
- Doze Mode (power restriction on all networks)
- App Idle (power restriction on all networks)

These restrictions affects 2 parts of the system:

- Internal framework state on NPMS which is propagated to other internal
  classes.
- External firewall rules (managed by netd).

Although each of the power-related restrictions have their own external firewall
rules, internally apps are whitelisted to them through the same
whitelist, and the current code is only updating the internal state (and
notifying the internal listeners) when Battery Saver Mode is on.

As a consequence of this problem, there are scenarios where an app
correctly does not have internet access (because the firewall rules are
properly set), but the NetworkInfo state returns the wrong state (like
CONNECTED / CONNECTED).

This CL fixes this problem by splitting the power-related logic from
updateRulesForRestrictBackgroundLocked() into its own
method (updateRulesForPowerRestrictionsLocked()), and making sure such
method is called whenever the firewall rules are updated.

Externally to this change, the CTS tests were also improved to verify
the apps get the proper connection state; it can be verified by running:

cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests \
    -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests

BUG: 28521946
Change-Id: Id5187eb7a59c549ef30e2b17627ae2d734afa789
2016-05-12 12:33:23 -07:00
Selim Cinek
95b3120d08 Merge "Fixed a crash when dumping groupmanager" into nyc-dev 2016-05-12 19:09:59 +00:00
Jason Monk
341e37d349 Merge "Update demo mode time" into nyc-dev 2016-05-12 18:34:43 +00:00
Selim Cinek
60ca7879ec Fixed a crash when dumping groupmanager
Change-Id: Id5ffb9e61c1a17d5bd7d8f58024bf84c0fbb6781
Fixes: 28706404
2016-05-12 18:26:32 +00:00
Jason Monk
7abe71c532 Update demo mode time
Change-Id: I50885c719ee06cb3fa8c3dda4fe5909efe1cb3e9
Fixes: 28740808
2016-05-12 14:05:18 -04:00
Julia Reynolds
8f3e66f2fe Logging for QS settings launch.
Change-Id: Iff8bbb448454c8a82196d292a285827846b28357
Fixes: 28678032
2016-05-12 10:33:47 -04:00
Jorim Jaggi
63c09fd6cd Merge "Fix smallest width configuration calculation" into nyc-dev 2016-05-12 01:50:05 +00:00
Jorim Jaggi
8563943bd3 Fix smallest width configuration calculation
For calculating the smallest width, we need to iterate through all possible
orientations, snap the task bounds to a valid snap target and then use the
smallest width across all orientations.

In addition to that, when flinging the divider handle to the bottom of the
screen, we need to pass in fullscreen task bounds to avoid that this new
logic applies so the maximizing app only receives one configuration change.

Change-Id: I37aa9a40938517dfaf26770eb41327d76aec7c62
Fixes: 28469673
2016-05-11 18:33:01 -07:00
Selim Cinek
d6ee33e840 Merge "Fixed a bug where the QS was animating wrong when closing" into nyc-dev 2016-05-12 01:27:53 +00:00
Winson
449a4e2f02 Workaround for empty recents, defer the enter animation.
- When docking the first time after starting up, the enter-animation 
  callback is not dispatched in the same way, and we end up with the
  callback before the first layout.  In such cases, defer sending the
  event which triggers the animation until the next frame when the
  layout is stable.

Bug: 28705801
Change-Id: If62eb03d6f297bff06982325ada9cd7f388438c3
2016-05-11 14:30:56 -07:00
Adrian Roos
7f06eed7f5 DPM control for remote input when locked
Bug: 26981262
Change-Id: I84f26ebe807e89fd56ffc3bbc7fc20f12e2f7391
2016-05-11 19:54:09 +00:00
Sid Soundararajan
20ed211fbc Merge "Remove Graphic from No Recents Screen on TV." into nyc-dev 2016-05-11 17:29:31 +00:00
Julia Reynolds
0ccd9cef14 Merge "Swap radio button alphas." into nyc-dev 2016-05-11 17:19:12 +00:00
Selim Cinek
f91de68601 Fixed a bug where the QS was animating wrong when closing
Because the overscroll flag was still set the animation could
be wrong.

Change-Id: I52adf744c92723590297844bbefef8ecf5c8d737
Fixes: 28511835
2016-05-11 13:01:02 -04:00
Adrian Roos
db1bc6bcc3 Force status bar window to be visible when expanded
Also don't collapse status bar if low profile gets set.
Status bar should almost never be collapsed without explicit
user action, and this only leads to issues.

Fixes: 27629489
Change-Id: Ibe5c64df578438c7224985b173a9cd967bf363bf
2016-05-11 15:38:15 +00:00
Jason Monk
0934240233 Merge "Make collapsed QS work the same as expanded" into nyc-dev 2016-05-11 13:37:18 +00:00
Julia Reynolds
da01ac82e2 Swap radio button alphas.
Change-Id: I9fb4ff64a3e92659c614cfff3f23e2ba8fa3b2cd
Fixes: 27597108
2016-05-11 08:54:19 -04:00
Selim Cinek
fe03504cf1 Merge "Fixed a bug where the content wasn't transforming in a group" into nyc-dev 2016-05-10 23:14:01 +00:00
Selim Cinek
549a822331 Merge "Fixed a bug where the positioning on the lockscreen was wrong" into nyc-dev 2016-05-10 23:13:51 +00:00
TreeHugger Robot
67b98daaa4 Merge "Fix density change bugs in SystemUI" into nyc-dev 2016-05-10 22:38:26 +00:00
Winson
409d99a090 Fixing flashing when animation the launch task.
- When we are setting the tasks during the initialization of the tasks,
  only animate if we are not awaiting the first layout (since those
  should override the existing layout).

Bug: 28701153
Change-Id: I4ccb38417df15f43408b2ae77708ba9de407e753
2016-05-10 15:03:50 -07:00
Sid Soundararajan
724971bac7 Remove Graphic from No Recents Screen on TV.
BUG: 28054169
Change-Id: I5fb60276eed587614409ac7e054315f256015796
2016-05-10 14:22:22 -07:00
Selim Cinek
6ac3fa8ebd Fixed a bug where the content wasn't transforming in a group
Too many booleans.

Change-Id: I1451484b1abcae3880448db60cff18ad97e9505f
Fixes: 28677158
2016-05-10 17:11:54 -04:00
Adrian Roos
d390b893ea Fix density change bugs in SystemUI
- Reinflate KeyguardUserSwitcher on density changes.
- Update size of UserAvatar on Keyguard.
- Fix brightness slider width in quick settings.
- Refetch and rescale user icons on density changes.

Change-Id: I961c59b8b224d6ac22cbbb8e115b8a12547a04b9
Fixes: 28535987
Fixes: 28454340
2016-05-10 21:01:43 +00:00
Winson
dfd7be012b Fixing issue with excluded task showing when docking.
- On multi-window state changes, we should not include the front most 
  excluded task when fetching the task list.  This CL also clarifies 
  which tasks are included and excluded.

Bug: 28452689

Change-Id: Ia30eaf75382286a9d4ee5a5b11013dddf8e4ac82
2016-05-10 13:30:48 -07:00
Selim Cinek
fa760d4636 Fixed a bug where the positioning on the lockscreen was wrong
Because of a circular dependancy of calculating the notification
heights and setting them to GONE, the views could be laid out in a
wrong fashion. Another issue was that ambient notifications would
still be taken into account as well as removed notifications.

This also lead to a bug where the removal of notifications could
lead to unnecessary add animations when swiping them away.

Change-Id: If9ad81237a520b14dc6851df3af52406d192a7a7
Fixes: 28441832
2016-05-10 16:24:19 -04:00
TreeHugger Robot
046f2c80ae Merge "Keep RemoteInputView visible when focused" into nyc-dev 2016-05-10 17:41:59 +00:00
Jason Monk
7002b410de Make collapsed QS work the same as expanded
Change-Id: I59d8de76a5f06a7896fd8b70a661e5c329620c2e
Fixes: 28414350
2016-05-10 12:57:59 -04:00
Jason Monk
c62cf80faa Fix accessibility order in nav bar
Change-Id: I2e90dee8e50b0642f39258fe3d04ded2f0bb8961
Fixes: 28281859
2016-05-10 11:19:48 -04:00