/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | StreamTokenizerTest.java | 34 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 …]
|
D | SerializationStressTest1.java | 708 SerializationTestSubclass1 st = new SerializationTestSubclass1(); in test_18_13_writeObject() local 710 st.anInt = Integer.MAX_VALUE; in test_18_13_writeObject() 711 st.aString = FOO; in test_18_13_writeObject() 712 objToSave = st; in test_18_13_writeObject()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldStatementTest.java | 32 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 …]
|
D | OldConnectionTest.java | 50 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 …]
|
D | OldPreparedStatementTest.java | 84 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 …]
|
D | OldSQLTest.java | 53 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()
|
D | OldResultSetMetaDataTest.java | 28 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()
|
D | OldResultSetGetterTests.java | 49 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/ |
D | StringTokenizerTest.java | 45 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 …]
|
D | SimpleTimeZoneTest.java | 38 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/ |
D | ThreadTest.java | 120 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() 179 st = new Thread(tg, new SimpleThread(1), "SimpleThread3"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 180 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 181 && st.getName().equals("SimpleThread3")); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 182 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 184 st.join(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | StreamTokenizerTest.java | 27 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()
|
D | OldStreamTokenizerTest.java | 29 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/luni/src/test/java/libcore/java/lang/ |
D | OldThreadTest.java | 51 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 52 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 53 && st.getName().equals("SimpleThread3")); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 54 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 56 st.join(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 137 st = new Thread(); in test_setContextClassLoader() 138 st.setContextClassLoader(pcl); in test_setContextClassLoader() 139 assertEquals(pcl, st.getContextClassLoader()); in test_setContextClassLoader() 141 st.setContextClassLoader(null); in test_setContextClassLoader() 142 assertNull(st.getContextClassLoader()); in test_setContextClassLoader() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 72 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()
|
D | SSLEngineTest.java | 173 String[] st = sse.getSupportedCipherSuites(); in test_EnabledCipherSuites() local 175 sse.setEnabledCipherSuites(st); in test_EnabledCipherSuites() 178 assertEquals("Incorrect array length", res.length, st.length); in test_EnabledCipherSuites() 179 assertTrue("Incorrect array was returned", Arrays.equals(res, st)); in test_EnabledCipherSuites()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldErrorManagerTest.java | 39 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/ |
D | TestThread.java | 59 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()
|
D | CipherThread.java | 106 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/luni/src/main/java/java/util/logging/ |
D | LogManager.java | 381 StringTokenizer st = new StringTokenizer(configs, " "); in readConfigurationImpl() local 382 while (st.hasMoreTokens()) { in readConfigurationImpl() 383 String configerName = st.nextToken(); in readConfigurationImpl()
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | AbstractQueuedSynchronizer.java | 1384 Thread st; in fullGetFirstQueuedThread() local 1386 s.prev == head && (st = s.thread) != null) || in fullGetFirstQueuedThread() 1388 s.prev == head && (st = s.thread) != null)) in fullGetFirstQueuedThread() 1389 return st; in fullGetFirstQueuedThread()
|
D | AbstractQueuedLongSynchronizer.java | 1154 Thread st; in fullGetFirstQueuedThread() local 1156 s.prev == head && (st = s.thread) != null) || in fullGetFirstQueuedThread() 1158 s.prev == head && (st = s.thread) != null)) in fullGetFirstQueuedThread() 1159 return st; in fullGetFirstQueuedThread()
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | DatabaseMetaDataTest.java | 2396 StringTokenizer st = new StringTokenizer(metaDataList, ","); in escapedFunctions() local 2398 while (st.hasMoreTokens()) { in escapedFunctions() 2400 String function = st.nextToken(); in escapedFunctions() 2463 Statement st = conn.createStatement(); in executeEscaped() local 2464 ResultSet rs = st.executeQuery(sql); in executeEscaped() 2469 st.close(); in executeEscaped()
|
/libcore/xml/src/main/java/org/kxml2/io/ |
D | KXmlParser.java | 542 String st = attributes[3 + 4 * pos]; in readXmlDeclaration() local 543 if ("yes".equals(st)) { in readXmlDeclaration() 545 } else if ("no".equals(st)) { in readXmlDeclaration() 548 checkRelaxed("illegal standalone value: " + st); in readXmlDeclaration()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinPool.java | 2858 long st = stealCount; in toString() local 2869 st += w.nsteals; in toString() 2892 ", steals = " + st + in toString()
|