Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseStatementTest.java82 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); in testExecuteStatement() local
83 statement.execute(); in testExecuteStatement()
88 statement.close(); in testExecuteStatement()
131 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); in testStatementLongBinding() local
134 statement.bindLong(1, i); in testStatementLongBinding()
135 statement.execute(); in testStatementLongBinding()
137 statement.close(); in testStatementLongBinding()
153 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); in testStatementStringBinding() local
156 statement.bindString(1, Long.toHexString(i)); in testStatementStringBinding()
157 statement.execute(); in testStatementStringBinding()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnection.java593 final PreparedStatement statement = acquirePreparedStatement(sql); in prepare() local
596 outStatementInfo.numParameters = statement.mNumParameters; in prepare()
597 outStatementInfo.readOnly = statement.mReadOnly; in prepare()
600 mConnectionPtr, statement.mStatementPtr); in prepare()
607 mConnectionPtr, statement.mStatementPtr, i); in prepare()
612 releasePreparedStatement(statement); in prepare()
641 final PreparedStatement statement = acquirePreparedStatement(sql); in execute() local
643 throwIfStatementForbidden(statement); in execute()
644 bindArguments(statement, bindArgs); in execute()
645 applyBlockGuardPolicy(statement); in execute()
[all …]
DSQLiteDatabase.java1597 SQLiteStatement statement = new SQLiteStatement(this, sql.toString(), bindArgs); in insertWithOnConflict() local
1599 return statement.executeInsert(); in insertWithOnConflict()
1601 statement.close(); in insertWithOnConflict()
1624 SQLiteStatement statement = new SQLiteStatement(this, "DELETE FROM " + table + in delete() local
1627 return statement.executeUpdateDelete(); in delete()
1629 statement.close(); in delete()
1702 SQLiteStatement statement = new SQLiteStatement(this, sql.toString(), bindArgs); in updateWithOnConflict() local
1704 return statement.executeUpdateDelete(); in updateWithOnConflict()
1706 statement.close(); in updateWithOnConflict()
1805 try (SQLiteStatement statement = new SQLiteStatement(this, sql, bindArgs)) { in executeSql() argument
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DStatement.java106 Statement statement = (Statement) o; in equals() local
108 if (!mRelation.equals(statement.mRelation)) { in equals()
111 if (!mTarget.equals(statement.mTarget)) { in equals()
114 if (!mSource.equals(statement.mSource)) { in equals()
131 StringBuilder statement = new StringBuilder(); in toString() local
132 statement.append("Statement: "); in toString()
133 statement.append(mSource); in toString()
134 statement.append(", "); in toString()
135 statement.append(mTarget); in toString()
136 statement.append(", "); in toString()
[all …]
DStatementParser.java85 JSONObject statement = JsonParser.parse(reader); in parseStatement() local
87 if (statement.optString(Utils.DELEGATE_FIELD_DELEGATE, null) != null) { in parseStatement()
88 delegates.add(statement.optString(Utils.DELEGATE_FIELD_DELEGATE)); in parseStatement()
90 JSONObject targetObject = statement.optJSONObject(Utils.ASSET_DESCRIPTOR_FIELD_TARGET); in parseStatement()
96 JSONArray relations = statement.optJSONArray(Utils.ASSET_DESCRIPTOR_FIELD_RELATION); in parseStatement()
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp302 sqlite3_stmt* statement; in nativePrepareStatement() local
304 sql, sqlLength * sizeof(jchar), &statement, NULL); in nativePrepareStatement()
323 ALOGV("Prepared statement %p on connection %p", statement, connection->db); in nativePrepareStatement()
324 return reinterpret_cast<jlong>(statement); in nativePrepareStatement()
330 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); in nativeFinalizeStatement() local
335 ALOGV("Finalized statement %p on connection %p", statement, connection->db); in nativeFinalizeStatement()
336 sqlite3_finalize(statement); in nativeFinalizeStatement()
341 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); in nativeGetParameterCount() local
343 return sqlite3_bind_parameter_count(statement); in nativeGetParameterCount()
348 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); in nativeIsReadOnly() local
[all …]
/frameworks/base/tests/testables/src/android/testing/
DAndroidTestingRunner.java20 import androidx.test.internal.runner.junit4.statement.RunAfters;
21 import androidx.test.internal.runner.junit4.statement.RunBefores;
22 import androidx.test.internal.runner.junit4.statement.UiThreadStatement;
56 final Statement statement = super.methodInvoker(method, test); in methodInvoker() local
57 return shouldRunOnUiThread(method) ? new UiThreadStatement(statement, true) : statement; in methodInvoker()
60 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { in withBefores() argument
63 return befores.isEmpty() ? statement : new RunBefores(method, statement, in withBefores()
67 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
70 return afters.isEmpty() ? statement : new RunAfters(method, statement, afters, in withAfters()
/frameworks/base/tools/aapt2/java/
DClassDefinition.cpp30 void MethodDefinition::AppendStatement(const StringPiece& statement) { in AppendStatement() argument
31 statements_.push_back(statement.to_string()); in AppendStatement()
37 for (const auto& statement : statements_) { in Print() local
38 printer->Println(statement); in Print()
DClassDefinition.h186 void AppendStatement(const android::StringPiece& statement);
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DDirectStatementService.java242 for (Statement statement : statements.getStatements()) { in verifyOneSource()
243 if (relation.matches(statement.getRelation()) in verifyOneSource()
244 && target.matches(statement.getTarget())) { in verifyOneSource()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java55 TimedStatement(Statement statement, int warmUpIterations, int runs, in TimedStatement() argument
57 mStatement = statement; in TimedStatement()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/docs/swift/
DDesignDoc.md220 properties causes the copies and mutations to occur as the assignment statement
397 the `.UNKNOWN_VALUE` case to satisfy case exhaustion in a switch statement; the
424 write `someMessage.contentType!` in their switch statement.
429 switch statement.
500 cannot be used as cases in a switch statement (the compiler emits the error
587 `NilLiteralConvertible` to avoid switch statement issues. Setting the property
624 modules, then `Foo` would contain an `import Bar` statement and `Bar` would
625 contain an `import Foo` statement, and there is no way to compile this.
/frameworks/base/core/java/android/database/
DDatabaseUtils.java1462 for (String statement : statements) { in createDbFromSqlStatements()
1463 if (TextUtils.isEmpty(statement)) continue; in createDbFromSqlStatements()
1464 db.execSQL(statement); in createDbFromSqlStatements()
/frameworks/native/cmds/service/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/libstagefright/id3/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/libstagefright/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/base/cmds/am/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/mediaserver/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/libstagefright/codecs/amrnb/common/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/base/packages/InputDevices/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/base/cmds/dpm/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/libstagefright/timedtext/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/base/media/jni/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DNOTICE136 You may add Your own copyright statement to Your modifications and
/frameworks/av/media/libstagefright/rtsp/
DNOTICE136 You may add Your own copyright statement to Your modifications and

1234567