Home
last modified time | relevance | path

Searched refs:def (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DDeflaterOutputStream.java47 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 …]
DDeflaterInputStream.java47 protected final Deflater def; field in DeflaterInputStream
116 def = defl; in DeflaterInputStream()
131 def.end(); in close()
185 while (len > 0 && !def.finished()) { in read()
189 if (def.needsInput()) { in read()
193 def.finish(); in read()
195 def.setInput(buf, 0, n); in read()
200 n = def.deflate(b, off, len); in read()
208 if (def.finished()) { in read()
DGZIPOutputStream.java157 if (!def.finished()) { in finish()
158 def.finish(); in finish()
159 while (!def.finished()) { in finish()
160 int len = def.deflate(buf, 0, buf.length); in finish()
161 if (def.finished() && len <= buf.length - TRAILER_SIZE) { in finish()
203 writeInt(def.getTotalIn(), buf, offset + 4); // Number of uncompr. bytes in writeTrailer()
DZipOutputStream.java162 def.setLevel(level); in setLevel()
237 def.finish(); in closeEntry()
238 while (!def.finished()) { in closeEntry()
243 if (e.size != def.getBytesRead()) { in closeEntry()
246 " but got " + def.getBytesRead() + " bytes)"); in closeEntry()
248 if (e.csize != def.getBytesWritten()) { in closeEntry()
251 e.csize + " but got " + def.getBytesWritten() + " bytes)"); in closeEntry()
260 e.size = def.getBytesRead(); in closeEntry()
261 e.csize = def.getBytesWritten(); in closeEntry()
265 def.reset(); in closeEntry()
/libcore/ojluni/src/main/java/java/util/prefs/
DPreferences.java479 public abstract String get(String key, String def); in get() argument
564 public abstract int getInt(String key, int def); in getInt() argument
614 public abstract long getLong(String key, long def); in getLong() argument
669 public abstract boolean getBoolean(String key, boolean def); in getBoolean() argument
718 public abstract float getFloat(String key, float def); in getFloat() argument
767 public abstract double getDouble(String key, double def); in getDouble() argument
831 public abstract byte[] getByteArray(String key, byte[] def); in getByteArray() argument
DAbstractPreferences.java278 public String get(String key, String def) { in get() argument
291 return (result==null ? def : result); in get()
383 public int getInt(String key, int def) { in getInt() argument
384 int result = def; in getInt()
438 public long getLong(String key, long def) { in getLong() argument
439 long result = def; in getLong()
496 public boolean getBoolean(String key, boolean def) { in getBoolean() argument
497 boolean result = def; in getBoolean()
551 public float getFloat(String key, float def) { in getFloat() argument
552 float result = def; in getFloat()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java1074 Deflater def = new Deflater(); in test_getBytesRead() local
1075 assertEquals(0, def.getTotalIn()); in test_getBytesRead()
1076 assertEquals(0, def.getTotalOut()); in test_getBytesRead()
1077 assertEquals(0, def.getBytesRead()); in test_getBytesRead()
1084 def.setInput(input); in test_getBytesRead()
1085 def.finish(); in test_getBytesRead()
1086 int compressedDataLength = def.deflate(output); in test_getBytesRead()
1087 assertEquals(14, def.getTotalIn()); in test_getBytesRead()
1088 assertEquals(compressedDataLength, def.getTotalOut()); in test_getBytesRead()
1089 assertEquals(14, def.getBytesRead()); in test_getBytesRead()
[all …]
DInflaterTest.java763 Deflater def = new Deflater(); in test_getBytesRead() local
765 assertEquals(0, def.getTotalIn()); in test_getBytesRead()
766 assertEquals(0, def.getTotalOut()); in test_getBytesRead()
767 assertEquals(0, def.getBytesRead()); in test_getBytesRead()
774 def.setInput(input); in test_getBytesRead()
775 def.finish(); in test_getBytesRead()
776 def.deflate(output); in test_getBytesRead()
789 Deflater def = new Deflater(); in test_getBytesWritten() local
791 assertEquals(0, def.getTotalIn()); in test_getBytesWritten()
792 assertEquals(0, def.getTotalOut()); in test_getBytesWritten()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterOutputStreamTest.java118 Deflater def = new FlushingDeflater(); in testSyncFlushDeflater() local
121 DeflaterOutputStream dos = new DeflaterOutputStream(baos, def, deflaterBufferSize); in testSyncFlushDeflater()
167 assertFalse(def.finished()); in testSyncFlushDeflater()
170 def.end(); in testSyncFlushDeflater()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java149 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()
DKeyManagerFactory1Test.java127 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()
DHttpsURLConnectionTest.java187 HostnameVerifier def = HttpsURLConnection.getDefaultHostnameVerifier(); in test_setDefaultHostnameVerifier() local
193 HttpsURLConnection.setDefaultHostnameVerifier(def); in test_setDefaultHostnameVerifier()
/libcore/ojluni/src/main/java/sun/net/
DNetProperties.java90 String def = props.getProperty(key); in get() local
92 return System.getProperty(key, def); in get()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationFactory.java153 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/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java150 List<String> def = list.subList(3, 6); in testSubListRetainAll() local
151 def.retainAll(Arrays.asList("c", "e", "h")); // the RI fails here in testSubListRetainAll()
153 assertEquals(Arrays.asList("e"), def); in testSubListRetainAll()
159 List<String> def = list.subList(3, 6); in testSubListRemoveAll() local
160 def.removeAll(Arrays.asList("c", "e", "h")); // the RI fails here in testSubListRemoveAll()
162 assertEquals(Arrays.asList("d", "f"), def); in testSubListRemoveAll()
/libcore/luni/src/test/java/tests/security/cert/
DCertStore1Test.java136 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/ojluni/src/main/java/java/text/
DDecimalFormat.java400 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat() local
402 String pattern = cachedLocaleData.get(def); in DecimalFormat()
405 pattern = LocaleData.get(def).numberPattern; in DecimalFormat()
407 cachedLocaleData.putIfAbsent(def, pattern); in DecimalFormat()
409 this.symbols = new DecimalFormatSymbols(def); in DecimalFormat()
/libcore/luni/src/main/native/
Djava_lang_StringToReal.cpp92 uint64_t def[DEFAULT_DOUBLE_WIDTH]; in createDouble() local
103 f = def; in createDouble()
483 uint64_t def[DEFAULT_FLOAT_WIDTH]; in createFloat() local
494 f = def; in createFloat()
/libcore/luni/src/test/java/libcore/xml/
DDomTest.java1578 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/src/main/java/java/lang/
DSystem.java1206 public static String getProperty(String key, String def) { in getProperty() argument
1209 return props.getProperty(key, def); in getProperty()