aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuexi Ma <yuexima@google.com>2023-03-24 18:55:40 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-24 18:55:40 +0000
commit5229595aef9562b34a6688a18c0e846a561d9700 (patch)
tree7e4cddf43128db6ca978ede1975e63023046d40d
parent7adcb8c86f61f2323dff41c9e449a11668c65ac1 (diff)
parent5a18277aaeebc885ba7169812b00a5c00cad6d74 (diff)
downloadcsuite-5229595aef9562b34a6688a18c0e846a561d9700.tar.gz
Merge "Log down video size after screenrecord complete" am: 38bf93aaf2 am: 57bc23d43c am: 5a18277aae
Original change: https://android-review.googlesource.com/c/platform/test/app_compat/csuite/+/2481768 Change-Id: I204c438546a143b8be153a2d5cc05750d848382c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--harness/src/main/java/com/android/csuite/core/DeviceUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/harness/src/main/java/com/android/csuite/core/DeviceUtils.java b/harness/src/main/java/com/android/csuite/core/DeviceUtils.java
index c075408..3528fe8 100644
--- a/harness/src/main/java/com/android/csuite/core/DeviceUtils.java
+++ b/harness/src/main/java/com/android/csuite/core/DeviceUtils.java
@@ -219,6 +219,11 @@ public class DeviceUtils {
recordingProcess.destroyForcibly();
}
}
+
+ CommandResult result = mDevice.executeShellV2Command("ls -sh " + videoPath);
+ if (result != null && result.getStatus() == CommandStatus.SUCCESS) {
+ CLog.d("Completed screenrecord %s, video size: %s", videoPath, result.getStdout());
+ }
// Try to pull, handle, and delete the video file from the device anyway.
handler.handleScreenRecordFile(mDevice.pullFile(videoPath));
mDevice.deleteFile(videoPath);