Home
last modified time | relevance | path

Searched refs:resultSet (Results 1 – 18 of 18) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DSQLiteStatementTest.java53 ResultSet resultSet = statement.executeQuery("SELECT COUNT(*) FROM `routine`"); in testExecuteInsert() local
54 assertThat(resultSet.next(), equalTo(true)); in testExecuteInsert()
55 assertThat(resultSet.getInt(1), equalTo(2)); in testExecuteInsert()
58 resultSet = statement.executeQuery("SELECT `id`, `name` ,`lastUsed` FROM `routine`"); in testExecuteInsert()
59 assertThat(resultSet.next(), equalTo(true)); in testExecuteInsert()
60 assertThat(resultSet.getInt(1), equalTo(1)); in testExecuteInsert()
61 assertThat(resultSet.getString(2), equalTo("Leg Press")); in testExecuteInsert()
62 assertThat(resultSet.getInt(3), equalTo(0)); in testExecuteInsert()
63 assertThat(resultSet.next(), equalTo(true)); in testExecuteInsert()
64 assertThat(resultSet.getLong(1), equalTo(2L)); in testExecuteInsert()
[all …]
DDatabaseTestBase.java349 ResultSet resultSet; in testExecSQL() local
354 resultSet = statement.executeQuery("SELECT COUNT(*) FROM table_name"); in testExecSQL()
355 assertThat(resultSet.next(), equalTo(true)); in testExecSQL()
356 assertThat(resultSet.getInt(1), equalTo(1)); in testExecSQL()
359 resultSet = statement.executeQuery("SELECT * FROM table_name"); in testExecSQL()
360 assertThat(resultSet.next(), equalTo(true)); in testExecSQL()
361 assertThat(resultSet.getInt(1), equalTo(1234)); in testExecSQL()
362 assertThat(resultSet.getString(4), equalTo("Chuck")); in testExecSQL()
368 ResultSet resultSet; in testExecSQLParams() local
375 resultSet = statement.executeQuery("SELECT COUNT(*) FROM `routine`"); in testExecSQLParams()
[all …]
DSQLiteDatabaseTest.java41 ResultSet resultSet = statement.executeQuery("SELECT name FROM table_name where id = "+id); in testReplace() local
43 assertThat(resultSet.next(), equalTo(true)); in testReplace()
44 assertThat(resultSet.getString(1), equalTo("Norris")); in testReplace()
DCursorAdapterTest.java56 ResultSet resultSet = statement.executeQuery(sql); in setUp() local
58 Robolectric.shadowOf((SQLiteCursor)curs).setResultSet(resultSet,sql); in setUp()
DSQLiteCursorTest.java26 private ResultSet resultSet; field in SQLiteCursorTest
342 resultSet = statement.executeQuery("SELECT * FROM table_name;"); in setupCursor()
344 Robolectric.shadowOf(cursor).setResultSet(resultSet, sql); in setupCursor()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSQLiteCursor.java22 private ResultSet resultSet; field in ShadowSQLiteCursor
170 if (resultSet == null) { in close()
175 resultSet.close(); in close()
176 resultSet = null; in close()
186 return (resultSet == null); in isClosed()
202 return resultSet; in getResultSet()
212 return resultSet; in getResultSetMetaData()
249 this.resultSet = result; in setResultSet()
253 if (resultSet != null) { in setResultSet()
254 cacheColumnNames(resultSet); in setResultSet()
DShadowSQLiteDatabase.java102 ResultSet resultSet = insert.getGeneratedKeys(); in insertWithOnConflict() local
103 if (resultSet.next()) { in insertWithOnConflict()
104 result = resultSet.getLong(1); in insertWithOnConflict()
106 resultSet.close(); in insertWithOnConflict()
126 ResultSet resultSet; in query() local
129 resultSet = statement.executeQuery(sql); in query()
135 shadowOf(cursor).setResultSet(resultSet,sql); in query()
245 ResultSet resultSet;
255 resultSet = Robolectric.shadowOf(stmt).getStatement().executeQuery();
262 shadowOf(cursor).setResultSet(resultSet, sqlBody);
DShadowSQLiteStatement.java37 ResultSet resultSet = actualDBstatement.getGeneratedKeys(); in executeInsert() local
39 if (resultSet.next()) { in executeInsert()
40 return resultSet.getLong(1); in executeInsert()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/
DSQL_Results.java90 ResultSet resultSet = this.queryAllVariations.executeQuery(); in queryAllVariations() local
92 return resultSet; in queryAllVariations()
188 ResultSet resultSet = this.queryScenarioTimestampDataPoints.executeQuery(); in queryScenarioTimestampDataPoints() local
190 return resultSet; in queryScenarioTimestampDataPoints()
204 ResultSet resultSet = this.queryScenarioBuildDataPoints.executeQuery(); in queryScenarioBuildDataPoints() local
206 return resultSet; in queryScenarioBuildDataPoints()
230 ResultSet resultSet = this.queryScenarioDataPoints.executeQuery(); in queryScenarioDataPoints() local
232 return resultSet; in queryScenarioDataPoints()
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/
DSQLStatementSync.cpp94 RefPtrWillBeRawPtr<SQLResultSet> resultSet = SQLResultSet::create(); in execute() local
100 SQLResultSetRowList* rows = resultSet->rows(); in execute()
120 resultSet->setInsertId(database->lastInsertRowID()); in execute()
136 resultSet->setRowsAffected(database->lastChanges()); in execute()
137 return resultSet.release(); in execute()
DSQLTransactionBackendSync.cpp117 RefPtrWillBeRawPtr<SQLResultSet> resultSet; in executeSQL() local
120 resultSet = statement.execute(m_database.get(), exceptionState); in executeSQL()
121 if (!resultSet) { in executeSQL()
140 return resultSet.release(); in executeSQL()
DSQLStatement.cpp100 RefPtrWillBeRawPtr<SQLResultSet> resultSet = m_backend->sqlResultSet(); in performCallback() local
101 callbackError = !callback->handleEvent(transaction, resultSet.get()); in performCallback()
DInspectorDatabaseAgent.cpp79 virtual bool handleEvent(SQLTransaction*, SQLResultSet* resultSet) OVERRIDE in handleEvent() argument
81 SQLResultSetRowList* rowList = resultSet->rows(); in handleEvent()
DSQLStatementCallback.idl30 boolean handleEvent(SQLTransaction transaction, SQLResultSet resultSet);
/external/chromium_org/third_party/WebKit/Source/core/xml/
DXPathPredicate.cpp257 NodeSet& resultSet = lhsResult.modifiableNodeSet(); in evaluate() local
261 for (size_t i = 0; i < resultSet.size(); ++i) in evaluate()
262 nodes.add(resultSet[i]); in evaluate()
267 resultSet.append(node); in evaluate()
273 resultSet.markSorted(false); in evaluate()
DXPathFunctions.cpp336 HashSet<Node*> resultSet; in evaluate() local
354 if (node && resultSet.add(node).isNewEntry) in evaluate()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sdk/
DRuntimeModel.js301 var resultSet = {};
306 resultSet[names[i]] = true;
310 return resultSet;
/external/deqp/framework/common/
DtcuTexCompareVerifier.cpp119 static inline bool isResultInSet (const CmpResultSet resultSet, const float result, const int resul… in isResultInSet() argument
125 return (resultSet.isTrue && de::inRange(1.0f, minR, maxR)) || in isResultInSet()
126 (resultSet.isFalse && de::inRange(0.0f, minR, maxR)); in isResultInSet()