Home
last modified time | relevance | path

Searched refs:statement (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteProgramTest.java59 SQLiteStatement statement; in testBind() local
61 statement = mDatabase.compileStatement("SELECT num1 FROM test WHERE num2 = ?;"); in testBind()
62 statement.bindLong(1, 30); in testBind()
63 assertEquals(12, statement.simpleQueryForLong()); in testBind()
66 statement.bindDouble(1, 589.0); in testBind()
67 assertEquals(213, statement.simpleQueryForLong()); in testBind()
68 statement.close(); in testBind()
70 statement = mDatabase.compileStatement("SELECT text1 FROM test WHERE text2 = ?;"); in testBind()
72 statement.bindDouble(1, 589.0); // Wrong binding in testBind()
74 statement.simpleQueryForString(); in testBind()
[all …]
DDatabaseStatementTest.java84 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); in testExecuteStatement() local
85 statement.execute(); in testExecuteStatement()
90 statement.close(); in testExecuteStatement()
95 SQLiteStatement statement = mDatabase.compileStatement("PRAGMA busy_timeout = 12000"); in testExecutePragmaStatement() local
96 statement.execute(); in testExecutePragmaStatement()
97 statement.close(); in testExecutePragmaStatement()
146 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); in testStatementLongBinding() local
149 statement.bindLong(1, i); in testStatementLongBinding()
150 statement.execute(); in testStatementLongBinding()
152 statement.close(); in testStatementLongBinding()
[all …]
DSQLiteStatementTest.java134 SQLiteStatement statement = mDatabase.compileStatement( in testExecuteInsert() local
136 assertEquals(1, statement.executeInsert()); in testExecuteInsert()
137 statement.close(); in testExecuteInsert()
140 statement = mDatabase.compileStatement("insert or ignore into test values(1, 1);"); in testExecuteInsert()
141 assertEquals(-1, statement.executeInsert()); in testExecuteInsert()
142 statement.close(); in testExecuteInsert()
153 statement = mDatabase.compileStatement( in testExecuteInsert()
156 statement.executeInsert(); in testExecuteInsert()
161 statement.close(); in testExecuteInsert()
169 SQLiteStatement statement = in testSimpleQueryForLong() local
[all …]
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java252 SQLiteStatement statement = mDatabase.compileStatement(sql); in testBindObjectToProgram() local
253 DatabaseUtils.bindObjectToProgram(statement, 1, name); in testBindObjectToProgram()
254 DatabaseUtils.bindObjectToProgram(statement, 2, age); in testBindObjectToProgram()
255 DatabaseUtils.bindObjectToProgram(statement, 3, address); in testBindObjectToProgram()
256 statement.execute(); in testBindObjectToProgram()
257 statement.close(); in testBindObjectToProgram()
591 SQLiteStatement statement = mDatabase.compileStatement(query); in testLongForQuery() local
592 assertEquals(2, DatabaseUtils.longForQuery(statement, null)); in testLongForQuery()
595 statement = mDatabase.compileStatement(query); in testLongForQuery()
597 assertEquals(35, DatabaseUtils.longForQuery(statement, args)); in testLongForQuery()
[all …]
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DFlakyTestRule.java39 public Statement apply(Statement statement, Description description) { in apply() argument
46 statement.evaluate(); in apply()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceStateTester.java85 statement(description).evaluate(); in setup()
91 private Statement statement(Description description) { in statement() method in DeviceStateTester
DBedsteadJUnit4.java1258 Statement statement = new Statement() { in runChild() local
1275 runLeaf(statement, description, notifier); in runChild()
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale138 executed "then" part of the statement
145 to Str_2_Loc (5'th statement of "main") out of the measurement loop
169 o In Func_1, the statement
171 was added in the non-executed "else" part of the "if" statement, to
175 o In Func_2, the second character comparison statement has been changed
179 preceding "if" statement.
181 Also in Func_2, the statement
183 has been added in the non-executed part of the last "if" statement,
187 statement. While the program would not be incorrect without this
192 "if" statement of Proc_3 was removed.
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8479/
DAndroid.bp31 "-Wdeclaration-after-statement",
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0508/
DAndroid.bp31 "-Wdeclaration-after-statement",
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0333/
DAndroid.bp31 "-Wdeclaration-after-statement",
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationControllerTests.java28 import static androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread;