/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldAndroidFloatDoubleTest.java | 27 Double d = Double.valueOf(1.0); 28 Float f = Float.valueOf(1.0f); 68 assertEquals(Float.valueOf(pz), Float.valueOf(pz)); 69 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nz))); 70 assertEquals(Float.valueOf(pz), Float.valueOf(pzero)); 71 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nzer [all...] |
H A D | BooleanTest.java | 21 assertSame(Boolean.TRUE, Boolean.valueOf(true)); 26 assertSame(Boolean.FALSE, Boolean.valueOf(false));
|
/libcore/luni/src/test/java/tests/api/java/math/ |
H A D | RoundingModeTest.java | 26 * java.math.RoundingMode#valueOf(int) 29 assertEquals("valueOf failed for ROUND_CEILING", RoundingMode.valueOf(BigDecimal.ROUND_CEILING), RoundingMode.CEILING); 30 assertEquals("valueOf failed for ROUND_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_DOWN), RoundingMode.DOWN); 31 assertEquals("valueOf failed for ROUND_FLOOR", RoundingMode.valueOf(BigDecimal.ROUND_FLOOR), RoundingMode.FLOOR); 32 assertEquals("valueOf failed for ROUND_HALF_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_DOWN), RoundingMode.HALF_DOWN); 33 assertEquals("valueOf faile [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
H A D | RSAOtherPrimeInfoTest.java | 43 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), 44 BigInteger.valueOf(2L), 45 BigInteger.valueOf(3L)); 56 BigInteger.valueOf(2L), 57 BigInteger.valueOf(3L)); 69 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), 71 BigInteger.valueOf(3L)); 83 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), 84 BigInteger.valueOf(2L), 98 BigInteger.valueOf( [all...] |
H A D | RSAPublicKeySpecTest.java | 44 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), 45 BigInteger.valueOf(3L)); 68 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), 69 BigInteger.valueOf(3L)); 70 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus())); 79 new RSAPublicKeySpec(BigInteger.valueOf(3L), 80 BigInteger.valueOf(1234567890L)); 81 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent()));
|
H A D | ECFieldFpTest.java | 47 new ECFieldFp(BigInteger.valueOf(23L)); 57 new ECFieldFp(BigInteger.valueOf(21L)); 67 new ECFieldFp(BigInteger.valueOf(-1L)); 81 new ECFieldFp(BigInteger.valueOf(0L)); 109 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); 128 assertTrue(new ECFieldFp(BigInteger.valueOf(23L)).hashCode() == 129 new ECFieldFp(BigInteger.valueOf(23L)).hashCode()); 138 assertEquals(5, new ECFieldFp(BigInteger.valueOf(23L)).getFieldSize()); 147 BigInteger p = BigInteger.valueOf(23L); 157 ECFieldFp obj = new ECFieldFp(BigInteger.valueOf(2 [all...] |
H A D | EllipticCurveTest.java | 44 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); 46 BigInteger b = BigInteger.valueOf(19L); 54 b = BigInteger.valueOf(23L); 60 f = new ECFieldFp(BigInteger.valueOf(23L)); 62 b = BigInteger.valueOf(19L); 80 BigInteger b = BigInteger.valueOf(19L); 90 f = new ECFieldFp(BigInteger.valueOf(23L)); 92 b = BigInteger.valueOf(19L); 101 f = new ECFieldFp(BigInteger.valueOf(23L)); 125 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(2 [all...] |
H A D | RSAPrivateKeySpecTest.java | 43 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), 44 BigInteger.valueOf(3L)); 54 new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), 55 BigInteger.valueOf(3L)); 65 new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), 66 BigInteger.valueOf(3L));
|
H A D | ECParameterSpecTest.java | 37 curve = new EllipticCurve(new ECFieldF2m(2), BigInteger.valueOf(1), 38 BigInteger.valueOf(1)); 39 ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); 40 ecps = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); 67 assertEquals("wrong order was reteurned", BigInteger.valueOf(1), ecps 72 new ECParameterSpec(null, ecpoint, BigInteger.valueOf(1), 1); 80 new ECParameterSpec(curve, null, BigInteger.valueOf(1), 1); 96 new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(-1), 1); 104 new ECParameterSpec(curve, ecpoint, BigInteger.valueOf( [all...] |
H A D | ECPublicKeySpecTest.java | 37 ECPoint ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger 38 .valueOf(1)); 40 .valueOf(1), BigInteger.valueOf(1)); 42 w = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); 43 params = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
|
H A D | ECPointTest.java | 48 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); 49 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); 50 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); 51 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); 96 BigInteger x = BigInteger.valueOf(-23456L); 97 ECPoint p = new ECPoint(x, BigInteger.valueOf(2345 [all...] |
H A D | RSAPrivateCrtKeySpecTest.java | 104 BigInteger.valueOf(5L)); 105 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); 119 BigInteger.valueOf(5L), 122 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); 137 BigInteger.valueOf(5L), 139 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())); 151 BigInteger.valueOf(5L), 156 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeP())); 169 BigInteger.valueOf(5L), 173 assertTrue(BigInteger.valueOf( [all...] |
H A D | ECPrivateKeySpecTest.java | 39 ECPoint ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger 40 .valueOf(1)); 42 .valueOf(1), BigInteger.valueOf(1)); 44 s = BigInteger.valueOf(1); 45 ecparams = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
|
H A D | RSAKeyGenParameterSpecTest.java | 44 new RSAKeyGenParameterSpec(512, BigInteger.valueOf(0L)); 54 new RSAKeyGenParameterSpec(512, BigInteger.valueOf(0L)); 64 new RSAKeyGenParameterSpec(512, BigInteger.valueOf(0L));
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
H A D | Util.java | 67 BigInteger.valueOf(3233), BigInteger.valueOf(17), 68 BigInteger.valueOf(2753), BigInteger.valueOf(61), 69 BigInteger.valueOf(53), BigInteger.valueOf(53), 70 BigInteger.valueOf(49), BigInteger.valueOf(52)); 77 new ECFieldFp(BigInteger.valueOf(23)), 78 BigInteger.valueOf( [all...] |
H A D | RSAKeyTest.java | 37 final BigInteger n = BigInteger.valueOf(3233); 38 final BigInteger d = BigInteger.valueOf(2753); 39 final BigInteger e = BigInteger.valueOf(17);
|
H A D | RSAPrivateKeyTest.java | 33 final BigInteger n = BigInteger.valueOf(3233); 34 final BigInteger d = BigInteger.valueOf(2753);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
H A D | ElementTypeTest.java | 32 * @tests java.lang.annotation.ElementType#valueOf(String) 37 .valueOf("ANNOTATION_TYPE")); 38 assertSame(ElementType.CONSTRUCTOR, ElementType.valueOf("CONSTRUCTOR")); 39 assertSame(ElementType.FIELD, ElementType.valueOf("FIELD")); 41 .valueOf("LOCAL_VARIABLE")); 42 assertSame(ElementType.METHOD, ElementType.valueOf("METHOD")); 43 assertSame(ElementType.PACKAGE, ElementType.valueOf("PACKAGE")); 44 assertSame(ElementType.PARAMETER, ElementType.valueOf("PARAMETER")); 45 assertSame(ElementType.TYPE, ElementType.valueOf("TYPE")); 47 ElementType.valueOf("OTHE [all...] |
H A D | RetentionPolicyTest.java | 31 * @tests java.lang.annotation.RetentionPolicy#valueOf(String) 36 .valueOf("CLASS")); 38 .valueOf("RUNTIME")); 40 .valueOf("SOURCE")); 42 RetentionPolicy.valueOf("OTHER");
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | DecimalFormatTest.java | 57 assertEquals(309, numberFormat.format(BigInteger.valueOf(123)).length()); 64 assertEquals("17%", pf.format(BigDecimal.valueOf(0.17))); 124 assertEquals(df.format(BigDecimal.valueOf(0.16)), 125 df.format(BigDecimal.valueOf(0.16).doubleValue())); 126 assertEquals(df.format(BigDecimal.valueOf(0.0293)), 127 df.format(BigDecimal.valueOf(0.0293).doubleValue())); 128 assertEquals(df.format(BigDecimal.valueOf(0.006)), 129 df.format(BigDecimal.valueOf(0.006).doubleValue())); 130 assertEquals(df.format(BigDecimal.valueOf(0.00283)), 131 df.format(BigDecimal.valueOf(0.0028 [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | AssertionError.java | 45 * {@link String#valueOf(Object)} with the specified object. If the object 54 super(String.valueOf(detailMessage)); 62 * {@link String#valueOf(boolean)} with the specified boolean value. 68 this(String.valueOf(detailMessage)); 73 * {@link String#valueOf(char)} with the specified character value. 79 this(String.valueOf(detailMessage)); 84 * {@link String#valueOf(int)} with the specified integer value. 95 * {@link String#valueOf(long)} with the specified long value. 106 * {@link String#valueOf(float)} with the specified float value. 117 * {@link String#valueOf(doubl [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
H A D | RSAKeyGenParameterSpec.java | 30 public static final BigInteger F0 = BigInteger.valueOf(3L); 35 public static final BigInteger F4 = BigInteger.valueOf(65537L);
|
/libcore/luni/src/main/native/ |
H A D | valueOf.cpp | 17 #define LOG_TAG "valueOf" 19 #include "valueOf.h" 24 static jobject valueOf(JNIEnv* env, jclass c, const char* signature, const T& value) { function 25 static jmethodID valueOfMethod = env->GetStaticMethodID(c, "valueOf", signature); 30 return valueOf(env, JniConstants::booleanClass, "(Z)Ljava/lang/Boolean;", value); 34 return valueOf(env, JniConstants::doubleClass, "(D)Ljava/lang/Double;", value); 38 return valueOf(env, JniConstants::integerClass, "(I)Ljava/lang/Integer;", value); 42 return valueOf(env, JniConstants::longClass, "(J)Ljava/lang/Long;", value);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyRepTypeTest.java | 35 * java.security.KeyRep.Type#valueOf(String) 39 KeyRep.Type.valueOf("type"); 45 KeyRep.Type.valueOf(null); 51 .valueOf(KeyRep.Type.PRIVATE.toString())); 52 assertEquals(KeyRep.Type.PUBLIC, KeyRep.Type.valueOf(KeyRep.Type.PUBLIC 54 assertEquals(KeyRep.Type.SECRET, KeyRep.Type.valueOf(KeyRep.Type.SECRET
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldAuthenticatorRequestorTypeTest.java | 26 Authenticator.RequestorType.valueOf("PROXY")); 28 Authenticator.RequestorType.valueOf("SERVER")); 30 Authenticator.RequestorType.valueOf("TEST");
|