Home
last modified time | relevance | path

Searched refs:resultSet (Results 1 – 21 of 21) 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/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
DKMeansPlusPlusClusterer.java165 final List<Cluster<T>> resultSet = new ArrayList<Cluster<T>>(); in chooseInitialCenters() local
169 resultSet.add(new Cluster<T>(firstPoint)); in chooseInitialCenters()
172 while (resultSet.size() < k) { in chooseInitialCenters()
178 final Cluster<T> nearest = getNearestCluster(resultSet, p); in chooseInitialCenters()
190 resultSet.add(new Cluster<T>(p)); in chooseInitialCenters()
196 return resultSet; in chooseInitialCenters()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCurrency.java225 HashSet<Currency> resultSet = new HashSet<Currency>(list.size()); in getAvailableCurrencies() local
227 resultSet.add(getInstance(code)); in getAvailableCurrencies()
229 return resultSet; in getAvailableCurrencies()
/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()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/
Dperformanceui.jarMETA-INF/MANIFEST.MF .project about.html plugin.xml build.properties images ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.core.filebuffers_3.5.100.v20100520-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.equinox.p2.metadata_2.0.0.v20100601.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.jdt.debug_3.6.1.v20100715_r361/
Djdimodel.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/robolectric/lib/main/
Dh2-1.2.147.jarMETA-INF/MANIFEST.MF META-INF/services/java.sql.Driver org ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
Dfindbugs.jarMETA-INF/ META-INF/MANIFEST.MF default.xsl edu/ edu/umd ...
/external/jarjar/lib/
Dapache-ant-1.9.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...