Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/main/java/javax/crypto/
DCipher.java103 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/
DProperties.java281 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/
DCertificateFactory2Test.java84 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/
DFileOutputStream.java61 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()
DRandomAccessFile.java53 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/
DMyCertificateFactorySpi.java50 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/
Dlibcore_icu_NativeNormalizer.cpp31 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/
DCollator.java335 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/
DKeyPairGenerator2Test.java88 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/
DBlockGuardOs.java66 @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 …]
DForwardingOs.java54 …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
DOs.java45 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/
DRoundingMode.java100 public static RoundingMode valueOf(int mode) { in valueOf() argument
101 switch (mode) { in valueOf()
/libcore/luni/src/main/java/java/nio/
DNioUtils.java50 public static FileChannel newFileChannel(Closeable ioObject, FileDescriptor fd, int mode) { in newFileChannel() argument
51 return new FileChannelImpl(ioObject, fd, mode); in newFileChannel()
DFileChannelImpl.java57 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/
DCipherThread.java34 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/
DOsConstants.java29 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
DOs.java48 …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/
DSynchronousQueue.java207 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/
DCipherBenchmark.java61 @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/
DDOMImplementationLS.java84 public LSParser createLSParser(short mode, in createLSParser() argument
/libcore/luni/src/main/java/org/xml/sax/ext/
DDeclHandler.java99 String mode, in attributeDecl() argument
/libcore/luni/src/main/java/libcore/icu/
DRuleBasedCollatorICU.java74 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/
DZipFile.java157 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/
DCipherTest.java386 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 …]

12