Home
last modified time | relevance | path

Searched refs:def (Results 1 – 23 of 23) 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()
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()
DGZIPOutputStream.java156 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()
DZipOutputStream.java178 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/
DPreferences.java569 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
DAbstractPreferences.java285 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/
DDeflaterTest.java1085 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 …]
DInflaterTest.java788 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/
DDeflaterOutputStreamTest.java122 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/
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.java194 HostnameVerifier def = HttpsURLConnection.getDefaultHostnameVerifier(); in test_setDefaultHostnameVerifier() local
200 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/luni/src/main/native/
Djava_lang_StringToReal.cpp95 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/
DSystem.annotated.java71 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/
DSystem.annotated.java71 …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/
DDecimalFormat.java408 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat() local
417 String pattern = LocaleData.get(def).numberPattern; in DecimalFormat()
421 this.symbols = DecimalFormatSymbols.getInstance(def); in DecimalFormat()
/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/annotations/hiddenapi/java/lang/
DSystem.java191 public static java.lang.String getProperty(java.lang.String key, java.lang.String def) { in getProperty() argument
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1274 public static String getProperty(String key, String def) { in getProperty() argument
1281 return props.getProperty(key, def); in getProperty()