Home
last modified time | relevance | path

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

123

/dalvik/libcore/json/src/main/java/org/json/
DJSONStringer.java73 private char mode; field in JSONStringer
97 this.mode = 'i'; in JSONStringer()
112 if (this.mode == 'o' || this.mode == 'a') { in append()
113 if (this.comma && this.mode == 'a') { in append()
117 if (this.mode == 'o') { in append()
118 this.mode = 'k'; in append()
136 if (this.mode == 'i' || this.mode == 'o' || this.mode == 'a') { in array()
153 if (this.mode != m) { in end()
196 if (this.mode == 'k') { in key()
203 this.mode = 'o'; in key()
[all …]
/dalvik/libcore/support/src/test/java/tests/support/
DSupport_Configuration.java379 int mode = NONE, unicode = 0, count = 0, nextChar; in load() local
384 if (mode == UNICODE) { in load()
392 mode = NONE; in load()
398 if (mode == SLASH) { in load()
399 mode = NONE; in load()
402 mode = CONTINUE; // Look for a following \n in load()
405 mode = IGNORE; // Ignore whitespace on the next line in load()
423 mode = UNICODE; in load()
441 if (mode == CONTINUE) { // Part of a \r\n sequence in load()
442 mode = IGNORE; // Ignore whitespace on the next line in load()
[all …]
/dalvik/libcore/crypto/src/main/java/javax/crypto/
DCipher.java119 private int mode; field in Cipher
420 if (mode == 0) { in getOutputSize()
553 mode = opmode; in init()
649 mode = opmode; in init()
747 mode = opmode; in init()
871 mode = opmode; in init()
890 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
925 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
1013 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
1068 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
[all …]
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
DReadWriteFileChannel.java36 public final MappedByteBuffer map(MapMode mode, long position, long size) in map() argument
39 if (mode == null) { in map()
46 if (mode == MapMode.READ_ONLY) { in map()
48 } else if (mode == MapMode.READ_WRITE) { in map()
DReadOnlyFileChannel.java83 public final MappedByteBuffer map(MapMode mode, long position, long size) in map() argument
86 if (mode == null) { in map()
92 if (mode != MapMode.READ_ONLY) { in map()
DWriteOnlyFileChannel.java88 public MappedByteBuffer map(MapMode mode, long position, long size) in map() argument
91 if (mode == null) { in map()
/dalvik/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()
/dalvik/libcore/luni/src/main/java/java/util/
DProperties.java304 int mode = NONE, unicode = 0, count = 0; in load() local
325 if (mode == UNICODE) { in load()
339 mode = NONE; in load()
345 if (mode == SLASH) { in load()
346 mode = NONE; in load()
349 mode = CONTINUE; // Look for a following \n in load()
352 mode = IGNORE; // Ignore whitespace on the next line in load()
370 mode = UNICODE; in load()
398 if (mode == CONTINUE) { // Part of a \r\n sequence in load()
399 mode = IGNORE; // Ignore whitespace on the next line in load()
[all …]
/dalvik/libcore/security/src/test/java/tests/security/cert/
DCertificateFactory2Test.java89 private void checkResult(CertificateFactory certFactory, boolean mode) in checkResult() argument
91 MyCertificateFactorySpi.putMode(mode); in checkResult()
102 if (!mode) { in checkResult()
106 if (mode) { in checkResult()
117 if (mode) { in checkResult()
121 if (!mode) { in checkResult()
161 if (mode) { in checkResult()
167 if (!mode) { in checkResult()
172 if (mode) { in checkResult()
186 public void GetInstance01(boolean mode) throws CertificateException, CRLException { in GetInstance01() argument
[all …]
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/
DFileChannelFactory.java39 public static FileChannel getFileChannel(Object stream, int fd, int mode) { in getFileChannel() argument
40 switch(mode){ in getFileChannel()
53 throw new RuntimeException(Messages.getString("nio.09", mode)); //$NON-NLS-1$ in getFileChannel()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherThread.java34 private String mode = null; field in CipherThread
66 mode = getNextMode(); in launcher()
120 return mode; in getMode()
124 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode + in getCipherParameters()
/dalvik/libcore/sql/src/main/java/SQLite/
DShell.java22 int mode; field in Shell
54 s.mode = mode; in clone()
173 switch (mode) { in newrow()
229 if (mode == Shell.MODE_Semi) { in newrow()
351 mode = Shell.MODE_Line; in do_meta()
353 mode = Shell.MODE_Column; in do_meta()
355 mode = Shell.MODE_List; in do_meta()
357 mode = Shell.MODE_Html; in do_meta()
359 mode = Shell.MODE_Insert; in do_meta()
518 s.mode = Shell.MODE_List; in main()
[all …]
/dalvik/libcore/text/src/main/java/java/text/
DCollator.java438 private int decompositionMode_Java_ICU(int mode) { in decompositionMode_Java_ICU() argument
439 int icuDecomp = mode; in decompositionMode_Java_ICU()
440 switch (mode) { in decompositionMode_Java_ICU()
451 private int decompositionMode_ICU_Java(int mode) { in decompositionMode_ICU_Java() argument
452 int javaMode = mode; in decompositionMode_ICU_Java()
453 switch (mode) { in decompositionMode_ICU_Java()
/dalvik/vm/mterp/x86/
Dcvtfp_int.S18 fnstcw LOCAL0_OFFSET(%ebp) # remember original rounding mode
22 fldcw LOCAL0_OFFSET+2(%ebp) # set "to zero" rounding mode
30 fldcw LOCAL0_OFFSET(%ebp) # restore previous rounding mode
/dalvik/libcore/math/src/main/java/java/math/
DRoundingMode.java122 public static RoundingMode valueOf(int mode) { in valueOf() argument
126 switch (mode) { in valueOf()
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator2Test.java94 private void checkResult(KeyPairGenerator keyPairGen, int mode) in checkResult() argument
97 switch (mode) { in checkResult()
190 private void GetInstance01(int mode) throws NoSuchAlgorithmException, in GetInstance01() argument
211 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance01()
213 checkResult(kpG, mode); in GetInstance01()
228 public void GetInstance02(int mode) throws NoSuchAlgorithmException, in GetInstance02() argument
272 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance02()
275 checkResult(kpG, mode); in GetInstance02()
288 private void GetInstance03(int mode) throws NoSuchAlgorithmException, in GetInstance03() argument
319 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance03()
[all …]
/dalvik/libcore/nio/src/main/java/java/nio/
DMappedByteBuffer.java58 MappedByteBuffer(PlatformAddress addr, int capa, int offset, int mode) { in MappedByteBuffer() argument
60 mapMode = mode; in MappedByteBuffer()
/dalvik/libcore/luni/src/main/java/java/io/
DRandomAccessFile.java112 public RandomAccessFile(File file, String mode) in RandomAccessFile() argument
120 if (mode.equals("r")) { //$NON-NLS-1$ in RandomAccessFile()
124 …} else if (mode.equals("rw") || mode.equals("rws") || mode.equals("rwd")) { //$NON-NLS-1$ //$NON-N… in RandomAccessFile()
128 if (mode.equals("rws")) { //$NON-NLS-1$ in RandomAccessFile()
131 } else if (mode.equals("rwd")) { //$NON-NLS-1$ in RandomAccessFile()
184 public RandomAccessFile(String fileName, String mode) in RandomAccessFile() argument
186 this(new File(fileName), mode); in RandomAccessFile()
/dalvik/libcore/icu/src/main/java/com/ibm/icu4jni/charset/
DNativeConverter.java225 boolean mode); in setSubstitutionModeCharToByte() argument
235 boolean mode); in setSubstitutionModeByteToChar() argument
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
DPlatformAddressFactory.java106 …public static PlatformAddress allocMap(int fd, long start, long size, int mode) throws IOException{ in allocMap() argument
107 int osAddress = PlatformAddress.osMemory.mmap(fd, start, size, mode); in allocMap()
DOSFileSystem.java225 public int open(byte[] fileName, int mode) throws FileNotFoundException { in open() argument
229 int handler = openImpl(fileName, mode); in open()
236 private native int openImpl(byte[] fileName, int mode); in openImpl() argument
/dalvik/libcore/xml/src/main/java/org/xml/sax/ext/
DDeclHandler.java99 String mode, in attributeDecl() argument
/dalvik/libcore/luni/src/main/native/
Dorg_apache_harmony_luni_platform_OSFileSystem.cpp566 int mode = 0; in harmony_io_openImpl() local
576 mode = 0; in harmony_io_openImpl()
580 mode = 0600; in harmony_io_openImpl()
584 mode = 0600; in harmony_io_openImpl()
588 mode = 0600; in harmony_io_openImpl()
592 mode = 0600; in harmony_io_openImpl()
613 cc = open(pathCopy, flags, mode); in harmony_io_openImpl()
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/
DSSLServerSocket.java227 public abstract void setUseClientMode(boolean mode); in setUseClientMode() argument
/dalvik/libcore/archive/src/main/java/java/util/zip/
DZipFile.java100 public ZipFile(File file, int mode) throws IOException { in ZipFile() argument
101 if (mode == (OPEN_READ | OPEN_DELETE)) in ZipFile()
103 else if (mode != OPEN_READ) in ZipFile()

123