/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteStatement.java | 30 SQLiteStatement(SQLiteDatabase db, String sql, Object[] bindArgs) { argument 31 super(db, sql, bindArgs, null);
|
H A D | SQLiteDirectCursorDriver.java | 37 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, argument 41 mSql = sql;
|
H A D | SQLiteProgram.java | 40 SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, argument 43 mSql = sql.trim();
|
H A D | SQLiteSession.java | 566 * @param sql The SQL statement to prepare. 576 public void prepare(String sql, int connectionFlags, CancellationSignal cancellationSignal, argument 578 if (sql == null) { 579 throw new IllegalArgumentException("sql must not be null."); 586 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw 588 mConnection.prepare(sql, outStatementInfo); // might throw 597 * @param sql The SQL statement to execute. 607 public void execute(String sql, Object[] bindArgs, int connectionFlags, argument 609 if (sql == null) { 610 throw new IllegalArgumentException("sql mus 640 executeForLong(String sql, Object[] bindArgs, int connectionFlags, CancellationSignal cancellationSignal) argument 673 executeForString(String sql, Object[] bindArgs, int connectionFlags, CancellationSignal cancellationSignal) argument 708 executeForBlobFileDescriptor(String sql, Object[] bindArgs, int connectionFlags, CancellationSignal cancellationSignal) argument 742 executeForChangedRowCount(String sql, Object[] bindArgs, int connectionFlags, CancellationSignal cancellationSignal) argument 776 executeForLastInsertedRowId(String sql, Object[] bindArgs, int connectionFlags, CancellationSignal cancellationSignal) argument 819 executeForCursorWindow(String sql, Object[] bindArgs, CursorWindow window, int startPos, int requiredPos, boolean countAllRows, int connectionFlags, CancellationSignal cancellationSignal) argument 865 executeSpecial(String sql, Object[] bindArgs, int connectionFlags, CancellationSignal cancellationSignal) argument 890 acquireConnection(String sql, int connectionFlags, CancellationSignal cancellationSignal) argument [all...] |
H A D | SQLiteConnectionPool.java | 366 * @param sql If not null, try to find a connection that already has 376 public SQLiteConnection acquireConnection(String sql, int connectionFlags, argument 378 SQLiteConnection con = waitForConnection(sql, connectionFlags, cancellationSignal); 675 private SQLiteConnection waitForConnection(String sql, int connectionFlags, argument 694 sql, connectionFlags); // might throw 707 priority, wantPrimaryConnection, sql, connectionFlags); 956 String sql, int connectionFlags) { 960 if (availableCount > 1 && sql != null) { 965 if (connection.isPreparedStatementInCache(sql)) { 1075 int priority, boolean wantPrimaryConnection, String sql, in 955 tryAcquireNonPrimaryConnectionLocked( String sql, int connectionFlags) argument 1074 obtainConnectionWaiterLocked(Thread thread, long startTime, int priority, boolean wantPrimaryConnection, String sql, int connectionFlags) argument [all...] |
H A D | SQLiteConnection.java | 127 private static native long nativePrepareStatement(long connectionPtr, String sql); argument 463 boolean isPreparedStatementInCache(String sql) { argument 464 return mPreparedStatementCache.get(sql) != null; 501 * @param sql The SQL statement to prepare. 507 public void prepare(String sql, SQLiteStatementInfo outStatementInfo) { argument 508 if (sql == null) { 509 throw new IllegalArgumentException("sql must not be null."); 512 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); 514 final PreparedStatement statement = acquirePreparedStatement(sql); 546 * @param sql Th 554 execute(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 597 executeForLong(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 640 executeForString(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 685 executeForBlobFileDescriptor(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 731 executeForChangedRowCount(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 780 executeForLastInsertedRowId(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 834 executeForCursorWindow(String sql, Object[] bindArgs, CursorWindow window, int startPos, int requiredPos, boolean countAllRows, CancellationSignal cancellationSignal) argument 890 acquirePreparedStatement(String sql) argument 1195 obtainPreparedStatement(String sql, long statementPtr, int numParameters, int type, boolean readOnly) argument 1219 trimSqlForDisplay(String sql) argument 1320 beginOperation(String kind, String sql, Object[] bindArgs) argument [all...] |
H A D | SQLiteDatabase.java | 1078 * @param sql The raw SQL statement, may contain ? for unknown values to be 1083 public SQLiteStatement compileStatement(String sql) throws SQLException { argument 1086 return new SQLiteStatement(this, sql, null); 1252 String sql = SQLiteQueryBuilder.buildQueryString( 1255 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, 1339 * @param sql the SQL query. The SQL string must not be ; terminated 1346 public Cursor rawQuery(String sql, String[] selectionArgs) { argument 1347 return rawQueryWithFactory(null, sql, selectionArgs, null, null); 1353 * @param sql the SQL query. The SQL string must not be ; terminated 1363 public Cursor rawQuery(String sql, Strin argument 1380 rawQueryWithFactory( CursorFactory cursorFactory, String sql, String[] selectionArgs, String editTable) argument 1401 rawQueryWithFactory( CursorFactory cursorFactory, String sql, String[] selectionArgs, String editTable, CancellationSignal cancellationSignal) argument 1697 execSQL(String sql) argument 1744 execSQL(String sql, Object[] bindArgs) argument 1751 executeSql(String sql, Object[] bindArgs) argument 1793 validateSql(@onNull String sql, @Nullable CancellationSignal cancellationSignal) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseLocaleTest.java | 65 private String[] query(String sql) { argument 66 Log.i("LocaleTest", "Querying: " + sql); 67 Cursor c = mDatabase.rawQuery(sql, null);
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
H A D | IndexingTest.java | 65 public String sql; field in class:IndexingTest.IndexInfo 88 assertThat(indices.get(0).sql, is("CREATE INDEX `index_foo_table_field1_field2`" 90 assertThat(indices.get(1).sql, is("CREATE UNIQUE INDEX `index_foo_table_field2_mId`" 92 assertThat(indices.get(2).sql, is("CREATE UNIQUE INDEX `customIndex`" 94 assertThat(indices.get(3).sql, is("CREATE INDEX `index_foo_table_my_field`"
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ProviderTestCase.java | 97 String databaseName, int databaseVersion, String sql) 107 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); 95 newResolverWithContentProviderFromSql( Context targetContext, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
|
H A D | ProviderTestCase2.java | 213 * @param sql A string containing the SQL statements that are needed to create the desired 223 String databaseName, int databaseVersion, String sql) 231 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); 221 newResolverWithContentProviderFromSql( Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | MemoryFileProvider.java | 136 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1); 137 return getBlobColumnAsFile(url, mode, sql); 152 private ParcelFileDescriptor getBlobColumnAsFile(Uri url, String mode, String sql) argument 159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null);
|
/frameworks/support/persistence/db/src/main/java/androidx/sqlite/db/ |
H A D | SupportSQLiteDatabase.java | 37 * sql versions. It mimics the behavior of {@link android.database.sqlite.SQLiteDatabase} 44 * @param sql The sql query. 47 SupportSQLiteStatement compileStatement(String sql); argument 286 * This class allows using type safe sql program bindings while running queries. 299 * This class allows using type safe sql program bindings while running queries. 372 * @param sql the SQL statement to be executed. Multiple statements separated by semicolons are 377 void execSQL(String sql) throws SQLException; argument 388 * @param sql the SQL statement to be executed. Multiple statements separated by semicolons 395 void execSQL(String sql, Objec argument [all...] |
/frameworks/support/persistence/db-framework/src/main/java/androidx/sqlite/db/framework/ |
H A D | FrameworkSQLiteDatabase.java | 63 public SupportSQLiteStatement compileStatement(String sql) { argument 64 return new FrameworkSQLiteStatement(mDelegate.compileStatement(sql)); 209 StringBuilder sql = new StringBuilder(120); 210 sql.append("UPDATE "); 211 sql.append(CONFLICT_VALUES[conflictAlgorithm]); 212 sql.append(table); 213 sql.append(" SET "); 221 sql.append((i > 0) ? "," : ""); 222 sql.append(colName); 224 sql 241 execSQL(String sql) argument 246 execSQL(String sql, Object[] bindArgs) argument [all...] |
/frameworks/support/room/runtime/src/main/java/androidx/room/ |
H A D | RoomDatabase.java | 217 * @param query The sql query 240 * @param sql The query to compile. 243 public SupportSQLiteStatement compileStatement(@NonNull String sql) { argument 245 return mOpenHelper.getWritableDatabase().compileStatement(sql);
|
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 368 public static final void appendValueToSql(StringBuilder sql, Object value) { argument 370 sql.append("NULL"); 374 sql.append('1'); 376 sql.append('0'); 379 appendEscapedSQLString(sql, value.toString()); 1353 * Creates a db and populates it with the sql statements in sqlStatements. 1388 * @param sql the SQL statement whose type is returned by this method 1391 public static int getSqlStatementType(String sql) { argument 1392 sql = sql [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 94 static void sqliteTraceCallback(void *data, const char *sql) { argument 97 connection->label.string(), sql); 101 static void sqliteProfileCallback(void *data, const char *sql, sqlite3_uint64 tm) { argument 104 connection->label.string(), sql, tm * 0.000001f); 301 const jchar* sql = env->GetStringCritical(sqlString, NULL); local 304 sql, sqlLength * sizeof(jchar), &statement, NULL); 305 env->ReleaseStringCritical(sqlString, sql);
|