/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);
|
/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...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
EllipticCurve_ImplTest.java | 45 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 47 BigInteger.valueOf(19L)); 51 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 53 BigInteger.valueOf(19L)); 54 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)), 55 BigInteger.valueOf(1L), 56 BigInteger.valueOf(19L)); 60 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 62 BigInteger.valueOf(19L)); 63 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)) [all...] |
ECPrivateKeySpec_ImplTest.java | 56 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 58 BigInteger.valueOf(4L)); 59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 61 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); 75 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 77 BigInteger.valueOf(4L)); 78 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 83 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); 91 new ECPrivateKeySpec(BigInteger.valueOf(0L), null); 117 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)) [all...] |
ECPublicKeySpec_ImplTest.java | 56 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 58 BigInteger.valueOf(4L)); 59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 61 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); 75 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 77 BigInteger.valueOf(4L)); 78 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 83 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); 116 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 118 BigInteger.valueOf(4L)) [all...] |
ECParameterSpec_ImplTest.java | 55 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 57 BigInteger.valueOf(4L)); 58 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 59 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10); 72 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 74 BigInteger.valueOf(4L)); 75 ECPoint generator = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 76 BigInteger order = BigInteger.valueOf(5L); 120 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 122 BigInteger.valueOf(4L)) [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 | 43 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); 45 BigInteger b = BigInteger.valueOf(19L); 53 b = BigInteger.valueOf(23L); 59 f = new ECFieldFp(BigInteger.valueOf(23L)); 61 b = BigInteger.valueOf(19L); 79 BigInteger b = BigInteger.valueOf(19L); 90 f = new ECFieldFp(BigInteger.valueOf(23L)); 92 b = BigInteger.valueOf(19L); 102 f = new ECFieldFp(BigInteger.valueOf(23L)); 127 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));
|
RSAPublicKeySpecTest.java | 52 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), 53 BigInteger.valueOf(3L)); 76 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), 77 BigInteger.valueOf(3L)); 78 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus())); 87 new RSAPublicKeySpec(BigInteger.valueOf(3L), 88 BigInteger.valueOf(1234567890L)); 89 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent()));
|
ECPointTest.java | 55 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); 56 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); 57 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); 58 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); 103 BigInteger x = BigInteger.valueOf(-23456L); 104 ECPoint p = new ECPoint(x, BigInteger.valueOf(23456L)) [all...] |
RSAPrivateCrtKeySpecTest.java | 111 BigInteger.valueOf(5L)); 112 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); 126 BigInteger.valueOf(5L), 129 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); 144 BigInteger.valueOf(5L), 146 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())); 158 BigInteger.valueOf(5L), 163 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeP())); 176 BigInteger.valueOf(5L), 180 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeQ())) [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"));
|
Interpolator_ResultTest.java | 27 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); 28 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); 29 assertEquals(Result.NORMAL, Result.valueOf("NORMAL"));
|
Shader_TileModeTest.java | 26 assertEquals(TileMode.CLAMP, TileMode.valueOf("CLAMP")); 27 assertEquals(TileMode.MIRROR, TileMode.valueOf("MIRROR")); 28 assertEquals(TileMode.REPEAT, TileMode.valueOf("REPEAT"));
|
Bitmap_ConfigTest.java | 25 assertEquals(Config.ALPHA_8, Config.valueOf("ALPHA_8")); 26 assertEquals(Config.RGB_565, Config.valueOf("RGB_565")); 27 assertEquals(Config.ARGB_4444, Config.valueOf("ARGB_4444")); 28 assertEquals(Config.ARGB_8888, Config.valueOf("ARGB_8888"));
|
BlurMaskFilter_BlurTest.java | 25 assertEquals(Blur.NORMAL, Blur.valueOf("NORMAL")); 26 assertEquals(Blur.SOLID, Blur.valueOf("SOLID")); 27 assertEquals(Blur.OUTER, Blur.valueOf("OUTER")); 28 assertEquals(Blur.INNER, Blur.valueOf("INNER"));
|
Path_FillTypeTest.java | 26 assertEquals(FillType.WINDING, FillType.valueOf("WINDING")); 27 assertEquals(FillType.EVEN_ODD, FillType.valueOf("EVEN_ODD")); 28 assertEquals(FillType.INVERSE_WINDING, FillType.valueOf("INVERSE_WINDING")); 29 assertEquals(FillType.INVERSE_EVEN_ODD, FillType.valueOf("INVERSE_EVEN_ODD"));
|
/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"));
|
LocalSocketAddress_NamespaceTest.java | 25 assertEquals(Namespace.ABSTRACT, Namespace.valueOf("ABSTRACT")); 26 assertEquals(Namespace.RESERVED, Namespace.valueOf("RESERVED")); 27 assertEquals(Namespace.FILESYSTEM, Namespace.valueOf("FILESYSTEM"));
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheRefreshTest.java | 43 assertEquals(Integer.valueOf(i), cache.getUnchecked(i)); 50 assertEquals(Integer.valueOf(0), cache.getUnchecked(0)); 51 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); 52 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); 58 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); 60 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); 61 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); 68 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); 69 assertEquals(Integer.valueOf(-1), cache.getUnchecked(1)); 70 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/ |
SecretKeyUtil.java | 18 keySizes.put(PKCSObjectIdentifiers.des_EDE3_CBC.getId(), Integers.valueOf(192)); 20 keySizes.put(NISTObjectIdentifiers.id_aes128_CBC, Integers.valueOf(128)); 21 keySizes.put(NISTObjectIdentifiers.id_aes192_CBC, Integers.valueOf(192)); 22 keySizes.put(NISTObjectIdentifiers.id_aes256_CBC, Integers.valueOf(256)); 24 keySizes.put(NTTObjectIdentifiers.id_camellia128_cbc, Integers.valueOf(128)); 25 keySizes.put(NTTObjectIdentifiers.id_camellia192_cbc, Integers.valueOf(192)); 26 keySizes.put(NTTObjectIdentifiers.id_camellia256_cbc, Integers.valueOf(256));
|