/libcore/luni/src/main/java/javax/crypto/ |
D | Cipher.java | 103 private int mode; field in Cipher 683 if (mode == 0) { in getOutputSize() 733 private void checkMode(int mode) { in checkMode() argument 734 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE && mode != UNWRAP_MODE in checkMode() 735 && mode != WRAP_MODE) { in checkMode() 736 throw new InvalidParameterException("Invalid mode: " + mode); in checkMode() 820 mode = opmode; in init() 910 mode = opmode; in init() 1001 mode = opmode; in init() 1131 mode = opmode; in init() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | Properties.java | 281 int mode = NONE, unicode = 0, count = 0; in load() local 300 if (mode == UNICODE) { in load() 310 mode = NONE; in load() 316 if (mode == SLASH) { in load() 317 mode = NONE; in load() 320 mode = CONTINUE; // Look for a following \n in load() 323 mode = IGNORE; // Ignore whitespace on the next line in load() 341 mode = UNICODE; in load() 364 if (mode == CONTINUE) { // Part of a \r\n sequence in load() 365 mode = IGNORE; // Ignore whitespace on the next line in load() [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/luni/src/main/java/java/io/ |
D | FileOutputStream.java | 61 private final int mode; field in FileOutputStream 86 this.mode = O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC); in FileOutputStream() 87 this.fd = IoBridge.open(file.getPath(), mode); in FileOutputStream() 103 this.mode = O_WRONLY; in FileOutputStream() 104 this.channel = NioUtils.newFileChannel(this, fd, mode); in FileOutputStream() 171 channel = NioUtils.newFileChannel(this, fd, mode); in getChannel()
|
D | RandomAccessFile.java | 53 private int mode; field in RandomAccessFile 100 public RandomAccessFile(File file, String mode) throws FileNotFoundException { in RandomAccessFile() argument 102 if (mode.equals("r")) { in RandomAccessFile() 104 } else if (mode.equals("rw") || mode.equals("rws") || mode.equals("rwd")) { in RandomAccessFile() 106 if (mode.equals("rws")) { in RandomAccessFile() 109 } else if (mode.equals("rwd")) { in RandomAccessFile() 114 throw new IllegalArgumentException("Invalid mode: " + mode); in RandomAccessFile() 116 this.mode = flags; in RandomAccessFile() 148 public RandomAccessFile(String fileName, String mode) throws FileNotFoundException { in RandomAccessFile() argument 149 this(new File(fileName), mode); in RandomAccessFile() [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/luni/src/main/native/ |
D | libcore_icu_NativeNormalizer.cpp | 31 UNormalizationMode mode = static_cast<UNormalizationMode>(intMode); in NativeNormalizer_normalizeImpl() local 34 icu::Normalizer::normalize(src.unicodeString(), mode, 0, dst, status); in NativeNormalizer_normalizeImpl() 44 UNormalizationMode mode = static_cast<UNormalizationMode>(intMode); in NativeNormalizer_isNormalizedImpl() local 46 UBool result = icu::Normalizer::isNormalized(src.unicodeString(), mode, status); in NativeNormalizer_isNormalizedImpl()
|
/libcore/luni/src/main/java/java/text/ |
D | Collator.java | 335 private int decompositionMode_Java_ICU(int mode) { in decompositionMode_Java_ICU() argument 336 switch (mode) { in decompositionMode_Java_ICU() 342 throw new IllegalArgumentException("Bad mode: " + mode); in decompositionMode_Java_ICU() 345 private int decompositionMode_ICU_Java(int mode) { in decompositionMode_ICU_Java() argument 346 int javaMode = mode; in decompositionMode_ICU_Java() 347 switch (mode) { in decompositionMode_ICU_Java()
|
/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/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 66 @Override public boolean access(String path, int mode) throws ErrnoException { in access() argument 68 return os.access(path, mode); in access() 71 @Override public void chmod(String path, int mode) throws ErrnoException { in chmod() argument 73 os.chmod(path, mode); in chmod() 114 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { in fchmod() argument 116 os.fchmod(fd, mode); in fchmod() 171 @Override public void mkdir(String path, int mode) throws ErrnoException { in mkdir() argument 173 os.mkdir(path, mode); in mkdir() 176 @Override public void mkfifo(String path, int mode) throws ErrnoException { in mkfifo() argument 178 os.mkfifo(path, mode); in mkfifo() [all …]
|
D | ForwardingOs.java | 54 …public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode);… in access() argument 58 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } in chmod() argument 68 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod() argument 112 public void mkdir(String path, int mode) throws ErrnoException { os.mkdir(path, mode); } in mkdir() argument 113 public void mkfifo(String path, int mode) throws ErrnoException { os.mkfifo(path, mode); } in mkfifo() argument 119 …eDescriptor open(String path, int flags, int mode) throws ErrnoException { return os.open(path, fl… in open() argument
|
D | Os.java | 45 public boolean access(String path, int mode) throws ErrnoException; in access() argument 49 public void chmod(String path, int mode) throws ErrnoException; in chmod() argument 59 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod() argument 104 public void mkdir(String path, int mode) throws ErrnoException; in mkdir() argument 105 public void mkfifo(String path, int mode) throws ErrnoException; in mkfifo() argument 111 public FileDescriptor open(String path, int flags, int mode) throws ErrnoException; in open() argument
|
/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/java/nio/ |
D | NioUtils.java | 50 public static FileChannel newFileChannel(Closeable ioObject, FileDescriptor fd, int mode) { in newFileChannel() argument 51 return new FileChannelImpl(ioObject, fd, mode); in newFileChannel()
|
D | FileChannelImpl.java | 57 private final int mode; field in FileChannelImpl 66 public FileChannelImpl(Closeable ioObject, FileDescriptor fd, int mode) { in FileChannelImpl() argument 69 this.mode = mode; in FileChannelImpl() 79 if ((mode & O_ACCMODE) == O_WRONLY) { in checkReadable() 85 if ((mode & O_ACCMODE) == O_RDONLY) { in checkWritable() 95 int accessMode = (mode & O_ACCMODE); in basicLock() 207 if ((mode & O_ACCMODE) != O_RDONLY) { in force() 228 int accessMode = (mode & O_ACCMODE); in map()
|
/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/luni/src/main/java/android/system/ |
D | OsConstants.java | 29 public static boolean S_ISBLK(int mode) { return (mode & S_IFMT) == S_IFBLK; } in S_ISBLK() argument 34 public static boolean S_ISCHR(int mode) { return (mode & S_IFMT) == S_IFCHR; } in S_ISCHR() argument 39 public static boolean S_ISDIR(int mode) { return (mode & S_IFMT) == S_IFDIR; } in S_ISDIR() argument 44 public static boolean S_ISFIFO(int mode) { return (mode & S_IFMT) == S_IFIFO; } in S_ISFIFO() argument 49 public static boolean S_ISREG(int mode) { return (mode & S_IFMT) == S_IFREG; } in S_ISREG() argument 54 public static boolean S_ISLNK(int mode) { return (mode & S_IFMT) == S_IFLNK; } in S_ISLNK() argument 59 public static boolean S_ISSOCK(int mode) { return (mode & S_IFMT) == S_IFSOCK; } in S_ISSOCK() argument
|
D | Os.java | 48 …blic static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.access… in access() argument 62 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod() argument 109 …ublic static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(fd… in fchmod() argument 276 …public static void mkdir(String path, int mode) throws ErrnoException { Libcore.os.mkdir(path, mod… in mkdir() argument 281 …public static void mkfifo(String path, int mode) throws ErrnoException { Libcore.os.mkfifo(path, m… in mkfifo() argument 311 …criptor open(String path, int flags, int mode) throws ErrnoException { return Libcore.os.open(path… in open() argument
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | SynchronousQueue.java | 207 int mode; field in SynchronousQueue.TransferStack.SNode 287 static SNode snode(SNode s, Object e, SNode next, int mode) { in snode() argument 289 s.mode = mode; in snode() 321 int mode = (e == null) ? REQUEST : DATA; in transfer() local 325 if (h == null || h.mode == mode) { // empty or same-mode in transfer() 331 } else if (casHead(h, s = snode(s, e, h, mode))) { in transfer() 339 return (E) ((mode == REQUEST) ? m.item : s.item); in transfer() 341 } else if (!isFulfilling(h.mode)) { // try to fulfill in transfer() 344 else if (casHead(h, s=snode(s, e, h, FULFILLING|mode))) { in transfer() 355 return (E) ((mode == REQUEST) ? m.item : s.item); in transfer() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CipherBenchmark.java | 61 @Param private Mode mode; field in CipherBenchmark 103 cipherAlgorithm = algorithm.toString() + "/" + mode.toString() + "/" in setUp() 126 if (mode != Mode.ECB) { in setUp()
|
/libcore/luni/src/main/java/org/w3c/dom/ls/ |
D | DOMImplementationLS.java | 84 public LSParser createLSParser(short mode, in createLSParser() argument
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | DeclHandler.java | 99 String mode, in attributeDecl() argument
|
/libcore/luni/src/main/java/libcore/icu/ |
D | RuleBasedCollatorICU.java | 74 public void setDecomposition(int mode) { in setDecomposition() argument 75 NativeCollation.setAttribute(address, DECOMPOSITION_MODE, mode); in setDecomposition()
|
/libcore/luni/src/main/java/java/util/zip/ |
D | ZipFile.java | 157 public ZipFile(File file, int mode) throws IOException { in ZipFile() argument 159 if (mode != OPEN_READ && mode != (OPEN_READ | OPEN_DELETE)) { in ZipFile() 160 throw new IllegalArgumentException("Bad mode: " + mode); in ZipFile() 163 if ((mode & OPEN_DELETE) != 0) { in ZipFile()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 386 private static String modeKey(String algorithm, int mode) { in modeKey() argument 387 return algorithm + ":" + mode; in modeKey() 390 private static String modeProviderKey(String algorithm, int mode, String provider) { in modeProviderKey() argument 391 return algorithm + ":" + mode + ":" + provider; in modeProviderKey() 401 String algorithm, int mode, int value) { in setExpectedSize() argument 402 setExpectedSize(map, modeKey(algorithm, mode), value); in setExpectedSize() 406 String algorithm, int mode, String provider, int value) { in setExpectedSize() argument 407 setExpectedSize(map, modeProviderKey(algorithm, mode, provider), value); in setExpectedSize() 410 …private static int getExpectedSize(Map<String, Integer> map, String algorithm, int mode, String pr… in getExpectedSize() argument 413 Integer expected = map.get(modeProviderKey(algorithm, mode, provider)); in getExpectedSize() [all …]
|