Searched refs:FilePermission (Results 1 – 2 of 2) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | TargetFileUtilsTest.java | 25 import com.android.tradefed.util.TargetFileUtils.FilePermission; 52 if (hasPermission(x, FilePermission.READ) in testHasPermission() 53 || hasPermission(y, FilePermission.READ) in testHasPermission() 54 || hasPermission(z, FilePermission.READ)) { in testHasPermission() 55 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permission)); in testHasPermission() 58 if (hasPermission(x, FilePermission.WRITE) in testHasPermission() 59 || hasPermission(y, FilePermission.WRITE) in testHasPermission() 60 || hasPermission(z, FilePermission.WRITE)) { in testHasPermission() 61 assertTrue(TargetFileUtils.hasPermission(FilePermission.WRITE, permission)); in testHasPermission() 64 if (hasPermission(x, FilePermission.EXECUTE) in testHasPermission() [all …]
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/ |
D | TargetFileUtils.java | 32 public enum FilePermission { enum in TargetFileUtils 39 FilePermission(int permissionNum) { in FilePermission() method in TargetFileUtils.FilePermission 55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission() 95 String permissionBits, int groupIndex, FilePermission permission) { in hasPermission() 177 return (hasPermission(FilePermission.READ, permissionBits) in isReadOnly() 178 && !hasPermission(FilePermission.WRITE, permissionBits) in isReadOnly() 179 && !hasPermission(FilePermission.EXECUTE, permissionBits)); in isReadOnly() 192 return (hasPermission(FilePermission.READ, permissionBits) in isReadWriteOnly() 193 && hasPermission(FilePermission.WRITE, permissionBits) in isReadWriteOnly() 194 && !hasPermission(FilePermission.EXECUTE, permissionBits)); in isReadWriteOnly()
|