Searched defs:mode (Results 1 - 25 of 61) sorted by relevance

123

/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/java/nio/
H A DNioUtils.java62 public static FileChannel newFileChannel(Closeable ioObject, FileDescriptor fd, int mode) { argument
63 boolean readable = (mode & (O_RDONLY | O_RDWR | O_SYNC)) != 0;
64 boolean writable = (mode & (O_WRONLY | O_RDWR | O_SYNC)) != 0;
65 boolean append = (mode & O_APPEND) != 0;
/libcore/luni/src/main/java/libcore/io/
H A DIoTracker.java29 private Mode mode = Mode.READ; field in class:IoTracker
40 public void trackIo(int byteCount, Mode mode) { argument
41 if (this.mode != mode) {
43 this.mode = mode;
/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/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
H A DDefaultHandler2.java78 String type, String mode, String value)
77 attributeDecl(String eName, String aName, String type, String mode, String value) argument
/libcore/ojluni/src/test/java/nio/file/attribute/
H A DPosixFileAttributeViewTest.java51 * Use view to update permission to the given mode and check that the
54 static void testPermissions(Path file, String mode) throws IOException { argument
55 System.out.format("change mode: %s\n", mode);
56 Set<PosixFilePermission> perms = PosixFilePermissions.fromString(mode);
95 * Create file with given mode and check that the file is created with a
96 * mode that is not less secure
99 String mode)
102 Set<PosixFilePermission> requested = PosixFilePermissions.fromString(mode);
105 System.out.format("create file with mode
98 createWithPermissions(Path file, String mode) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyCipher.java49 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument
/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/ojluni/src/main/java/javax/crypto/
H A DNullCipherSpi.java48 public void engineSetMode(String mode) {} argument
69 protected void engineInit(int mode, Key key, SecureRandom random) {} argument
71 protected void engineInit(int mode, Key key, argument
75 protected void engineInit(int mode, Key key, argument
H A DCipherSpi.java62 * algorithm (e.g., <i>DES</i>), and may be followed by a feedback mode and
68 * <li>"<i>algorithm/mode/padding</i>" or
74 * provider-specific default values for the mode and padding scheme are used).
82 * of <i>algorithm/mode/padding</i>, or may decide to provide more generic
84 * <i>algorithm</i> or <i>algorithm/mode</i> or <i>algorithm//padding</i>
86 * in which case the requested mode and/or padding are set automatically by
100 * // pluggable mode and padding
107 * // specified "mode", with pluggable padding
108 * <code>Cipher.</code><i>algName/mode</i>
114 * // specified "padding", with pluggable mode
240 engineSetMode(String mode) argument
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleMatcher.java50 FilteringMode mode) {
62 List<String> filteredTags = filterTags(priorityList, tags, mode);
75 FilteringMode mode) {
81 if (mode == EXTENDED_FILTERING) {
89 if (mode == AUTOSELECT_FILTERING) {
91 } else if (mode == MAP_EXTENDED_RANGES) {
98 } else if (mode == REJECT_EXTENDED_RANGES) {
101 + "\" found in REJECT_EXTENDED_RANGES mode.");
48 filter(List<LanguageRange> priorityList, Collection<Locale> locales, FilteringMode mode) argument
73 filterTags(List<LanguageRange> priorityList, Collection<String> tags, FilteringMode mode) argument
/libcore/ojluni/src/main/native/
H A Dio_util_md.c66 handleOpen(const char *path, int oflag, int mode) { argument
68 RESTARTABLE(open64(path, oflag, mode), fd);
/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/benchmarks/src/benchmarks/regression/
H A DCipherBenchmark.java57 @Param private Mode mode; field in class:CipherBenchmark
100 cipherAlgorithm = algorithm.toString() + "/" + mode.toString() + "/"
123 if (mode != Mode.ECB) {
/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/ojluni/src/main/java/java/nio/channels/
H A DFileChannel.java121 * <a name="open-mode"></a> <p> At various points this class specifies that an
131 * was created with mode <tt>"r"</tt> and will be open for reading and writing
132 * if the instance was created with mode <tt>"rw"</tt>.
134 * <a name="append-mode"></a><p> A file channel that is open for writing may be in
135 * <i>append mode</i>, for example if it was obtained from a file-output stream
139 * the second parameter. In this mode each invocation of a relative write
378 * unless the channel is in append mode, in which case the position is
392 * unless the channel is in append mode, in which case the position is
406 * unless the channel is in append mode, in which case the position is
817 * Returns a string describing this file-mapping mode
915 map(MapMode mode, long position, long size) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DCollator.java169 * Decomposition mode value. With NO_DECOMPOSITION
179 * Decomposition mode value. With CANONICAL_DECOMPOSITION
194 * Decomposition mode value. With FULL_DECOMPOSITION
201 * decomposition mode.
350 * Get the decomposition mode of this Collator. Decomposition mode
352 * decomposition mode allows the user to select between faster and more
354 * <p>The three values for decomposition mode are:
362 * @return the decomposition mode
374 * Set the decomposition mode o
404 decompositionMode_Java_ICU(int mode) argument
414 decompositionMode_ICU_Java(int mode) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLServerSocket.java49 * begin handshaking in client or server mode. The state
298 * Controls whether <code>accept</code>ed server-mode
333 * newly <code>accept</code>ed server-mode <code>SSLSocket</code>s.
350 * Controls whether <code>accept</code>ed server-mode
385 * newly accepted server-mode connections.
403 * server mode, or the SSL client mode.
409 * need to act in the SSL client mode on newly accepted
412 * FTP client would use an SSLServerSocket in "client" mode to
414 * SSLSocket with "client" mode disable
425 setUseClientMode(boolean mode) argument
[all...]
H A DSSLSocket.java110 * in client or server mode, etc.
124 * <P>A SSL socket must choose to operate in the client or server mode.
1201 * Configures the socket to use client (or server) mode when
1205 * Once handshaking has begun, the mode can not be reset for the
1211 * @param mode true if the socket should start its handshaking
1212 * in "client" mode
1213 * @throws IllegalArgumentException if a mode change is attempted
1217 public abstract void setUseClientMode(boolean mode); argument
1221 * Returns true if the socket is set to use client mode when
1225 * in "client" mode
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixChannelFactory.java116 int mode)
136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode);
145 int mode)
148 return newFileChannel(-1, path, null, options, mode);
156 int mode,
172 FileDescriptor fdObj = open(-1, path, null, flags, mode);
184 int mode)
255 fd = openat(dfd, path.asByteArray(), oflags, mode);
257 fd = UnixNativeDispatcher.open(path, oflags, mode);
112 newFileChannel(int dfd, UnixPath path, String pathForPermissionCheck, Set<? extends OpenOption> options, int mode) argument
143 newFileChannel(UnixPath path, Set<? extends OpenOption> options, int mode) argument
154 newAsynchronousFileChannel(UnixPath path, Set<? extends OpenOption> options, int mode, ThreadPool pool) argument
180 open(int dfd, UnixPath path, String pathForPermissionCheck, Flags flags, int mode) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLServerSocketTest.java105 public void setUseClientMode(boolean mode) { argument
112 public void setWantClientAuth(boolean mode) { argument
301 * javax.net.ssl.SSLServerSocket#setUseClientMode(boolean mode)
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DMockCipherSpi.java201 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument
202 if (!"FOO".equals(mode)) {
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherOutputStream1Test.java221 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument
H A DCipherSpiTest.java103 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument
104 super.engineSetMode(mode);
450 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument

Completed in 787 milliseconds

123