Home
last modified time | relevance | path

Searched refs:statement (Results 1 – 13 of 13) 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.java83 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); in testExecuteStatement() local
84 statement.execute(); in testExecuteStatement()
89 statement.close(); in testExecuteStatement()
132 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); in testStatementLongBinding() local
135 statement.bindLong(1, i); in testStatementLongBinding()
136 statement.execute(); in testStatementLongBinding()
138 statement.close(); in testStatementLongBinding()
154 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); in testStatementStringBinding() local
157 statement.bindString(1, Long.toHexString(i)); in testStatementStringBinding()
158 statement.execute(); in testStatementStringBinding()
[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/tools/selinux/
DSELinuxNeverallowTestGen.py11 statement = '' variable in NeverallowRule
15 def __init__(self, statement): argument
16 self.statement = statement
83 squashed_neverallow = rule.statement.replace("\n", " ")
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java124 SQLiteStatement statement = mDatabase.compileStatement(sql); in testBindObjectToProgram() local
125 DatabaseUtils.bindObjectToProgram(statement, 1, name); in testBindObjectToProgram()
126 DatabaseUtils.bindObjectToProgram(statement, 2, age); in testBindObjectToProgram()
127 DatabaseUtils.bindObjectToProgram(statement, 3, address); in testBindObjectToProgram()
128 statement.execute(); in testBindObjectToProgram()
129 statement.close(); in testBindObjectToProgram()
462 SQLiteStatement statement = mDatabase.compileStatement(query); in testLongForQuery() local
463 assertEquals(2, DatabaseUtils.longForQuery(statement, null)); in testLongForQuery()
466 statement = mDatabase.compileStatement(query); in testLongForQuery()
468 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/hostsidetests/security/securityPatch/CVE-2016-2504/
DAndroid.mk29 …+= -Werror -Wall -W -g -O2 -Wimplicit -D_FORTIFY_SOURCE=2 -D__linux__ -Wdeclaration-after-statement
/cts/hostsidetests/security/securityPatch/CVE-2017-0508/
DAndroid.mk30 …+= -Wall -Werror -W -g -O2 -Wimplicit -D_FORTIFY_SOURCE=2 -D__linux__ -Wdeclaration-after-statement
/cts/hostsidetests/security/securityPatch/CVE-2016-8479/
DAndroid.mk30 …+= -Wall -Werror -W -g -O2 -Wimplicit -D_FORTIFY_SOURCE=2 -D__linux__ -Wdeclaration-after-statement
/cts/hostsidetests/security/securityPatch/CVE-2017-0333/
DAndroid.mk30 …+= -Wall -Werror -W -g -O2 -Wimplicit -D_FORTIFY_SOURCE=2 -D__linux__ -Wdeclaration-after-statement
/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/tools/dasm/src/dasm/
Dparser.cup102 statement, statements, stmnt, super_spec, line_expr,
550 statements ::= statements statement | statement ;
552 statement ::=
/cts/apps/CameraITS/build/scripts/
Dgpylint_rcfile16 …nit,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed…
70 # note). You have access to the variables errors warning, statement which
74 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)