aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuexi Ma <yuexima@google.com>2023-03-24 19:27:48 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-24 19:27:48 +0000
commit2ce51ce18c00fcd5adcc173707163cfa87f1c846 (patch)
tree7e4cddf43128db6ca978ede1975e63023046d40d
parent81c73e4cc06dbc28e88219c625004a35668107b9 (diff)
parent5229595aef9562b34a6688a18c0e846a561d9700 (diff)
downloadcsuite-2ce51ce18c00fcd5adcc173707163cfa87f1c846.tar.gz
Merge "Log down video size after screenrecord complete" am: 38bf93aaf2 am: 57bc23d43c am: 5a18277aae am: 5229595aef
Original change: https://android-review.googlesource.com/c/platform/test/app_compat/csuite/+/2481768 Change-Id: I29c4d2e0815da1b899416899c0698f7fe7ac0a2d 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);