/libcore/ojluni/src/main/java/java/util/zip/ |
D | DeflaterOutputStream.java | 47 protected Deflater def; field in DeflaterOutputStream 80 Deflater def, in DeflaterOutputStream() argument 84 if (out == null || def == null) { in DeflaterOutputStream() 89 this.def = def; in DeflaterOutputStream() 107 public DeflaterOutputStream(OutputStream out, Deflater def, int size) { in DeflaterOutputStream() argument 108 this(out, def, size, false); in DeflaterOutputStream() 126 Deflater def, in DeflaterOutputStream() argument 128 this(out, def, 512, syncFlush); in DeflaterOutputStream() 142 public DeflaterOutputStream(OutputStream out, Deflater def) { in DeflaterOutputStream() argument 143 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 | 156 if (!def.finished()) { in finish() 157 def.finish(); in finish() 158 while (!def.finished()) { in finish() 159 int len = def.deflate(buf, 0, buf.length); in finish() 160 if (def.finished() && len <= buf.length - TRAILER_SIZE) { in finish() 202 writeInt(def.getTotalIn(), buf, offset + 4); // Number of uncompr. bytes in writeTrailer()
|
D | ZipOutputStream.java | 178 def.setLevel(level); in setLevel() 255 def.finish(); in closeEntry() 256 while (!def.finished()) { in closeEntry() 261 if (e.size != def.getBytesRead()) { in closeEntry() 264 " but got " + def.getBytesRead() + " bytes)"); in closeEntry() 266 if (e.csize != def.getBytesWritten()) { in closeEntry() 269 e.csize + " but got " + def.getBytesWritten() + " bytes)"); in closeEntry() 278 e.size = def.getBytesRead(); in closeEntry() 279 e.csize = def.getBytesWritten(); in closeEntry() 283 def.reset(); in closeEntry()
|
/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 | 1085 Deflater def = new Deflater(); in test_getBytesRead() local 1086 assertEquals(0, def.getTotalIn()); in test_getBytesRead() 1087 assertEquals(0, def.getTotalOut()); in test_getBytesRead() 1088 assertEquals(0, def.getBytesRead()); in test_getBytesRead() 1095 def.setInput(input); in test_getBytesRead() 1096 def.finish(); in test_getBytesRead() 1097 int compressedDataLength = def.deflate(output); in test_getBytesRead() 1098 assertEquals(14, def.getTotalIn()); in test_getBytesRead() 1099 assertEquals(compressedDataLength, def.getTotalOut()); in test_getBytesRead() 1100 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/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/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/annotations/mmodule/java/lang/ |
D | System.annotated.java | 71 public static java.lang.String getProperty(java.lang.String key, java.lang.String def) { throw new … in getProperty() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | System.annotated.java | 71 …util.NonNull java.lang.String key, @libcore.util.Nullable java.lang.String def) { throw new Runtim… in getProperty() argument
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 409 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat() local 418 String pattern = LocaleData.get(def).numberPattern; in DecimalFormat() 422 this.symbols = DecimalFormatSymbols.getInstance(def); in DecimalFormat()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | DomTest.java | 1578 CDATASection def = (CDATASection) abc.getNextSibling(); in testCoalescingOff() local 1579 assertEquals("def", def.getTextContent()); in testCoalescingOff() 1580 Text ghi = (Text) def.getNextSibling(); in testCoalescingOff() 1613 EntityReference def = (EntityReference) abc.getNextSibling(); in testExpandingEntityReferencesOff() local 1614 assertEquals("def", def.getNodeName()); in testExpandingEntityReferencesOff() 1616 Text ghi = (Text) def.getNextSibling(); in testExpandingEntityReferencesOff() 1626 NodeList defChildren = def.getChildNodes(); in testExpandingEntityReferencesOff()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | System.java | 191 public static java.lang.String getProperty(java.lang.String key, java.lang.String def) { in getProperty() argument
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1262 public static String getProperty(String key, String def) { in getProperty() argument 1269 return props.getProperty(key, def); in getProperty()
|