commit | b09a41d86c98ac7505981d64cba078cf4f2fd4dd | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Thu May 06 20:56:47 2021 -0700 |
committer | Winson Chung <winsonc@google.com> | Mon May 10 13:00:37 2021 -0700 |
tree | 26efd5eed51e2fccc74ca16b39b7e297837cdefe | |
parent | bcf85de8076144bd54cff1a7db348dda266814b6 [diff] |
Use testapi to trigger gc in system and sysui - Do this prior to gc'ing launcher to ensure that temporary binder refs on the system side a released Bug: 186268407 Test: Presubmit Change-Id: I7878e1042b07ded5491af6153cff9b0772c557db
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index e5b93b1..02ea82e 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -1349,6 +1349,8 @@ } public int getTotalPssKb() { + // GC the system & sysui first before gc'ing launcher + logShellCommand("cmd statusbar run-gc"); return getTestInfo(TestProtocol.REQUEST_TOTAL_PSS_KB). getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); }