Home
last modified time | relevance | path

Searched refs:st1 (Results 1 – 5 of 5) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSimpleTimeZoneTest.java28 SimpleTimeZone st1; field in SimpleTimeZoneTest
244 SimpleTimeZone st1 = new SimpleTimeZone(1000, "TEST", in test_clone() local
248 assertTrue("Clone resulted in same reference", st1.clone() != st1); in test_clone()
249 assertTrue("Clone resulted in unequal object", ((SimpleTimeZone) st1 in test_clone()
250 .clone()).equals(st1)); in test_clone()
263 st1 = new SimpleTimeZone(tz.getRawOffset(), "EST"); in test_equalsLjava_lang_Object()
265 assertFalse(st1.equals(st2)); in test_equalsLjava_lang_Object()
266 st1.setRawOffset(st2.getRawOffset()); in test_equalsLjava_lang_Object()
267 assertTrue(st1.equals(st2)); in test_equalsLjava_lang_Object()
275 st1 = new SimpleTimeZone(0, "TEST"); in test_getDSTSavings()
[all …]
DTimeZoneTest.java51 TimeZone st1 = TimeZone.getTimeZone("America/New_York"); in test_getDSTSavings() local
53 ONE_HOUR, st1.getDSTSavings()); in test_getDSTSavings()
56 st1 = TimeZone.getTimeZone("Australia/Lord_Howe"); in test_getDSTSavings()
58 1800000, st1.getDSTSavings()); in test_getDSTSavings()
78 TimeZone st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long() local
82 -(5 * ONE_HOUR), st1.getOffset(time1)); in test_getOffset_long()
86 st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long()
88 -(5 * ONE_HOUR), st1.getOffset(time2)); in test_getOffset_long()
/libcore/luni/src/test/java/libcore/java/sql/
DOldConnectionTest.java888 Statement st1 = null; in testPrepareCall() local
896 st1 = conn.createStatement(); in testPrepareCall()
897 st1.execute("select * from zoo"); in testPrepareCall()
898 rs1 = st1.getResultSet(); in testPrepareCall()
905 st1.close(); in testPrepareCall()
1229 Statement st1 = null; in testCommit() local
1244 st1 = conn.createStatement(); in testCommit()
1245 st1.execute("select * from zoo"); in testCommit()
1246 rs1 = st1.getResultSet(); in testCommit()
1281 st1.close(); in testCommit()
[all …]
DOldResultSetMetaDataTest.java233 Statement st1 = null; in testGetTableName() local
241 st1 = conn.createStatement(); in testGetTableName()
242 st1.executeUpdate(create); in testGetTableName()
243 st1.executeUpdate(insert1); in testGetTableName()
244 st1.executeUpdate(insert2); in testGetTableName()
246 rs1 = st1.executeQuery(query); in testGetTableName()
256 if (st1 != null) { in testGetTableName()
257 st1.executeUpdate("drop table if exists hutch"); in testGetTableName()
258 st1.close(); in testGetTableName()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java137 Thread st1 = new Thread(new SimpleThread(1), "SimpleThread1"); in test_ConstructorLjava_lang_RunnableLjava_lang_String() local
138 assertEquals("Constructed thread with incorrect thread name", "SimpleThread1", st1 in test_ConstructorLjava_lang_RunnableLjava_lang_String()
140 st1.start(); in test_ConstructorLjava_lang_RunnableLjava_lang_String()
301 SimpleThread st1 = null; in test_enumerate$Ljava_lang_Thread() local
309 st1 = new SimpleThread(-1); in test_enumerate$Ljava_lang_Thread()
312 firstOne = new Thread(mytg, st1, "firstOne2"); in test_enumerate$Ljava_lang_Thread()
317 synchronized (st1) { in test_enumerate$Ljava_lang_Thread()
320 st1.wait(); in test_enumerate$Ljava_lang_Thread()
341 synchronized (st1) { in test_enumerate$Ljava_lang_Thread()