/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileModeAttribute.java | 49 int mode = 0; in toUnixMode() local 54 case OWNER_READ : mode |= UnixConstants.S_IRUSR; break; in toUnixMode() 55 case OWNER_WRITE : mode |= UnixConstants.S_IWUSR; break; in toUnixMode() 56 case OWNER_EXECUTE : mode |= UnixConstants.S_IXUSR; break; in toUnixMode() 57 case GROUP_READ : mode |= UnixConstants.S_IRGRP; break; in toUnixMode() 58 case GROUP_WRITE : mode |= UnixConstants.S_IWGRP; break; in toUnixMode() 59 case GROUP_EXECUTE : mode |= UnixConstants.S_IXGRP; break; in toUnixMode() 60 case OTHERS_READ : mode |= UnixConstants.S_IROTH; break; in toUnixMode() 61 case OTHERS_WRITE : mode |= UnixConstants.S_IWOTH; break; in toUnixMode() 62 case OTHERS_EXECUTE : mode |= UnixConstants.S_IXOTH; break; in toUnixMode() [all …]
|
D | UnixNativeDispatcher.java | 68 static int open(UnixPath path, int flags, int mode) throws UnixException { in open() argument 71 return open0(buffer.address(), flags, mode); in open() 76 private static native int open0(long pathAddress, int flags, int mode) in open0() argument 82 static int openat(int dfd, byte[] path, int flags, int mode) throws UnixException { in openat() argument 85 return openat0(dfd, buffer.address(), flags, mode); in openat() 90 private static native int openat0(int dfd, long pathAddress, int flags, int mode) in openat0() argument 101 static long fopen(UnixPath filename, String mode) throws UnixException { in fopen() argument 103 NativeBuffer modeBuffer = NativeBuffers.asNativeBuffer(Util.toBytes(mode)); in fopen() 165 static void mknod(UnixPath path, int mode, long dev) throws UnixException { in mknod() argument 168 mknod0(buffer.address(), mode, dev); in mknod() local [all …]
|
D | UnixChannelFactory.java | 116 int mode) in newFileChannel() argument 136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode); in newFileChannel() 145 int mode) in newFileChannel() argument 148 return newFileChannel(-1, path, null, options, mode); in newFileChannel() 156 int mode, in newAsynchronousFileChannel() argument 172 FileDescriptor fdObj = open(-1, path, null, flags, mode); in newAsynchronousFileChannel() 184 int mode) in open() argument 255 fd = openat(dfd, path.asByteArray(), oflags, mode); in open() 257 fd = UnixNativeDispatcher.open(path, oflags, mode); in open()
|
D | UnixFileSystemProvider.java | 172 int mode = UnixFileModeAttribute in newFileChannel() local 175 return UnixChannelFactory.newFileChannel(file, options, mode); in newFileChannel() 189 int mode = UnixFileModeAttribute in newAsynchronousFileChannel() local 194 .newAsynchronousFileChannel(file, options, mode, pool); in newAsynchronousFileChannel() 209 int mode = UnixFileModeAttribute in newByteChannel() local 212 return UnixChannelFactory.newFileChannel(file, options, mode); in newByteChannel() 278 for (AccessMode mode: modes) { in checkAccess() 279 switch (mode) { in checkAccess() 288 int mode = 0; in checkAccess() local 291 mode |= (r) ? R_OK : F_OK; in checkAccess() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoTracker.java | 29 private Mode mode = Mode.READ; field in IoTracker 40 public void trackIo(int byteCount, Mode mode) { in trackIo() argument 41 if (this.mode != mode) { in trackIo() 43 this.mode = mode; in trackIo()
|
D | BlockGuardOs.java | 70 @Override public boolean access(String path, int mode) throws ErrnoException { in access() argument 73 return super.access(path, mode); in access() 77 @Override public void chmod(String path, int mode) throws ErrnoException { in chmod() argument 80 super.chmod(path, mode); in chmod() 153 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { in fchmod() argument 155 super.fchmod(fd, mode); in fchmod() 234 @Override public void mkdir(String path, int mode) throws ErrnoException { in mkdir() argument 237 super.mkdir(path, mode); in mkdir() 241 @Override public void mkfifo(String path, int mode) throws ErrnoException { in mkfifo() argument 244 super.mkfifo(path, mode); in mkfifo() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory2Test.java | 84 private void checkResult(CertificateFactory certFactory, boolean mode) in checkResult() argument 86 MyCertificateFactorySpi.putMode(mode); in checkResult() 97 if (!mode) { in checkResult() 101 if (mode) { in checkResult() 112 if (mode) { in checkResult() 116 if (!mode) { in checkResult() 156 if (mode) { in checkResult() 162 if (!mode) { in checkResult() 167 if (mode) { in checkResult() 181 public void GetInstance01(boolean mode) throws CertificateException, CRLException { in GetInstance01() argument [all …]
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertificateFactorySpi.java | 50 private static boolean mode; field in MyCertificateFactorySpi 56 mode = true; in MyCertificateFactorySpi() 63 mode = newMode; in putMode() 117 if (mode) { in engineGenerateCertPath() 126 if (mode) { in engineGenerateCertPath() 134 if (!mode) { in engineGetCertPathEncodings()
|
/libcore/ojluni/src/main/native/ |
D | UnixFileSystem_md.c | 110 statMode(const char *path, int *mode) in statMode() argument 114 *mode = sb.st_mode; in statMode() 131 int mode; in Java_java_io_UnixFileSystem_getBooleanAttributes0() local 132 if (statMode(path, &mode)) { in Java_java_io_UnixFileSystem_getBooleanAttributes0() 133 int fmt = mode & S_IFMT; in Java_java_io_UnixFileSystem_getBooleanAttributes0() 184 int mode; in Java_java_io_UnixFileSystem_setPermission0() local 207 if (statMode(path, &mode)) { in Java_java_io_UnixFileSystem_setPermission0() 209 mode |= amode; in Java_java_io_UnixFileSystem_setPermission0() 211 mode &= ~amode; in Java_java_io_UnixFileSystem_setPermission0() 212 if (chmod(path, mode) >= 0) { in Java_java_io_UnixFileSystem_setPermission0() [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | NullCipherSpi.java | 48 public void engineSetMode(String mode) {} in engineSetMode() argument 69 protected void engineInit(int mode, Key key, SecureRandom random) {} in engineInit() argument 71 protected void engineInit(int mode, Key key, in engineInit() argument 75 protected void engineInit(int mode, Key key, in engineInit() argument
|
/libcore/ojluni/src/main/java/java/text/ |
D | Collator.java | 406 private int decompositionMode_Java_ICU(int mode) { in decompositionMode_Java_ICU() argument 407 switch (mode) { in decompositionMode_Java_ICU() 413 throw new IllegalArgumentException("Bad mode: " + mode); in decompositionMode_Java_ICU() 416 private int decompositionMode_ICU_Java(int mode) { in decompositionMode_ICU_Java() argument 417 int javaMode = mode; in decompositionMode_ICU_Java() 418 switch (mode) { in decompositionMode_ICU_Java()
|
/libcore/luni/src/main/java/java/nio/ |
D | NioUtils.java | 66 public static FileChannel newFileChannel(Closeable ioObject, FileDescriptor fd, int mode) { in newFileChannel() argument 67 boolean readable = (mode & O_ACCMODE) != O_WRONLY; in newFileChannel() 68 boolean writable = (mode & O_ACCMODE) != O_RDONLY; in newFileChannel() 69 boolean append = (mode & O_APPEND) != 0; in newFileChannel()
|
/libcore/ojluni/src/main/java/java/io/ |
D | RandomAccessFile.java | 81 private int mode; field in RandomAccessFile 149 public RandomAccessFile(String name, String mode) in RandomAccessFile() argument 152 this(name != null ? new File(name) : null, mode); in RandomAccessFile() 231 public RandomAccessFile(File file, String mode) in RandomAccessFile() argument 236 if (mode.equals("r")) { in RandomAccessFile() 238 } else if (mode.startsWith("rw")) { in RandomAccessFile() 243 if (mode.length() > 2) { in RandomAccessFile() 244 if (mode.equals("rws")) { in RandomAccessFile() 252 } else if (mode.equals("rwd")) { in RandomAccessFile() 262 throw new IllegalArgumentException("Illegal mode \"" + mode in RandomAccessFile() [all …]
|
D | UnixFileSystem.java | 262 final int mode; in checkAccess() local 265 mode = OsConstants.F_OK; in checkAccess() 268 mode = OsConstants.R_OK; in checkAccess() 271 mode = OsConstants.W_OK; in checkAccess() 274 mode = OsConstants.X_OK; in checkAccess() 281 return Libcore.os.access(f.getPath(), mode); in checkAccess()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairGenerator2Test.java | 88 private void checkResult(KeyPairGenerator keyPairGen, int mode) in checkResult() argument 91 switch (mode) { in checkResult() 184 private void GetInstance01(int mode) throws NoSuchAlgorithmException, in GetInstance01() argument 205 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance01() 207 checkResult(kpG, mode); in GetInstance01() 222 public void GetInstance02(int mode) throws NoSuchAlgorithmException, in GetInstance02() argument 266 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance02() 269 checkResult(kpG, mode); in GetInstance02() 282 private void GetInstance03(int mode) throws NoSuchAlgorithmException, in GetInstance03() argument 313 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance03() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CompletableFuture.java | 447 abstract CompletableFuture<?> tryFire(int mode); in tryFire() argument 560 final CompletableFuture<T> postFire(CompletableFuture<?> a, int mode) { in postFire() argument 562 if (mode < 0 || a.result == null) in postFire() 568 if (mode < 0) in postFire() 584 final CompletableFuture<V> tryFire(int mode) { in tryFire() argument 587 !d.uniApply(a = src, fn, mode > 0 ? null : this)) in tryFire() 590 return d.postFire(a, mode); in tryFire() 639 final CompletableFuture<Void> tryFire(int mode) { in tryFire() argument 642 !d.uniAccept(a = src, fn, mode > 0 ? null : this)) in tryFire() 645 return d.postFire(a, mode); in tryFire() [all …]
|
D | SynchronousQueue.java | 239 int mode; field in SynchronousQueue.TransferStack.SNode 317 static SNode snode(SNode s, Object e, SNode next, int mode) { in snode() argument 319 s.mode = mode; in snode() 351 int mode = (e == null) ? REQUEST : DATA; in transfer() local 355 if (h == null || h.mode == mode) { // empty or same-mode in transfer() 361 } else if (casHead(h, s = snode(s, e, h, mode))) { in transfer() 369 return (E) ((mode == REQUEST) ? m.item : s.item); in transfer() 371 } else if (!isFulfilling(h.mode)) { // try to fulfill in transfer() 374 else if (casHead(h, s=snode(s, e, h, FULFILLING|mode))) { in transfer() 385 return (E) ((mode == REQUEST) ? m.item : s.item); in transfer() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherThread.java | 34 private String mode = null; field in CipherThread 80 mode = getNextMode(); in launcher() 134 return mode; in getMode() 138 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode + in getCipherParameters()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | PosixFileAttributeViewTest.java | 54 static void testPermissions(Path file, String mode) throws IOException { in testPermissions() argument 55 System.out.format("change mode: %s\n", mode); in testPermissions() 56 Set<PosixFilePermission> perms = PosixFilePermissions.fromString(mode); in testPermissions() 99 String mode) in createWithPermissions() argument 102 Set<PosixFilePermission> requested = PosixFilePermissions.fromString(mode); in createWithPermissions() 105 System.out.format("create file with mode: %s\n", mode); in createWithPermissions() 116 System.out.format("create directory with mode: %s\n", mode); in createWithPermissions()
|
/libcore/luni/src/main/java/java/math/ |
D | RoundingMode.java | 100 public static RoundingMode valueOf(int mode) { in valueOf() argument 101 switch (mode) { in valueOf()
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 50 public static boolean S_ISBLK(int mode) { return (mode & S_IFMT) == S_IFBLK; } in S_ISBLK() argument 55 public static boolean S_ISCHR(int mode) { return (mode & S_IFMT) == S_IFCHR; } in S_ISCHR() argument 60 public static boolean S_ISDIR(int mode) { return (mode & S_IFMT) == S_IFDIR; } in S_ISDIR() argument 65 public static boolean S_ISFIFO(int mode) { return (mode & S_IFMT) == S_IFIFO; } in S_ISFIFO() argument 70 public static boolean S_ISREG(int mode) { return (mode & S_IFMT) == S_IFREG; } in S_ISREG() argument 75 public static boolean S_ISLNK(int mode) { return (mode & S_IFMT) == S_IFLNK; } in S_ISLNK() argument 80 public static boolean S_ISSOCK(int mode) { return (mode & S_IFMT) == S_IFSOCK; } in S_ISSOCK() argument
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipFile.java | 186 public ZipFile(File file, int mode) throws IOException { in ZipFile() argument 187 this(file, mode, StandardCharsets.UTF_8); in ZipFile() 238 public ZipFile(File file, int mode, Charset charset) throws IOException in ZipFile() argument 240 if (((mode & OPEN_READ) == 0) || in ZipFile() 241 ((mode & ~(OPEN_READ | OPEN_DELETE)) != 0)) { in ZipFile() 243 Integer.toHexString(mode)); in ZipFile() 258 fileToRemoveOnClose = ((mode & OPEN_DELETE) != 0) ? file : null; in ZipFile() 265 jzfile = open(name, mode, file.lastModified(), usemmap); in ZipFile() 909 private static native long open(String name, int mode, long lastModified, in open() argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CipherBenchmark.java | 57 @Param private Mode mode; field in CipherBenchmark 100 cipherAlgorithm = algorithm.toString() + "/" + mode.toString() + "/" in setUp() 123 if (mode != Mode.ECB) { in setUp()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 50 FilteringMode mode) { in filter() argument 62 List<String> filteredTags = filterTags(priorityList, tags, mode); in filter() 75 FilteringMode mode) { in filterTags() argument 81 if (mode == EXTENDED_FILTERING) { in filterTags() 89 if (mode == AUTOSELECT_FILTERING) { in filterTags() 91 } else if (mode == MAP_EXTENDED_RANGES) { in filterTags() 98 } else if (mode == REJECT_EXTENDED_RANGES) { in filterTags()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | Collator.java | 96 private int decompositionMode_Java_ICU(int mode) { in decompositionMode_Java_ICU() argument 100 private int decompositionMode_ICU_Java(int mode) { in decompositionMode_ICU_Java() argument
|