Home
last modified time | relevance | path

Searched refs:resultSet (Results 1 – 20 of 20) 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 RefPtr<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()
DSQLStatementBackend.cpp160 RefPtr<SQLResultSet> resultSet = SQLResultSet::create(); in execute() local
166 SQLResultSetRowList* rows = resultSet->rows(); in execute()
186 resultSet->setInsertId(database->lastInsertRowID()); in execute()
204 resultSet->setRowsAffected(database->lastChanges()); in execute()
206 m_resultSet = resultSet; in execute()
DSQLTransactionBackendSync.cpp103 RefPtr<SQLResultSet> resultSet; in executeSQL() local
106 resultSet = statement.execute(m_database.get(), exceptionState); in executeSQL()
107 if (!resultSet) { in executeSQL()
126 return resultSet.release(); in executeSQL()
DSQLStatement.cpp90 RefPtr<SQLResultSet> resultSet = m_backend->sqlResultSet(); in performCallback() local
91 callbackError = !callback->handleEvent(transaction, resultSet.get()); in performCallback()
DSQLStatementCallback.idl30 boolean handleEvent(SQLTransaction transaction, SQLResultSet resultSet);
/external/chromium_org/third_party/WebKit/Source/core/xml/
DXPathPredicate.cpp232 NodeSet& resultSet = lhsResult.modifiableNodeSet(); in evaluate() local
236 for (size_t i = 0; i < resultSet.size(); ++i) in evaluate()
237 nodes.add(resultSet[i]); in evaluate()
242 resultSet.append(node); in evaluate()
247 resultSet.markSorted(false); in evaluate()
DXPathFunctions.cpp335 HashSet<Node*> resultSet; in evaluate() local
353 if (node && resultSet.add(node).isNewEntry) in evaluate()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DRuntimeModel.js239 var resultSet = {};
244 resultSet[names[i]] = true;
248 return resultSet;
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorDatabaseAgent.cpp80 virtual bool handleEvent(SQLTransaction*, SQLResultSet* resultSet) in handleEvent() argument
82 SQLResultSetRowList* rowList = resultSet->rows(); in handleEvent()
/external/chromium/net/base/
Dx509_certificate_mac.cc735 CSSM_TP_RESULT_SET *resultSet = NULL; in CreateSelfSigned() local
737 &confirmRequired, &resultSet); in CreateSelfSigned()
738 ScopedEncodedCertResults scopedResults(resultSet); in CreateSelfSigned()
752 if (resultSet->NumberOfResults != 1) { in CreateSelfSigned()
754 << resultSet->NumberOfResults; in CreateSelfSigned()
759 reinterpret_cast<CSSM_ENCODED_CERT*>(resultSet->Results); in CreateSelfSigned()
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
DStyleBuilderCustom.cpp1141 RefPtr<MutableStylePropertySet> resultSet = MutableStylePropertySet::create(); in resolveVariables() local
1142 if (!CSSParser::parseValue(resultSet.get(), id, expression.second, false, state.document())) in resolveVariables()
1145 for (unsigned i = 0; i < resultSet->propertyCount(); i++) { in resolveVariables()
1146 StylePropertySet::PropertyReference property = resultSet->propertyAt(i); in resolveVariables()