/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
D | AlgorithmParametersTestPBES2.java | 169 AlgorithmParameters ap = AlgorithmParameters.getInstance( in testGetEncoded_knownAnswers() local 171 ap.init(TEST_PBE_PARAMETER_SPEC); in testGetEncoded_knownAnswers() 174 Arrays.toString(ap.getEncoded())); in testGetEncoded_knownAnswers() 181 AlgorithmParameters ap = AlgorithmParameters.getInstance( in test_encodeAndDecode() local 183 ap.init(TEST_PBE_PARAMETER_SPEC); in test_encodeAndDecode() 186 ap2.init(ap.getEncoded()); in test_encodeAndDecode() 206 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithmName, "BC"); in test_encryptWithAlgorithmParameters() local 207 ap.init(TEST_PBE_PARAMETER_SPEC); in test_encryptWithAlgorithmParameters() 212 c.init(Cipher.ENCRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters() 217 c.init(Cipher.DECRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParametersTest.java | 77 AlgorithmParameters ap = new FakeAlgorithmParameters(null, p, null); in test_getAlgorithm() local 78 assertNull(ap.getAlgorithm()); in test_getAlgorithm() 81 ap = new FakeAlgorithmParameters(null, p, "AAA"); in test_getAlgorithm() 82 assertEquals("AAA", ap.getAlgorithm()); in test_getAlgorithm() 175 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC"); in test_getInstanceLjava_lang_String() local 176 checkUnititialized(ap); in test_getInstanceLjava_lang_String() 177 ap.init(new MyAlgorithmParameterSpec()); in test_getInstanceLjava_lang_String() 178 checkAP(ap, p); in test_getInstanceLjava_lang_String() 185 AlgorithmParameters ap = AlgorithmParameters.getInstance(str[i]); in test_getInstanceLjava_lang_String() local 201 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC", "MyProvider"); in test_getInstanceLjava_lang_StringLjava_lang_String() local [all …]
|
D | AlgorithmParameterGenerator1Test.java | 316 AlgorithmParameters ap = apg.generateParameters(); in testAlgorithmParameterGenerator10() local 317 assertEquals("Incorrect algorithm", ap.getAlgorithm().toUpperCase(), in testAlgorithmParameterGenerator10()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 266 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithAlgorithmParameterSpec() local 269 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec() 275 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec() 281 ap = new RSAKeyGenParameterSpec(10, new BigInteger("10")); in test_initWithAlgorithmParameterSpec() 283 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap); in test_initWithAlgorithmParameterSpec() 295 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithKeyAlgorithmParameterSpecSecureRandom() local 298 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom() 304 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom() 310 ap = new RSAKeyGenParameterSpec(10, new BigInteger("10")); in test_initWithKeyAlgorithmParameterSpecSecureRandom() 313 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom() [all …]
|
D | EncryptedPrivateKeyInfoTest.java | 207 if (g.ap() == null) { in test_getAlgName() 210 epki = new EncryptedPrivateKeyInfo(g.ap(), g.ct()); in test_getAlgName() 552 AlgorithmParameters ap = null; in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() local 557 ap = AlgorithmParameters in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() 560 ap.init(EncryptedPrivateKeyInfoData.getParametersEncoding( in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() 563 new EncryptedPrivateKeyInfo(ap, in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() 572 ap = new Mock_AlgorithmParameters(null, null, "Wrong alg name"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() 575 new EncryptedPrivateKeyInfo(ap, in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() 609 AlgorithmParameters ap = AlgorithmParameters.getInstance("DSA"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2() local 611 ap.init(EncryptedPrivateKeyInfoData.getParametersEncoding("DSA")); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | MockCipherSpi.java | 81 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters() argument 83 if (!ap.getAlgorithm().equals("AES")) { in checkAlgorithmParameters() 91 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters() argument 93 if ((!ap.getAlgorithm().equals("DES"))) { in checkAlgorithmParameters() 195 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters() argument
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | KeyAgreementThread.java | 71 AlgorithmParameters ap = apg.generateParameters(); in test() local 72 DHParameterSpec ps = ap.getParameterSpec(DHParameterSpec.class); in test()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | Base64Test.java | 919 int ap = 0; in checkRoundTrip_wrapInputStream() local 920 while ((b = b64is.read(actual, ap, actual.length - ap)) != -1) { in checkRoundTrip_wrapInputStream() 921 ap += b; in checkRoundTrip_wrapInputStream() 923 assertArrayPrefixEquals(actual, ap, plain); in checkRoundTrip_wrapInputStream() 928 ap = 0; in checkRoundTrip_wrapInputStream() 930 actual[ap++] = (byte) b; in checkRoundTrip_wrapInputStream() 932 assertArrayPrefixEquals(actual, ap, plain); in checkRoundTrip_wrapInputStream() 937 ap = 0; in checkRoundTrip_wrapInputStream() 941 b = b64is.read(actual, ap, l); in checkRoundTrip_wrapInputStream() 945 ap += b; in checkRoundTrip_wrapInputStream() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 402 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeFields() local 405 … updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, Math.addExact(Math.multiplyExact(ap, 12), hap)); in resolveTimeFields() 407 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeFields() 409 updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, ap * 12 + hap); in resolveTimeFields() 539 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeLenient() local 541 resolveTime(Math.addExact(Math.multiplyExact(ap, 12), 6), 0, 0, 0); in resolveTimeLenient() 543 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeLenient() 544 resolveTime(ap * 12 + 6, 0, 0, 0); in resolveTimeLenient()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | RicochetTest.java | 238 int ap = 0, arg = 31; in testIntCollects() local 240 args[ap++] = arg++ + 0; in testIntCollects() 242 args[ap++] = arg++ + 10; in testIntCollects() 243 while (ap < args.length) in testIntCollects() 244 args[ap++] = arg++ + 20; in testIntCollects() 278 int ap = 0, arg = 31; in testByteCollects() local 280 args[ap++] = (byte)(arg++ + 0); in testByteCollects() 282 args[ap++] = (byte)(arg++ + 10); in testByteCollects() 283 while (ap < args.length) in testByteCollects() 284 args[ap++] = (byte)(arg++ + 20); in testByteCollects()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | Log10Tests.java | 99 {0x1.3ffffffffff8ap-275, -0x1.4abecf98d2e7bp6}, in testLog10() 271 {0x1.3ffffffffff9ap-193, -0x1.d003d937432dp5}, in testLog10() 308 {0x1.3fffffffffddap-176, -0x1.a713302bf04ap5}, in testLog10() 422 {0x1.3fffffffffd4ap-123, -0x1.27703035cfc1ep5}, in testLog10() 482 {0x1.3fffffffffffap-96, -0x1.ccd4de0b6b0b6p4}, in testLog10() 508 {0x1.3ffffffffff7ap-83, -0x1.8e379f4564bf2p4}, in testLog10() 580 {0x1.3ffffffffffdap-32, -0x1.31275202e6d7p3}, in testLog10()
|
D | CubeRootTests.java | 408 {0x0.0007ffffffffap-1022, 0x1.fffffffff8p-346}, in testCubeRoot() 460 {0x0.0000ffffffap-1022, 0x1.ffffffcp-347}, in testCubeRoot()
|
/libcore/ojluni/src/main/native/ |
D | UNIXProcess_md.c | 601 va_list ap; in debugPrint() local 602 va_start(ap, format); in debugPrint() 603 vfprintf(tty, format, ap); in debugPrint() 604 va_end(ap); in debugPrint()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | SinCosCornerCasesTests.java | 159 {0x1.000000000023ap-7, 0x1.fffeaaaaef362p-8, 0x1.fffeaaaaef363p-8}, in testCornerCasesSin() 160 {-0x1.000000000023ap-7, -0x1.fffeaaaaef362p-8, -0x1.fffeaaaaef363p-8}, in testCornerCasesSin() 654 {0x1.999999999999ap-13, 0x1.9999996de8ca2p-13, 0x1.9999996de8ca1p-13}, in testCornerCasesSin() 655 {-0x1.999999999999ap-13, -0x1.9999996de8ca2p-13, -0x1.9999996de8ca1p-13}, in testCornerCasesSin() 656 {0x1.999999999999ap-12, 0x1.999998ead65b9p-12, 0x1.999998ead65bap-12}, in testCornerCasesSin() 657 {-0x1.999999999999ap-12, -0x1.999998ead65b9p-12, -0x1.999998ead65bap-12}, in testCornerCasesSin() 660 {0x1.999999999999ap-11, 0x1.999996de8ca29p-11, 0x1.999996de8ca28p-11}, in testCornerCasesSin() 661 {-0x1.999999999999ap-11, -0x1.999996de8ca29p-11, -0x1.999996de8ca28p-11}, in testCornerCasesSin() 682 {0x1.399999999999ap-5, 0x1.3985fe46f1c87p-5, 0x1.3985fe46f1c88p-5}, in testCornerCasesSin() 683 {-0x1.399999999999ap-5, -0x1.3985fe46f1c87p-5, -0x1.3985fe46f1c88p-5}, in testCornerCasesSin() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 545 AbstractPipeline ap = (AbstractPipeline) out; in exercise() local 546 boolean isOrdered = StreamOpFlag.ORDERED.isKnown(ap.getStreamFlags()); in exercise() 547 StreamShape shape = ap.getOutputShape(); in exercise() 551 Node<U> node = ap.evaluateToArrayNode(size -> (U[]) new Object[size]); in exercise()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | OpTestCase.java | 546 AbstractPipeline ap = (AbstractPipeline) out; in exercise() local 547 boolean isOrdered = StreamOpFlag.ORDERED.isKnown(ap.getStreamFlags()); in exercise() 548 StreamShape shape = ap.getOutputShape(); in exercise() 552 Node<U> node = ap.evaluateToArrayNode(size -> (U[]) new Object[size]); in exercise()
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | OldAbstractPreferencesTest.java | 186 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testClear() local 208 ap.clear(); in testClear() 989 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testExportNode() local
|
/libcore/luni/src/test/resources/ |
D | math_tests.csv | 146 tan,0x1.200000000007ap-22,0x1.2p-22 147 tan,-0x1.200000000007ap-22,-0x1.2p-22 463 tan,0x1.999999f0fb38cp-13,0x1.999999999999ap-13 464 tan,-0x1.999999f0fb38cp-13,-0x1.999999999999ap-13 465 tan,0x1.99999af720174p-12,0x1.999999999999ap-12 466 tan,-0x1.99999af720174p-12,-0x1.999999999999ap-12 469 tan,0x1.99999f0fb3a1p-11,0x1.999999999999ap-11 470 tan,-0x1.99999f0fb3a1p-11,-0x1.999999999999ap-11 491 tan,0x1.39c0d6dea66fbp-5,0x1.399999999999ap-5 492 tan,-0x1.39c0d6dea66fbp-5,-0x1.399999999999ap-5 [all …]
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BasicByte.java | 443 int ap = 8 - longMisalignmentAtZero; in testAlign() local 446 ByteBuffer ab = (ByteBuffer) b.position(ap).limit(al). in testAlign()
|
D | Basic-X.java.template | 443 int ap = 8 - longMisalignmentAtZero; 446 ByteBuffer ab = (ByteBuffer) b.position(ap).limit(al).
|