OSDN Git Service

Don't inform usage stats of interaction for a toast
authorAmith Yamasani <yamasani@google.com>
Tue, 20 Sep 2016 23:06:22 +0000 (16:06 -0700)
committerAmith Yamasani <yamasani@google.com>
Wed, 21 Sep 2016 18:53:50 +0000 (18:53 +0000)
commit43caafa2b6468c0852b753952d29a4949ee68e46
treed924487cd85de76ffac4561eb35e8531cf1d57f0
parent786cec2f00847fcbb40571e85dea6efe5c3539a6
Don't inform usage stats of interaction for a toast

If the process is forced to the foreground due to a toast,
don't inform usage stats of an interaction. Otherwise app standby
will be defeated easily.

Bug: 31544592
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdle_toast
Change-Id: I100d839ef8cf361704fd5db4b26dcc878672a235
services/core/java/com/android/server/am/ActivityManagerService.java