/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 | 190 ResultSet rs = statement in testInsertOfManyRowsUsingOneThread() local 193 assertTrue("RecordSet is empty", rs.next()); in testInsertOfManyRowsUsingOneThread() 195 * maxConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingOneThread() 196 rs.close(); in testInsertOfManyRowsUsingOneThread() 229 ResultSet rs = statement in testInsertOfManyRowsUsingManyThreads() local 232 assertTrue("RecordSet is empty", rs.next()); in testInsertOfManyRowsUsingManyThreads() 236 * numConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingManyThreads() 237 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 | 1286 final Noop[] rs = new Noop[6]; in testThenRun_normalCompletion() local 1287 for (int i = 0; i < rs.length; i++) rs[i] = new Noop(m); in testThenRun_normalCompletion() 1289 final CompletableFuture<Void> h0 = m.thenRun(f, rs[0]); in testThenRun_normalCompletion() 1290 final CompletableFuture<Void> h1 = m.runAfterBoth(f, f, rs[1]); in testThenRun_normalCompletion() 1291 final CompletableFuture<Void> h2 = m.runAfterEither(f, f, rs[2]); in testThenRun_normalCompletion() 1296 final CompletableFuture<Void> h3 = m.thenRun(f, rs[3]); in testThenRun_normalCompletion() 1297 final CompletableFuture<Void> h4 = m.runAfterBoth(f, f, rs[4]); in testThenRun_normalCompletion() 1298 final CompletableFuture<Void> h5 = m.runAfterEither(f, f, rs[5]); in testThenRun_normalCompletion() 1307 for (Noop r : rs) r.assertInvoked(); in testThenRun_normalCompletion() 1319 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 | 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 | 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 | 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);
|
D | ConcurrentSkipListMapTest.java | 1223 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/test/java/util/concurrent/tck/ |
D | CompletableFutureTest.java | 1409 final Noop[] rs = new Noop[6]; in testThenRun_normalCompletion() local 1410 for (int i = 0; i < rs.length; i++) rs[i] = new Noop(m); in testThenRun_normalCompletion() 1412 final CompletableFuture<Void> h0 = m.thenRun(f, rs[0]); in testThenRun_normalCompletion() 1413 final CompletableFuture<Void> h1 = m.runAfterBoth(f, f, rs[1]); in testThenRun_normalCompletion() 1414 final CompletableFuture<Void> h2 = m.runAfterEither(f, f, rs[2]); in testThenRun_normalCompletion() 1419 final CompletableFuture<Void> h3 = m.thenRun(f, rs[3]); in testThenRun_normalCompletion() 1420 final CompletableFuture<Void> h4 = m.runAfterBoth(f, f, rs[4]); in testThenRun_normalCompletion() 1421 final CompletableFuture<Void> h5 = m.runAfterEither(f, f, rs[5]); in testThenRun_normalCompletion() 1430 for (Noop r : rs) r.assertInvoked(); in testThenRun_normalCompletion() 1442 final Noop[] rs = new Noop[6]; in testThenRun_exceptionalCompletion() local [all …]
|
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 | 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 | 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 | StampedLockTest.java | 512 long rs = lock.readLock(); in testWriteAfterReadLock() local 526 lock.unlockRead(rs); in testWriteAfterReadLock() 539 long rs = lock.readLock(); in testWriteAfterMultipleReadLocks() 540 lock.unlockRead(rs); in testWriteAfterMultipleReadLocks() 568 long rs = lock.readLock(); in testReadAfterWriteLock() 571 lock.unlockRead(rs); in testReadAfterWriteLock() 595 long rs = lock.tryReadLock(); in testTryLockWhenReadLocked() 596 assertValid(lock, rs); in testTryLockWhenReadLocked() 597 lock.unlockRead(rs); in testTryLockWhenReadLocked()
|
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 | 245 Cell[] rs; int m, j; in longAccumulate() local 246 if ((rs = cells) != null && in longAccumulate() 247 (m = rs.length) > 0 && in longAccumulate() 248 rs[j = (m - 1) & index] == null) { in longAccumulate() 249 rs[j] = r; in longAccumulate() 284 Cell[] rs = new Cell[2]; in longAccumulate() local 285 rs[index & 1] = new Cell(x); in longAccumulate() 286 cells = rs; in longAccumulate() 327 Cell[] rs; int m, j; in doubleAccumulate() local 328 if ((rs = cells) != null && in doubleAccumulate() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
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()
|
D | AbstractTask.java | 303 Spliterator<P_IN> rs = spliterator, ls; // right, left spliterators in compute() local 304 long sizeEstimate = rs.estimateSize(); in compute() 308 while (sizeEstimate > sizeThreshold && (ls = rs.trySplit()) != null) { in compute() 311 task.rightChild = rightChild = task.makeChild(rs); in compute() 315 rs = ls; in compute() 325 sizeEstimate = rs.estimateSize(); in compute()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigDecimal.java | 521 long rs = 0; // the compact value in long in BigDecimal() local 553 else if (rs != 0) { in BigDecimal() 554 rs *= 10; in BigDecimal() 561 if (prec != 1 || rs != 0) in BigDecimal() 563 rs = rs * 10 + digit; in BigDecimal() 577 else if (rs != 0) { in BigDecimal() 578 rs *= 10; in BigDecimal() 582 if (prec != 1 || rs != 0) in BigDecimal() 584 rs = rs * 10 + digit; in BigDecimal() 606 rs = isneg ? -rs : rs; in BigDecimal() [all …]
|
D | MutableBigInteger.java | 1578 long rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() local 1581 if (unsignedLongCompare(estProduct, rs)) { in divideMagnitude() 1586 rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() 1587 if (unsignedLongCompare(estProduct, rs)) in divideMagnitude() 1634 long rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() 1637 if (unsignedLongCompare(estProduct, rs)) { in divideMagnitude() 1642 rs = ((qrem & LONG_MASK) << 32) | nl; in divideMagnitude() 1643 if (unsignedLongCompare(estProduct, rs)) in divideMagnitude() 1753 long rs = ((qrem & LONG_MASK) << 32) | nl; 1756 if (unsignedLongCompare(estProduct, rs)) { [all …]
|