/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleEquivalentMaps.java | 47 singleEquivMap.put("acn", "xia"); 48 singleEquivMap.put("adx", "pcr"); 49 singleEquivMap.put("ami", "i-ami"); 50 singleEquivMap.put("art-lojban", "jbo"); 51 singleEquivMap.put("ase", "sgn-us"); 52 singleEquivMap.put("ayx", "nun"); 53 singleEquivMap.put("bfi", "sgn-gb"); 54 singleEquivMap.put("bjd", "drl"); 55 singleEquivMap.put("bnn", "i-bnn"); 56 singleEquivMap.put("bzs", "sgn-br"); [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TestProvider.java | 55 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 …]
|
D | Support_ProviderTrust.java | 56 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/luni/src/test/java/libcore/java/util/ |
D | TreeMapTest.java | 46 map.put("A", "a"); in testEntrySetSetValue() 47 map.put("B", "b"); in testEntrySetSetValue() 48 map.put("C", "c"); in testEntrySetSetValue() 71 map.put("A", "a"); in testSubMapEntrySetSetValue() 72 map.put("B", "b"); in testSubMapEntrySetSetValue() 73 map.put("C", "c"); in testSubMapEntrySetSetValue() 74 map.put("D", "d"); in testSubMapEntrySetSetValue() 100 map.put("A", "a"); in testExceptionsOnSetValue() 101 map.put("B", "b"); in testExceptionsOnSetValue() 102 map.put("C", "c"); in testExceptionsOnSetValue() [all …]
|
D | HashMapTest.java | 86 m.put("a", 1); in test_spliterator_keySet() 87 m.put("b", 2); in test_spliterator_keySet() 88 m.put("c", 3); in test_spliterator_keySet() 89 m.put("d", 4); in test_spliterator_keySet() 90 m.put("e", 5); in test_spliterator_keySet() 91 m.put("f", 6); in test_spliterator_keySet() 92 m.put("g", 7); in test_spliterator_keySet() 93 m.put("h", 8); in test_spliterator_keySet() 94 m.put("i", 9); in test_spliterator_keySet() 95 m.put("j", 10); in test_spliterator_keySet() [all …]
|
D | OldAbstractMapTest.java | 41 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 …]
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MDGoldenData.java | 54 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | IdentityHashMapTest.java | 92 empty.put("something", "here"); in test_ConstructorI() 103 myMap.put(objArray2[counter], objArray[counter]); in test_ConstructorLjava_util_Map() 146 map.put("key", "value"); in test_clone() 155 map2.put("key", "value2"); in test_clone() 162 map2.put("key2", "value3"); in test_clone() 182 m.put(null, "test"); in test_containsKeyLjava_lang_Object() 224 hm.put("T", "HELLO"); in test_getLjava_lang_Object() 229 m.put(null, "test"); in test_getLjava_lang_Object() 258 m.put(null, "test"); in test_keySet() 263 map.put(new Integer(1), "1"); in test_keySet() [all …]
|
D | WeakHashMapTest.java | 65 whm.put(keyArray[i], valueArray[i]); in test_Constructor() 78 whm.put(keyArray[i], valueArray[i]); in test_ConstructorI() 84 empty.put("something", "here"); in test_ConstructorI() 102 whm.put(keyArray[i], valueArray[i]); in test_ConstructorIF() 108 empty.put("something", "here"); in test_ConstructorIF() 142 whm.put(keyArray[i], valueArray[i]); in test_clear() 157 whm.put(keyArray[i], valueArray[i]); in test_containsKeyLjava_lang_Object() 171 whm.put(keyArray[i], valueArray[i]); in test_containsValueLjava_lang_Object() 185 whm.put(keyArray[i], valueArray[i]); in test_entrySet() 225 whm.put(myObject, myObject); in test_isEmpty() [all …]
|
D | HashMapTest.java | 130 empty.put("something", "here"); in test_ConstructorI() 150 empty.put("something", "here"); in test_ConstructorIF() 161 myMap.put(objArray2[counter], objArray[counter]); in test_ConstructorLjava_util_Map() 185 map.put(i, "foobar"); in test_clear() 206 map.put("key", "value"); in test_clone() 215 map2.put("key", "value2"); in test_clone() 222 map2.put("key2", "value3"); in test_clone() 231 hashmap.put(1, mock); in test_clone() 251 m.put(null, "test"); in test_containsKeyLjava_lang_Object() 302 hm.put("A", null); in test_removeFromViews() [all …]
|
D | LinkedHashMapTest.java | 98 empty.put("something", "here"); in test_ConstructorI() 119 empty.put("something", "here"); in test_ConstructorIF() 130 myMap.put(objArray2[counter], objArray[counter]); in test_ConstructorLjava_util_Map() 145 hm.put("T", "HELLO"); in test_getLjava_lang_Object() 150 m.put(null, "test"); in test_getLjava_lang_Object() 162 hm.put("KEY", "VALUE"); in test_putLjava_lang_ObjectLjava_lang_Object() 167 m.put(new Short((short) 0), "short"); in test_putLjava_lang_ObjectLjava_lang_Object() 168 m.put(null, "test"); in test_putLjava_lang_ObjectLjava_lang_Object() 169 m.put(new Integer(0), "int"); in test_putLjava_lang_ObjectLjava_lang_Object() 179 m.put("KEY", "VALUE"); in test_putPresent() [all …]
|
D | EnumMapTest.java | 104 assertNull("Return non-null for non mapped key", enumColorMap.put( in test_ConstructorLjava_lang_Class() 111 enumEmptyMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class() 118 assertNull("Return non-null for non mapped key", enumSizeMap.put( in test_ConstructorLjava_lang_Class() 123 enumSizeMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class() 130 assertNull("Return non-null for non mapped key", enumSizeMap.put( in test_ConstructorLjava_lang_Class() 135 enumSizeMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class() 158 enumColorMap.put(Color.Green, 2); in test_ConstructorLjava_util_EnumMap() 159 enumColorMap.put(Color.Blue, double1); in test_ConstructorLjava_util_EnumMap() 165 enumMap.put(Color.Red, 1); in test_ConstructorLjava_util_EnumMap() 169 enumMap.put(Size.Middle, 2); in test_ConstructorLjava_util_EnumMap() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | EncryptedPrivateKeyInfoData.java | 1140 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/json/src/test/java/libcore/org/json/ |
D | JSONArrayTest.java | 69 a.put(true); in testEqualsAndHashCode() 70 a.put(false); in testEqualsAndHashCode() 71 b.put(true); in testEqualsAndHashCode() 72 b.put(false); in testEqualsAndHashCode() 76 b.put(true); in testEqualsAndHashCode() 83 array.put(true); in testBooleans() 84 array.put(false); in testBooleans() 85 array.put(2, false); in testBooleans() 86 array.put(3, false); in testBooleans() 87 array.put(2, true); in testBooleans() [all …]
|
D | JSONObjectTest.java | 126 object.put("foo", value); in testGet() 127 object.put("bar", new Object()); in testGet() 128 object.put("baz", new Object()); in testGet() 136 object.put(null, value); in testGet() 149 assertSame(object, object.put("foo", true)); in testPut() 150 object.put("foo", false); in testPut() 153 object.put("foo", 5.0d); in testPut() 155 object.put("foo", 0); in testPut() 157 object.put("bar", Long.MAX_VALUE - 1); in testPut() 159 object.put("baz", "x"); in testPut() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | RunCSVTests.java | 20 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/ojluni/src/main/java/java/time/ |
D | ZoneId.java | 221 map.put("ACT", "Australia/Darwin"); 222 map.put("AET", "Australia/Sydney"); 223 map.put("AGT", "America/Argentina/Buenos_Aires"); 224 map.put("ART", "Africa/Cairo"); 225 map.put("AST", "America/Anchorage"); 226 map.put("BET", "America/Sao_Paulo"); 227 map.put("BST", "Asia/Dhaka"); 228 map.put("CAT", "Africa/Harare"); 229 map.put("CNT", "America/St_Johns"); 230 map.put("CST", "America/Chicago"); [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ReadOnlyCharBufferTest.java | 76 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 …]
|
D | ReadOnlyLongBufferTest.java | 74 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 …]
|
D | ReadOnlyDoubleBufferTest.java | 73 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 …]
|
D | ReadOnlyIntBufferTest.java | 74 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 …]
|
D | ReadOnlyFloatBufferTest.java | 74 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 …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SocketOptionRegistry.java | 61 … map.put(new RegistryKey(StandardSocketOptions.SO_BROADCAST, Net.UNSPEC), new OptionKey(1, 6)); in options() 62 … map.put(new RegistryKey(StandardSocketOptions.SO_KEEPALIVE, Net.UNSPEC), new OptionKey(1, 9)); in options() 63 … map.put(new RegistryKey(StandardSocketOptions.SO_LINGER, Net.UNSPEC), new OptionKey(1, 13)); in options() 64 … map.put(new RegistryKey(StandardSocketOptions.SO_SNDBUF, Net.UNSPEC), new OptionKey(1, 7)); in options() 65 … map.put(new RegistryKey(StandardSocketOptions.SO_RCVBUF, Net.UNSPEC), new OptionKey(1, 8)); in options() 66 … map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2)); in options() 67 … map.put(new RegistryKey(StandardSocketOptions.TCP_NODELAY, Net.UNSPEC), new OptionKey(6, 1)); in options() 68 …map.put(new RegistryKey(StandardSocketOptions.IP_TOS, StandardProtocolFamily.INET), new OptionKey(… in options() 69 …map.put(new RegistryKey(StandardSocketOptions.IP_MULTICAST_IF, StandardProtocolFamily.INET), new O… in options() 70 …map.put(new RegistryKey(StandardSocketOptions.IP_MULTICAST_TTL, StandardProtocolFamily.INET), new … in options() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/content/type/ |
D | MimeMapTest.java | 73 .put("application/msWord", Arrays.asList("Doc")) in caseNormalization_key() 96 .put("application/msWord", Arrays.asList("Doc")) in caseNormalization_value() 108 .put("mime/test", Arrays.asList("test", "tst")) in unmapped() 125 MimeMap.setDefaultSupplier(() -> MimeMap.builder().put("mime/sup", "sup").build()); in getDefault_afterSetDefaultSupplier() 168 .put("text/plain", "txt") in buildUpon() 176 .put("audio/mpeg", Arrays.asList("mp2", "mp3")) in buildUpon() 187 .put("text/plain", "text") in buildUpon() 199 @Test public void put() { in put() method in MimeMapTest 201 .put("text/plain", Arrays.asList("txt", "text")) in put() 202 .put("application/msword", "doc") in put() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 46 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_SuppliedProviderNotRegistered_Success() 60 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_DoesNotSupportKeyClass_Success() 61 put("Cipher.FOO SupportedKeyClasses", "None"); in testCipher_getInstance_DoesNotSupportKeyClass_Success() 79 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() 94 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 103 put("Cipher.FOO", MockCipherSpi.AllKeyTypes.class.getName()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 117 put("Cipher.FOO", MockCipherSpi.SpecificKeyTypes.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType() 118 put("Cipher.FOO SupportedKeyClasses", MockKey.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType() 123 put("Cipher.FOO", MockCipherSpi.SpecificKeyTypes2.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType() 124 put("Cipher.FOO SupportedKeyClasses", MockKey2.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType() [all …]
|