Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b09a41d8 authored by Winson Chung's avatar Winson Chung
Browse files

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
parent bcf85de8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1349,6 +1349,8 @@ public final class LauncherInstrumentation {
    }

    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);
    }