Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 35) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DStreamTokenizerTest.java34 StreamTokenizer st; field in StreamTokenizerTest
43 st = new StreamTokenizer(new StringBufferInputStream( in test_ConstructorLjava_io_InputStream()
47 StreamTokenizer.TT_WORD, st.nextToken()); in test_ConstructorLjava_io_InputStream()
49 "d", st.sval); in test_ConstructorLjava_io_InputStream()
52 StreamTokenizer.TT_NUMBER, st.nextToken()); in test_ConstructorLjava_io_InputStream()
54 8.0, st.nval); in test_ConstructorLjava_io_InputStream()
57 39, st.nextToken()); in test_ConstructorLjava_io_InputStream()
59 "h", st.sval); in test_ConstructorLjava_io_InputStream()
68 StreamTokenizer.TT_WORD, st.nextToken()); in test_ConstructorLjava_io_Reader()
70 "d", st.sval); in test_ConstructorLjava_io_Reader()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldStatementTest.java32 Statement st = null; in testAddBatch() local
34 st = conn.createStatement(); in testAddBatch()
35 st.addBatch("INSERT INTO zoo VALUES (3,'Tuzik','dog')"); in testAddBatch()
36 st.addBatch("INSERT INTO zoo VALUES (4,'Mashka','cat')"); in testAddBatch()
38 int[] updateCounts = st.executeBatch(); in testAddBatch()
44 st.close(); in testAddBatch()
50 st = conn.createStatement(); in testAddBatch()
51 st.addBatch(""); in testAddBatch()
52 st.executeBatch(); in testAddBatch()
58 st.close(); in testAddBatch()
[all …]
DOldConnectionTest.java50 Statement st = null; in testCreateStatement_int_int() local
55 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int()
57 st.execute("select id, name from zoo"); in testCreateStatement_int_int()
58 rs = st.getResultSet(); in testCreateStatement_int_int()
68 st.close(); in testCreateStatement_int_int()
75 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int()
77 st.execute("select id, name from zoo"); in testCreateStatement_int_int()
78 rs = st.getResultSet(); in testCreateStatement_int_int()
89 st.close(); in testCreateStatement_int_int()
96 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int()
[all …]
DOldPreparedStatementTest.java84 Statement st = null; in setUp() local
86 st = conn.createStatement(); in setUp()
88 st.execute(queries[i]); in setUp()
92 st.close(); in setUp()
99 Statement st = null; in tearDown() local
101 st = conn.createStatement(); in tearDown()
102 st.execute("drop table if exists type"); in tearDown()
105 st.close(); in tearDown()
125 Statement st = null; in testAddBatch() local
128 st = conn.createStatement(); in testAddBatch()
[all …]
DOldSQLTest.java53 Statement st = null; in tearDown() local
56 st = conn.createStatement(); in tearDown()
57 st.execute("drop table if exists zoo"); in tearDown()
61 if (st != null) { in tearDown()
62 st.close(); in tearDown()
77 Statement st = null; in createZoo() local
79 st = conn.createStatement(); in createZoo()
81 st.execute(queries[i]); in createZoo()
85 if (st != null) { in createZoo()
86 st.close(); in createZoo()
DOldResultSetMetaDataTest.java28 Statement st = null; field in OldResultSetMetaDataTest
38 st = conn.createStatement(); in setUp()
39 st.execute(query); in setUp()
40 rs = st.getResultSet(); in setUp()
51 st.close(); in tearDown()
352 Statement st = conn.createStatement(); in testGetScale() local
353 st.executeUpdate(createTable); in testGetScale()
354 st.executeUpdate(insert); in testGetScale()
356 rs = st.executeQuery(select); in testGetScale()
386 st.cancel(); in testGetScale()
DOldResultSetGetterTests.java49 Statement st = null; field in OldResultSetGetterTests
218 st = conn.createStatement(); in setUp()
220 st.execute(queries[i]); in setUp()
222 res = st.executeQuery(queryAllSelect); in setUp()
228 st.execute("drop table if exists type"); in tearDown()
229 st.close(); in tearDown()
233 st.close(); in tearDown()
262 Statement st = null; in testGetBytesIntVarbinary() local
270 st = conn.createStatement(); in testGetBytesIntVarbinary()
271 st.executeUpdate("create table testBinary (VARBINARY value);"); in testGetBytesIntVarbinary()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DStringTokenizerTest.java45 StringTokenizer st = new StringTokenizer("This:is:a:test:String", ":"); in test_ConstructorLjava_lang_StringLjava_lang_String() local
46 assertTrue("Created incorrect tokenizer", st.countTokens() == 5 in test_ConstructorLjava_lang_StringLjava_lang_String()
47 && (st.nextElement().equals("This"))); in test_ConstructorLjava_lang_StringLjava_lang_String()
48 st = new StringTokenizer("This:is:a:test:String", null); in test_ConstructorLjava_lang_StringLjava_lang_String()
65 StringTokenizer st = new StringTokenizer("This:is:a:test:String", ":", in test_ConstructorLjava_lang_StringLjava_lang_StringZ() local
67 st.nextElement(); in test_ConstructorLjava_lang_StringLjava_lang_StringZ()
68 assertTrue("Created incorrect tokenizer", st.countTokens() == 8 in test_ConstructorLjava_lang_StringLjava_lang_StringZ()
69 && (st.nextElement().equals(":"))); in test_ConstructorLjava_lang_StringLjava_lang_StringZ()
70 st = new StringTokenizer("This:is:a:test:String", null, true); in test_ConstructorLjava_lang_StringLjava_lang_StringZ()
71 st = new StringTokenizer("This:is:a:test:String", null, false); in test_ConstructorLjava_lang_StringLjava_lang_StringZ()
[all …]
DSimpleTimeZoneTest.java38 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST"); in test_ConstructorILjava_lang_String() local
39 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_String()
40 assertTrue("Incorrect TZ constructed: " + "returned wrong offset", st in test_ConstructorILjava_lang_String()
42 assertTrue("Incorrect TZ constructed" + "using daylight savings", !st in test_ConstructorILjava_lang_String()
53 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER, in test_ConstructorILjava_lang_StringIIIIIIII() local
56 assertTrue("Incorrect TZ constructed", st in test_ConstructorILjava_lang_StringIIIIIIII()
59 assertTrue("Incorrect TZ constructed", !(st in test_ConstructorILjava_lang_StringIIIIIIII()
62 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_StringIIIIIIII()
63 assertEquals("Incorrect TZ constructed", 1000, st.getRawOffset()); in test_ConstructorILjava_lang_StringIIIIIIII()
64 assertTrue("Incorrect TZ constructed", st.useDaylightTime()); in test_ConstructorILjava_lang_StringIIIIIIII()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java120 Thread st, ct, spinner; field in ThreadTest
161 st = new Thread(tg, new SimpleThread(1), "SimpleThread2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable()
162 assertTrue("Returned incorrect thread group", st.getThreadGroup() == tg); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable()
163 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable()
165 st.join(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable()
180 st = new Thread(tg, new SimpleThread(1), "SimpleThread3"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
181 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
182 && st.getName().equals("SimpleThread3")); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
183 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
185 st.join(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java52 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
53 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
54 && st.getName().equals("SimpleThread3")); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
55 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
57 st.join(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
138 st = new Thread(); in test_setContextClassLoader()
139 st.setContextClassLoader(pcl); in test_setContextClassLoader()
140 assertEquals(pcl, st.getContextClassLoader()); in test_setContextClassLoader()
142 st.setContextClassLoader(null); in test_setContextClassLoader()
143 assertNull(st.getContextClassLoader()); in test_setContextClassLoader()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSliceOpTest.java160 st -> st.skip(s), in testSkipOps()
161 st -> st.skip(s), in testSkipOps()
162 st -> st.skip(s), in testSkipOps()
163 st -> st.skip(s)); in testSkipOps()
167 st -> st.skip(s).skip(s / 2), in testSkipOps()
168 st -> st.skip(s).skip(s / 2), in testSkipOps()
169 st -> st.skip(s).skip(s / 2), in testSkipOps()
170 st -> st.skip(s).skip(s / 2)); in testSkipOps()
186 st -> st.skip(s).limit(l), in testSkipLimitOps()
187 st -> st.skip(s).limit(l), in testSkipLimitOps()
[all …]
DIntSliceOpTest.java143 Collection<Integer> sr = exerciseOps(data, st -> st.skip(s)); in testSkipOps()
146 sr = exerciseOps(data, st -> st.skip(s).skip(s / 2)); in testSkipOps()
160 Collection<Integer> sr = exerciseOps(data, st -> st.skip(s).limit(limit)); in testSkipLimitOps()
163 sr = exerciseOps(data, st -> st.skip(s).limit(limit)); in testSkipLimitOps()
175 Collection<Integer> sr = exerciseOps(data, st -> st.limit(limit)); in testLimitOps()
178 sr = exerciseOps(data, st -> st.limit(limit).limit(limit / 2)); in testLimitOps()
/libcore/luni/src/test/java/libcore/java/io/
DStreamTokenizerTest.java27 StreamTokenizer st = new StreamTokenizer(new StringReader("aIb aIb")); in testLowerCase() local
28 st.lowerCaseMode(true); in testLowerCase()
29 st.nextToken(); in testLowerCase()
30 assertEquals("aib", st.sval); in testLowerCase()
33 st.nextToken(); in testLowerCase()
34 assertEquals("a\u0131b", st.sval); in testLowerCase()
DOldStreamTokenizerTest.java29 StreamTokenizer st; field in OldStreamTokenizerTest
32 st = new StreamTokenizer(new Support_StringReader("\n \r\n#")); in test_nextToken()
33 st.ordinaryChar('\n'); // make \n ordinary in test_nextToken()
34 st.eolIsSignificant(true); in test_nextToken()
35 assertTrue("Wrong token 2,1", st.nextToken() == '\n'); in test_nextToken()
36 assertTrue("Wrong token 2,2", st.nextToken() == '\n'); in test_nextToken()
37 assertEquals("Wrong token 2,3", '#', st.nextToken()); in test_nextToken()
41 st = new StreamTokenizer(sis); in test_nextToken()
43 st.nextToken(); in test_nextToken()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketFactoryTest.java72 Socket st = new Socket("localhost", sport); in test_createSocket() local
73 Socket s = sf.createSocket(st, "localhost", sport, false); in test_createSocket()
76 st = new Socket("localhost", sport); in test_createSocket()
77 s = sf.createSocket(st, "localhost", sport, true); in test_createSocket()
79 assertTrue(st.isClosed()); in test_createSocket()
96 st = new Socket("1.2.3.4hello", sport); in test_createSocket()
97 s = sf.createSocket(st, "1.2.3.4hello", sport, false); in test_createSocket()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldErrorManagerTest.java39 PrintStream st = new PrintStream(aos); in test_errorCheck() local
40 System.setErr(st); in test_errorCheck()
41 System.setOut(st); in test_errorCheck()
43 st.flush(); in test_errorCheck()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DTestThread.java59 StackTraceElement[] st = e.getStackTrace(); in run()
60 for (int i = 0; i < st.length; i++) { in run()
61 errorSB.append(st[i].toString()); in run()
DCipherThread.java106 StackTraceElement[] st = e.getStackTrace(); in run()
107 for (int i = 0; i < st.length; i++) { in run()
108 errorSB.append(st[i].toString()); in run()
/libcore/ojluni/src/main/java/sun/net/www/
DMessageHeader.java418 int st = 0; in canonicalID() local
422 while (st < len && ((c = id.charAt(st)) == '<' || in canonicalID()
424 st++; in canonicalID()
427 while (st < len && ((c = id.charAt(len - 1)) == '>' || in canonicalID()
432 return substr ? id.substring(st, len) : id; in canonicalID()
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java520 StringTokenizer st = new StringTokenizer(command); in exec() local
521 String[] cmdarray = new String[st.countTokens()]; in exec()
522 for (int i = 0; st.hasMoreTokens(); i++) in exec()
523 cmdarray[i] = st.nextToken(); in exec()
DString.java2801 int st = 0; in trim() local
2803 while ((st < len) && (charAt(st) <= ' ')) { in trim()
2804 st++; in trim()
2806 while ((st < len) && (charAt(len - 1) <= ' ')) { in trim()
2809 return ((st > 0) || (len < length())) ? substring(st, len) : this; in trim()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketAdaptor.java117 long st = System.currentTimeMillis(); in connect() local
122 to -= System.currentTimeMillis() - st; in connect()
220 long st = System.currentTimeMillis(); in read() local
226 to -= System.currentTimeMillis() - st; in read()
DServerSocketAdaptor.java115 long st = System.currentTimeMillis(); in accept() local
119 to -= System.currentTimeMillis() - st; in accept()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java611 StringTokenizer st = new StringTokenizer(path, File.pathSeparator);
612 URL[] urls = new URL[st.countTokens()];
614 while (st.hasMoreTokens()) {
615 File f = new File(st.nextToken());
1235 StringTokenizer st = new StringTokenizer(value);
1236 URL[] urls = new URL[st.countTokens()];
1238 while (st.hasMoreTokens()) {
1239 String path = st.nextToken();

12