Home
last modified time | relevance | path

Searched refs:valueOf (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DEllipticCurveTest.java44 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
46 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
54 b = BigInteger.valueOf(23L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
60 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
62 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
80 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
90 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
92 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
101 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
125 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
[all …]
DRSAOtherPrimeInfoTest.java50 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo01()
51 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo01()
52 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo01()
63 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo02()
64 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo02()
76 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo03()
78 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo03()
90 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo04()
91 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo04()
105 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo05()
[all …]
DECPointTest.java55 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); in testECPoint01()
56 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); in testECPoint01()
57 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); in testECPoint01()
58 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); in testECPoint01()
103 BigInteger x = BigInteger.valueOf(-23456L); in testGetAffineX01()
104 ECPoint p = new ECPoint(x, BigInteger.valueOf(23456L)); in testGetAffineX01()
131 BigInteger y = BigInteger.valueOf(23456L); in testGetAffineY01()
132 ECPoint p = new ECPoint(BigInteger.valueOf(-23456L), y); in testGetAffineY01()
158 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject01()
162 p1 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject01()
[all …]
DECFieldFpTest.java54 new ECFieldFp(BigInteger.valueOf(23L)); in testECFieldFp01()
64 new ECFieldFp(BigInteger.valueOf(21L)); in testECFieldFp02()
74 new ECFieldFp(BigInteger.valueOf(-1L)); in testECFieldFp03()
88 new ECFieldFp(BigInteger.valueOf(0L)); in testECFieldFp04()
116 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testHashCode01()
135 assertTrue(new ECFieldFp(BigInteger.valueOf(23L)).hashCode() == in testHashCode02()
136 new ECFieldFp(BigInteger.valueOf(23L)).hashCode()); in testHashCode02()
145 assertEquals(5, new ECFieldFp(BigInteger.valueOf(23L)).getFieldSize()); in testGetFieldSize()
154 BigInteger p = BigInteger.valueOf(23L); in testGetP()
164 ECFieldFp obj = new ECFieldFp(BigInteger.valueOf(23L)); in testEqualsObject01()
[all …]
DRSAPrivateCrtKeySpecTest.java111 BigInteger.valueOf(5L)); in testGetCrtCoefficient()
112 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); in testGetCrtCoefficient()
126 BigInteger.valueOf(5L), in testGetPrimeExponentP()
129 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); in testGetPrimeExponentP()
144 BigInteger.valueOf(5L), in testGetPrimeExponentQ()
146 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())); in testGetPrimeExponentQ()
158 BigInteger.valueOf(5L), in testGetPrimeP()
163 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeP())); in testGetPrimeP()
176 BigInteger.valueOf(5L), in testGetPrimeQ()
180 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeQ())); in testGetPrimeQ()
[all …]
DRSAPublicKeySpecTest.java52 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), in testRSAPublicKeySpec01()
53 BigInteger.valueOf(3L)); in testRSAPublicKeySpec01()
76 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), in testGetModulus()
77 BigInteger.valueOf(3L)); in testGetModulus()
78 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus())); in testGetModulus()
87 new RSAPublicKeySpec(BigInteger.valueOf(3L), in testGetPublicExponent()
88 BigInteger.valueOf(1234567890L)); in testGetPublicExponent()
89 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent())); in testGetPublicExponent()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
DEllipticCurve_ImplTest.java46 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject02()
48 BigInteger.valueOf(19L)); in testEqualsObject02()
52 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject02()
54 BigInteger.valueOf(19L)); in testEqualsObject02()
55 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)), in testEqualsObject02()
56 BigInteger.valueOf(1L), in testEqualsObject02()
57 BigInteger.valueOf(19L)); in testEqualsObject02()
61 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject02()
63 BigInteger.valueOf(19L)); in testEqualsObject02()
64 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject02()
[all …]
DECParameterSpec_ImplTest.java56 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECParameterSpec01()
58 BigInteger.valueOf(4L)); in testECParameterSpec01()
59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECParameterSpec01()
60 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10); in testECParameterSpec01()
73 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECParameterSpec02()
75 BigInteger.valueOf(4L)); in testECParameterSpec02()
76 ECPoint generator = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECParameterSpec02()
77 BigInteger order = BigInteger.valueOf(5L); in testECParameterSpec02()
121 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECParameterSpec03()
123 BigInteger.valueOf(4L)); in testECParameterSpec03()
[all …]
DECPublicKeySpec_ImplTest.java57 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPublicKeySpec01()
59 BigInteger.valueOf(4L)); in testECPublicKeySpec01()
60 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPublicKeySpec01()
62 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); in testECPublicKeySpec01()
76 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPublicKeySpec02()
78 BigInteger.valueOf(4L)); in testECPublicKeySpec02()
79 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPublicKeySpec02()
84 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); in testECPublicKeySpec02()
117 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPublicKeySpec03()
119 BigInteger.valueOf(4L)); in testECPublicKeySpec03()
[all …]
DECPrivateKeySpec_ImplTest.java57 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPrivateKeySpec01()
59 BigInteger.valueOf(4L)); in testECPrivateKeySpec01()
60 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPrivateKeySpec01()
62 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); in testECPrivateKeySpec01()
76 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPrivateKeySpec02()
78 BigInteger.valueOf(4L)); in testECPrivateKeySpec02()
79 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPrivateKeySpec02()
84 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); in testECPrivateKeySpec02()
92 new ECPrivateKeySpec(BigInteger.valueOf(0L), null); in testECPrivateKeySpec02()
118 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testGetParams()
[all …]
DECFieldF2m_ImplTest.java108 BigInteger.valueOf(0L).setBit(0).setBit(367).setBit(1999),
114 BigInteger.valueOf(0L).setBit(0).setBit(1).setBit(2).setBit(981).setBit(2000),
126 BigInteger.valueOf(0L).setBit(1).setBit(367).setBit(1999),
132 BigInteger.valueOf(0L).setBit(0).setBit(367).setBit(1998),
138 BigInteger.valueOf(0L).setBit(0).setBit(2367).setBit(1999),
144 … BigInteger.valueOf(0L).setBit(0).setBit(2001).setBit(2002).setBit(2003).setBit(2000),
150 BigInteger.valueOf(0L).setBit(0).setBit(2000),
156 BigInteger.valueOf(0L).setBit(0).setBit(1).setBit(2).setBit(2000),
162 BigInteger.valueOf(0L).setBit(0).setBit(1).setBit(2).
169 BigInteger.valueOf(0L),
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ObjectObjects/
D15.2.4.3.js53 myarray.valueOf = Object.prototype.valueOf;
55 myboolean.valueOf = Object.prototype.valueOf;
57 myfunction.valueOf = Object.prototype.valueOf;
59 myobject.valueOf = Object.prototype.valueOf;
61 mymath.valueOf = Object.prototype.valueOf;
63 mydate.valueOf = Object.prototype.valueOf;
65 mynumber.valueOf = Object.prototype.valueOf;
67 mystring.valueOf = Object.prototype.valueOf;
69 …tCase( SECTION, "Object.prototype.valueOf.length", 0, Object.prototype.valueOf.length );
74 myarray.valueOf() );
[all …]
D15.2.1.1.js65 …w TestCase( SECTION, "Object(null).valueOf()", NULL_OBJECT, (NULL_OBJECT).valueOf() );
71 …SECTION, "Object(void 0).valueOf()", UNDEFINED_OBJECT, (UNDEFINED_OBJECT).valueOf() );
75 …TestCase( SECTION, "Object(true).valueOf()", true, (Object(true)).valueOf() );
79 …stCase( SECTION, "Object(false).valueOf()", false, (Object(false)).valueOf() );
83 …ew TestCase( SECTION, "Object(0).valueOf()", 0, (Object(0)).valueOf() );
87 …w TestCase( SECTION, "Object(-0).valueOf()", -0, (Object(-0)).valueOf() );
91 …ew TestCase( SECTION, "Object(1).valueOf()", 1, (Object(1)).valueOf() );
95 …w TestCase( SECTION, "Object(-1).valueOf()", -1, (Object(-1)).valueOf() );
99 …r.MAX_VALUE).valueOf()", 1.7976931348623157e308, (Object(Number.MAX_VALUE)).valueOf() );
103 …"Object(Number.MIN_VALUE).valueOf()", 5e-324, (Object(Number.MIN_VALUE)).valueOf() );
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/
D15.6.4.3.js40 …item++] = new TestCase( "15.8.6.4", "new Boolean(1)", true, (new Boolean(1)).valueOf() );
42 …item++] = new TestCase( "15.8.6.4", "new Boolean(0)", false, (new Boolean(0)).valueOf() );
43 …tem++] = new TestCase( "15.8.6.4", "new Boolean(-1)", true, (new Boolean(-1)).valueOf() );
44 …em++] = new TestCase( "15.8.6.4", "new Boolean('1')", true, (new Boolean("1")).valueOf() );
45 …em++] = new TestCase( "15.8.6.4", "new Boolean('0')", true, (new Boolean("0")).valueOf() );
46 …m++] = new TestCase( "15.8.6.4", "new Boolean(true)", true, (new Boolean(true)).valueOf() );
47 …++] = new TestCase( "15.8.6.4", "new Boolean(false)", false, (new Boolean(false)).valueOf() );
48 …+] = new TestCase( "15.8.6.4", "new Boolean('true')", true, (new Boolean("true")).valueOf() );
49 …] = new TestCase( "15.8.6.4", "new Boolean('false')", true, (new Boolean('false')).valueOf() );
51 …tem++] = new TestCase( "15.8.6.4", "new Boolean('')", false, (new Boolean('')).valueOf() );
[all …]
D15.6.4.3-1.js50 …ay[item++] = new TestCase( SECTION, "new Boolean(1)", true, (new Boolean(1)).valueOf() );
52 …ay[item++] = new TestCase( SECTION, "new Boolean(0)", false, (new Boolean(0)).valueOf() );
53 …y[item++] = new TestCase( SECTION, "new Boolean(-1)", true, (new Boolean(-1)).valueOf() );
54 …[item++] = new TestCase( SECTION, "new Boolean('1')", true, (new Boolean("1")).valueOf() );
55 …[item++] = new TestCase( SECTION, "new Boolean('0')", true, (new Boolean("0")).valueOf() );
56 …item++] = new TestCase( SECTION, "new Boolean(true)", true, (new Boolean(true)).valueOf() );
57 …tem++] = new TestCase( SECTION, "new Boolean(false)", false, (new Boolean(false)).valueOf() );
58 …em++] = new TestCase( SECTION, "new Boolean('true')", true, (new Boolean("true")).valueOf() );
59 …m++] = new TestCase( SECTION, "new Boolean('false')", true, (new Boolean('false')).valueOf() );
61 …y[item++] = new TestCase( SECTION, "new Boolean('')", false, (new Boolean('')).valueOf() );
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheRefreshTest.java43 assertEquals(Integer.valueOf(i), cache.getUnchecked(i)); in testAutoRefresh()
50 assertEquals(Integer.valueOf(0), cache.getUnchecked(0)); in testAutoRefresh()
51 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); in testAutoRefresh()
52 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
58 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); in testAutoRefresh()
60 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); in testAutoRefresh()
61 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
68 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); in testAutoRefresh()
69 assertEquals(Integer.valueOf(-1), cache.getUnchecked(1)); in testAutoRefresh()
70 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-1365.js36 var valueOf = Object.prototype.valueOf;
39 function callGlobalValueOf() { valueOf(); }
40 function callGlobalHasOwnProperty() { valueOf(); }
42 assertEquals(Object.prototype, Object.prototype.valueOf());
46 %OptimizeFunctionOnNextCall(Object.prototype.valueOf);
47 Object.prototype.valueOf();
49 assertEquals(Object.prototype, Object.prototype.valueOf());
54 var valueOf = Object.prototype.valueOf;
57 try { valueOf(); } catch(e) { exception = true; }
70 CheckExceptionCallParameter(Object.prototype.valueOf);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DShortTest.java291 assertEquals("Returned incorrect short", -32768, Short.valueOf("-32768") in test_valueOfLjava_lang_String2()
293 assertEquals("Returned incorrect short", 32767, Short.valueOf("32767") in test_valueOfLjava_lang_String2()
304 assertEquals("Incorrectly parsed hex string", 255, Short.valueOf("FF", 16) in test_valueOfLjava_lang_StringI2()
306 assertEquals("Incorrectly parsed oct string", 16, Short.valueOf("20", 8) in test_valueOfLjava_lang_StringI2()
308 assertEquals("Incorrectly parsed dec string", 20, Short.valueOf("20", 10) in test_valueOfLjava_lang_StringI2()
310 assertEquals("Incorrectly parsed bin string", 4, Short.valueOf("100", 2) in test_valueOfLjava_lang_StringI2()
312 assertEquals("Incorrectly parsed -hex string", -255, Short.valueOf("-FF", 16) in test_valueOfLjava_lang_StringI2()
314 assertEquals("Incorrectly parsed -oct string", -16, Short.valueOf("-20", 8) in test_valueOfLjava_lang_StringI2()
316 assertEquals("Incorrectly parsed -bin string", -4, Short.valueOf("-100", 2) in test_valueOfLjava_lang_StringI2()
318 assertTrue("Did not decode 32767 correctly", Short.valueOf("32767", 10) in test_valueOfLjava_lang_StringI2()
[all …]
DByteTest.java27 assertEquals(new Byte(Byte.MIN_VALUE), Byte.valueOf(Byte.MIN_VALUE)); in test_valueOfB()
28 assertEquals(new Byte(Byte.MAX_VALUE), Byte.valueOf(Byte.MAX_VALUE)); in test_valueOfB()
29 assertEquals(new Byte((byte) 0), Byte.valueOf((byte) 0)); in test_valueOfB()
33 assertEquals(new Byte(b), Byte.valueOf(b)); in test_valueOfB()
34 assertSame(Byte.valueOf(b), Byte.valueOf(b)); in test_valueOfB()
106 assertEquals(new Byte((byte) 0), Byte.valueOf((byte) 0)); in test_equalsLjava_lang_Object()
107 assertEquals(new Byte((byte) 1), Byte.valueOf((byte) 1)); in test_equalsLjava_lang_Object()
108 assertEquals(new Byte((byte) -1), Byte.valueOf((byte) -1)); in test_equalsLjava_lang_Object()
140 assertEquals(new Byte((byte) 0), Byte.valueOf("0")); in test_valueOfLjava_lang_String()
141 assertEquals(new Byte((byte) 1), Byte.valueOf("1")); in test_valueOfLjava_lang_String()
[all …]
DLongTest.java417 assertEquals("Returned incorrect value", 100000000L, Long.valueOf("100000000") in test_valueOfLjava_lang_String2()
419 assertTrue("Returned incorrect value", Long.valueOf( in test_valueOfLjava_lang_String2()
421 assertTrue("Returned incorrect value", Long.valueOf( in test_valueOfLjava_lang_String2()
427 .valueOf("999999999999999999999999999999999999999999999999999999999999"); in test_valueOfLjava_lang_String2()
437 Long.valueOf("9223372036854775808"); in test_valueOfLjava_lang_String2()
447 Long.valueOf("-9223372036854775809"); in test_valueOfLjava_lang_String2()
462 assertEquals("Returned incorrect value", 100000000L, Long.valueOf("100000000", 10) in test_valueOfLjava_lang_StringI()
464 assertEquals("Returned incorrect value from hex string", 68719476735L, Long.valueOf( in test_valueOfLjava_lang_StringI()
467 + Long.valueOf("77777777777", 8).toString(), Long.valueOf( in test_valueOfLjava_lang_StringI()
469 assertTrue("Returned incorrect value", Long.valueOf( in test_valueOfLjava_lang_StringI()
[all …]
DIntegerTest.java567 assertEquals("Returned incorrect int", 8888888, Integer.valueOf("8888888") in test_valueOfLjava_lang_String2()
569 assertTrue("Returned incorrect int", Integer.valueOf("2147483647") in test_valueOfLjava_lang_String2()
571 assertTrue("Returned incorrect int", Integer.valueOf("-2147483648") in test_valueOfLjava_lang_String2()
576 Integer.valueOf("2147483648"); in test_valueOfLjava_lang_String2()
585 Integer.valueOf("-2147483649"); in test_valueOfLjava_lang_String2()
599 assertEquals("Returned incorrect int for hex string", 255, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
601 assertEquals("Returned incorrect int for oct string", 16, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
603 assertEquals("Returned incorrect int for bin string", 4, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
606 assertEquals("Returned incorrect int for - hex string", -255, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
608 assertEquals("Returned incorrect int for - oct string", -16, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/
D9.9-1.js55 …TestCase( SECTION, "Object(true).valueOf()", true, (Object(true)).valueOf() );
59 …stCase( SECTION, "Object(false).valueOf()", false, (Object(false)).valueOf() );
63 …ew TestCase( SECTION, "Object(0).valueOf()", 0, (Object(0)).valueOf() );
67 …w TestCase( SECTION, "Object(-0).valueOf()", -0, (Object(-0)).valueOf() );
71 …ew TestCase( SECTION, "Object(1).valueOf()", 1, (Object(1)).valueOf() );
75 …w TestCase( SECTION, "Object(-1).valueOf()", -1, (Object(-1)).valueOf() );
79 …r.MAX_VALUE).valueOf()", 1.7976931348623157e308, (Object(Number.MAX_VALUE)).valueOf() );
83 …"Object(Number.MIN_VALUE).valueOf()", 5e-324, (Object(Number.MIN_VALUE)).valueOf() );
87 …ITY).valueOf()", Number.POSITIVE_INFINITY, (Object(Number.POSITIVE_INFINITY)).valueOf() );
91 …ITY).valueOf()", Number.NEGATIVE_INFINITY, (Object(Number.NEGATIVE_INFINITY)).valueOf() );
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DProxySelectorTest.java118 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
121 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
124 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
127 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
159 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
162 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
165 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
168 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
192 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()
195 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()
[all …]
/external/apache-harmony/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DElementTypeTest.java37 .valueOf("ANNOTATION_TYPE")); in test_valueOfLjava_lang_String()
38 assertSame(ElementType.CONSTRUCTOR, ElementType.valueOf("CONSTRUCTOR")); in test_valueOfLjava_lang_String()
39 assertSame(ElementType.FIELD, ElementType.valueOf("FIELD")); in test_valueOfLjava_lang_String()
41 .valueOf("LOCAL_VARIABLE")); in test_valueOfLjava_lang_String()
42 assertSame(ElementType.METHOD, ElementType.valueOf("METHOD")); in test_valueOfLjava_lang_String()
43 assertSame(ElementType.PACKAGE, ElementType.valueOf("PACKAGE")); in test_valueOfLjava_lang_String()
44 assertSame(ElementType.PARAMETER, ElementType.valueOf("PARAMETER")); in test_valueOfLjava_lang_String()
45 assertSame(ElementType.TYPE, ElementType.valueOf("TYPE")); in test_valueOfLjava_lang_String()
47 ElementType.valueOf("OTHER"); in test_valueOfLjava_lang_String()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/macs/
DHMac.java35 blockLengths.put("GOST3411", Integer.valueOf(32));
37 blockLengths.put("MD2", Integer.valueOf(16));
38 blockLengths.put("MD4", Integer.valueOf(64));
39 blockLengths.put("MD5", Integer.valueOf(64));
41 blockLengths.put("RIPEMD128", Integer.valueOf(64));
42 blockLengths.put("RIPEMD160", Integer.valueOf(64));
44 blockLengths.put("SHA-1", Integer.valueOf(64));
45 blockLengths.put("SHA-224", Integer.valueOf(64));
46 blockLengths.put("SHA-256", Integer.valueOf(64));
47 blockLengths.put("SHA-384", Integer.valueOf(128));
[all …]

12345678910>>...26