/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldParsePositionTest.java | 23 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 D | OldDateFormatTest.java | 379 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 D | OldMessageFormatTest.java | 401 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 D | SimpleDateFormatTest.java | 202 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 D | A.java | 4 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 D | Driver.java | 73 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 D | AlgorithmParameterGeneratorSpiTest.java | 50 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 D | MyKeyPairGenerator2.java | 52 public MyKeyPairGenerator2(String pp) { argument 53 super(pp);
|
H A D | MyKeyPairGenerator1.java | 50 public MyKeyPairGenerator1(String pp) { argument 51 super(pp);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyPairGeneratorSpiTest.java | 51 AlgorithmParameterSpec pp = null; 53 keyPairGen.initialize(pp, null); 58 keyPairGen.initialize(pp, new SecureRandom());
|
H A D | KeyStoreBuilderTest.java | 120 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 D | AlgorithmParameterGenerator2Test.java | 84 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 D | KeyPairGenerator2Test.java | 90 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 D | KeyStore2Test.java | 631 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 D | Signature2Test.java | 158 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 D | KeyStoreTest.java | 239 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 D | KeyStoreBuilderParametersTest.java | 40 KeyStore.ProtectionParameter pp = new ProtectionParameterImpl(); 41 KeyStore.Builder bld = KeyStore.Builder.newInstance("testType", null, pp);
|
/libcore/luni/src/main/java/java/security/ |
H A D | KeyStoreSpi.java | 304 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 D | XmlPullParserFactory.java | 181 final XmlPullParser pp = (XmlPullParser) ppClass.newInstance(); 187 pp.setFeature(key, true); 190 return pp;
|
/libcore/luni/src/main/java/java/sql/ |
H A D | Timestamp.java | 418 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 D | PKIXBuilderParametersTest.java | 135 PKIXBuilderParameters pp = 141 Set returnedSet = pp.getTrustAnchors();
|
H A D | CertStore1Test.java | 158 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 D | libcore_icu_NativeDecimalFormat.cpp | 299 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 D | KeyManagerFactoryTest.java | 104 PasswordProtection pp = new PasswordProtection(getTestKeyStore().storePassword); 105 Builder builder = Builder.newInstance(getTestKeyStore().keyStore, pp);
|
H A D | TrustManagerFactoryTest.java | 99 PKIXParameters pp = new PKIXParameters(getTestKeyStore().keyStore); 100 CertPathTrustManagerParameters cptmp = new CertPathTrustManagerParameters(pp);
|