Home
last modified time | relevance | path

Searched refs:TargetFileUtils (Results 1 – 6 of 6) sorted by relevance

/test/vts/testcases/host/selinux_test/src/com/android/tests/selinux/
DKernelSelinuxFileApiTest.java27 import com.android.tradefed.util.TargetFileUtils;
28 import com.android.tradefed.util.TargetFileUtils.FilePermission;
60 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxCheckReqProt()
61 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxCheckReqProt()
62 && TargetFileUtils.hasPermission(FilePermission.WRITE, permissionBits)); in testSelinuxCheckReqProt()
87 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxNull()
88 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxNull()
89 && TargetFileUtils.hasPermission(FilePermission.WRITE, permissionBits)); in testSelinuxNull()
/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java26 import com.android.tradefed.util.TargetFileUtils;
27 import com.android.tradefed.util.TargetFileUtils.FilePermission;
50 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permission)); in testHasPermission()
56 assertTrue(TargetFileUtils.hasPermission(FilePermission.WRITE, permission)); in testHasPermission()
63 TargetFileUtils.hasPermission(FilePermission.EXECUTE, permission)); in testHasPermission()
91 TargetFileUtils.findFile( in testFindFile()
107 findPaths, TargetFileUtils.findFile("findPath", "namePattern", null, mMockDevice)); in testFindFile_w_cmd_result_fail()
122 findPaths, TargetFileUtils.findFile("findPath", "namePattern", null, mMockDevice)); in testFindFile_w_empty_line_stdout()
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java27 import com.android.tradefed.util.TargetFileUtils;
28 import com.android.tradefed.util.TargetFileUtils.FilePermission;
49 assertTrue(TargetFileUtils.isReadOnly(state, getDevice())); in testAndroidUSB()
67 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testCpuOnlineFormat()
74 TargetFileUtils.isReadOnly(filePath, getDevice())); in isReadOnlyAndIntegerContent()
82 TargetFileUtils.isReadWriteOnly(filePath, getDevice())); in isReadWriteAndIntegerContent()
95 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testPerCpuCpufreq()
133 assertTrue(TargetFileUtils.isReadOnly(f, getDevice())); in testPerCpuCpufreq()
145 assertTrue(TargetFileUtils.isReadOnly(f, getDevice())); in testPerCpuCpufreq()
163 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testLastResumeReason()
[all …]
/test/vts/testcases/host/firmware_test/src/com/android/tests/firmware/
DFirmwareBootHeaderVerification.java26 import com.android.tradefed.util.TargetFileUtils;
131 ArrayList<String> bootPaths = TargetFileUtils.findFile( in testBootImageHeader()
149 ArrayList<String> recoveryPaths = TargetFileUtils.findFile( in testRecoveryImageHeader()
/test/vts/testcases/host/firmware_dtbo_test/src/com/android/tests/firmwaredtbo/
DFirmwareDtboVerification.java26 import com.android.tradefed.util.TargetFileUtils;
104 ArrayList<String> dtboPaths = TargetFileUtils.findFile( in testCheckDTBOPartition()
238 TargetFileUtils.findFile(DEVICE_TEMP_DIR, ufdtVerifier, null, mDevice); in testVerifyOverlay()
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java28 public class TargetFileUtils { class