/libcore/xml/src/main/java/org/xmlpull/v1/sax2/ |
D | Driver.java | 73 protected XmlPullParser pp; field in Driver 82 pp = factory.newPullParser(); in Driver() 85 public Driver(XmlPullParser pp) throws XmlPullParserException { in Driver() argument 86 this.pp = pp; in Driver() 91 public int getLength() { return pp.getAttributeCount(); } in getLength() 92 public String getURI(int index) { return pp.getAttributeNamespace(index); } in getURI() 93 public String getLocalName(int index) { return pp.getAttributeName(index); } in getLocalName() 95 final String prefix = pp.getAttributePrefix(index); in getQName() 97 return prefix+':'+pp.getAttributeName(index); in getQName() 99 return pp.getAttributeName(index); in getQName() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParsePositionTest.java | 23 ParsePosition pp; field in ParsePositionTest 43 assertTrue("equals failed.", !pp.equals(pp2)); in test_equalsLjava_lang_Object() 44 pp.setErrorIndex(56); in test_equalsLjava_lang_Object() 45 pp.setIndex(43); in test_equalsLjava_lang_Object() 46 assertTrue("equals failed.", pp.equals(pp2)); in test_equalsLjava_lang_Object() 54 pp.setErrorIndex(56); in test_getErrorIndex() 55 assertEquals("getErrorIndex failed.", 56, pp.getErrorIndex()); in test_getErrorIndex() 63 assertTrue("getIndex failed.", pp.getIndex() == Integer.MAX_VALUE); in test_getIndex() 73 assertEquals(pp.hashCode(), pp2.hashCode()); in test_hashCode() 81 pp.setErrorIndex(4564); in test_setErrorIndexI() [all …]
|
D | SimpleDateFormatTest.java | 901 ParsePosition pp = new ParsePosition(0); in test_parse_with_spaces() local 902 Date d = df.parse(allowed_chars[i] + "9:07:06", pp); in test_parse_with_spaces() 906 pp = new ParsePosition(0); in test_parse_with_spaces() 907 d = df.parse("09:" + allowed_chars[i] + "7:06", pp); in test_parse_with_spaces() 911 pp = new ParsePosition(0); in test_parse_with_spaces() 912 d = df.parse("09:07:" + allowed_chars[i] + "6", pp); in test_parse_with_spaces() 926 ParsePosition pp = new ParsePosition(0); in test_parse_with_spaces() local 927 Date d = df.parse(not_allowed_chars[i] + "9:07", pp); in test_parse_with_spaces() 930 pp = new ParsePosition(0); in test_parse_with_spaces() 931 d = df.parse("09:" + not_allowed_chars[i] + "7", pp); in test_parse_with_spaces() [all …]
|
D | MessageFormatTest.java | 160 ParsePosition pp = new ParsePosition(0); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() local 161 int parseIndex = pp.getIndex(); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 162 res = (Object[]) mf.parseObject(result, pp); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 165 assertTrue("ParseIndex is incorrect", pp.getIndex() != parseIndex); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 169 pp.setIndex(0); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 173 res = (Object[]) mf.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 175 assertTrue("ParseIndex is incorrect", pp.getIndex() == 0); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() 176 assertTrue("ParseErrorIndex is incorrect", pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldParsePositionTest.java | 23 ParsePosition pp = new ParsePosition(Integer.MAX_VALUE); field in OldParsePositionTest 38 pp.setErrorIndex(56); in test_getErrorIndex() 39 assertEquals("getErrorIndex failed.", 56, pp.getErrorIndex()); in test_getErrorIndex() 40 pp.setErrorIndex(Integer.MAX_VALUE); in test_getErrorIndex() 42 pp.getErrorIndex()); in test_getErrorIndex() 44 pp.getErrorIndex()); in test_getErrorIndex()
|
D | OldDateFormatTest.java | 385 ParsePosition pp = new ParsePosition(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() local 386 int parseIndex = pp.getIndex(); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 387 Date result = (Date) df.parseObject(df.format(current), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 397 assertTrue("ParseIndex is incorrect", pp.getIndex() != parseIndex); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 400 pp.setIndex(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 404 result = (Date) df.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 406 assertTrue("ParseIndex is incorrect", pp.getIndex() == 0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 408 pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 410 pp.setIndex(2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 412 char [] newArray = new char[curDate.length + pp.getIndex()]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | SimpleDateFormatTest.java | 214 ParsePosition pp = new ParsePosition(0); in assertCannotParse() local 215 Date d = sdf.parse(value, pp); in assertCannotParse() 221 ParsePosition pp = new ParsePosition(0); in parseDate() local 222 Date d = sdf.parse(value, pp); in parseDate() 224 fail(pp.toString()); in parseDate() 226 if (pp.getIndex() != value.length()) { in parseDate() 227 fail("Value " + value + " must be fully consumed: " + pp.toString()); in parseDate()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/support/ |
D | A.java | 21 private static P pp = new P(); field in A 24 pp.setClazz(getClass()); in A() 28 return pp.findProp(key); in find()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/ |
D | A.java | 4 private static P pp = new P(); field in A 7 pp.setClazz(getClass()); in A() 11 return pp.findProp(key); in find()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStoreBuilderTest.java | 120 KeyStore.ProtectionParameter[] pp = { protPass, protPass1, in testNewInstanceKeyStoreProtectionParameter() local 122 for (int i = 0; i < pp.length; i++) { in testNewInstanceKeyStoreProtectionParameter() 125 KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 132 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 136 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 148 assertEquals(ksB.getProtectionParameter("aaa"), pp[i]); in testNewInstanceKeyStoreProtectionParameter() 154 assertEquals(ksB.getProtectionParameter("Bad alias"), pp[i]); in testNewInstanceKeyStoreProtectionParameter() 161 assertEquals(ksB.getProtectionParameter(""), pp[i]); in testNewInstanceKeyStoreProtectionParameter() 186 assertEquals(pPar, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 397 KeyStore.ProtectionParameter[] pp = { protPass, myPP, callbackHand }; in testNewInstanceStringProviderProtectionParameter() local [all …]
|
D | KeyPairGeneratorSpiTest.java | 51 AlgorithmParameterSpec pp = null; in testKeyPairGeneratorSpi01() local 53 keyPairGen.initialize(pp, null); in testKeyPairGeneratorSpi01() 58 keyPairGen.initialize(pp, new SecureRandom()); in testKeyPairGeneratorSpi01()
|
D | AlgorithmParameterGenerator2Test.java | 84 AlgorithmParameterSpec pp = null; in checkResult() local 85 algParGen.init(pp, new SecureRandom()); in checkResult() 86 algParGen.init(pp); in checkResult() 88 algParGen.init(pp, null); in checkResult() 92 pp = new tmpAlgorithmParameterSpec("Proba"); in checkResult() 93 algParGen.init(pp, new SecureRandom()); in checkResult() 94 algParGen.init(pp); in checkResult()
|
D | KeyStore2Test.java | 631 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord); in test_deleteEntry() local 636 keyTest.setEntry("symKey", pkEntry, pp); in test_deleteEntry() 670 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection( in test_getCreationDate() local 677 keyTest.setEntry("alias1", pke, pp); in test_getCreationDate() 678 keyTest.setEntry("alias2", pke1, pp); in test_getCreationDate() 765 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord); in test_getEntry() local 766 assertNull(keyTest.getEntry("alias", pp)); in test_getEntry() 771 keyTest.setEntry("alias1", pke1, pp); in test_getEntry() 772 keyTest.setEntry("alias2", pke2, pp); in test_getEntry() 774 assertNull(keyTest.getEntry("alias", pp)); in test_getEntry() [all …]
|
D | KeyPairGenerator2Test.java | 90 AlgorithmParameterSpec pp = null; in checkResult() local 94 keyPairGen.initialize(pp, new SecureRandom()); in checkResult() 118 keyPairGen.initialize(pp, new SecureRandom()); in checkResult() 133 keyPairGen.initialize(pp, new SecureRandom()); in checkResult() 134 keyPairGen.initialize(pp); in checkResult() 143 keyPairGen.initialize(pp, null); in checkResult() 147 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
|
D | Signature2Test.java | 165 Provider[] pp = Security.getProviders(); in test_getInstanceLjava_lang_StringLjava_lang_String() local 166 for (int i = 0; i < pp.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String() 168 Signature.getInstance("DSA", pp[i].toString()); in test_getInstanceLjava_lang_StringLjava_lang_String() 169 fail(pp[i].toString()); in test_getInstanceLjava_lang_StringLjava_lang_String() 281 Provider[] pp = Security.getProviders(); in test_initVerifyLjava_security_Certificate() local 282 if (pp == null) { in test_initVerifyLjava_security_Certificate()
|
D | KeyStoreTest.java | 236 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(password); in testKeyStorePPGetPassword() local 237 assertNotSame(pp.getPassword(), password); in testKeyStorePPGetPassword() 238 assertSame(pp.getPassword(), pp.getPassword()); in testKeyStorePPGetPassword()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | AlgorithmParameterGeneratorSpiTest.java | 50 AlgorithmParameterSpec pp = null; in testAlgorithmParameterGeneratorSpi01() local 51 algParGen.engineInit(pp, new SecureRandom()); in testAlgorithmParameterGeneratorSpi01() 53 algParGen.engineInit(pp, null); in testAlgorithmParameterGeneratorSpi01()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator2.java | 52 public MyKeyPairGenerator2(String pp) { in MyKeyPairGenerator2() argument 53 super(pp); in MyKeyPairGenerator2()
|
D | MyKeyPairGenerator1.java | 50 public MyKeyPairGenerator1(String pp) { in MyKeyPairGenerator1() argument 51 super(pp); in MyKeyPairGenerator1()
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 1035 WNode h, np, pp; int ps; in acquireWrite() local 1074 if ((pp = p.prev) != null) { in acquireWrite() 1075 node.prev = pp; in acquireWrite() 1076 pp.next = node; in acquireWrite() 1162 WNode pp, c; Thread w; in acquireRead() local 1167 if (h == (pp = p.prev) || h == p || pp == null) { in acquireRead() 1181 if (whead == h && p.prev == pp) { in acquireRead() 1183 if (pp == null || h == p || p.status > 0) { in acquireRead() 1197 if ((h != pp || (state & ABITS) == WBIT) && in acquireRead() 1198 whead == h && p.prev == pp) in acquireRead() [all …]
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserFactory.java | 127 final XmlPullParser pp = getParserInstance(); in newPullParser() local 132 pp.setFeature(entry.getKey(), entry.getValue()); in newPullParser() 136 return pp; in newPullParser()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | KeyStoreBuilderParametersTest.java | 40 KeyStore.ProtectionParameter pp = new ProtectionParameterImpl(); in test_Constructor01() local 41 KeyStore.Builder bld = KeyStore.Builder.newInstance("testType", null, pp); in test_Constructor01()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStoreSpi.java | 470 KeyStore.PasswordProtection pp = in engineGetEntry() local 472 password = pp.getPassword(); in engineGetEntry()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertStore1Test.java | 158 MyCertStoreParameters pp = new MyCertStoreParameters(); in testCertStore02() local 159 CertStoreSpi spi = new MyCertStoreSpi(pp); in testCertStore02() 160 CertStore certS = new myCertStore(spi, dProv, dType, pp); in testCertStore02()
|
D | PKIXBuilderParametersTest.java | 135 PKIXBuilderParameters pp = in testPKIXBuilderParametersSetCertSelector03() local 141 Set returnedSet = pp.getTrustAnchors(); in testPKIXBuilderParametersSetCertSelector03()
|