Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java186 ResultSet rs = meta.getBestRowIdentifier(null, null, in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ() local
189 ResultSetMetaData rsmd = rs.getMetaData(); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
190 assertTrue("Rows not obtained", rs.next()); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
201 assertEquals("Incorrect scope", DatabaseMetaData.bestRowSession, rs in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
203 assertEquals("Incorrect column name", "_ROWID_", rs.getString("COLUMN_NAME")); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
204 assertEquals("Incorrect data type", java.sql.Types.INTEGER, rs.getInt("DATA_TYPE")); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
205 assertEquals("Incorrect type name", "INTEGER", rs.getString("TYPE_NAME")); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
206 rs.close(); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
354 ResultSet rs = meta.getColumns(null, null, in test_getColumnsSpecific() local
357 while (rs.next()) { in test_getColumnsSpecific()
[all …]
DDatabaseMetaDataNotSupportedTest.java214 ResultSet rs = meta.getCatalogs(); in test_getCatalogs() local
222 rs.close(); in test_getCatalogs()
255 ResultSet rs = meta.getIndexInfo(conn.getCatalog(), null, in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ() local
257 ResultSetMetaData rsmd = rs.getMetaData(); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
258 assertTrue("Rows do not obtained", rs.next()); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
270 assertEquals("Incorrect table catalog", conn.getCatalog(), rs in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
272 assertEquals("Incorrect table schema", null, rs in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
274 assertEquals("Incorrect table name", DatabaseCreator.TEST_TABLE1, rs in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
276 assertEquals("Incorrect state of uniquess", unique, rs in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
278 assertEquals("Incorrect index catalog", "", rs in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
[all …]
DStressTest.java175 ResultSet rs = statement in testInsertOfManyRowsUsingOneThread() local
178 assertTrue("RecordSet is empty", rs.next()); in testInsertOfManyRowsUsingOneThread()
180 * maxConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingOneThread()
181 rs.close(); in testInsertOfManyRowsUsingOneThread()
210 ResultSet rs = statement in testInsertOfManyRowsUsingManyThreads() local
213 assertTrue("RecordSet is empty", rs.next()); in testInsertOfManyRowsUsingManyThreads()
217 * numConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingManyThreads()
218 rs.close(); in testInsertOfManyRowsUsingManyThreads()
/libcore/luni/src/test/java/libcore/java/sql/
DOldConnectionTest.java51 ResultSet rs = null; in testCreateStatement_int_int() local
58 rs = st.getResultSet(); in testCreateStatement_int_int()
60 rs.deleteRow(); in testCreateStatement_int_int()
67 rs.close(); in testCreateStatement_int_int()
78 rs = st.getResultSet(); in testCreateStatement_int_int()
80 rs.absolute(1); in testCreateStatement_int_int()
81 rs.previous(); in testCreateStatement_int_int()
88 rs.close(); in testCreateStatement_int_int()
99 rs = st.getResultSet(); in testCreateStatement_int_int()
101 rs.last(); in testCreateStatement_int_int()
[all …]
DOldPreparedStatementTest.java130 ResultSet rs = st.getResultSet(); in testAddBatch() local
131 assertEquals(2, getCount(rs)); in testAddBatch()
208 ResultSet rs = st.getResultSet(); in testExecute() local
209 rs.next(); in testExecute()
210 assertEquals("cat", rs.getString(1)); in testExecute()
298 ResultSet rs = ps.executeQuery(); in testExecuteQuery() local
299 rs.next(); in testExecuteQuery()
300 assertEquals(1, rs.getInt(1)); in testExecuteQuery()
301 assertEquals("Kesha", rs.getString(2)); in testExecuteQuery()
302 assertEquals("parrot", rs.getString(3)); in testExecuteQuery()
[all …]
DOldResultSetMetaDataTest.java29 ResultSet rs = null; field in OldResultSetMetaDataTest
40 rs = st.getResultSet(); in setUp()
41 rsmd = rs.getMetaData(); in setUp()
50 rs.close(); in tearDown()
109 rs.close(); in testGetColumnCount()
293 rs = st3.executeQuery(select); in testGetPrecision()
294 assertTrue(rs.next()); in testGetPrecision()
295 rsmd2 = rs.getMetaData(); in testGetPrecision()
326 rs.close(); in testGetPrecision()
356 rs = st.executeQuery(select); in testGetScale()
[all …]
DOldSQLTest.java92 public int getCount(ResultSet rs) { in getCount() argument
95 while (rs.next()) { in getCount()
DOldStatementTest.java286 ResultSet rs = st.getGeneratedKeys(); in testExecute_String_int() local
287 assertFalse(rs.next()); in testExecute_String_int()
734 ResultSet rs = st.executeQuery(queries1[i]); in testExecuteQuery_String() local
735 assertNotNull(rs); in testExecuteQuery_String()
753 ResultSet rs = st.executeQuery(queries2[i]); in testExecuteQuery_String() local
754 assertNotNull(rs); in testExecuteQuery_String()
884 ResultSet rs = null; in testExecuteUpdate_String_int() local
888 rs = st.getGeneratedKeys(); in testExecuteUpdate_String_int()
889 assertFalse(rs.next()); in testExecuteUpdate_String_int()
895 rs.close(); in testExecuteUpdate_String_int()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java1278 final Noop[] rs = new Noop[6]; in testThenRun_normalCompletion() local
1279 for (int i = 0; i < rs.length; i++) rs[i] = new Noop(m); in testThenRun_normalCompletion()
1281 final CompletableFuture<Void> h0 = m.thenRun(f, rs[0]); in testThenRun_normalCompletion()
1282 final CompletableFuture<Void> h1 = m.runAfterBoth(f, f, rs[1]); in testThenRun_normalCompletion()
1283 final CompletableFuture<Void> h2 = m.runAfterEither(f, f, rs[2]); in testThenRun_normalCompletion()
1288 final CompletableFuture<Void> h3 = m.thenRun(f, rs[3]); in testThenRun_normalCompletion()
1289 final CompletableFuture<Void> h4 = m.runAfterBoth(f, f, rs[4]); in testThenRun_normalCompletion()
1290 final CompletableFuture<Void> h5 = m.runAfterEither(f, f, rs[5]); in testThenRun_normalCompletion()
1299 for (Noop r : rs) r.assertInvoked(); in testThenRun_normalCompletion()
1311 final Noop[] rs = new Noop[6]; in testThenRun_exceptionalCompletion() local
[all …]
DStampedLockTest.java89 long rs = lock.readLock(); in testLock() local
93 lock.unlockRead(rs); in testLock()
115 long rs = lock.readLock(); in testUnlock() local
119 lock.unlock(rs); in testUnlock()
145 long rs = lock.readLock(); in testTryUnlock() local
399 long rs = lock.tryReadLock(); in testReadTryLockWhenLocked()
400 assertEquals(rs, 0L); in testReadTryLockWhenLocked()
435 long rs = lock.readLock(); in testWriteAfterReadLock() local
446 lock.unlockRead(rs); in testWriteAfterReadLock()
459 long rs = lock.readLock(); in testWriteAfterMultipleReadLocks()
[all …]
DTreeSetTest.java925 ReferenceSet rs = new ReferenceSet(); in check() local
951 assertEq(set.lower(element), rs.lower(element)); in check()
952 assertEq(set.floor(element), rs.floor(element)); in check()
953 assertEq(set.higher(element), rs.higher(element)); in check()
954 assertEq(set.ceiling(element), rs.ceiling(element)); in check()
959 assertEq(set.first(), rs.first()); in check()
960 assertEq(set.last(), rs.last()); in check()
962 assertEq(rs.first(), -1); in check()
963 assertEq(rs.last(), -1); in check()
DConcurrentSkipListSetTest.java924 ReferenceSet rs = new ReferenceSet(); in check() local
950 assertEq(set.lower(element), rs.lower(element)); in check()
951 assertEq(set.floor(element), rs.floor(element)); in check()
952 assertEq(set.higher(element), rs.higher(element)); in check()
953 assertEq(set.ceiling(element), rs.ceiling(element)); in check()
958 assertEq(set.first(), rs.first()); in check()
959 assertEq(set.last(), rs.last()); in check()
961 assertEq(rs.first(), -1); in check()
962 assertEq(rs.last(), -1); in check()
DTreeMapTest.java1028 ReferenceSet rs = new ReferenceSet();
1054 assertEq(map.lowerKey(key), rs.lower(key));
1055 assertEq(map.floorKey(key), rs.floor(key));
1056 assertEq(map.higherKey(key), rs.higher(key));
1057 assertEq(map.ceilingKey(key), rs.ceiling(key));
1062 assertEq(map.firstKey(), rs.first());
1063 assertEq(map.lastKey(), rs.last());
1065 assertEq(rs.first(), -1);
1066 assertEq(rs.last(), -1);
DConcurrentSkipListMapTest.java1223 ReferenceSet rs = new ReferenceSet();
1249 assertEq(map.lowerKey(key), rs.lower(key));
1250 assertEq(map.floorKey(key), rs.floor(key));
1251 assertEq(map.higherKey(key), rs.higher(key));
1252 assertEq(map.ceilingKey(key), rs.ceiling(key));
1257 assertEq(map.firstKey(), rs.first());
1258 assertEq(map.lastKey(), rs.last());
1260 assertEq(rs.first(), -1);
1261 assertEq(rs.last(), -1);
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java239 Cell[] rs; int m, j; in longAccumulate() local
240 if ((rs = cells) != null && in longAccumulate()
241 (m = rs.length) > 0 && in longAccumulate()
242 rs[j = (m - 1) & h] == null) { in longAccumulate()
243 rs[j] = r; in longAccumulate()
278 Cell[] rs = new Cell[2]; in longAccumulate() local
279 rs[h & 1] = new Cell(x); in longAccumulate()
280 cells = rs; in longAccumulate()
323 Cell[] rs; int m, j; in doubleAccumulate() local
324 if ((rs = cells) != null && in doubleAccumulate()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DAbstractShortCircuitTask.java102 Spliterator<P_IN> rs = spliterator, ls; in compute() local
103 long sizeEstimate = rs.estimateSize(); in compute()
114 if (sizeEstimate <= sizeThreshold || (ls = rs.trySplit()) == null) { in compute()
120 task.rightChild = rightChild = task.makeChild(rs); in compute()
124 rs = ls; in compute()
134 sizeEstimate = rs.estimateSize(); in compute()
DAbstractTask.java292 Spliterator<P_IN> rs = spliterator, ls; // right, left spliterators in compute() local
293 long sizeEstimate = rs.estimateSize(); in compute()
297 while (sizeEstimate > sizeThreshold && (ls = rs.trySplit()) != null) { in compute()
300 task.rightChild = rightChild = task.makeChild(rs); in compute()
304 rs = ls; in compute()
314 sizeEstimate = rs.estimateSize(); in compute()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java413 private static int ctlOf(int rs, int wc) { return rs | wc; } in ctlOf() argument
866 int rs = runStateOf(ctl.get()); in isRunningOrShutdown() local
867 return rs == RUNNING || (rs == SHUTDOWN && shutdownOK); in isRunningOrShutdown()
923 int rs = runStateOf(c); in addWorker() local
926 if (rs >= SHUTDOWN && in addWorker()
927 ! (rs == SHUTDOWN && in addWorker()
940 if (runStateOf(c) != rs) in addWorker()
959 int rs = runStateOf(ctl.get()); in addWorker() local
961 if (rs < SHUTDOWN || in addWorker()
962 (rs == SHUTDOWN && firstTask == null)) { in addWorker()
[all …]
DForkJoinPool.java2413 int rs; // 3 phases: try to set SHUTDOWN, then STOP, then TERMINATED in tryTerminate() local
2415 while ((rs = runState) >= 0) { in tryTerminate()
2418 else if (rs == 0) in tryTerminate()
2421 U.compareAndSwapInt(this, RUNSTATE, rs, rs | SHUTDOWN); in tryTerminate()
2424 if ((rs & STOP) == 0) { // try to initiate termination in tryTerminate()
2445 rs = runState, rs | STOP)); in tryTerminate()
2537 int rs = runState; in externalPush() local
2539 if (rs <= 0 || ws == null || (wl = ws.length) <= 0) in externalPush()
3133 int rs = runState; in toString() local
3134 String level = ((rs & TERMINATED) != 0 ? "Terminated" : in toString()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DRevocationChecker.java732 RevocationStatus rs =
734 RevocationStatus.CertStatus certStatus = rs.getCertStatus();
736 Date revocationTime = rs.getRevocationTime();
739 revocationTime, rs.getRevocationReason(),
741 rs.getSingleExtensions());
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DThreadPoolExecutor.java91 private static int ctlOf(int rs, int wc) { in ctlOf() argument