/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 | 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 | 390 ParsePosition pp = new ParsePosition(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() local 391 int parseIndex = pp.getIndex(); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 392 Date result = (Date) df.parseObject(df.format(current), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 402 assertTrue("ParseIndex is incorrect", pp.getIndex() != parseIndex); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 405 pp.setIndex(0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 409 result = (Date) df.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 411 assertTrue("ParseIndex is incorrect", pp.getIndex() == 0); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 413 pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 415 pp.setIndex(2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 417 char [] newArray = new char[curDate.length + pp.getIndex()]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | SimpleDateFormatTest.java | 240 ParsePosition pp = new ParsePosition(0); in assertCannotParse() local 241 Date d = sdf.parse(value, pp); in assertCannotParse() 257 ParsePosition pp = new ParsePosition(0); in parseDate() local 258 Date d = sdf.parse(value, pp); in parseDate() 260 fail(pp.toString()); in parseDate() 262 if (pp.getIndex() != value.length()) { in parseDate() 263 fail("Value " + value + " must be fully consumed: " + pp.toString()); in parseDate()
|
/libcore/ojluni/src/test/java/text/Format/NumberFormat/ |
D | BigDecimalParse.java | 107 ParsePosition pp; field in BigDecimalParse 481 pp = new ParsePosition(0); in test_Parse_in_MessageFormat_NotParseIntegerOnly() 491 parsed = mf.parse(from[i], pp); in test_Parse_in_MessageFormat_NotParseIntegerOnly() 493 if (pp.getErrorIndex() != -1) { in test_Parse_in_MessageFormat_NotParseIntegerOnly() 496 pp.getErrorIndex() + " for " + from[i]); in test_Parse_in_MessageFormat_NotParseIntegerOnly() 498 if (pp.getIndex() != parsePosition1[i]) { in test_Parse_in_MessageFormat_NotParseIntegerOnly() 501 parsePosition1[i] + ", got:"+ pp.getIndex() + in test_Parse_in_MessageFormat_NotParseIntegerOnly() 567 pp = new ParsePosition(0); in test_Parse_in_MessageFormat_ParseIntegerOnly() 578 parsed = mf.parse(from[i], pp); in test_Parse_in_MessageFormat_ParseIntegerOnly() 580 if (pp.getErrorIndex() != parsePosition2[i][0]) { in test_Parse_in_MessageFormat_ParseIntegerOnly() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 1115 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstFixedWidth() local 1116 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstFixedWidth() 1117 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstFixedWidth() 1118 assertEquals(pp.getIndex(), 5); in test_adjacent_strict_firstFixedWidth() 1127 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_success() local 1128 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_strict_firstVariableWidth_success() 1129 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstVariableWidth_success() 1130 assertEquals(pp.getIndex(), 6); in test_adjacent_strict_firstVariableWidth_success() 1139 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_fails() local 1140 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstVariableWidth_fails() [all …]
|
/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 | 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 | 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 | 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/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/util/ |
D | HashMap.java | 2220 TreeNode<K,V> pp = p.parent; in removeTreeNode() local 2241 if ((s.parent = pp) == null) in removeTreeNode() 2243 else if (p == pp.left) in removeTreeNode() 2244 pp.left = s; in removeTreeNode() 2246 pp.right = s; in removeTreeNode() 2259 TreeNode<K,V> pp = replacement.parent = p.parent; in removeTreeNode() local 2260 if (pp == null) in removeTreeNode() 2262 else if (p == pp.left) in removeTreeNode() 2263 pp.left = replacement; in removeTreeNode() 2265 pp.right = replacement; in removeTreeNode() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 473 … NumberPrinterParser pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE); in appendValue() local 474 appendValue(pp); in appendValue() 526 NumberPrinterParser pp = new NumberPrinterParser(field, minWidth, maxWidth, signStyle); in appendValue() local 527 appendValue(pp); in appendValue() 573 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced() local 574 appendValue(pp); in appendValueReduced() 634 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, 0, baseDate); in appendValueReduced() local 635 appendValue(pp); in appendValueReduced() 653 private DateTimeFormatterBuilder appendValue(NumberPrinterParser pp) { in appendValue() argument 659 if (pp.minWidth == pp.maxWidth && pp.signStyle == SignStyle.NOT_NEGATIVE) { in appendValue() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStoreSpi.java | 507 KeyStore.PasswordProtection pp = in engineGetEntry() local 509 password = pp.getPassword(); in engineGetEntry()
|