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
This commit is contained in:
vadimt 2020-02-10 13:49:29 -08:00
parent 1c3c3b1d6f
commit 1006f73a95
1 changed files with 1 additions and 1 deletions

View File

@ -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(" ", "")