Home
last modified time | relevance | path

Searched refs:expectRemoteCommandToSucceed (Results 1 – 2 of 2) sorted by relevance

/aosp12/packages/modules/Virtualization/authfs/tests/java/src/com/android/fs/
H A DAuthFsHostTest.java202 expectRemoteCommandToSucceed("dd if=/dev/zero of=" + backendPath + " bs=1 count=8192"); in testWriteFailedIfDetectsTampering()
212 expectRemoteCommandToSucceed( in testWriteFailedIfDetectsTampering()
216 expectRemoteCommandToSucceed( in testWriteFailedIfDetectsTampering()
229 expectRemoteCommandToSucceed( in testFileResize()
278 String result = expectRemoteCommandToSucceed("sha256sum " + path); in computeFileHash()
289 expectRemoteCommandToSucceed("truncate -c -s " + size + " " + path); in resizeFile()
293 return Long.parseLong(expectRemoteCommandToSucceed("stat -c '%s' " + path)); in getFileSizeInBytes()
313 expectRemoteCommandToSucceed(cmd); in runAuthFsInBackground()
333 expectRemoteCommandToSucceed(cmd); in runFdServerInBackground()
342 String fs_type = expectRemoteCommandToSucceed("stat -f -c '%t' " + path); in isRemoteDirectoryOnFuse()
[all …]
/aosp12/frameworks/base/tests/ApkVerityTest/src/com/android/apkverity/
H A DApkVerityTest.java117 expectRemoteCommandToSucceed("test -f /sys/fs/" + mountPoint.type + "/features/verity"); in testFsverityKernelSupports()
392 expectRemoteCommandToSucceed("cat " + apkPath + " > /dev/null"); in testFsverityFileIsImmutableAndReadable()
472 CLog.d("lsof: " + expectRemoteCommandToSucceed("lsof " + apkPath)); in verifyInstalledFilesHaveFsverity()
474 String pid = expectRemoteCommandToSucceed("pidof system_server"); in verifyInstalledFilesHaveFsverity()
490 expectRemoteCommandToSucceed("ls -p " + appDir + " | grep -v '/'").split("\n"))); in verifyInstalledFiles()
508 expectRemoteCommandToSucceed(String.join(" ", args)); in damageFileAgainstBlockDevice()
512 String line = expectRemoteCommandToSucceed("pm path " + packageName + " | grep base.apk"); in getApkPath()
519 return Long.parseLong(expectRemoteCommandToSucceed("stat -c '%s' " + packageName).trim()); in getFileSizeInBytes()
522 private String expectRemoteCommandToSucceed(String cmd) throws DeviceNotAvailableException { in expectRemoteCommandToSucceed() method in ApkVerityTest