Commit Graph

15225 Commits

Author SHA1 Message Date
Sid Soundararajan
a02fbe1ea0 Merge "Remove task based on object rather than position" into nyc-dev
am: e1293b7d07

* commit 'e1293b7d07f5854337fef35a2e3b4338df90866e':
  Remove task based on object rather than position

Change-Id: I74d2dec60c6e7173d818d92ac166143a6b292f40
2016-05-13 21:26:57 +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
Felipe Leme
e90dee0077 Merge "Fixed connectivity state in some power saving scenarios." into nyc-dev
am: 25018d41f4

* commit '25018d41f482fe21a45eb2e739f22dc7cc937428':
  Fixed connectivity state in some power saving scenarios.

Change-Id: I7ebe3864657d2147034ffae400312e94deb5ef35
2016-05-13 17:23:24 +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
1f1fd18f8f Merge "PIP: Fix NPE when onboarding is shown" into nyc-dev
am: abe26c8d69

* commit 'abe26c8d69d7bfa5400e52ad4bb96020df0cdf68':
  PIP: Fix NPE when onboarding is shown

Change-Id: I53f212597a04444fd544342adb9ee60f281fffee
2016-05-13 17:00:15 +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
0fcf5474c8 Merge "Workaround for empty recents, defer the enter animation." into nyc-dev
am: 2b8dcdeda4

* commit '2b8dcdeda484c3ed92969420a19ba48c2f877c81':
  Workaround for empty recents, defer the enter animation.

Change-Id: I9678058e4fdb7b207b9c9b0a2f1c2b40d47b8835
2016-05-12 23:33:38 +00:00
Winson
fc520dd6f0 Merge "Fixing flashing when animation the launch task." into nyc-dev
am: 723bca4f58

* commit '723bca4f58ec37fcf7dd4588835bb58f7c88857d':
  Fixing flashing when animation the launch task.

Change-Id: I40fe7742d043640f4b6cb516352a96f0bf71281e
2016-05-12 23:33:36 +00:00
Winson
60ad651c84 Merge "Fixing issue with excluded task showing when docking." into nyc-dev
am: caedd41a6a

* commit 'caedd41a6ab0f5aa3f6e289311162fd2c817926c':
  Fixing issue with excluded task showing when docking.

Change-Id: I58f58c02159442ccf0ffb53a4f04f585d59783bf
2016-05-12 23:33:31 +00: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
a4f8525fdc Merge "DPM control for remote input when locked" into nyc-dev
am: 11c8f5315b

* commit '11c8f5315b195d6a63f981a7ff434fa7937ba5d3':
  DPM control for remote input when locked

Change-Id: Id7074ffdc541d53d4607652cefc4bfdecaaaa335
2016-05-12 20:58:55 +00:00
Adrian Roos
11c8f5315b Merge "DPM control for remote input when locked" into nyc-dev 2016-05-12 20:52:26 +00: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
2e0e23b684 Merge "Fixed a crash when dumping groupmanager" into nyc-dev
am: 95b3120d08

* commit '95b3120d089ba4e2c8d2c7e4349ef754689ed68f':
  Fixed a crash when dumping groupmanager

Change-Id: I28357779885b1d38acdc4579986293304fa11150
2016-05-12 19:16:59 +00:00
Selim Cinek
95b3120d08 Merge "Fixed a crash when dumping groupmanager" into nyc-dev 2016-05-12 19:09:59 +00:00
Jason Monk
9f3141ebee Merge "Update demo mode time" into nyc-dev
am: 341e37d349

* commit '341e37d349b001b87a7d66ea3f6a4b4ffdf4f52a':
  Update demo mode time

Change-Id: I4bc09d1f87754c8ff648b2843219bcd941aee4d8
2016-05-12 18:38:27 +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
5ca04056aa Merge "Logging for QS settings launch." into nyc-dev
am: 407c4343b2

