HomeSort by relevance Sort by last modified time
    Searched refs:valueOf (Results 1 - 25 of 1536) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
Integers.java 5 public static Integer valueOf(int value)
7 return Integer.valueOf(value);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECConstants.java 7 public static final BigInteger ZERO = BigInteger.valueOf(0);
8 public static final BigInteger ONE = BigInteger.valueOf(1);
9 public static final BigInteger TWO = BigInteger.valueOf(2);
10 public static final BigInteger THREE = BigInteger.valueOf(3);
11 public static final BigInteger FOUR = BigInteger.valueOf(4);
  /libcore/luni/src/test/java/libcore/java/lang/
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(nzero)))
    [all...]
  /art/test/055-enum-performance/src/
Main.java 14 if (m.getName().equals("valueOf")) {
80 System.out.println(Enum.valueOf(c, "FOUR"));
81 System.out.println(Enum.valueOf(c, "ONE"));
82 System.out.println(Enum.valueOf(c, "FOURTEEN"));
83 System.out.println(Enum.valueOf(c, "NINE"));
84 System.out.println(Enum.valueOf(c, "FIVE"));
85 System.out.println(Enum.valueOf(c, "TWELVE"));
87 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName());
135 Enum.valueOf(c, "ZERO");
136 Enum.valueOf(c, "ONE")
    [all...]
  /dalvik/tests/055-enum-performance/src/
Main.java 60 System.out.println(Enum.valueOf(c, "FOUR"));
61 System.out.println(Enum.valueOf(c, "ONE"));
62 System.out.println(Enum.valueOf(c, "FOURTEEN"));
63 System.out.println(Enum.valueOf(c, "NINE"));
64 System.out.println(Enum.valueOf(c, "FIVE"));
65 System.out.println(Enum.valueOf(c, "TWELVE"));
67 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName());
115 Enum.valueOf(c, "ZERO");
116 Enum.valueOf(c, "ONE");
117 Enum.valueOf(c, "TWO")
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
EllipticCurve_ImplTest.java 46 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
48 BigInteger.valueOf(19L));
52 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
54 BigInteger.valueOf(19L));
55 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)),
56 BigInteger.valueOf(1L),
57 BigInteger.valueOf(19L));
61 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
63 BigInteger.valueOf(19L));
64 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L))
    [all...]
ECPrivateKeySpec_ImplTest.java 57 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)),
59 BigInteger.valueOf(4L));
60 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
62 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10));
76 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)),
78 BigInteger.valueOf(4L));
79 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
84 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10));
92 new ECPrivateKeySpec(BigInteger.valueOf(0L), null);
118 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L))
    [all...]
  /libcore/luni/src/test/java/tests/api/java/math/
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 failed for ROUND_HALF_EVEN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_EVEN), RoundingMode.HALF_E (…)
    [all...]
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
RSAOtherPrimeInfoTest.java 50 new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
51 BigInteger.valueOf(2L),
52 BigInteger.valueOf(3L));
63 BigInteger.valueOf(2L),
64 BigInteger.valueOf(3L));
76 new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
78 BigInteger.valueOf(3L));
90 new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
91 BigInteger.valueOf(2L),
105 BigInteger.valueOf(2L)
    [all...]
ECFieldFpTest.java 54 new ECFieldFp(BigInteger.valueOf(23L));
64 new ECFieldFp(BigInteger.valueOf(21L));
74 new ECFieldFp(BigInteger.valueOf(-1L));
88 new ECFieldFp(BigInteger.valueOf(0L));
116 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L));
135 assertTrue(new ECFieldFp(BigInteger.valueOf(23L)).hashCode() ==
136 new ECFieldFp(BigInteger.valueOf(23L)).hashCode());
145 assertEquals(5, new ECFieldFp(BigInteger.valueOf(23L)).getFieldSize());
154 BigInteger p = BigInteger.valueOf(23L);
164 ECFieldFp obj = new ECFieldFp(BigInteger.valueOf(23L))
    [all...]
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(23L))
    [all...]
