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

Commit 8201f5df authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Fix test failure in ActivityManagerInternalTest

Problem was introduced with in ag/5307813. We fix by not posting
active uid changes to ATMS during this test.

Change-Id: Iaef60e5edc780d19633a7fbb8ab92eefd6d7f0c4
Fixes: 118379380
Test: atest ActivityManagerInternalTest
parent 2a7854ad
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -745,7 +745,7 @@ public class ActivityManagerService extends IActivityManager.Stub
    boolean mFullPssPending = false;
    /** Track all uids that have actively running processes. */
    final ActiveUids mActiveUids = new ActiveUids(this, true /* postChangesToAtm */);
    final ActiveUids mActiveUids;
    /**
     * This is for verifying the UID report flow.
@@ -2117,6 +2117,7 @@ public class ActivityManagerService extends IActivityManager.Stub
        mContext = mInjector.getContext();
        mUiContext = null;
        mAppErrors = null;
        mActiveUids = new ActiveUids(this, false /* postChangesToAtm */);
        mAppOpsService = mInjector.getAppOpsService(null /* file */, null /* handler */);
        mBatteryStatsService = null;
        mHandler = hasHandlerThread ? new MainHandler(handlerThread.getLooper()) : null;
@@ -2179,6 +2180,7 @@ public class ActivityManagerService extends IActivityManager.Stub
        mServices = new ActiveServices(this);
        mProviderMap = new ProviderMap(this);
        mAppErrors = new AppErrors(mUiContext, this);
        mActiveUids = new ActiveUids(this, true /* postChangesToAtm */);
        final File systemDir = SystemServiceManager.ensureSystemDir();