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

Commit 1006f73a authored by vadimt's avatar vadimt
Browse files

TAPL: Start getting events 10 sec ahead of the first expected one

This is a workaround for -t param skipping 4 first sec of recording.

Change-Id: I834d83f5f4ba760171209ab2e06ae40ea4aa9e25
parent 1c3c3b1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1222,7 +1222,7 @@ public final class LauncherInstrumentation {
        try {
            // Logcat may skip events after the specified time. Querying for events starting 1 sec
            // earlier.
            final Date startTime = new Date(mStartRecordingTime.getTime() - 1000);
            final Date startTime = new Date(mStartRecordingTime.getTime() - 10000);
            final String logcatEvents = mDevice.executeShellCommand(
                    "logcat -d -v year --pid=" + getPid() + " -t "
                            + DATE_TIME_FORMAT.format(startTime).replaceAll(" ", "")