Home
last modified time | relevance | path

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

123

/libcore/luni/src/main/java/javax/crypto/
DCipher.java103 private int mode; field in Cipher
534 if (mode == 0) { in getOutputSize()
580 private void checkMode(int mode) { in checkMode() argument
581 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE && mode != UNWRAP_MODE in checkMode()
582 && mode != WRAP_MODE) { in checkMode()
583 throw new InvalidParameterException("Invalid mode: " + mode); in checkMode()
662 mode = opmode; in init()
752 mode = opmode; in init()
843 mode = opmode; in init()
968 mode = opmode; in init()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_Configuration.java304 int mode = NONE, unicode = 0, count = 0, nextChar; in load() local
309 if (mode == UNICODE) { in load()
317 mode = NONE; in load()
323 if (mode == SLASH) { in load()
324 mode = NONE; in load()
327 mode = CONTINUE; // Look for a following \n in load()
330 mode = IGNORE; // Ignore whitespace on the next line in load()
348 mode = UNICODE; in load()
366 if (mode == CONTINUE) { // Part of a \r\n sequence in load()
367 mode = IGNORE; // Ignore whitespace on the next line in load()
[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 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 = 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
57 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } in chmod() argument
66 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod() argument
108 public void mkdir(String path, int mode) throws ErrnoException { os.mkdir(path, mode); } in mkdir() argument
109 public void mkfifo(String path, int mode) throws ErrnoException { os.mkfifo(path, mode); } in mkfifo() argument
115 …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
48 public void chmod(String path, int mode) throws ErrnoException; in chmod() argument
57 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod() argument
100 public void mkdir(String path, int mode) throws ErrnoException; in mkdir() argument
101 public void mkfifo(String path, int mode) throws ErrnoException; in mkfifo() argument
107 public FileDescriptor open(String path, int flags, int mode) throws ErrnoException; in open() argument
/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/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/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
60 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod() argument
105 …ublic static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(fd… in fchmod() argument
265 …public static void mkdir(String path, int mode) throws ErrnoException { Libcore.os.mkdir(path, mod… in mkdir() argument
270 …public static void mkfifo(String path, int mode) throws ErrnoException { Libcore.os.mkfifo(path, m… in mkfifo() argument
300 …criptor open(String path, int flags, int mode) throws ErrnoException { return Libcore.os.open(path… in open() argument
/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/java/util/concurrent/
DSynchronousQueue.java206 int mode; field in SynchronousQueue.TransferStack.SNode
286 static SNode snode(SNode s, Object e, SNode next, int mode) { in snode() argument
288 s.mode = mode; in snode()
320 int mode = (e == null) ? REQUEST : DATA; in transfer() local
324 if (h == null || h.mode == mode) { // empty or same-mode in transfer()
330 } else if (casHead(h, s = snode(s, e, h, mode))) { in transfer()
338 return (E) ((mode == REQUEST) ? m.item : s.item); in transfer()
340 } else if (!isFulfilling(h.mode)) { // try to fulfill in transfer()
343 else if (casHead(h, s=snode(s, e, h, FULFILLING|mode))) { in transfer()
354 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/test/java/libcore/javax/crypto/
DCipherTest.java379 private static String modeKey(String algorithm, int mode) { in modeKey() argument
380 return algorithm + ":" + mode; in modeKey()
383 private static String modeProviderKey(String algorithm, int mode, String provider) { in modeProviderKey() argument
384 return algorithm + ":" + mode + ":" + provider; in modeProviderKey()
394 String algorithm, int mode, int value) { in setExpectedSize() argument
395 setExpectedSize(map, modeKey(algorithm, mode), value); in setExpectedSize()
399 String algorithm, int mode, String provider, int value) { in setExpectedSize() argument
400 setExpectedSize(map, modeProviderKey(algorithm, mode, provider), value); in setExpectedSize()
403 …private static int getExpectedSize(Map<String, Integer> map, String algorithm, int mode, String pr… in getExpectedSize() argument
406 Integer expected = map.get(modeProviderKey(algorithm, mode, provider)); in getExpectedSize()
[all …]
DMockCipherSpi.java63 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { in engineSetMode() argument
64 if (!"FOO".equals(mode)) { in engineSetMode()
/libcore/luni/src/main/java/java/util/zip/
DZipFile.java145 public ZipFile(File file, int mode) throws IOException { in ZipFile() argument
147 if (mode != OPEN_READ && mode != (OPEN_READ | OPEN_DELETE)) { in ZipFile()
148 throw new IllegalArgumentException("Bad mode: " + mode); in ZipFile()
151 if ((mode & OPEN_DELETE) != 0) { in ZipFile()

123