Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 25 of 27) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/sql/
DOldPreparedStatementTest.java113 PreparedStatement ps = null; in testAddBatch() local
115 ps = conn in testAddBatch()
117 ps.addBatch("INSERT INTO zoo VALUES (?,'Burenka', ?); "); in testAddBatch()
118 ps.addBatch("INSERT INTO zoo VALUES (?,'Mashka','cat')"); in testAddBatch()
120 ps.executeBatch(); in testAddBatch()
124 ps.setString(1, "dog"); in testAddBatch()
127 ps.executeBatch(); in testAddBatch()
142 ps.close(); in testAddBatch()
148 ps = conn in testAddBatch()
150 ps.addBatch(""); in testAddBatch()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java569 PrintStream ps = new PrintStream(s.getOutputStream()); in handleClient() local
596 ps.print(HTTP_VERSION_STRING + " " + HTTP_BAD_METHOD + in handleClient()
598 ps.write(buf, 0, 5); in handleClient()
599 ps.write(EOL); in handleClient()
600 ps.flush(); in handleClient()
617 printStatus(ps); in handleClient()
618 printHeaders(ps); in handleClient()
621 psWriteEOL(ps); in handleClient()
628 send404(ps); in handleClient()
630 sendFile(ps); in handleClient()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DPSourceTest.java54 PSource.PSpecified ps = new PSource.PSpecified(p); in testPSpecified() local
57 + "should not cause the change of internal array.", p[0] == ps in testPSpecified()
69 PSource.PSpecified ps = new PSource.PSpecified(p); in testGetValue() local
70 byte[] result = ps.getValue(); in testGetValue()
78 result[0] == ps.getValue()[0]); in testGetValue()
101 PSource ps = new PSource(pSrcName) {}; in testGetAlgorithm() local
103 + "in constructor", pSrcName.equals(ps.getAlgorithm())); in testGetAlgorithm()
DRC2ParameterSpecTest.java62 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv); in testRC2ParameterSpec1() local
66 iv[0] == ps.getIV()[0]); in testRC2ParameterSpec1()
94 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv, offset); in testRC2ParameterSpec2() local
98 iv[offset] == ps.getIV()[0]); in testRC2ParameterSpec2()
109 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv); in testGetEffectiveKeyBits() local
112 effectiveKeyBits == ps.getEffectiveKeyBits()); in testGetEffectiveKeyBits()
125 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv); in testGetIV() local
126 byte[] result = ps.getIV(); in testGetIV()
134 result[0] == ps.getIV()[0]); in testGetIV()
135 ps = new RC2ParameterSpec(effectiveKeyBits); in testGetIV()
[all …]
DDHParameterSpecTest.java44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHParameterSpec() local
49 for (int i=0; i<ps.length; i++) { in testDHParameterSpec()
50 DHParameterSpec dhps = new DHParameterSpec(ps[i], gs[i]); in testDHParameterSpec()
53 dhps.getP(), ps[i]); in testDHParameterSpec()
58 for (int i=0; i<ps.length; i++) { in testDHParameterSpec()
59 DHParameterSpec dhps = new DHParameterSpec(ps[i], gs[i], ls[i]); in testDHParameterSpec()
62 dhps.getP(), ps[i]); in testDHParameterSpec()
DRC5ParameterSpecTest.java70 RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, in testRC5ParameterSpec1() local
75 iv[0] == ps.getIV()[0]); in testRC5ParameterSpec1()
120 RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, wordSize, in testRC5ParameterSpec2() local
125 iv[offset] == ps.getIV()[0]); in testRC5ParameterSpec2()
145 RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, wordSize); in testGetVersion() local
148 ps.getVersion() == version); in testGetVersion()
160 RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, wordSize); in testGetRounds() local
163 ps.getRounds() == rounds); in testGetRounds()
175 RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, wordSize); in testGetWordSize() local
178 ps.getWordSize() == wordSize); in testGetWordSize()
[all …]
DOAEPParameterSpecTest.java102 OAEPParameterSpec ps = new OAEPParameterSpec(mdName, mgfName, in testGetDigestAlgorithm() local
106 ps.getDigestAlgorithm().equals(mdName)); in testGetDigestAlgorithm()
118 OAEPParameterSpec ps = new OAEPParameterSpec(mdName, mgfName, in testGetMGFAlgorithm() local
122 ps.getMGFAlgorithm().equals(mgfName)); in testGetMGFAlgorithm()
134 OAEPParameterSpec ps = new OAEPParameterSpec(mdName, mgfName, in testGetMGFParameters() local
138 ps.getMGFParameters() == mgfSpec); in testGetMGFParameters()
150 OAEPParameterSpec ps = new OAEPParameterSpec(mdName, mgfName, in testGetPSource() local
154 ps.getPSource() == pSrc); in testGetPSource()
DDHPublicKeySpecTest.java44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() local
48 for (int i=0; i<ps.length; i++) { in testDHPrivateKeySpec()
49 DHPublicKeySpec dhpks = new DHPublicKeySpec(ys[i], ps[i], gs[i]); in testDHPrivateKeySpec()
55 dhpks.getP(), ps[i]); in testDHPrivateKeySpec()
DDHPrivateKeySpecTest.java44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() local
48 for (int i=0; i<ps.length; i++) { in testDHPrivateKeySpec()
49 DHPrivateKeySpec dhpks = new DHPrivateKeySpec(xs[i], ps[i], gs[i]); in testDHPrivateKeySpec()
55 dhpks.getP(), ps[i]); in testDHPrivateKeySpec()
DDHGenParameterSpecTest.java46 DHGenParameterSpec ps = new DHGenParameterSpec(primes[i], in testDHGenParameterSpec() local
50 ps.getPrimeSize(), primes[i]); in testDHGenParameterSpec()
53 ps.getPrimeSize(), exponents[i]); in testDHGenParameterSpec()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThrowableTest.java76 PrintStream ps = new PrintStream(bao); in test_fillInStackTrace() local
80 e.printStackTrace(ps); in test_fillInStackTrace()
82 ps.flush(); in test_fillInStackTrace()
89 e.printStackTrace(ps); in test_fillInStackTrace()
91 ps.close(); in test_fillInStackTrace()
131 PrintStream ps = new PrintStream(bao); in test_printStackTrace() local
133 System.setErr(ps); in test_printStackTrace()
136 ps.close(); in test_printStackTrace()
149 PrintStream ps = new PrintStream(bao); in test_printStackTraceLjava_io_PrintStream() local
151 x.printStackTrace(ps); in test_printStackTraceLjava_io_PrintStream()
[all …]
DProcessTest.java41 Process ps = Runtime.getRuntime().exec(psCommand, null, null); in test_55017() local
43 for (String line : readAndCloseStream(ps.getInputStream()).split("\n")) { in test_55017()
/libcore/luni/src/test/java/tests/java/sql/
DStressTest.java320 PreparedStatement ps = c.prepareStatement(query);
321 ps.setInt(1, pk);
322 ps.setString(2, "text");
323 ps.setString(3, "chr");
324 ps.setFloat(4, 0.1f);
325 ps.setFloat(5, 0.2f);
326 ps.setShort(6, (short) 3);
327 ps.setFloat(7, 0.4f);
328 ps.setDouble(8, 0.5);
329 ps.setDouble(9, 0.6);
[all …]
/libcore/luni/src/main/java/javax/crypto/spec/
DRC5ParameterSpec.java187 RC5ParameterSpec ps = (RC5ParameterSpec) obj; in equals() local
188 return (version == ps.version) in equals()
189 && (rounds == ps.rounds) in equals()
190 && (wordSize == ps.wordSize) in equals()
191 && (Arrays.equals(iv, ps.iv)); in equals()
DRC2ParameterSpec.java140 RC2ParameterSpec ps = (RC2ParameterSpec) obj; in equals() local
141 return (effectiveKeyBits == ps.effectiveKeyBits) in equals()
142 && (Arrays.equals(iv, ps.iv)); in equals()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java149 PrintStream ps = new PrintStream(baos); in test_listLjava_io_PrintStream() local
155 myProps.list(ps); in test_listLjava_io_PrintStream()
156 ps.flush(); in test_listLjava_io_PrintStream()
165 ps = null; in test_listLjava_io_PrintStream()
167 myProps.list(ps); in test_listLjava_io_PrintStream()
1112 PrintStream ps = null; in writeProperties() local
1114 ps = new PrintStream(bout); in writeProperties()
1115 ps.println("#commented.entry=Bogus"); in writeProperties()
1116 ps.println("test.pkg=harmony.tests"); in writeProperties()
1117 ps.println("test.proj=Automated Tests"); in writeProperties()
[all …]
/libcore/luni/src/test/java/tests/security/spec/
DECGenParameterSpecTest.java69 ECGenParameterSpec ps = new ECGenParameterSpec(name); in testGetName() local
70 assertEquals(name, ps.getName()); in testGetName()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinPool.java1250 int spins = PL_SPINS, ps, nps; in acquirePlock() local
1252 if (((ps = plock) & PL_LOCK) == 0 && in acquirePlock()
1253 U.compareAndSwapInt(this, PLOCK, ps, nps = ps + PL_LOCK)) in acquirePlock()
1259 else if (U.compareAndSwapInt(this, PLOCK, ps, ps | PL_SIGNAL)) { in acquirePlock()
1282 private void releasePlock(int ps) { in releasePlock() argument
1283 plock = ps; in releasePlock()
1329 UncaughtExceptionHandler handler; WorkQueue[] ws; int s, ps; in registerWorker() local
1337 if (((ps = plock) & PL_LOCK) != 0 || in registerWorker()
1338 !U.compareAndSwapInt(this, PLOCK, ps, ps += PL_LOCK)) in registerWorker()
1339 ps = acquirePlock(); in registerWorker()
[all …]
DForkJoinTask.java553 Class<?>[] ps = c.getParameterTypes(); in getThrowableException() local
554 if (ps.length == 0) in getThrowableException()
556 else if (ps.length == 1 && ps[0] == Throwable.class) in getThrowableException()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java72 DHParameterSpec ps = ap.getParameterSpec(DHParameterSpec.class); in test() local
74 KeyAgreementGen kag1 = new KeyAgreementGen(ps); in test()
75 KeyAgreementGen kag2 = new KeyAgreementGen(ps); in test()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DInvocationTargetExceptionTest.java222 PrintStream ps = new PrintStream(bao); in test_printStackTrace() local
224 System.setErr(ps); in test_printStackTrace()
246 PrintStream ps = new PrintStream(bao); in test_printStackTraceLjava_io_PrintStream() local
249 ite.printStackTrace(ps); in test_printStackTraceLjava_io_PrintStream()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DNameConstraints.java73 List<GeneralSubtree> ps = permittedSubtrees.getSubtrees(); in NameConstraints() local
74 if (ps == null || ps.isEmpty()) { in NameConstraints()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java588 PrintStream ps = new PrintStream(bout); in writeProperties() local
589 ps.println("#commented.entry=Bogus"); in writeProperties()
590 ps.println("test.pkg=tests.security"); in writeProperties()
591 ps.println("test.proj=Unit Tests"); in writeProperties()
592 ps.close(); in writeProperties()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestCertUtils.java821 X500Principal[] ps = new X500Principal[howMany]; in genX500s() local
823 ps[i] = new X500Principal(names[i]); in genX500s()
825 return ps; in genX500s()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java552 List<Permission> ps = new ArrayList<Permission>(); in toString() local
554 ps.add(e.nextElement()); in toString()
555 return "AdjustablePolicy with permissions " + ps; in toString()

12