Searched refs:put (Results 76 - 100 of 489) sorted by relevance

1234567891011>>

/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest2.java38 map.put("one", "1");
52 map.put("one", "1");
/libcore/luni/src/main/java/java/net/
H A DAddressCache.java117 public void put(String hostname, int netId, InetAddress[] addresses) { method in class:AddressCache
118 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses));
126 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage));
/libcore/luni/src/main/java/libcore/util/
H A DBasicLruCache.java67 map.put(key, result);
82 public synchronized final V put(K key, V value) { method in class:BasicLruCache
89 V previous = map.put(key, value);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DCharBufferTest.java195 other.put(buf);
437 * Class under test for java.nio.CharBuffer put(char)
443 CharBuffer ret = buf.put((char) i);
448 buf.put((char) 0);
456 * Class under test for java.nio.CharBuffer put(char[])
465 CharBuffer ret = buf.put(array);
470 buf.put(array);
476 buf.put((char[]) null);
484 * Class under test for java.nio.CharBuffer put(char[], int, int)
490 buf.put((cha
[all...]
H A DLongBufferTest.java395 * Class under test for java.nio.LongBuffer put(long)
401 LongBuffer ret = buf.put((long) i);
406 buf.put(0);
414 * Class under test for java.nio.LongBuffer put(long[])
422 LongBuffer ret = buf.put(array);
427 buf.put(array);
434 buf.put((long[])null);
442 * Class under test for java.nio.LongBuffer put(long[], int, int)
448 buf.put(new long[buf.capacity() + 1], 0, buf.capacity() + 1);
455 buf.put(arra
[all...]
H A DFloatBufferTest.java418 * Class under test for java.nio.FloatBuffer put(float)
424 FloatBuffer ret = buf.put((float) i);
429 buf.put(0);
437 * Class under test for java.nio.FloatBuffer put(float[])
445 FloatBuffer ret = buf.put(array);
450 buf.put(array);
457 buf.put((float[])null);
465 * Class under test for java.nio.FloatBuffer put(float[], int, int)
471 buf.put(new float[buf.capacity() + 1], 0, buf.capacity() + 1);
478 buf.put(arra
[all...]
H A DIntBufferTest.java394 * Class under test for java.nio.IntBuffer put(int)
400 IntBuffer ret = buf.put((int) i);
405 buf.put(0);
413 * Class under test for java.nio.IntBuffer put(int[])
421 IntBuffer ret = buf.put(array);
426 buf.put(array);
433 buf.put((int[])null);
441 * Class under test for java.nio.IntBuffer put(int[], int, int)
447 buf.put(new int[buf.capacity() + 1], 0, buf.capacity() + 1);
454 buf.put(arra
[all...]
H A DShortBufferTest.java381 * Class under test for java.nio.ShortBuffer put(short)
387 ShortBuffer ret = buf.put((short) i);
392 buf.put((short) 0);
400 * Class under test for java.nio.ShortBuffer put(short[])
408 ShortBuffer ret = buf.put(array);
413 buf.put(array);
420 buf.put((short[])null);
428 * Class under test for java.nio.ShortBuffer put(short[], int, int)
434 buf.put(new short[buf.capacity() + 1], 0, buf.capacity() + 1);
441 buf.put(arra
[all...]
H A DDirectByteBufferTest.java80 shortBuf.put(shortArray);
93 intBuf.put(intArray);
107 longBuf.put(longArray);
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
H A DTCKIsoChronology.java349 fieldValues.put(ChronoField.ERA, (long) e);
352 fieldValues.put(ChronoField.YEAR_OF_ERA, (long) yoe);
355 fieldValues.put(ChronoField.YEAR, (long) y);
436 fieldValues.put(ChronoField.YEAR, (long) y);
437 fieldValues.put(ChronoField.MONTH_OF_YEAR, (long) m);
438 fieldValues.put(ChronoField.DAY_OF_MONTH, (long) d);
447 fieldValues.put(ChronoField.YEAR, (long) y);
448 fieldValues.put(ChronoField.MONTH_OF_YEAR, (long) m);
449 fieldValues.put(ChronoField.DAY_OF_MONTH, (long) d);
470 fieldValues.put(ChronoFiel
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DHashtableTest.java81 ht.put("one", "1");
82 ht.put("two", "2");
83 ht.put("three", "3");
95 ht.put("foo", v);
145 hashtable1.put(i, 1);
H A DEvilMapTest.java45 @Override public V put(K key, V val) { return val; } method in class:EvilMapTest.EvilMap
51 evil.put("hi", "there");
61 evil.put("hi", "there");
71 evil.put("hi", "there");
81 evil.put("hi", "there");
91 evil.put("hi", "there");
101 evil.put("hi", "there");
H A DWeakHashMapTest.java32 map.put(data[i], "");
44 map.put(new Data(), "");
60 map.put(data[i], data[i].value);
/libcore/luni/src/test/java/tests/java/sql/
H A DSelectFunctionalityTest.java242 value.put(1, DatabaseCreator.defaultString + "1");
243 value.put(2, DatabaseCreator.defaultString + "1");
244 value.put(3, DatabaseCreator.defaultString + "1");
245 value.put(4, DatabaseCreator.defaultString + "1");
246 value.put(5, DatabaseCreator.defaultString + "1");
278 value.put(3001, 2008);
279 value.put(3002, 2007);
280 value.put(3006, 2008);
281 value.put(3009, 2002);
282 value.put(300
[all...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java130 public void put(String name, boolean val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
131 delegate.put(name, val);
135 public void put(String name, byte val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
136 delegate.put(name, val);
140 public void put(String name, char val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
141 delegate.put(name, val);
145 public void put(String name, short val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
146 delegate.put(name, val);
150 public void put(String name, int val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
151 delegate.put(nam
155 public void put(String name, long val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
160 public void put(String name, float val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
165 public void put(String name, double val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
170 public void put(String name, Object val) { method in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDOMConfigurationImpl.java54 PARAMETERS.put("canonical-form", new FixedParameter(false));
60 PARAMETERS.put("cdata-sections", new BooleanParameter() {
72 PARAMETERS.put("check-character-normalization", new FixedParameter(false));
77 PARAMETERS.put("comments", new BooleanParameter() {
90 PARAMETERS.put("datatype-normalization", new BooleanParameter() {
108 PARAMETERS.put("element-content-whitespace", new FixedParameter(true));
113 PARAMETERS.put("entities", new BooleanParameter() {
125 PARAMETERS.put("error-handler", new Parameter() {
151 PARAMETERS.put("infoset", new BooleanParameter() {
181 PARAMETERS.put("namespace
[all...]
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldLogManagerTest.java50 props.put("handlers", className + "$MockHandler " + className + "$MockHandler");
51 props.put("java.util.logging.FileHandler.pattern", "%h/java%u.log");
52 props.put("java.util.logging.FileHandler.limit", "50000");
53 props.put("java.util.logging.FileHandler.count", "5");
54 props.put("java.util.logging.FileHandler.formatter", "java.util.logging.XMLFormatter");
55 props.put(".level", "FINE");
56 props.put("java.util.logging.ConsoleHandler.level", "OFF");
57 props.put("java.util.logging.ConsoleHandler.formatter","java.util.logging.SimpleFormatter");
58 props.put("LogManagerTestFoo.handlers", "java.util.logging.ConsoleHandler");
59 props.put("LogManagerTestFo
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DExtendedKeyUsageExtension.java114 map.put(ObjectIdentifier.newInternal(anyExtendedKeyUsageOidData), "anyExtendedKeyUsage");
115 map.put(ObjectIdentifier.newInternal(serverAuthOidData), "serverAuth");
116 map.put(ObjectIdentifier.newInternal(clientAuthOidData), "clientAuth");
117 map.put(ObjectIdentifier.newInternal(codeSigningOidData), "codeSigning");
118 map.put(ObjectIdentifier.newInternal(emailProtectionOidData), "emailProtection");
119 map.put(ObjectIdentifier.newInternal(ipsecEndSystemOidData), "ipsecEndSystem");
120 map.put(ObjectIdentifier.newInternal(ipsecTunnelOidData), "ipsecTunnel");
121 map.put(ObjectIdentifier.newInternal(ipsecUserOidData), "ipsecUser");
122 map.put(ObjectIdentifier.newInternal(timeStampingOidData), "timeStamping");
123 map.put(ObjectIdentifie
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DSAXParserTestSupport.java106 storage.put(KEYS[i], str.toString());
181 hm.put(KEY_IS_END_DOC, data_isEndDocument.toString());
182 hm.put(KEY_IS_START_DOC, data_isStartDocument.toString());
183 hm.put(KEY_TEXT, data_text.toString());
184 hm.put(KEY_ERROR, data_error.toString());
185 hm.put(KEY_FATAL_ERROR, data_fatalError.toString());
186 hm.put(KEY_WARNING, data_warning.toString());
187 hm.put(KEY_END_ELEMENT, data_endElement.toString());
188 hm.put(KEY_END_PREFIX_MAPPING, data_endPrefixMapping.toString());
190 hm.put(KEY_PROCESSING_INSTRUCTIO
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DAbstractPreferencesTest.java204 pref.put("testClearKey", "testClearValue");
205 pref.put("testClearKey1", "testClearValue1");
217 pref.put("testGetkey", "value");
253 pref.put("testGetBooleanKey", "false");
254 pref.put("testGetBooleanKey2", "value");
307 pref.put("testGetByteArrayKey", "abc=");
308 pref.put("testGetByteArrayKey2", new String(b64Array, "UTF-8"));
309 pref.put("invalidKey", "<>?");
334 pref.put("testGetDoubleKey", "1");
335 pref.put("testGetDoubleKey
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONObject.java71 * JSONObject#NULL}. In particular, calling {@code put(name, null)} removes the
72 * named entry from the object but {@code put(name, JSONObject.NULL)} stores an
141 nameValuePairs.put(key, wrap(entry.getValue()));
189 nameValuePairs.put(name, value);
207 public JSONObject put(String name, boolean value) throws JSONException { method in class:JSONObject
208 nameValuePairs.put(checkName(name), value);
220 public JSONObject put(String name, double value) throws JSONException { method in class:JSONObject
221 nameValuePairs.put(checkName(name), JSON.checkDouble(value));
231 public JSONObject put(String name, int value) throws JSONException { method in class:JSONObject
232 nameValuePairs.put(checkNam
242 public JSONObject put(String name, long value) throws JSONException { method in class:JSONObject
258 public JSONObject put(String name, Object value) throws JSONException { method in class:JSONObject
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarOutputStreamTest.java47 att.put(Attributes.Name.MANIFEST_VERSION, "1.0");
48 att.put(Attributes.Name.MAIN_CLASS, "foo.bar.execjartest.Foo");
49 att.put(Attributes.Name.CLASS_PATH, barZip.getName());
/libcore/luni/src/test/java/libcore/java/security/
H A DDomainLoadStoreParameterTest.java75 returnedParams.put("some_other_keystore", protectionParameter);
84 protectionParameters.put("some_other_keystore", protectionParameter);
106 protectionParameters.put(keyStoreName, protectionParameter);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DProvider2Test.java56 provTest.put("test.prop", "this is a test property");
99 provTest.put("test.prop", "this is a test property");
113 provTest.put("test.prop", "this is a test property");
/libcore/dalvik/src/main/java/dalvik/system/
H A DVMDebug.java461 runtimeStatsMap.put("art.gc.gc-count", 0);
462 runtimeStatsMap.put("art.gc.gc-time", 1);
463 runtimeStatsMap.put("art.gc.bytes-allocated", 2);
464 runtimeStatsMap.put("art.gc.bytes-freed", 3);
465 runtimeStatsMap.put("art.gc.blocking-gc-count", 4);
466 runtimeStatsMap.put("art.gc.blocking-gc-time", 5);
467 runtimeStatsMap.put("art.gc.gc-count-rate-histogram", 6);
468 runtimeStatsMap.put("art.gc.blocking-gc-count-rate-histogram", 7);
502 map.put(name, value);

Completed in 475 milliseconds

1234567891011>>