Searched refs:mode (Results 1 - 25 of 66) sorted by relevance

123

/libcore/luni/src/main/java/javax/crypto/
H A DCipher.java45 * <li><i>"algorithm/mode/padding"</i></li> or
48 * <i>algorithm</i> is the name of a cryptographic algorithm, <i>mode</i> is the
49 * name of a feedback mode and <i>padding</i> is the name of a padding scheme.
50 * If <i>mode</i> and/or <i>padding</i> values are omitted, provider specific
57 * When a block cipher is requested in in stream cipher mode, the number of bits
59 * mode name. e.g. <i>"AES/CFB8/NoPadding"</i>. If no number is specified, a
65 * Constant for decryption operation mode.
70 * Constant for encryption operation mode.
90 * Constant for key unwrapping operation mode.
95 * Constant for key wrapping operation mode
99 private int mode; field in class:Cipher
523 checkMode(int mode) argument
[all...]
/libcore/luni/src/main/java/java/io/
H A DFileOutputStream.java61 /** File access mode */
62 private final int mode; field in class:FileOutputStream
87 this.mode = O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC);
88 this.fd = IoBridge.open(file.getAbsolutePath(), mode);
104 this.mode = O_WRONLY;
105 this.channel = NioUtils.newFileChannel(this, fd, mode);
172 channel = NioUtils.newFileChannel(this, fd, mode);
H A DRandomAccessFile.java38 * opened in read/write mode, write operations are available as well. The
54 private int mode; field in class:RandomAccessFile
62 * it according to the access string in {@code mode}.
64 * {@code mode} may have one of following values:
68 * <td>The file is opened in read-only mode. An {@code IOException} is
91 * @param mode
92 * the file access <a href="#accessmode">mode</a>, either {@code
96 * mode}.
98 * if {@code mode} is not {@code "r"}, {@code "rw"}, {@code
101 public RandomAccessFile(File file, String mode) throw argument
149 RandomAccessFile(String fileName, String mode) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertificateFactorySpi.java47 // mode: false - list of encodings is empty
48 // mode: true - list of encodings consists of 2 elements
50 private static boolean mode; field in class:MyCertificateFactorySpi
56 mode = true;
63 mode = newMode;
117 if (mode) {
126 if (mode) {
134 if (!mode) {
/libcore/luni/src/main/java/java/nio/
H A DNioUtils.java46 public static FileChannel newFileChannel(Object stream, FileDescriptor fd, int mode) { argument
47 return new FileChannelImpl(stream, fd, mode);
H A DFileChannelImpl.java55 private final int mode; field in class:FileChannelImpl
62 * fd and operates in the specified mode.
64 public FileChannelImpl(Object stream, FileDescriptor fd, int mode) { argument
67 this.mode = mode;
77 if ((mode & O_ACCMODE) == O_WRONLY) {
83 if ((mode & O_ACCMODE) == O_RDONLY) {
95 int accessMode = (mode & O_ACCMODE);
203 if ((mode & O_ACCMODE) != O_RDONLY) {
224 int accessMode = (mode
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_Configuration.java306 int mode = NONE, unicode = 0, count = 0, nextChar;
311 if (mode == UNICODE) {
319 mode = NONE;
325 if (mode == SLASH) {
326 mode = NONE;
329 mode = CONTINUE; // Look for a following \n
332 mode = IGNORE; // Ignore whitespace on the next line
350 mode = UNICODE;
368 if (mode == CONTINUE) { // Part of a \r\n sequence
369 mode
[all...]
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DDOMImplementationLS.java48 * @param mode The <code>mode</code> argument is either
50 * <code>mode</code> is <code>MODE_SYNCHRONOUS</code> then the
52 * mode, if it's <code>MODE_ASYNCHRONOUS</code> then the
54 * mode.
71 * depending on the value of the <code>mode</code> argument.
81 * NOT_SUPPORTED_ERR: Raised if the requested mode or schema type is
84 public LSParser createLSParser(short mode, argument
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeNormalizer.cpp31 UNormalizationMode mode = static_cast<UNormalizationMode>(intMode); local
34 Normalizer::normalize(src.unicodeString(), mode, 0, dst, status);
44 UNormalizationMode mode = static_cast<UNormalizationMode>(intMode); local
46 UBool result = Normalizer::isNormalized(src.unicodeString(), mode, status);
/libcore/luni/src/main/java/java/util/
H A DProperties.java281 int mode = NONE, unicode = 0, count = 0;
300 if (mode == UNICODE) {
310 mode = NONE;
316 if (mode == SLASH) {
317 mode = NONE;
320 mode = CONTINUE; // Look for a following \n
323 mode = IGNORE; // Ignore whitespace on the next line
341 mode = UNICODE;
364 if (mode == CONTINUE) { // Part of a \r\n sequence
365 mode
[all...]
/libcore/luni/src/main/java/java/text/
H A DCollator.java62 * decomposition mode and one that does not use any decomposition. The
63 * compatibility decomposition mode
65 * canonical decomposition mode is set, {@code Collator} handles un-normalized
162 * Returns a new collator with the same decomposition mode and
335 private int decompositionMode_Java_ICU(int mode) { argument
336 switch (mode) {
342 throw new IllegalArgumentException("Bad mode: " + mode);
345 private int decompositionMode_ICU_Java(int mode) { argument
346 int javaMode = mode;
[all...]
/libcore/luni/src/main/java/java/math/
H A DRoundingMode.java27 * Rounding mode where positive values are rounded towards positive infinity
35 * Rounding mode where the values are rounded towards zero.
42 * Rounding mode to round towards positive infinity. For positive values
43 * this rounding mode behaves as {@link #UP}, for negative values as
51 * Rounding mode to round towards negative infinity. For positive values
52 * this rounding mode behaves as {@link #DOWN}, for negative values as
60 * Rounding mode where values are rounded towards the nearest neighbor. Ties
66 * Rounding mode where values are rounded towards the nearest neighbor. Ties
72 * Rounding mode where values are rounded towards the nearest neighbor. Ties
78 * Rounding mode wher
100 valueOf(int mode) argument
[all...]
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DDeclHandler.java89 * @param mode A string representing the attribute defaulting mode
99 String mode,
96 attributeDecl(String eName, String aName, String type, String mode, String value) argument
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLCipher.java77 * The current cipher mode.
79 private Mode mode = Mode.ECB; field in class:OpenSSLCipher
92 * Current cipher mode: encrypting or decrypting.
102 * The block size of the current mode.
108 * calling "doFinal()" in decryption mode without processing any updates.
115 protected OpenSSLCipher(Mode mode, Padding padding) { argument
116 this.mode = mode;
128 * cipher {@code mode}.
130 protected abstract String getCipherName(int keySize, Mode mode); argument
142 checkSupportedMode(Mode mode) argument
523 AES(Mode mode, Padding padding) argument
630 checkSupportedMode(Mode mode) argument
663 getCipherName(int keyLength, Mode mode) argument
676 DESEDE(Mode mode, Padding padding) argument
758 getCipherName(int keySize, Mode mode) argument
781 checkSupportedMode(Mode mode) argument
822 getCipherName(int keySize, Mode mode) argument
831 checkSupportedMode(Mode mode) argument
[all...]
H A DSSLServerSocketImpl.java33 // as well as the information about client/server mode of
160 public void setUseClientMode(boolean mode) { argument
161 sslParameters.setUseClientMode(mode);
/libcore/luni/src/test/java/tests/security/cert/
H A DCertificateFactory2Test.java84 private void checkResult(CertificateFactory certFactory, boolean mode) argument
86 MyCertificateFactorySpi.putMode(mode);
97 if (!mode) {
101 if (mode) {
112 if (mode) {
116 if (!mode) {
156 if (mode) {
162 if (!mode) {
167 if (mode) {
181 public void GetInstance01(boolean mode) throw argument
215 GetInstance02(boolean mode) argument
280 GetInstance03(boolean mode) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyPairGenerator2Test.java88 private void checkResult(KeyPairGenerator keyPairGen, int mode) argument
91 switch (mode) {
184 private void GetInstance01(int mode) throws NoSuchAlgorithmException, argument
205 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase());
207 checkResult(kpG, mode);
222 public void GetInstance02(int mode) throws NoSuchAlgorithmException, argument
266 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase());
269 checkResult(kpG, mode);
282 private void GetInstance03(int mode) throws NoSuchAlgorithmException, argument
313 .toUpperCase(), (mode <
[all...]
/libcore/crypto/src/main/native/
H A Dsub.mk1 # -*- mode: makefile -*-
/libcore/dalvik/src/main/native/
H A Dsub.mk1 # -*- mode: makefile -*-
/libcore/benchmarks/src/benchmarks/regression/
H A DCipherBenchmark.java61 @Param private Mode mode; field in class:CipherBenchmark
103 cipherAlgorithm = algorithm.toString() + "/" + mode.toString() + "/"
126 if (mode != Mode.ECB) {
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLServerSocket.java149 * Sets whether server-mode connections will be configured to require client
165 * Returns whether server-mode connections will be configured to require
174 * Sets whether server-mode connections will be configured to request client
190 * Returns whether server-mode connections will be configured to request
199 * Sets whether new connections should act in client mode when handshaking.
201 * @param mode
202 * {@code true} if new connections should act in client mode,
205 public abstract void setUseClientMode(boolean mode); argument
208 * Returns whether new connection will act in client mode when handshaking.
210 * @return {@code true} if new connections will act in client mode whe
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherThread.java34 private String mode = null; field in class:CipherThread
80 mode = getNextMode();
134 return mode;
138 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode +
/libcore/luni/src/main/java/libcore/io/
H A DOsConstants.java22 public static boolean S_ISBLK(int mode) { return (mode & S_IFMT) == S_IFBLK; } argument
23 public static boolean S_ISCHR(int mode) { return (mode & S_IFMT) == S_IFCHR; } argument
24 public static boolean S_ISDIR(int mode) { return (mode & S_IFMT) == S_IFDIR; } argument
25 public static boolean S_ISFIFO(int mode) { return (mode & S_IFMT) == S_IFIFO; } argument
26 public static boolean S_ISREG(int mode) { return (mode argument
27 S_ISLNK(int mode) argument
28 S_ISSOCK(int mode) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DSynchronousQueue.java64 * The (Lifo) stack is used for non-fair mode, and the (Fifo)
65 * queue for fair mode. The performance of the two is generally
76 * queues is that any operation can figure out which mode the
97 * the ones here use mode bits in nodes, leading to a number
185 * nodes (with FULFILLING bit set in mode) to reserve a spot
206 int mode; field in class:SynchronousQueue.TransferStack.SNode
207 // Note: item and mode fields don't need to be volatile
286 static SNode snode(SNode s, Object e, SNode next, int mode) { argument
288 s.mode = mode;
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DRuleBasedCollatorICU.java74 public void setDecomposition(int mode) { argument
75 NativeCollation.setAttribute(address, DECOMPOSITION_MODE, mode);

Completed in 785 milliseconds

123