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

Commit f0706c5c authored by Yisroel Forta's avatar Yisroel Forta
Browse files

Fix AppStartInfoTest for timestamp change

Add first frame drawn timestamp so state gets updated correctly

Test: atest ApplicationStartInfoTest with flag enabled and disabled
Bug: 287153617
Flag: EXEMPT - bug fix
Change-Id: I65f78b5407d6a0dba3b3759d05006583801e2cd1
parent f35573ce
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ public class ApplicationStartInfoTest {
        final String app1PackageName = "com.android.test.stub1";
        final long appStartTimestampIntentStarted = 1000000;
        final long appStartTimestampActivityLaunchFinished = 2000000;
        final long appStartTimestampFirstFrameDrawn = 2500000;
        final long appStartTimestampReportFullyDrawn = 3000000;
        final long appStartTimestampService = 4000000;
        final long appStartTimestampBroadcast = 5000000;
@@ -272,6 +273,8 @@ public class ApplicationStartInfoTest {

        mAppStartInfoTracker.onActivityLaunchFinished(appStartTimestampIntentStarted, COMPONENT,
                appStartTimestampActivityLaunchFinished, ApplicationStartInfo.LAUNCH_MODE_STANDARD);
        mAppStartInfoTracker.addTimestampToStart(app1PackageName, app1Uid,
                appStartTimestampFirstFrameDrawn, ApplicationStartInfo.START_TIMESTAMP_FIRST_FRAME);
        list.clear();
        mAppStartInfoTracker.getStartInfo(app1PackageName, app1Uid, app1Pid1, 0, list);
        verifyInProgressRecordsSize(1);