/libcore/luni/src/test/java/tests/java/sql/ |
D | DatabaseMetaDataTest.java | 186 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 …]
|
D | DatabaseMetaDataNotSupportedTest.java | 214 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 …]
|
D | StressTest.java | 187 ResultSet rs = statement in testInsertOfManyRowsUsingOneThread() local 190 assertTrue("RecordSet is empty", rs.next()); in testInsertOfManyRowsUsingOneThread() 192 * maxConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingOneThread() 193 rs.close(); in testInsertOfManyRowsUsingOneThread() 226 ResultSet rs = statement in testInsertOfManyRowsUsingManyThreads() local 229 assertTrue("RecordSet is empty", rs.next()); in testInsertOfManyRowsUsingManyThreads() 233 * numConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingManyThreads() 234 rs.close(); in testInsertOfManyRowsUsingManyThreads()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldConnectionTest.java | 51 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 …]
|
D | OldPreparedStatementTest.java | 130 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 …]
|
D | OldResultSetMetaDataTest.java | 29 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 …]
|
D | OldStatementTest.java | 286 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 …]
|
D | OldSQLTest.java | 92 public int getCount(ResultSet rs) { in getCount() argument 95 while (rs.next()) { in getCount()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CompletableFutureTest.java | 1278 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 …]
|
D | StampedLockTest.java | 89 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 …]
|
D | TreeSetTest.java | 925 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()
|
D | ConcurrentSkipListSetTest.java | 924 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()
|
D | TreeMapTest.java | 1028 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);
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CompletableFutureTest.java | 1341 final Noop[] rs = new Noop[6]; in testThenRun_normalCompletion() local 1342 for (int i = 0; i < rs.length; i++) rs[i] = new Noop(m); in testThenRun_normalCompletion() 1344 final CompletableFuture<Void> h0 = m.thenRun(f, rs[0]); in testThenRun_normalCompletion() 1345 final CompletableFuture<Void> h1 = m.runAfterBoth(f, f, rs[1]); in testThenRun_normalCompletion() 1346 final CompletableFuture<Void> h2 = m.runAfterEither(f, f, rs[2]); in testThenRun_normalCompletion() 1351 final CompletableFuture<Void> h3 = m.thenRun(f, rs[3]); in testThenRun_normalCompletion() 1352 final CompletableFuture<Void> h4 = m.runAfterBoth(f, f, rs[4]); in testThenRun_normalCompletion() 1353 final CompletableFuture<Void> h5 = m.runAfterEither(f, f, rs[5]); in testThenRun_normalCompletion() 1362 for (Noop r : rs) r.assertInvoked(); in testThenRun_normalCompletion() 1374 final Noop[] rs = new Noop[6]; in testThenRun_exceptionalCompletion() local [all …]
|
D | TreeSetTest.java | 949 ReferenceSet rs = new ReferenceSet(); in check() local 975 assertEq(set.lower(element), rs.lower(element)); in check() 976 assertEq(set.floor(element), rs.floor(element)); in check() 977 assertEq(set.higher(element), rs.higher(element)); in check() 978 assertEq(set.ceiling(element), rs.ceiling(element)); in check() 983 assertEq(set.first(), rs.first()); in check() 984 assertEq(set.last(), rs.last()); in check() 986 assertEq(rs.first(), -1); in check() 987 assertEq(rs.last(), -1); in check()
|
D | ConcurrentSkipListSetTest.java | 955 ReferenceSet rs = new ReferenceSet(); in check() local 981 assertEq(set.lower(element), rs.lower(element)); in check() 982 assertEq(set.floor(element), rs.floor(element)); in check() 983 assertEq(set.higher(element), rs.higher(element)); in check() 984 assertEq(set.ceiling(element), rs.ceiling(element)); in check() 989 assertEq(set.first(), rs.first()); in check() 990 assertEq(set.last(), rs.last()); in check() 992 assertEq(rs.first(), -1); in check() 993 assertEq(rs.last(), -1); in check()
|
D | TreeMapTest.java | 1051 ReferenceSet rs = new ReferenceSet(); 1077 assertEq(map.lowerKey(key), rs.lower(key)); 1078 assertEq(map.floorKey(key), rs.floor(key)); 1079 assertEq(map.higherKey(key), rs.higher(key)); 1080 assertEq(map.ceilingKey(key), rs.ceiling(key)); 1085 assertEq(map.firstKey(), rs.first()); 1086 assertEq(map.lastKey(), rs.last()); 1088 assertEq(rs.first(), -1); 1089 assertEq(rs.last(), -1);
|
D | ConcurrentSkipListMapTest.java | 1246 ReferenceSet rs = new ReferenceSet(); 1272 assertEq(map.lowerKey(key), rs.lower(key)); 1273 assertEq(map.floorKey(key), rs.floor(key)); 1274 assertEq(map.higherKey(key), rs.higher(key)); 1275 assertEq(map.ceilingKey(key), rs.ceiling(key)); 1280 assertEq(map.firstKey(), rs.first()); 1281 assertEq(map.lastKey(), rs.last()); 1283 assertEq(rs.first(), -1); 1284 assertEq(rs.last(), -1);
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | Striped64.java | 239 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/ |
D | AbstractTask.java | 292 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()
|
D | AbstractShortCircuitTask.java | 102 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/ |
D | ThreadPoolExecutor.java | 413 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 …]
|
D | ForkJoinPool.java | 2413 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/java/math/ |
D | BigDecimal.java | 424 long rs = 0; // the compact value in long in BigDecimal() local 456 else if (rs != 0) { in BigDecimal() 457 rs *= 10; in BigDecimal() 464 if (prec != 1 || rs != 0) in BigDecimal() 466 rs = rs * 10 + digit; in BigDecimal() 479 else if (rs != 0) { in BigDecimal() 480 rs *= 10; in BigDecimal() 484 if (prec != 1 || rs != 0) in BigDecimal() 486 rs = rs * 10 + digit; in BigDecimal() 506 rs = isneg ? -rs : rs; in BigDecimal() [all …]
|
D | MutableBigInteger.java | 1573 long rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() local 1576 if (unsignedLongCompare(estProduct, rs)) { in divideMagnitude() 1581 rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() 1582 if (unsignedLongCompare(estProduct, rs)) in divideMagnitude() 1629 long rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() 1632 if (unsignedLongCompare(estProduct, rs)) { in divideMagnitude() 1637 rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() 1638 if (unsignedLongCompare(estProduct, rs)) in divideMagnitude() 1748 long rs = ((qrem & LONG_MASK) << 32) | nl; 1751 if (unsignedLongCompare(estProduct, rs)) { [all …]
|