Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 34) sorted by relevance

12

/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java73 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/
DParsePositionTest.java23 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 …]
DMessageFormatTest.java160 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/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java740 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstFixedWidth() local
741 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstFixedWidth()
742 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstFixedWidth()
743 assertEquals(pp.getIndex(), 5); in test_adjacent_strict_firstFixedWidth()
752 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_success() local
753 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_strict_firstVariableWidth_success()
754 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstVariableWidth_success()
755 assertEquals(pp.getIndex(), 6); in test_adjacent_strict_firstVariableWidth_success()
764 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_fails() local
765 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstVariableWidth_fails()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldParsePositionTest.java23 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()
DOldDateFormatTest.java385 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 …]
DSimpleDateFormatTest.java239 ParsePosition pp = new ParsePosition(0); in assertCannotParse() local
240 Date d = sdf.parse(value, pp); in assertCannotParse()
256 ParsePosition pp = new ParsePosition(0); in parseDate() local
257 Date d = sdf.parse(value, pp); in parseDate()
259 fail(pp.toString()); in parseDate()
261 if (pp.getIndex() != value.length()) { in parseDate()
262 fail("Value " + value + " must be fully consumed: " + pp.toString()); in parseDate()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/support/
DA.java21 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/
DA.java4 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/
DKeyStoreBuilderTest.java120 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 …]
DAlgorithmParameterGenerator2Test.java84 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()
DKeyPairGeneratorSpiTest.java51 AlgorithmParameterSpec pp = null; in testKeyPairGeneratorSpi01() local
53 keyPairGen.initialize(pp, null); in testKeyPairGeneratorSpi01()
58 keyPairGen.initialize(pp, new SecureRandom()); in testKeyPairGeneratorSpi01()
DKeyStore2Test.java631 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 …]
DKeyPairGenerator2Test.java90 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()
DSignature2Test.java165 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()
DKeyStoreTest.java236 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/
DAlgorithmParameterGeneratorSpiTest.java50 AlgorithmParameterSpec pp = null; in testAlgorithmParameterGeneratorSpi01() local
51 algParGen.engineInit(pp, new SecureRandom()); in testAlgorithmParameterGeneratorSpi01()
53 algParGen.engineInit(pp, null); in testAlgorithmParameterGeneratorSpi01()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java1064 WNode h, np, pp; int ps; in acquireWrite() local
1103 if ((pp = p.prev) != null) { in acquireWrite()
1104 node.prev = pp; in acquireWrite()
1105 pp.next = node; in acquireWrite()
1191 WNode pp, c; Thread w; in acquireRead() local
1196 if (h == (pp = p.prev) || h == p || pp == null) { in acquireRead()
1210 if (whead == h && p.prev == pp) { in acquireRead()
1212 if (pp == null || h == p || p.status > 0) { in acquireRead()
1226 if ((h != pp || (state & ABITS) == WBIT) && in acquireRead()
1227 whead == h && p.prev == pp) in acquireRead()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator2.java52 public MyKeyPairGenerator2(String pp) { in MyKeyPairGenerator2() argument
53 super(pp); in MyKeyPairGenerator2()
DMyKeyPairGenerator1.java50 public MyKeyPairGenerator1(String pp) { in MyKeyPairGenerator1() argument
51 super(pp); in MyKeyPairGenerator1()
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java127 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/
DKeyStoreBuilderParametersTest.java40 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/
DHashMap.java2057 TreeNode<K,V> pp = p.parent; in removeTreeNode() local
2078 if ((s.parent = pp) == null) in removeTreeNode()
2080 else if (p == pp.left) in removeTreeNode()
2081 pp.left = s; in removeTreeNode()
2083 pp.right = s; in removeTreeNode()
2096 TreeNode<K,V> pp = replacement.parent = p.parent; in removeTreeNode() local
2097 if (pp == null) in removeTreeNode()
2099 else if (p == pp.left) in removeTreeNode()
2100 pp.left = replacement; in removeTreeNode()
2102 pp.right = replacement; in removeTreeNode()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java461 … NumberPrinterParser pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE); in appendValue() local
462 appendValue(pp); in appendValue()
514 NumberPrinterParser pp = new NumberPrinterParser(field, minWidth, maxWidth, signStyle); in appendValue() local
515 appendValue(pp); in appendValue()
561 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced() local
562 appendValue(pp); in appendValueReduced()
622 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, 0, baseDate); in appendValueReduced() local
623 appendValue(pp); in appendValueReduced()
641 private DateTimeFormatterBuilder appendValue(NumberPrinterParser pp) { in appendValue() argument
647 if (pp.minWidth == pp.maxWidth && pp.signStyle == SignStyle.NOT_NEGATIVE) { in appendValue()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyStoreSpi.java478 KeyStore.PasswordProtection pp = in engineGetEntry() local
480 password = pp.getPassword(); in engineGetEntry()

12