/libcore/ojluni/src/main/java/java/util/zip/ |
D | DeflaterOutputStream.java | 47 protected Deflater def; field in DeflaterOutputStream 79 Deflater def, in DeflaterOutputStream() argument 83 if (out == null || def == null) { in DeflaterOutputStream() 88 this.def = def; in DeflaterOutputStream() 106 public DeflaterOutputStream(OutputStream out, Deflater def, int size) { in DeflaterOutputStream() argument 107 this(out, def, size, false); in DeflaterOutputStream() 125 Deflater def, in DeflaterOutputStream() argument 127 this(out, def, 512, syncFlush); in DeflaterOutputStream() 141 public DeflaterOutputStream(OutputStream out, Deflater def) { in DeflaterOutputStream() argument 142 this(out, def, 512, false); in DeflaterOutputStream() [all …]
|
D | DeflaterInputStream.java | 47 protected final Deflater def; field in DeflaterInputStream 116 def = defl; in DeflaterInputStream() 131 def.end(); in close() 184 while (len > 0 && !def.finished()) { in read() 188 if (def.needsInput()) { in read() 192 def.finish(); in read() 194 def.setInput(buf, 0, n); in read() 199 n = def.deflate(b, off, len); in read() 214 if (def.finished()) { in read()
|
D | GZIPOutputStream.java | 166 if (!def.finished()) { in finish() 168 def.finish(); in finish() 169 while (!def.finished()) { in finish() 170 int len = def.deflate(buf, 0, buf.length); in finish() 171 if (def.finished() && len <= buf.length - TRAILER_SIZE) { in finish() 188 def.end(); in finish() 218 writeInt(def.getTotalIn(), buf, offset + 4); // Number of uncompr. bytes in writeTrailer()
|
D | ZipOutputStream.java | 181 def.setLevel(level); in setLevel() 268 def.finish(); in closeEntry() 269 while (!def.finished()) { in closeEntry() 274 if (e.size != def.getBytesRead()) { in closeEntry() 277 " but got " + def.getBytesRead() + " bytes)"); in closeEntry() 279 if (e.csize != def.getBytesWritten()) { in closeEntry() 282 e.csize + " but got " + def.getBytesWritten() + " bytes)"); in closeEntry() 291 e.size = def.getBytesRead(); in closeEntry() 292 e.csize = def.getBytesWritten(); in closeEntry() 296 def.reset(); in closeEntry() [all …]
|
/libcore/ojluni/src/test/java/util/zip/ |
D | DeInflate.java | 44 static void checkStream(Deflater def, byte[] in, int len, in checkStream() argument 52 try (DeflaterOutputStream defos = new DeflaterOutputStream(baos, def)) { in checkStream() argument 68 throw new RuntimeException("De/inflater failed:" + def); in checkStream() 72 static void checkByteBuffer(Deflater def, Inflater inf, in checkByteBuffer() argument 77 def.reset(); in checkByteBuffer() 80 def.setInput(in); in checkByteBuffer() 81 def.finish(); in checkByteBuffer() 82 int m = def.deflate(out1); in checkByteBuffer() 96 throw new RuntimeException("De/inflater(buffer) failed:" + def); in checkByteBuffer() 100 static void checkByteBufferReadonly(Deflater def, Inflater inf, in checkByteBufferReadonly() argument [all …]
|
D | CloseInflaterDeflaterTest.java | 144 DeflaterOutputStream def = new DeflaterOutputStream(outStream); in testDeflaterOutputStream() local 145 assertThrows(IOException.class , () -> def.write(inputBytes, 0, INPUT_LENGTH)); in testDeflaterOutputStream() 149 def.close(); in testDeflaterOutputStream() 151 def.finish(); in testDeflaterOutputStream() 155 assertThrows(NullPointerException.class , () -> def.write(inputBytes, 0, INPUT_LENGTH)); in testDeflaterOutputStream() 165 DeflaterInputStream def = new DeflaterInputStream(inStream); in testDeflaterInputStream() local 166 assertThrows(IOException.class , () -> def.read(inputBytes, 0, INPUT_LENGTH)); in testDeflaterInputStream() 168 def.close(); in testDeflaterInputStream() 170 assertThrows(IOException.class , () -> def.read(inputBytes, 0, INPUT_LENGTH)); in testDeflaterInputStream()
|
/libcore/ojluni/src/main/java/sun/security/jca/ |
D | JCAUtil.java | 61 private static volatile SecureRandom def = null; field in JCAUtil 75 def = null; in clearDefSecureRandom() 84 SecureRandom result = def; in getDefSecureRandom() 87 result = def; in getDefSecureRandom() 89 def = result = new SecureRandom(); in getDefSecureRandom()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | Preferences.java | 569 public abstract String get(String key, String def); in get() argument 654 public abstract int getInt(String key, int def); in getInt() argument 704 public abstract long getLong(String key, long def); in getLong() argument 759 public abstract boolean getBoolean(String key, boolean def); in getBoolean() argument 808 public abstract float getFloat(String key, float def); in getFloat() argument 857 public abstract double getDouble(String key, double def); in getDouble() argument 921 public abstract byte[] getByteArray(String key, byte[] def); in getByteArray() argument
|
D | AbstractPreferences.java | 285 public String get(String key, String def) { in get() argument 298 return (result==null ? def : result); in get() 392 public int getInt(String key, int def) { in getInt() argument 393 int result = def; in getInt() 447 public long getLong(String key, long def) { in getLong() argument 448 long result = def; in getLong() 505 public boolean getBoolean(String key, boolean def) { in getBoolean() argument 506 boolean result = def; in getBoolean() 560 public float getFloat(String key, float def) { in getFloat() argument 561 float result = def; in getFloat() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterTest.java | 1071 Deflater def = new Deflater(); in test_getBytesRead() local 1072 assertEquals(0, def.getTotalIn()); in test_getBytesRead() 1073 assertEquals(0, def.getTotalOut()); in test_getBytesRead() 1074 assertEquals(0, def.getBytesRead()); in test_getBytesRead() 1081 def.setInput(input); in test_getBytesRead() 1082 def.finish(); in test_getBytesRead() 1083 int compressedDataLength = def.deflate(output); in test_getBytesRead() 1084 assertEquals(14, def.getTotalIn()); in test_getBytesRead() 1085 assertEquals(compressedDataLength, def.getTotalOut()); in test_getBytesRead() 1086 assertEquals(14, def.getBytesRead()); in test_getBytesRead() [all …]
|
D | InflaterTest.java | 788 Deflater def = new Deflater(); in test_getBytesRead() local 790 assertEquals(0, def.getTotalIn()); in test_getBytesRead() 791 assertEquals(0, def.getTotalOut()); in test_getBytesRead() 792 assertEquals(0, def.getBytesRead()); in test_getBytesRead() 799 def.setInput(input); in test_getBytesRead() 800 def.finish(); in test_getBytesRead() 801 def.deflate(output); in test_getBytesRead() 807 def.end(); in test_getBytesRead() 816 Deflater def = new Deflater(); in test_getBytesWritten() local 818 assertEquals(0, def.getTotalIn()); in test_getBytesWritten() [all …]
|
/libcore/ojluni/src/test/java/util/zip/ZipFile/ |
D | TestCleaner.java | 81 var def = new Deflater(); in testDeInflater() local 82 list.add(zsRefDef.get(def)); in testDeInflater() 83 def.setInput("hello".getBytes()); in testDeInflater() 84 def.finish(); in testDeInflater() 85 int n = def.deflate(buf1); in testDeInflater()
|
/libcore/luni/src/test/native/ |
D | tests_support_AndroidProperties.cpp | 27 ScopedUtfChars def(env, jdef); in Java_tests_support_AndroidProperties_getString() local 28 std::string prop = android::base::GetProperty(prop_name.c_str(), def.c_str()); in Java_tests_support_AndroidProperties_getString()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 122 Deflater def = new FlushingDeflater(); in testSyncFlushDeflater() local 125 DeflaterOutputStream dos = new DeflaterOutputStream(baos, def, deflaterBufferSize); in testSyncFlushDeflater() 171 assertFalse(def.finished()); in testSyncFlushDeflater() 174 def.end(); in testSyncFlushDeflater()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | TrustManagerFactory1Test.java | 149 String def = TrustManagerFactory.getDefaultAlgorithm(); in test_getDefaultAlgorithm() local 151 assertNull("DefaultAlgorithm must be null", def); in test_getDefaultAlgorithm() 153 assertEquals("Invalid default algorithm", def, getDefaultAlgorithm()); in test_getDefaultAlgorithm() 159 if (def == null) { in test_getDefaultAlgorithm() 160 def = ""; in test_getDefaultAlgorithm() 162 Security.setProperty("ssl.TrustManagerFactory.algorithm", def); in test_getDefaultAlgorithm() 164 TrustManagerFactory.getDefaultAlgorithm(), def); in test_getDefaultAlgorithm()
|
D | KeyManagerFactory1Test.java | 127 String def = KeyManagerFactory.getDefaultAlgorithm(); in test_getDefaultAlgorithm() local 129 assertNull("DefaultAlgorithm must be null", def); in test_getDefaultAlgorithm() 131 assertEquals("Invalid default algorithm", def, defaultAlgorithm); in test_getDefaultAlgorithm() 137 if (def == null) { in test_getDefaultAlgorithm() 138 def = ""; in test_getDefaultAlgorithm() 140 Security.setProperty("ssl.KeyManagerFactory.algorithm", def); in test_getDefaultAlgorithm() 142 KeyManagerFactory.getDefaultAlgorithm(), def); in test_getDefaultAlgorithm()
|
D | HttpsURLConnectionTest.java | 194 HostnameVerifier def = HttpsURLConnection.getDefaultHostnameVerifier(); in test_setDefaultHostnameVerifier() local 200 HttpsURLConnection.setDefaultHostnameVerifier(def); in test_setDefaultHostnameVerifier()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | NetProperties.java | 90 String def = props.getProperty(key); in get() local 92 return System.getProperty(key, def); in get()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationFactory.java | 153 nextNew: for (AnnotationMember def : defs) { in readObject() 155 if (val.name.equals(def.name)) { in readObject() 158 merged.add(val.setDefinition(def)); in readObject() 162 merged.add(def); // brand new element in readObject()
|
/libcore/ojluni/src/test/java/util/regex/ |
D | TestCases.txt | 136 [abc]+[def]+[ghi]+ 215 [^[a-c][d-f]&&abc[def]] 219 [^[a-c][d-f]&&abc[def]] 241 [abc[def]] 245 [abc[def]] 297 [abc[def]ghi] 301 [abc[def]ghi] 305 [abc[def]ghi] 309 [abc[def]ghi] 401 [[a-c][d-f]&&abc[def]] [all …]
|
/libcore/ojluni/src/test/java/util/Properties/ |
D | input.txt | 5 def\
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 159 List<String> def = list.subList(3, 6); in testSubListRetainAll() local 160 def.retainAll(Arrays.asList("c", "e", "h")); // the RI fails here in testSubListRetainAll() 162 assertEquals(Arrays.asList("e"), def); in testSubListRetainAll() 168 List<String> def = list.subList(3, 6); in testSubListRemoveAll() local 169 def.removeAll(Arrays.asList("c", "e", "h")); // the RI fails here in testSubListRemoveAll() 171 assertEquals(Arrays.asList("d", "f"), def); in testSubListRemoveAll()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertStore1Test.java | 136 String def = "Proba.cert.store.type"; in testCertStore01() local 143 Security.setProperty("certstore.type", def); in testCertStore01() 145 assertEquals("Incorrect default type", dt, def); in testCertStore01()
|
/libcore/luni/src/main/native/ |
D | java_lang_StringToReal.cpp | 95 uint64_t def[DEFAULT_DOUBLE_WIDTH]; in createDouble() local 106 f = def; in createDouble() 487 uint64_t def[DEFAULT_FLOAT_WIDTH]; in createFloat() local 498 f = def; in createFloat()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestUnicodeExtension.java | 849 Locale def = Locale.getDefault(); in test_localizedBy() local 851 Stream.of(def, Locale.JAPAN).forEach(l -> { in test_localizedBy() 866 Locale.setDefault(def); in test_localizedBy()
|