/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() 71 assertTrue("Wrong hashCode returned", (pp.hashCode() == pp.getIndex() in test_hashCode() 72 + pp.getErrorIndex())); in test_hashCode() [all …]
|
D | SimpleDateFormatTest.java | 797 ParsePosition pp = new ParsePosition(0); in test_parse_with_spaces() local 798 Date d = df.parse(allowed_chars[i] + "9:07:06", pp); in test_parse_with_spaces() 802 pp = new ParsePosition(0); in test_parse_with_spaces() 803 d = df.parse("09:" + allowed_chars[i] + "7:06", pp); in test_parse_with_spaces() 807 pp = new ParsePosition(0); in test_parse_with_spaces() 808 d = df.parse("09:07:" + allowed_chars[i] + "6", pp); in test_parse_with_spaces() 822 ParsePosition pp = new ParsePosition(0); in test_parse_with_spaces() local 823 Date d = df.parse(not_allowed_chars[i] + "9:07", pp); in test_parse_with_spaces() 826 pp = new ParsePosition(0); in test_parse_with_spaces() 827 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 | 379 ParsePosition pp = new ParsePosition(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() local 380 int parseIndex = pp.getIndex(); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 381 Date result = (Date) df.parseObject(df.format(current), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 391 assertTrue("ParseIndex is incorrect", pp.getIndex() != parseIndex); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 394 pp.setIndex(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 398 result = (Date) df.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 400 assertTrue("ParseIndex is incorrect", pp.getIndex() == 0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 402 pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 404 pp.setIndex(2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 406 char [] newArray = new char[curDate.length + pp.getIndex()]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | SimpleDateFormatTest.java | 187 ParsePosition pp = new ParsePosition(0); in assertCannotParse() local 188 Date d = sdf.parse(value, pp); in assertCannotParse() 194 ParsePosition pp = new ParsePosition(0); in parseDate() local 195 Date d = sdf.parse(value, pp); in parseDate() 197 fail(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 | 168 Provider[] pp = Security.getProviders(); in test_getInstanceLjava_lang_StringLjava_lang_String() local 169 for (int i = 0; i < pp.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String() 171 Signature.getInstance("DSA", pp[i].toString()); in test_getInstanceLjava_lang_StringLjava_lang_String() 172 fail(pp[i].toString()); in test_getInstanceLjava_lang_StringLjava_lang_String() 284 Provider[] pp = Security.getProviders(); in test_initVerifyLjava_security_Certificate() local 285 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/security/ |
D | KeyStoreSpi.java | 304 KeyStore.ProtectionParameter pp = param.getProtectionParameter(); in engineLoad() local 305 if (pp instanceof KeyStore.PasswordProtection) { in engineLoad() 307 pwd = ((KeyStore.PasswordProtection) pp).getPassword(); in engineLoad() 314 if (pp instanceof KeyStore.CallbackHandlerProtection) { in engineLoad() 316 pwd = getPasswordFromCallBack(pp); in engineLoad()
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserFactory.java | 130 final XmlPullParser pp = getParserInstance(); in newPullParser() local 135 pp.setFeature(entry.getKey(), entry.getValue()); in newPullParser() 139 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/luni/src/main/java/java/sql/ |
D | Timestamp.java | 418 ParsePosition pp = new ParsePosition(0); in valueOf() local 429 date = df.parse(s, pp); in valueOf() 446 int position = pp.getIndex(); in valueOf()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 2147 TreeNode<K,V> pp = p.parent; in removeTreeNode() local 2168 if ((s.parent = pp) == null) in removeTreeNode() 2170 else if (p == pp.left) in removeTreeNode() 2171 pp.left = s; in removeTreeNode() 2173 pp.right = s; in removeTreeNode() 2186 TreeNode<K,V> pp = replacement.parent = p.parent; in removeTreeNode() local 2187 if (pp == null) in removeTreeNode() 2189 else if (p == pp.left) in removeTreeNode() 2190 pp.left = replacement; in removeTreeNode() 2192 pp.right = replacement; in removeTreeNode() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeDecimalFormat.cpp | 322 ParsePosition pp(parsePos); in NativeDecimalFormat_parse() local 324 fmt->parse(src.unicodeString(), res, pp); in NativeDecimalFormat_parse() 326 if (pp.getErrorIndex() == -1) { in NativeDecimalFormat_parse() 327 env->CallVoidMethod(position, gPP_setIndex, pp.getIndex()); in NativeDecimalFormat_parse() 329 env->CallVoidMethod(position, gPP_setErrorIndex, pp.getErrorIndex()); in NativeDecimalFormat_parse()
|