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

123

/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/
H A DFileChannelFactory.java39 public static FileChannel getFileChannel(Object stream, int fd, int mode) { argument
40 switch(mode){
53 throw new RuntimeException(Messages.getString("nio.09", mode)); //$NON-NLS-1$
/dalvik/libcore/math/src/main/java/java/math/
H A DRoundingMode.java31 * Rounding mode where positive values are rounded towards positive infinity
41 * Rounding mode where the values are rounded towards zero.
50 * Rounding mode to round towards positive infinity. For positive values
51 * this rounding mode behaves as {@link #UP}, for negative values as
61 * Rounding mode to round towards negative infinity. For positive values
62 * this rounding mode behaves as {@link #DOWN}, for negative values as
72 * Rounding mode where values are rounded towards the nearest neighbor. Ties
80 * Rounding mode where values are rounded towards the nearest neighbor. Ties
88 * Rounding mode where values are rounded towards the nearest neighbor. Ties
96 * Rounding mode wher
122 valueOf(int mode) argument
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/
H A DMappedByteBuffer.java58 MappedByteBuffer(PlatformAddress addr, int capa, int offset, int mode) { argument
60 mapMode = mode;
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
H A DReadWriteFileChannel.java36 public final MappedByteBuffer map(MapMode mode, long position, long size) argument
39 if (mode == null) {
46 if (mode == MapMode.READ_ONLY) {
48 } else if (mode == MapMode.READ_WRITE) {
H A DReadOnlyFileChannel.java83 public final MappedByteBuffer map(MapMode mode, long position, long size) argument
86 if (mode == null) {
92 if (mode != MapMode.READ_ONLY) {
H A DWriteOnlyFileChannel.java88 public MappedByteBuffer map(MapMode mode, long position, long size) argument
91 if (mode == null) {
/dalvik/libcore/xml/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
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyCipher.java49 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument
/dalvik/libcore/json/src/main/java/org/json/
H A DJSONStringer.java66 * The current mode. Values:
73 private char mode; field in class:JSONStringer
97 this.mode = 'i';
112 if (this.mode == 'o' || this.mode == 'a') {
113 if (this.comma && this.mode == 'a') {
117 if (this.mode == 'o') {
118 this.mode = 'k';
136 if (this.mode == 'i' || this.mode
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DPlatformAddressFactory.java106 public static PlatformAddress allocMap(int fd, long start, long size, int mode) throws IOException{ argument
107 int osAddress = PlatformAddress.osMemory.mmap(fd, start, size, mode);
/dalvik/libcore/security/src/test/java/tests/security/cert/
H A DCertificateFactory2Test.java89 private void checkResult(CertificateFactory certFactory, boolean mode) argument
91 MyCertificateFactorySpi.putMode(mode);
102 if (!mode) {
106 if (mode) {
117 if (mode) {
121 if (!mode) {
161 if (mode) {
167 if (!mode) {
172 if (mode) {
186 public void GetInstance01(boolean mode) throw argument
220 GetInstance02(boolean mode) argument
285 GetInstance03(boolean mode) argument
[all...]
/dalvik/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) {
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/
H A DSSLServerSocket.java166 * Sets whether server-mode connections will be configured to require client
183 * Returns whether server-mode connections will be configured to require
193 * Sets whether server-mode connections will be configured to request client
210 * Returns whether server-mode connections will be configured to request
220 * Sets whether new connections should act in client mode when handshaking.
222 * @param mode
223 * {@code true} if new connections should act in client mode,
227 public abstract void setUseClientMode(boolean mode); argument
230 * Returns whether new connection will act in client mode when handshaking.
232 * @return {@code true} if new connections will act in client mode whe
[all...]
H A DSSLSocket.java237 * Sets whether this connection should act in client mode when handshaking.
239 * @param mode
240 * {@code true} if this connection should act in client mode,
244 public abstract void setUseClientMode(boolean mode); argument
247 * Returns whether this connection will act in client mode when handshaking.
249 * @return {@code true} if this connections will act in client mode when
257 * is only useful for sockets in server mode. The client authentication is
275 * This is only useful for sockets in server mode.
285 * is only useful for sockets in server mode. The client authentication is
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DJarFile.java186 * @param mode
187 * the mode to use, either {@link ZipFile#OPEN_READ OPEN_READ} or
193 public JarFile(File file, boolean verify, int mode) throws IOException { argument
194 super(file, mode);
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DZipFile.java88 * Opens a file as <i>ZIP-archive</i>. "mode" must be {@code OPEN_READ} or
94 * @param mode
95 * the mode of the file open operation.
100 public ZipFile(File file, int mode) throws IOException { argument
101 if (mode == (OPEN_READ | OPEN_DELETE))
103 else if (mode != OPEN_READ)
104 throw new IllegalArgumentException("invalid mode");
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DCipherSpi.java40 * cipher's name and optionally followed by a mode and a padding, in the form:
43 * <li>"algorithm/mode/padding"</li>
54 * "algorithm/mode/padding":
57 * "algorithm/mode/padding": return it, otherwise go to step 2.
61 * "algorithm/mode": instantiate it, call
68 * {@link CipherSpi#engineSetMode(String) engineSetMode(String)} for the mode
74 * engineSetMode(String)} for the mode name , call
95 * Sets the mode for this cipher.
97 * @param mode
98 * the name of the cipher mode
104 engineSetMode(String mode) argument
[all...]
H A DCipher.java48 * <li><i>"algorithm/mode/padding"</i></li> or
51 * <i>algorithm</i> is the name of a cryptographic algorithm, <i>mode</i> is the
52 * name of a feedback mode and <i>padding</i> is the name of a padding scheme.
53 * If <i>mode</i> and/or <i>padding</i> values are omitted, provider specific
60 * When a block cipher is requested in in stream cipher mode, the number of bits
62 * mode name. e.g. <i>"AES/CFB8/NoPadding"</i>. If no number is specified, a
71 * Constant for decryption operation mode.
78 * Constant for encryption operation mode.
106 * Constant for key unwrapping operation mode.
113 * Constant for key wrapping operation mode
119 private int mode; field in class:Cipher
[all...]
/dalvik/libcore/icu/src/main/java/com/ibm/icu4jni/text/
H A DCollator.java141 * <p>Decomposition mode value. With NO_DECOMPOSITION set, Strings
155 * <p>Decomposition mode value. With CANONICAL_DECOMPOSITION set,
291 * Get the decomposition mode of this Collator.
292 * @return the decomposition mode
300 * Set the normalization mode used int this object
301 * The normalization mode influences how strings are compared.
302 * @param mode desired normalization mode
307 public abstract void setDecomposition(int mode); argument
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DFileChannel.java36 * {@code RandomAccessFile} created in mode "r", are read-only. FileChannels
38 * from a {@code RandomAccessFile} created in mode "rw" are read/write.
40 * append-mode will also be in append-mode -- meaning that each write will be
94 * {@code MapMode} defines file mapping mode constants.
100 * Private mapping mode (equivalent to copy on write).
107 * Read-only mapping mode.
114 * Read-write mapping mode.
120 // The string used to display the mapping mode.
132 * Returns a string version of the mapping mode
317 map(FileChannel.MapMode mode, long position, long size) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DJCEIESCipher.java131 String mode)
133 throw new IllegalArgumentException("can't support mode " + mode);
130 engineSetMode( String mode) argument
H A DJCEStreamCipher.java126 String mode)
128 if (!mode.equalsIgnoreCase("ECB"))
130 throw new IllegalArgumentException("can't support mode " + mode);
125 engineSetMode( String mode) argument
H A DWrapCipherSpi.java108 String mode)
111 throw new NoSuchAlgorithmException("can't support mode " + mode);
107 engineSetMode( String mode) argument
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherSpiTest.java107 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument
108 super.engineSetMode(mode);
358 protected void engineSetMode(String mode) throws NoSuchAlgorithmException { argument

Completed in 2529 milliseconds

123