Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 25 of 37) 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.java562 PrintStream ps = new PrintStream(s.getOutputStream()); in handleClient() local
589 ps.print(HTTP_VERSION_STRING + " " + HTTP_BAD_METHOD + in handleClient()
591 ps.write(buf, 0, 5); in handleClient()
592 ps.write(EOL); in handleClient()
593 ps.flush(); in handleClient()
619 printStatus(ps); in handleClient()
620 printHeaders(ps); in handleClient()
623 psWriteEOL(ps); in handleClient()
630 send404(ps); in handleClient()
632 sendFile(ps); in handleClient()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
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 …]
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 …]
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()
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()
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()
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()
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()
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/ojluni/src/main/java/java/lang/invoke/
DVarHandle.java1587 Class<?>[] ps; in accessModeType() local
1591 ps = allocateParameters(0, receiver, intermediate); in accessModeType()
1592 fillParameters(ps, receiver, intermediate); in accessModeType()
1593 return MethodType.methodType(value, ps); in accessModeType()
1595 ps = allocateParameters(1, receiver, intermediate); in accessModeType()
1596 i = fillParameters(ps, receiver, intermediate); in accessModeType()
1597 ps[i] = value; in accessModeType()
1598 return MethodType.methodType(void.class, ps); in accessModeType()
1600 ps = allocateParameters(2, receiver, intermediate); in accessModeType()
1601 i = fillParameters(ps, receiver, intermediate); in accessModeType()
[all …]
/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.java45 Process ps = Runtime.getRuntime().exec(psCommand, null, null); in test_55017() local
47 for (String line : readAndCloseStream(ps.getInputStream()).split("\n")) { in test_55017()
/libcore/ojluni/src/main/java/sun/misc/
DCharacterDecoder.java155 PushbackInputStream ps = new PushbackInputStream (aStream); in decodeBuffer() local
156 decodeBufferPrefix(ps, bStream); in decodeBuffer()
161 length = decodeLinePrefix(ps, bStream); in decodeBuffer()
163 decodeAtom(ps, bStream, bytesPerAtom()); in decodeBuffer()
167 decodeAtom(ps, bStream, bytesPerAtom()); in decodeBuffer()
170 decodeAtom(ps, bStream, length - i); in decodeBuffer()
173 decodeLineSuffix(ps, bStream); in decodeBuffer()
178 decodeBufferSuffix(ps, bStream); in decodeBuffer()
DVersion.java81 public static void print(PrintStream ps) { in print() argument
91 ps.println(launcher_name + " version \"" + java_version + "\""); in print()
95 ps.print(java_runtime_name + " (build " + java_runtime_version); in print()
99 ps.print(", profile " + java_profile_name); in print()
104 ps.print(", headless"); in print()
106 ps.println(')'); in print()
112 ps.println(java_vm_name + " (build " + java_vm_version + ", " + in print()
/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/ojluni/src/main/native/
Dio_util_md.c99 WITH_PLATFORM_STRING(env, path, ps) { in fileOpen()
104 char *p = (char *)ps + strlen(ps) - 1; in fileOpen()
105 while ((p > ps) && (*p == '/')) in fileOpen()
108 fd = handleOpen(ps, flags, 0666); in fileOpen()
114 } END_PLATFORM_STRING(env, ps); in fileOpen()
/libcore/ojluni/src/main/java/java/nio/
DMappedByteBuffer.java109 int ps = Bits.pageSize(); in mappingOffset() local
110 long offset = address % ps; in mappingOffset()
111 return (offset >= 0) ? offset : (ps + offset); in mappingOffset()
174 int ps = Bits.pageSize(); in load() local
180 a += ps; in load()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java152 PrintStream ps = new PrintStream(baos); in test_listLjava_io_PrintStream() local
158 myProps.list(ps); in test_listLjava_io_PrintStream()
159 ps.flush(); in test_listLjava_io_PrintStream()
168 ps = null; in test_listLjava_io_PrintStream()
170 myProps.list(ps); in test_listLjava_io_PrintStream()
1156 PrintStream ps = null; in writeProperties() local
1158 ps = new PrintStream(bout); in writeProperties()
1159 ps.println("#commented.entry=Bogus"); in writeProperties()
1160 ps.println("test.pkg=harmony.tests"); in writeProperties()
1161 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/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java78 int ps = pageSize(); in NativeObject() local
79 long a = unsafe.allocateMemory(size + ps); in NativeObject()
81 this.address = a + ps - (a & (ps - 1)); in NativeObject()
/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/ojluni/src/main/java/java/net/
DProxySelector.java114 public static void setDefault(ProxySelector ps) { in setDefault() argument
119 theProxySelector = ps; in setDefault()
/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/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java621 PrintStream ps = new PrintStream(bout); in writeProperties() local
622 ps.println("#commented.entry=Bogus"); in writeProperties()
623 ps.println("test.pkg=tests.security"); in writeProperties()
624 ps.println("test.proj=Unit Tests"); in writeProperties()
625 ps.close(); in writeProperties()

12