RSAPrivateKeySpecTest.java 50 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L),
51 BigInteger.valueOf(3L));
61 new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L),
62 BigInteger.valueOf(3L));
72 new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L),
73 BigInteger.valueOf(3L));
  /libcore/luni/src/test/java/tests/security/spec/
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(2L)
    [all...]
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()));
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(23L))
    [all...]
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(23L))
    [all...]
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));
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(1), -1)
    [all...]
  /libcore/luni/src/test/java/tests/security/interfaces/
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(5), BigInteger.valueOf(3))
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
Matrix_ScaleToFitTest.java 34 assertEquals(ScaleToFit.FILL,ScaleToFit.valueOf("FILL"));
35 assertEquals( ScaleToFit.START,ScaleToFit.valueOf("START"));
36 assertEquals( ScaleToFit.CENTER,ScaleToFit.valueOf("CENTER"));
37 assertEquals(ScaleToFit.END,ScaleToFit.valueOf("END") );
41 assertEquals(ScaleToFit.FILL, ScaleToFit.valueOf(ScaleToFit.class,
43 assertEquals(ScaleToFit.START, ScaleToFit.valueOf(ScaleToFit.class,
45 assertEquals(ScaleToFit.CENTER, ScaleToFit.valueOf(ScaleToFit.class,
48 .valueOf(ScaleToFit.class, "END"));
  /cts/tests/tests/net/src/android/net/cts/
NetworkInfo_DetailedStateTest.java 26 assertEquals(DetailedState.AUTHENTICATING, DetailedState.valueOf("AUTHENTICATING"));
27 assertEquals(DetailedState.CONNECTED, DetailedState.valueOf("CONNECTED"));
28 assertEquals(DetailedState.CONNECTING, DetailedState.valueOf("CONNECTING"));
29 assertEquals(DetailedState.DISCONNECTED, DetailedState.valueOf("DISCONNECTED"));
30 assertEquals(DetailedState.DISCONNECTING, DetailedState.valueOf("DISCONNECTING"));
31 assertEquals(DetailedState.FAILED, DetailedState.valueOf("FAILED"));
32 assertEquals(DetailedState.IDLE, DetailedState.valueOf("IDLE"));
33 assertEquals(DetailedState.OBTAINING_IPADDR, DetailedState.valueOf("OBTAINING_IPADDR"));
34 assertEquals(DetailedState.SCANNING, DetailedState.valueOf("SCANNING"));
35 assertEquals(DetailedState.SUSPENDED, DetailedState.valueOf("SUSPENDED"))
    [all...]
NetworkInfo_StateTest.java 25 assertEquals(State.CONNECTED, State.valueOf("CONNECTED"));
26 assertEquals(State.CONNECTING, State.valueOf("CONNECTING"));
27 assertEquals(State.DISCONNECTED, State.valueOf("DISCONNECTED"));
28 assertEquals(State.DISCONNECTING, State.valueOf("DISCONNECTING"));
29 assertEquals(State.SUSPENDED, State.valueOf("SUSPENDED"));
30 assertEquals(State.UNKNOWN, State.valueOf("UNKNOWN"));
  /cts/tests/tests/rsg/src/android/renderscriptgraphics/cts/
ProgramStoreTest.java 75 BlendDstFunc.valueOf("ZERO"));
77 BlendDstFunc.valueOf("ONE"));
79 BlendDstFunc.valueOf("SRC_COLOR"));
81 BlendDstFunc.valueOf("ONE_MINUS_SRC_COLOR"));
83 BlendDstFunc.valueOf("SRC_ALPHA"));
85 BlendDstFunc.valueOf("ONE_MINUS_SRC_ALPHA"));
87 BlendDstFunc.valueOf("DST_ALPHA"));
89 BlendDstFunc.valueOf("ONE_MINUS_DST_ALPHA"));
96 BlendSrcFunc.valueOf("ZERO"));
98 BlendSrcFunc.valueOf("ONE"))
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
CharacterImplTest.java 27 Character a = Character.valueOf(c);
31 assertSame(Character.valueOf(c), Character.valueOf(c));
35 assertEquals(new Character((char) c), Character.valueOf((char) c));
  /libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
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("OTHER")
    [all...]

Completed in 453 milliseconds

1 2 3 4 5 6 7 8 91011>>