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.java238 Cell[] rs; int m, j; in longAccumulate() local
239 if ((rs = cells) != null && in longAccumulate()
240 (m = rs.length) > 0 && in longAccumulate()
241 rs[j = (m - 1) & h] == null) { in longAccumulate()
242 rs[j] = r; in longAccumulate()
277 Cell[] rs = new Cell[2]; in longAccumulate() local
278 rs[h & 1] = new Cell(x); in longAccumulate()
279 cells = rs; in longAccumulate()
322 Cell[] rs; int m, j; in doubleAccumulate() local
323 if ((rs = cells) != null && in doubleAccumulate()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
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()
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()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java410 private static int ctlOf(int rs, int wc) { return rs | wc; } in ctlOf() argument
861 int rs = runStateOf(ctl.get()); in isRunningOrShutdown() local
862 return rs == RUNNING || (rs == SHUTDOWN && shutdownOK); in isRunningOrShutdown()
918 int rs = runStateOf(c); in addWorker() local
921 if (rs >= SHUTDOWN && in addWorker()
922 ! (rs == SHUTDOWN && in addWorker()
935 if (runStateOf(c) != rs) in addWorker()
954 int rs = runStateOf(ctl.get()); in addWorker() local
956 if (rs < SHUTDOWN || in addWorker()
957 (rs == SHUTDOWN && firstTask == null)) { in addWorker()
[all …]
DForkJoinPool.java2410 int rs; // 3 phases: try to set SHUTDOWN, then STOP, then TERMINATED in tryTerminate() local
2412 while ((rs = runState) >= 0) { in tryTerminate()
2415 else if (rs == 0) in tryTerminate()
2418 U.compareAndSwapInt(this, RUNSTATE, rs, rs | SHUTDOWN); in tryTerminate()
2421 if ((rs & STOP) == 0) { // try to initiate termination in tryTerminate()
2442 rs = runState, rs | STOP)); in tryTerminate()
2534 int rs = runState; in externalPush() local
2536 if (rs <= 0 || ws == null || (wl = ws.length) <= 0) in externalPush()
3130 int rs = runState; in toString() local
3131 String level = ((rs & TERMINATED) != 0 ? "Terminated" : in toString()
[all …]
DConcurrentHashMap.java2345 int rs = resizeStamp(n); in addCount() local
2347 if ((sc >>> RESIZE_STAMP_SHIFT) != rs || sc == rs + 1 || in addCount()
2348 sc == rs + MAX_RESIZERS || (nt = nextTable) == null || in addCount()
2355 (rs << RESIZE_STAMP_SHIFT) + 2)) in addCount()
2369 int rs = resizeStamp(tab.length); in helpTransfer() local
2372 if ((sc >>> RESIZE_STAMP_SHIFT) != rs || sc == rs + 1 || in helpTransfer()
2373 sc == rs + MAX_RESIZERS || transferIndex <= 0) in helpTransfer()
2414 int rs = resizeStamp(n); in tryPresize() local
2416 (rs << RESIZE_STAMP_SHIFT) + 2)) in tryPresize()
2602 CounterCell[] rs; int m, j; in fullAddCount() local
[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());