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

Commit 9b204369 authored by Jing Ji's avatar Jing Ji
Browse files

Initialize the mContext in AMS mocking test

Bug: 151209265
Test: atest MockingOomAdjusterTests
Change-Id: I2df63b632892ecf6642740057d40aeee5c1d076e
parent 76b221c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -151,6 +151,8 @@ public class MockingOomAdjusterTests {

        sService.mConstants = new ActivityManagerConstants(sContext, sService,
                sContext.getMainThreadHandler());
        setFieldValue(ActivityManagerService.class, sService, "mContext",
                sContext);
        ProcessList pr = new ProcessList();
        pr.init(sService, new ActiveUids(sService, false), null);
        setFieldValue(ActivityManagerService.class, sService, "mProcessList",