Home
last modified time | relevance | path

Searched refs:put (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/libcore/support/src/test/java/tests/support/
DSupport_TestProvider.java55 put("MessageDigest.SHA", in registerServices()
57 put("MessageDigest.MD5", in registerServices()
60 put("Alg.Alias.MessageDigest.SHA1", "SHA"); in registerServices()
61 put("Alg.Alias.MessageDigest.SHA-1", "SHA"); in registerServices()
62 put("Alg.Alias.MessageDigest.OID.1.3.14.3.2.26", "SHA"); in registerServices()
63 put("Alg.Alias.MessageDigest.1.3.14.3.2.26", "SHA"); in registerServices()
66 put("AlgorithmParameterGenerator.DSA", in registerServices()
70 put("AlgorithmParameters.DSA", in registerServices()
73 put("Alg.Alias.AlgorithmParameters.1.2.840.10040.4.1", "DSA"); in registerServices()
74 put("Alg.Alias.AlgorithmParameters.1.3.14.3.2.12", "DSA"); in registerServices()
[all …]
DSupport_ProviderTrust.java56 put("MessageDigest.SHA", in registerServices()
58 put("MessageDigest.MD5", in registerServices()
62 put("AlgorithmParameterGenerator.DSA", in registerServices()
66 put("AlgorithmParameters.DSA", in registerServices()
70 put("KeyPairGenerator.DSA", in registerServices()
74 put("KeyFactory.DSA", "made.up.provider.name.KeyFactoryDSA"); in registerServices()
75 put("KeyFactory.RSA", "made.up.provider.name.KeyFactoryRSA"); in registerServices()
78 put("Signature.SHA1withDSA", in registerServices()
82 put("KeyStore.PKCS#12/Netscape", in registerServices()
86 put("CertificateFactory.X509", in registerServices()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMDGoldenData.java54 goldenData.put("SHA-1", new byte[] {
63 goldenData.put("SHA-1_NU", new byte[] {
71 goldenData.put("SHA", goldenData.get("SHA-1"));
72 goldenData.put("SHA_NU", goldenData.get("SHA-1_NU"));
74 goldenData.put("SHA1", goldenData.get("SHA-1"));
75 goldenData.put("SHA1_NU", goldenData.get("SHA-1_NU"));
77 goldenData.put("SHA-256", new byte[] {
87 goldenData.put("SHA-256_NU", new byte[] {
97 goldenData.put("SHA-384", new byte[] {
111 goldenData.put("SHA-384_NU", new byte[] {
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DEncryptedPrivateKeyInfoData.java1140 validEPKIEncodings.put("DH", dhEncryptedPrivateKeyInfo);
1141 validEPKIEncodings.put("DIFFIEHELLMAN", dhEncryptedPrivateKeyInfo);
1142 validEPKIEncodings.put("DIFFIE-HELLMAN", dhEncryptedPrivateKeyInfo);
1143 validEPKIEncodings.put("1.2.840.113549.1.3.1",
1145 validEPKIEncodingsNP.put("DH", dhEncryptedPrivateKeyInfoNP);
1146 validEPKIEncodingsNP.put("DIFFIEHELLMAN", dhEncryptedPrivateKeyInfoNP);
1147 validEPKIEncodingsNP.put("DIFFIE-HELLMAN", dhEncryptedPrivateKeyInfoNP);
1148 validEPKIEncodings.put("DSA", dsaEncryptedPrivateKeyInfo);
1149 validEPKIEncodings.put("1.2.840.10040.4.1", dsaEncryptedPrivateKeyInfo);
1150 validEPKIEncodingsNP.put("DIFFIE-HELLMAN", dhEncryptedPrivateKeyInfoNP);
[all …]
/libcore/luni/src/main/java/java/io/
DEmulatedFieldsForDumping.java69 public void put(String name, byte value) { in put() method in EmulatedFieldsForDumping
70 emulatedFields.put(name, value); in put()
83 public void put(String name, char value) { in put() method in EmulatedFieldsForDumping
84 emulatedFields.put(name, value); in put()
97 public void put(String name, double value) { in put() method in EmulatedFieldsForDumping
98 emulatedFields.put(name, value); in put()
111 public void put(String name, float value) { in put() method in EmulatedFieldsForDumping
112 emulatedFields.put(name, value); in put()
125 public void put(String name, int value) { in put() method in EmulatedFieldsForDumping
126 emulatedFields.put(name, value); in put()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DRunCSVTests.java20 funcUlps.put("sinh", 2.5);
21 funcUlps.put("cosh", 2.5);
22 funcUlps.put("tanh", 2.5);
23 funcUlps.put("abs", 0.0);
24 funcUlps.put("signum", 0.0);
25 funcUlps.put("getExponent", 0.0);
26 funcUlps.put("toRadians", 0.0);
27 funcUlps.put("toDegrees", 0.0);
28 funcUlps.put("sqrt", 0.0);
29 funcUlps.put("ceil", 0.0);
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DTreeMapTest.java38 map.put("A", "a"); in testEntrySetSetValue()
39 map.put("B", "b"); in testEntrySetSetValue()
40 map.put("C", "c"); in testEntrySetSetValue()
63 map.put("A", "a"); in testSubMapEntrySetSetValue()
64 map.put("B", "b"); in testSubMapEntrySetSetValue()
65 map.put("C", "c"); in testSubMapEntrySetSetValue()
66 map.put("D", "d"); in testSubMapEntrySetSetValue()
92 map.put("A", "a"); in testExceptionsOnSetValue()
93 map.put("B", "b"); in testExceptionsOnSetValue()
94 map.put("C", "c"); in testExceptionsOnSetValue()
[all …]
DOldAbstractMapTest.java41 amt1.put("1", "one"); in test_equalsLjava_lang_Object()
43 amt1.put("2", "two"); in test_equalsLjava_lang_Object()
44 amt1.put("3", "three"); in test_equalsLjava_lang_Object()
46 amt2.put("1", "one"); in test_equalsLjava_lang_Object()
47 amt2.put("2", "two"); in test_equalsLjava_lang_Object()
48 amt2.put("3", "three"); in test_equalsLjava_lang_Object()
56 amt1.put("1", "one"); in test_hashCode()
64 amt.put("1", "one"); in test_isEmpty()
71 amt.put("1", "one"); in test_put()
73 amt.put("2", "two"); in test_put()
[all …]
DOldAndroidHashMapTest.java30 map.put("one", ONE); in addItems()
31 map.put("two", TWO); in addItems()
32 map.put("three", THREE); in addItems()
33 map.put("four", FOUR); in addItems()
76 assertNull(map.put(null, -1)); in testManipulate()
77 assertNull(map.put("one", 1)); in testManipulate()
78 assertNull(map.put("two", 2)); in testManipulate()
79 assertNull(map.put("three", 3)); in testManipulate()
80 assertEquals(-1, map.put(null, 0).intValue()); in testManipulate()
222 map1.put("one", "1"); in testEquals()
[all …]
/libcore/json/src/test/java/org/json/
DJSONArrayTest.java64 a.put(true); in testEqualsAndHashCode()
65 a.put(false); in testEqualsAndHashCode()
66 b.put(true); in testEqualsAndHashCode()
67 b.put(false); in testEqualsAndHashCode()
71 b.put(true); in testEqualsAndHashCode()
78 array.put(true); in testBooleans()
79 array.put(false); in testBooleans()
80 array.put(2, false); in testBooleans()
81 array.put(3, false); in testBooleans()
82 array.put(2, true); in testBooleans()
[all …]
DJSONObjectTest.java120 object.put("foo", value); in testGet()
121 object.put("bar", new Object()); in testGet()
122 object.put("baz", new Object()); in testGet()
130 object.put(null, value); in testGet()
143 assertSame(object, object.put("foo", true)); in testPut()
144 object.put("foo", false); in testPut()
147 object.put("foo", 5.0d); in testPut()
149 object.put("foo", 0); in testPut()
151 object.put("bar", Long.MAX_VALUE - 1); in testPut()
153 object.put("baz", "x"); in testPut()
[all …]
DSelfUseTest.java43 @Override public JSONObject put(String name, Object value) throws JSONException {
45 return super.put(name, value);
78 @Override public JSONArray put(int index, Object value) throws JSONException {
80 return super.put(index, value);
135 object.put("foo", "true"); in testObjectGetBoolean()
159 object.put("foo", 5); in testToJSONArray()
160 object.put("bar", 10); in testToJSONArray()
161 array.put("foo"); in testToJSONArray()
162 array.put("baz"); in testToJSONArray()
163 array.put("bar"); in testToJSONArray()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DReadOnlyCharBufferTest.java76 buf.put((char) 0); in testPutchar()
86 buf.put(array); in testPutcharArray()
92 buf.put((char[]) null); in testPutcharArray()
102 buf.put(array, 0, array.length); in testPutcharArrayintint()
108 buf.put((char[]) null, 0, 1); in testPutcharArrayintint()
114 buf.put(new char[buf.capacity() + 1], 0, buf.capacity() + 1); in testPutcharArrayintint()
120 buf.put(array, -1, array.length); in testPutcharArrayintint()
130 buf.put(other); in testPutCharBuffer()
136 buf.put((CharBuffer) null); in testPutCharBuffer()
142 buf.put(buf); in testPutCharBuffer()
[all …]
DReadOnlyShortBufferTest.java74 buf.put((short)0); in testPutshort()
84 buf.put(array); in testPutshortArray()
90 buf.put((short[]) null); in testPutshortArray()
100 buf.put(array, 0, array.length); in testPutshortArrayintint()
106 buf.put((short[]) null, 0, 1); in testPutshortArrayintint()
112 buf.put(new short[buf.capacity() + 1], 0, buf.capacity() + 1); in testPutshortArrayintint()
118 buf.put(array, -1, array.length); in testPutshortArrayintint()
128 buf.put(other); in testPutShortBuffer()
134 buf.put((ShortBuffer) null); in testPutShortBuffer()
140 buf.put(buf); in testPutShortBuffer()
[all …]
DReadOnlyLongBufferTest.java74 buf.put(0); in testPutlong()
84 buf.put(array); in testPutlongArray()
90 buf.put((long[]) null); in testPutlongArray()
100 buf.put(array, 0, array.length); in testPutlongArrayintint()
106 buf.put((long[]) null, 0, 1); in testPutlongArrayintint()
112 buf.put(new long[buf.capacity() + 1], 0, buf.capacity() + 1); in testPutlongArrayintint()
118 buf.put(array, -1, array.length); in testPutlongArrayintint()
128 buf.put(other); in testPutLongBuffer()
134 buf.put((LongBuffer) null); in testPutLongBuffer()
140 buf.put(buf); in testPutLongBuffer()
[all …]
DReadOnlyDoubleBufferTest.java73 buf.put(0); in testPutdouble()
83 buf.put(array); in testPutdoubleArray()
89 buf.put((double[]) null); in testPutdoubleArray()
99 buf.put(array, 0, array.length); in testPutdoubleArrayintint()
105 buf.put((double[]) null, 0, 1); in testPutdoubleArrayintint()
111 buf.put(new double[buf.capacity() + 1], 0, buf.capacity() + 1); in testPutdoubleArrayintint()
117 buf.put(array, -1, array.length); in testPutdoubleArrayintint()
127 buf.put(other); in testPutDoubleBuffer()
133 buf.put((DoubleBuffer) null); in testPutDoubleBuffer()
139 buf.put(buf); in testPutDoubleBuffer()
[all …]
DReadOnlyFloatBufferTest.java74 buf.put(0); in testPutfloat()
84 buf.put(array); in testPutfloatArray()
90 buf.put((float[]) null); in testPutfloatArray()
100 buf.put(array, 0, array.length); in testPutfloatArrayintint()
106 buf.put((float[]) null, 0, 1); in testPutfloatArrayintint()
112 buf.put(new float[buf.capacity() + 1], 0, buf.capacity() + 1); in testPutfloatArrayintint()
118 buf.put(array, -1, array.length); in testPutfloatArrayintint()
128 buf.put(other); in testPutFloatBuffer()
134 buf.put((FloatBuffer) null); in testPutFloatBuffer()
140 buf.put(buf); in testPutFloatBuffer()
[all …]
DReadOnlyIntBufferTest.java74 buf.put(0); in testPutint()
84 buf.put(array); in testPutintArray()
90 buf.put((int[]) null); in testPutintArray()
100 buf.put(array, 0, array.length); in testPutintArrayintint()
106 buf.put((int[]) null, -1, 1); in testPutintArrayintint()
112 buf.put(new int[buf.capacity() + 1], 0, buf.capacity() + 1); in testPutintArrayintint()
118 buf.put(array, -1, array.length); in testPutintArrayintint()
128 buf.put(other); in testPutIntBuffer()
134 buf.put((IntBuffer) null); in testPutIntBuffer()
140 buf.put(buf); in testPutIntBuffer()
[all …]
/libcore/luni/src/test/java/libcore/util/
DBasicLruCacheTest.java35 cache.put("aa", "put-aa"); in testNoCreateOnCacheHit()
50 cache.put(null, "A"); in testCannotPutNullKey()
59 cache.put("a", null); in testCannotPutNullValue()
67 cache.put("a", "A"); in testEvictionWithSingletonCache()
68 cache.put("b", "B"); in testEvictionWithSingletonCache()
81 cache.put("a", "A"); in testEntryEvictedWhenFull()
82 cache.put("b", "B"); in testEntryEvictedWhenFull()
83 cache.put("c", "C"); in testEntryEvictedWhenFull()
86 cache.put("d", "D"); in testEntryEvictedWhenFull()
104 cache.put("a", "A"); in testPutDoesNotCauseEviction()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java106 assertNull("Return non-null for non mapped key", enumColorMap.put( in test_ConstructorLjava_lang_Class()
113 enumEmptyMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class()
120 assertNull("Return non-null for non mapped key", enumSizeMap.put( in test_ConstructorLjava_lang_Class()
125 enumSizeMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class()
132 assertNull("Return non-null for non mapped key", enumSizeMap.put( in test_ConstructorLjava_lang_Class()
137 enumSizeMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class()
160 enumColorMap.put(Color.Green, 2); in test_ConstructorLjava_util_EnumMap()
161 enumColorMap.put(Color.Blue, double1); in test_ConstructorLjava_util_EnumMap()
167 enumMap.put(Color.Red, 1); in test_ConstructorLjava_util_EnumMap()
171 enumMap.put(Size.Middle, 2); in test_ConstructorLjava_util_EnumMap()
[all …]
DAbstractMapTest.java64 public Object put(Object key, Object value) { in put() method in AbstractMapTest.MyMap
107 map1.put("key", value); in test_removeLjava_lang_Object()
111 map4.put(key, value); in test_removeLjava_lang_Object()
115 map5.put(key, value); in test_removeLjava_lang_Object()
124 map6.put(key, value); in test_removeLjava_lang_Object()
128 map7.put(key, value); in test_removeLjava_lang_Object()
132 aSpecialMap.put(specialKey, specialValue); in test_removeLjava_lang_Object()
143 map.put(1, 1); in test_clear()
180 map.put("k", "v"); in test_containsKey()
181 map.put("key", null); in test_containsKey()
[all …]
DIdentityHashMapTest.java88 empty.put("something", "here"); in test_ConstructorI()
99 myMap.put(objArray2[counter], objArray[counter]); in test_ConstructorLjava_util_Map()
142 map.put("key", "value"); in test_clone()
151 map2.put("key", "value2"); in test_clone()
158 map2.put("key2", "value3"); in test_clone()
178 m.put(null, "test"); in test_containsKeyLjava_lang_Object()
220 hm.put("T", "HELLO"); in test_getLjava_lang_Object()
225 m.put(null, "test"); in test_getLjava_lang_Object()
254 m.put(null, "test"); in test_keySet()
259 map.put(new Integer(1), "1"); in test_keySet()
[all …]
DHashMapTest.java125 empty.put("something", "here"); in test_ConstructorI()
145 empty.put("something", "here"); in test_ConstructorIF()
156 myMap.put(objArray2[counter], objArray[counter]); in test_ConstructorLjava_util_Map()
180 map.put(i, "foobar"); in test_clear()
201 map.put("key", "value"); in test_clone()
210 map2.put("key", "value2"); in test_clone()
217 map2.put("key2", "value3"); in test_clone()
226 hashmap.put(1, mock); in test_clone()
246 m.put(null, "test"); in test_containsKeyLjava_lang_Object()
297 hm.put("A", null); in test_removeFromViews()
[all …]
/libcore/luni/src/main/java/java/security/
DProvider.java209 super.put(key, value); in myPutAll()
213 changedProperties.put(key, value); in myPutAll()
248 public synchronized Object put(Object key, Object value) { in put() method in Provider
263 changedProperties.put(key, value); in put()
264 return super.put(key, value); in put()
488 serviceTable.put(key(s.type, s.algorithm), s); in putService()
494 aliasTable.put(key(s.type, alias), s); in putService()
529 super.put(s.type + "." + s.algorithm, s.className); in serviceInfoToProperties()
532 super.put("Alg.Alias." + s.type + "." + i.next(), s.algorithm); in serviceInfoToProperties()
537 super.put(s.type + "." + s.algorithm + " " + entry.getKey(), in serviceInfoToProperties()
[all …]
/libcore/luni/src/main/java/java/nio/
DCharBuffer.java421 public abstract CharBuffer put(char c); in put() method in CharBuffer
438 public final CharBuffer put(char[] src) { in put() method in CharBuffer
439 return put(src, 0, src.length); in put()
463 public CharBuffer put(char[] src, int srcOffset, int charCount) { in put() method in CharBuffer
469 put(src[i]); in put()
490 public CharBuffer put(CharBuffer src) { in put() method in CharBuffer
503 put(contents); in put()
521 public abstract CharBuffer put(int index, char c); in put() method in CharBuffer
538 public final CharBuffer put(String str) { in put() method in CharBuffer
539 return put(str, 0, str.length()); in put()
[all …]

12345678910>>...15