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

/libcore/ojluni/src/main/java/java/util/zip/
H A DDeflaterOutputStream.java47 protected Deflater def; field in class:DeflaterOutputStream
67 * @param def the compressor ("deflater")
80 Deflater def,
84 if (out == null || def == null) {
89 this.def = def;
100 * the 4-argument constructor DeflaterOutputStream(out, def, size, false).
103 * @param def the compressor ("deflater")
107 public DeflaterOutputStream(OutputStream out, Deflater def, int size) { argument
108 this(out, def, siz
79 DeflaterOutputStream(OutputStream out, Deflater def, int size, boolean syncFlush) argument
125 DeflaterOutputStream(OutputStream out, Deflater def, boolean syncFlush) argument
142 DeflaterOutputStream(OutputStream out, Deflater def) argument
[all...]
H A DDeflaterInputStream.java47 protected final Deflater def; field in class:DeflaterInputStream
116 def = defl;
131 def.end();
184 while (len > 0 && !def.finished()) {
188 if (def.needsInput()) {
192 def.finish();
194 def.setInput(buf, 0, n);
199 n = def.deflate(b, off, len);
206 if (def.finished()) {
H A DGZIPOutputStream.java156 if (!def.finished()) {
157 def.finish();
158 while (!def.finished()) {
159 int len = def.deflate(buf, 0, buf.length);
160 if (def.finished() && len <= buf.length - TRAILER_SIZE) {
202 writeInt(def.getTotalIn(), buf, offset + 4); // Number of uncompr. bytes
H A DZipOutputStream.java178 def.setLevel(level);
255 def.finish();
256 while (!def.finished()) {
261 if (e.size != def.getBytesRead()) {
264 " but got " + def.getBytesRead() + " bytes)");
266 if (e.csize != def.getBytesWritten()) {
269 e.csize + " but got " + def.getBytesWritten() + " bytes)");
278 e.size = def.getBytesRead();
279 e.csize = def.getBytesWritten();
283 def
[all...]
/libcore/ojluni/src/main/java/java/util/prefs/
H A DPreferences.java469 * @param def the value to be returned in the event that this
471 * @return the value associated with <tt>key</tt>, or <tt>def</tt>
477 * <tt>null</tt> value for <tt>def</tt> <i>is</i> permitted.)
479 public abstract String get(String key, String def); argument
550 * @param def the value to be returned in the event that this
555 * <tt>key</tt> in this preference node, or <tt>def</tt> if the
564 public abstract int getInt(String key, int def); argument
600 * @param def the value to be returned in the event that this
605 * <tt>key</tt> in this preference node, or <tt>def</tt> if the
614 public abstract long getLong(String key, long def); argument
669 getBoolean(String key, boolean def) argument
718 getFloat(String key, float def) argument
767 getDouble(String key, double def) argument
831 getByteArray(String key, byte[] def) argument
[all...]
H A DAbstractPreferences.java266 * this invocation returns <tt>def</tt>.
269 * @param def the value to be returned in the event that this
271 * @return the value associated with <tt>key</tt>, or <tt>def</tt>
278 public String get(String key, String def) { argument
291 return (result==null ? def : result);
371 * value is returned by this method. Otherwise, <tt>def</tt> is returned.
374 * @param def the value to be returned in the event that this
378 * <tt>key</tt> in this preference node, or <tt>def</tt> if the
385 public int getInt(String key, int def) { argument
386 int result = def;
440 getLong(String key, long def) argument
498 getBoolean(String key, boolean def) argument
553 getFloat(String key, float def) argument
608 getDouble(String key, double def) argument
654 getByteArray(String key, byte[] def) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DDeflaterOutputStreamTest.java122 Deflater def = new FlushingDeflater();
125 DeflaterOutputStream dos = new DeflaterOutputStream(baos, def, deflaterBufferSize);
171 assertFalse(def.finished());
174 def.end();
/libcore/ojluni/src/main/java/sun/net/
H A DNetProperties.java90 String def = props.getProperty(key);
92 return System.getProperty(key, def);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterTest.java1085 Deflater def = new Deflater();
1086 assertEquals(0, def.getTotalIn());
1087 assertEquals(0, def.getTotalOut());
1088 assertEquals(0, def.getBytesRead());
1095 def.setInput(input);
1096 def.finish();
1097 int compressedDataLength = def.deflate(output);
1098 assertEquals(14, def.getTotalIn());
1099 assertEquals(compressedDataLength, def.getTotalOut());
1100 assertEquals(14, def
[all...]
H A DInflaterTest.java789 Deflater def = new Deflater();
791 assertEquals(0, def.getTotalIn());
792 assertEquals(0, def.getTotalOut());
793 assertEquals(0, def.getBytesRead());
800 def.setInput(input);
801 def.finish();
802 def.deflate(output);
808 def.end();
817 Deflater def = new Deflater();
819 assertEquals(0, def
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java153 nextNew: for (AnnotationMember def : defs) {
155 if (val.name.equals(def.name)) {
158 merged.add(val.setDefinition(def));
162 merged.add(def); // brand new element
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DKeyManagerFactory1Test.java127 String def = KeyManagerFactory.getDefaultAlgorithm();
129 assertNull("DefaultAlgorithm must be null", def);
131 assertEquals("Invalid default algorithm", def, defaultAlgorithm);
137 if (def == null) {
138 def = "";
140 Security.setProperty("ssl.KeyManagerFactory.algorithm", def);
142 KeyManagerFactory.getDefaultAlgorithm(), def);
H A DTrustManagerFactory1Test.java149 String def = TrustManagerFactory.getDefaultAlgorithm();
151 assertNull("DefaultAlgorithm must be null", def);
153 assertEquals("Invalid default algorithm", def, getDefaultAlgorithm());
159 if (def == null) {
160 def = "";
162 Security.setProperty("ssl.TrustManagerFactory.algorithm", def);
164 TrustManagerFactory.getDefaultAlgorithm(), def);
H A DHttpsURLConnectionTest.java194 HostnameVerifier def = HttpsURLConnection.getDefaultHostnameVerifier();
200 HttpsURLConnection.setDefaultHostnameVerifier(def);
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java150 List<String> def = list.subList(3, 6);
151 def.retainAll(Arrays.asList("c", "e", "h")); // the RI fails here
153 assertEquals(Arrays.asList("e"), def);
159 List<String> def = list.subList(3, 6);
160 def.removeAll(Arrays.asList("c", "e", "h")); // the RI fails here
162 assertEquals(Arrays.asList("d", "f"), def);
/libcore/luni/src/test/java/tests/security/cert/
H A DCertStore1Test.java136 String def = "Proba.cert.store.type";
143 Security.setProperty("certstore.type", def);
145 assertEquals("Incorrect default type", dt, def);
/libcore/luni/src/main/native/
H A Djava_lang_StringToReal.cpp92 uint64_t def[DEFAULT_DOUBLE_WIDTH]; local
103 f = def;
484 uint64_t def[DEFAULT_FLOAT_WIDTH]; local
495 f = def;
/libcore/ojluni/src/main/java/java/text/
H A DDecimalFormat.java403 Locale def = Locale.getDefault(Locale.Category.FORMAT);
405 String pattern = cachedLocaleData.get(def);
408 pattern = LocaleData.get(def).numberPattern;
410 cachedLocaleData.putIfAbsent(def, pattern);
412 this.symbols = new DecimalFormatSymbols(def);
/libcore/luni/src/test/java/libcore/xml/
H A DDomTest.java1560 String xml = "<foo>abc<![CDATA[def]]>ghi</foo>";
1571 String xml = "<foo>abc<![CDATA[def]]>ghi</foo>";
1578 CDATASection def = (CDATASection) abc.getNextSibling();
1579 assertEquals("def", def.getTextContent());
1580 Text ghi = (Text) def.getNextSibling();
1590 String xml = "<!DOCTYPE foo [ <!ENTITY def \"DEF\"> ]>"
1591 + "<foo>abc&def;ghi</foo>";
1603 String xml = "<!DOCTYPE foo [ <!ENTITY def \"DEF\"> ]>"
1604 + "<foo>abc&def;gh
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DSystem.java1249 * @param def a default value.
1263 public static String getProperty(String key, String def) { argument
1270 return props.getProperty(key, def);

Completed in 659 milliseconds