summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGavin Corkery <gavincorkery@google.com>2020-06-01 23:06:23 +0100
committerGavin Corkery <gavincorkery@google.com>2020-06-01 23:11:07 +0100
commitac7b17b98d56ecc6dfac434f63bd9979c24b60df (patch)
tree3ac4c4d6f151687b5f4e35c8c2a698c6502dad09 /tests
parent75bda7880bee6b4b2c38b42aa529c21f3954cb13 (diff)
Unbind explicit health check controller when possible
Ensure that calls to sync requests with the explicit health check controller are always sent if the list of packages pending health checks is empty, so that the controller can unbind. This will allow extservices to be killed by lmkd on low memory devices. Test: atest PackageWatchdogTest Test: atest NetworkStagedRollbackTest Test: check logcat to see that the service is unbound Bug: 156323728 Change-Id: If615a337760b2057b962284bde8565b593d82a50
Diffstat (limited to 'tests')
-rw-r--r--tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java b/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java
index d011dbbbe5db..ae93a81f274e 100644
--- a/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java
+++ b/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java
@@ -1113,6 +1113,7 @@ public class PackageWatchdogTest {
mTestLooper.dispatchAll();
List<Set> expectedSyncRequests = List.of(
+ Set.of(),
Set.of(APP_A),
Set.of(APP_A, APP_B),
Set.of(APP_A, APP_B, APP_C),