* commit '407c4343b2dde2a2f9ac918a5fd2232f621d8ac4':
  Logging for QS settings launch.

Change-Id: Ib9918e3279696daf6213cf55df65e10d4ca77a9e
2016-05-12 15:37:56 +00:00
Julia Reynolds
8f3e66f2fe Logging for QS settings launch.
Change-Id: Iff8bbb448454c8a82196d292a285827846b28357
Fixes: 28678032
2016-05-12 10:33:47 -04:00
Jorim Jaggi
3381482586 Merge "Fix smallest width configuration calculation" into nyc-dev
am: 63c09fd6cd

* commit '63c09fd6cd5db31180c3db119d097fb3c5a0e505':
  Fix smallest width configuration calculation

Change-Id: Id753dcb396d31c8bb250581889fb190e396ecf6d
2016-05-12 01:55:14 +00: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
563085539c Merge "Fixed a bug where the QS was animating wrong when closing" into nyc-dev
am: d6ee33e840

* commit 'd6ee33e84069846b0907948f8972978c30b34a3c':
  Fixed a bug where the QS was animating wrong when closing

Change-Id: I9147fbee9d8acb25700b50a2688c565c8c097f4c
2016-05-12 01:32:41 +00: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
85a0821914 Merge "Remove Graphic from No Recents Screen on TV." into nyc-dev
am: 20ed211fbc

* commit '20ed211fbcac476f0b84e68b039f00a54e5c7351':
  Remove Graphic from No Recents Screen on TV.

Change-Id: I33b50a92e08f3ecf5c4fbd334ea989d50c7c075f
2016-05-11 17:38:10 +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
625f551851 Merge "Swap radio button alphas." into nyc-dev
am: 0ccd9cef14

* commit '0ccd9cef14c6804459cc1824a067afb2c7604e8e':
  Swap radio button alphas.

Change-Id: Ic725466efe7bf7871452caabee7ea24ff5fff131
2016-05-11 17:26:59 +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
33f6c04283 Merge "Force status bar window to be visible when expanded" into nyc-dev
am: 4b4e814533

* commit '4b4e81453372a9b60acdc181f3bc39c49c97f999':
  Force status bar window to be visible when expanded

Change-Id: Ib28bb434fc0d1c56772db3ec7b5d22bb25118f6d
2016-05-11 16:54:11 +00: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
a029a1a5ab Merge "Make collapsed QS work the same as expanded" into nyc-dev
am: 0934240233

* commit '09342402332826b46cf8181196a8793202104e31':
  Make collapsed QS work the same as expanded

Change-Id: I5b9e4f642482567a2340319707f9118aa2f3511b
2016-05-11 13:45:51 +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
c71d4f84f3 Merge "Fixed a bug where the content wasn\'t transforming in a group" into nyc-dev
am: fe03504cf1

* commit 'fe03504cf1904a955bd8bbcd26f9121d754f5fc0':
  Fixed a bug where the content wasn't transforming in a group

Change-Id: I793b9f59bf862c790c2c761c9a16aeef2c7e48cf
2016-05-10 23:17:04 +00:00
Selim Cinek
6b6a0e7773 Merge "Fixed a bug where the positioning on the lockscreen was wrong" into nyc-dev
am: 549a822331

* commit '549a822331a522cabfb854b91b1cad5a0f7128ae':
  Fixed a bug where the positioning on the lockscreen was wrong

Change-Id: Iee0e3b108b1345c65d53a9d02a68e5f5c1f44de5
2016-05-10 23:17:00 +00: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
Adrian Roos
73bc3fe2d1 Merge "Fix density change bugs in SystemUI" into nyc-dev
am: 67b98daaa4

* commit '67b98daaa42d10282f263ce27ca81a42b14413ff':
  Fix density change bugs in SystemUI

Change-Id: Idba3be4d06b062c7f4565752cc5e02d470ece875
2016-05-10 22:43:33 +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