Searched refs:pp (Results 1 - 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/text/
H A DOldParsePositionTest.java23 ParsePosition pp = new ParsePosition(Integer.MAX_VALUE); field in class:OldParsePositionTest
38 pp.setErrorIndex(56);
39 assertEquals("getErrorIndex failed.", 56, pp.getErrorIndex());
40 pp.setErrorIndex(Integer.MAX_VALUE);
42 pp.getErrorIndex());
44 pp.getErrorIndex());
H A DOldDateFormatTest.java379 ParsePosition pp = new ParsePosition(0);
380 int parseIndex = pp.getIndex();
381 Date result = (Date) df.parseObject(df.format(current), pp);
391 assertTrue("ParseIndex is incorrect", pp.getIndex() != parseIndex);
394 pp.setIndex(0);
398 result = (Date) df.parseObject(partialCorrect, pp);
400 assertTrue("ParseIndex is incorrect", pp.getIndex() == 0);
402 pp.getErrorIndex() == cur.length / 2);
404 pp.setIndex(2);
406 char [] newArray = new char[curDate.length + pp
[all...]
H A DOldMessageFormatTest.java401 ParsePosition pp = new ParsePosition(0);
402 int parseIndex = pp.getIndex();
403 res = (Object[]) mf.parseObject(result, pp);
407 assertTrue("ParseIndex is incorrect", pp.getIndex() != parseIndex);
412 pp.setIndex(0);
416 res = (Object[]) mf.parseObject(partialCorrect, pp);
418 assertTrue("ParseIndex is incorrect", pp.getIndex() == 0);
420 pp.getErrorIndex() == cur.length / 2);
H A DSimpleDateFormatTest.java202 ParsePosition pp = new ParsePosition(0);
203 Date d = sdf.parse(value, pp);
205 fail(pp.toString());
/libcore/luni/src/test/java/tests/api/java/util/support/
H A DA.java4 private static P pp = new P(); field in class:A
7 pp.setClazz(getClass());
11 return pp.findProp(key);
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
H A DDriver.java73 protected XmlPullParser pp; field in class:Driver
82 pp = factory.newPullParser();
85 public Driver(XmlPullParser pp) throws XmlPullParserException { argument
86 this.pp = pp;
91 public int getLength() { return pp.getAttributeCount(); }
92 public String getURI(int index) { return pp.getAttributeNamespace(index); }
93 public String getLocalName(int index) { return pp.getAttributeName(index); }
95 final String prefix = pp.getAttributePrefix(index);
97 return prefix+':'+pp
352 parseSubTree(XmlPullParser pp) argument
[all...]
/libcore/luni/src/test/java/tests/java/security/
H A DAlgorithmParameterGeneratorSpiTest.java50 AlgorithmParameterSpec pp = null;
51 algParGen.engineInit(pp, new SecureRandom());
53 algParGen.engineInit(pp, null);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyKeyPairGenerator2.java52 public MyKeyPairGenerator2(String pp) { argument
53 super(pp);
H A DMyKeyPairGenerator1.java50 public MyKeyPairGenerator1(String pp) { argument
51 super(pp);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyPairGeneratorSpiTest.java51 AlgorithmParameterSpec pp = null;
53 keyPairGen.initialize(pp, null);
58 keyPairGen.initialize(pp, new SecureRandom());
H A DKeyStoreBuilderTest.java120 KeyStore.ProtectionParameter[] pp = { protPass, protPass1,
122 for (int i = 0; i < pp.length; i++) {
125 KeyStore.Builder.newInstance(ks, pp[i]);
132 ksB = KeyStore.Builder.newInstance(ks, pp[i]);
136 ksB = KeyStore.Builder.newInstance(ks, pp[i]);
148 assertEquals(ksB.getProtectionParameter("aaa"), pp[i]);
154 assertEquals(ksB.getProtectionParameter("Bad alias"), pp[i]);
161 assertEquals(ksB.getProtectionParameter(""), pp[i]);
186 assertEquals(pPar, pp[i]);
397 KeyStore.ProtectionParameter[] pp
[all...]
H A DAlgorithmParameterGenerator2Test.java84 AlgorithmParameterSpec pp = null;
85 algParGen.init(pp, new SecureRandom());
86 algParGen.init(pp);
88 algParGen.init(pp, null);
92 pp = new tmpAlgorithmParameterSpec("Proba");
93 algParGen.init(pp, new SecureRandom());
94 algParGen.init(pp);
H A DKeyPairGenerator2Test.java90 AlgorithmParameterSpec pp = null;
94 keyPairGen.initialize(pp, new SecureRandom());
118 keyPairGen.initialize(pp, new SecureRandom());
133 keyPairGen.initialize(pp, new SecureRandom());
134 keyPairGen.initialize(pp);
143 keyPairGen.initialize(pp, null);
147 keyPairGen.initialize(pp, new SecureRandom());
H A DKeyStore2Test.java631 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord);
636 keyTest.setEntry("symKey", pkEntry, pp);
670 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(
677 keyTest.setEntry("alias1", pke, pp);
678 keyTest.setEntry("alias2", pke1, pp);
765 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord);
766 assertNull(keyTest.getEntry("alias", pp));
771 keyTest.setEntry("alias1", pke1, pp);
772 keyTest.setEntry("alias2", pke2, pp);
774 assertNull(keyTest.getEntry("alias", pp));
[all...]
H A DSignature2Test.java158 Provider[] pp = Security.getProviders();
159 for (int i = 0; i < pp.length; i++) {
161 Signature.getInstance("DSA", pp[i].toString());
162 fail(pp[i].toString());
274 Provider[] pp = Security.getProviders();
275 if (pp == null) {
H A DKeyStoreTest.java239 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(password);
240 assertNotSame(pp.getPassword(), password);
241 assertSame(pp.getPassword(), pp.getPassword());
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DKeyStoreBuilderParametersTest.java40 KeyStore.ProtectionParameter pp = new ProtectionParameterImpl();
41 KeyStore.Builder bld = KeyStore.Builder.newInstance("testType", null, pp);
/libcore/luni/src/main/java/java/security/
H A DKeyStoreSpi.java304 KeyStore.ProtectionParameter pp = param.getProtectionParameter();
305 if (pp instanceof KeyStore.PasswordProtection) {
307 pwd = ((KeyStore.PasswordProtection) pp).getPassword();
314 if (pp instanceof KeyStore.CallbackHandlerProtection) {
316 pwd = getPasswordFromCallBack(pp);
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java181 final XmlPullParser pp = (XmlPullParser) ppClass.newInstance();
187 pp.setFeature(key, true);
190 return pp;
/libcore/luni/src/main/java/java/sql/
H A DTimestamp.java418 ParsePosition pp = new ParsePosition(0);
429 theDate = df.parse(s, pp);
446 int position = pp.getIndex();
/libcore/luni/src/test/java/tests/security/cert/
H A DPKIXBuilderParametersTest.java135 PKIXBuilderParameters pp =
141 Set returnedSet = pp.getTrustAnchors();
H A DCertStore1Test.java158 MyCertStoreParameters pp = new MyCertStoreParameters();
159 CertStoreSpi spi = new MyCertStoreSpi(pp);
160 CertStore certS = new myCertStore(spi, dProv, dType, pp);
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeDecimalFormat.cpp299 ParsePosition pp(parsePos);
305 fmt->parse(src.unicodeString(), res, pp);
307 if (pp.getErrorIndex() == -1) {
308 env->CallVoidMethod(position, gPP_setIndex, pp.getIndex());
310 env->CallVoidMethod(position, gPP_setErrorIndex, pp.getErrorIndex());
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DKeyManagerFactoryTest.java104 PasswordProtection pp = new PasswordProtection(getTestKeyStore().storePassword);
105 Builder builder = Builder.newInstance(getTestKeyStore().keyStore, pp);
H A DTrustManagerFactoryTest.java99 PKIXParameters pp = new PKIXParameters(getTestKeyStore().keyStore);
100 CertPathTrustManagerParameters cptmp = new CertPathTrustManagerParameters(pp);

Completed in 715 milliseconds

12