/frameworks/base/core/java/android/database/sqlite/ |
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 | SQLiteConnection.java | 33 import java.sql.Date; 126 private static native int nativePrepareStatement(int connectionPtr, String sql); argument 442 boolean isPreparedStatementInCache(String sql) { argument 443 return mPreparedStatementCache.get(sql) != null; 480 * @param sql The SQL statement to prepare. 486 public void prepare(String sql, SQLiteStatementInfo outStatementInfo) { argument 487 if (sql == null) { 488 throw new IllegalArgumentException("sql must not be null."); 491 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); 493 final PreparedStatement statement = acquirePreparedStatement(sql); 533 execute(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 576 executeForLong(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 619 executeForString(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 664 executeForBlobFileDescriptor(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 710 executeForChangedRowCount(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 759 executeForLastInsertedRowId(String sql, Object[] bindArgs, CancellationSignal cancellationSignal) argument 813 executeForCursorWindow(String sql, Object[] bindArgs, CursorWindow window, int startPos, int requiredPos, boolean countAllRows, CancellationSignal cancellationSignal) argument 869 acquirePreparedStatement(String sql) argument 1174 obtainPreparedStatement(String sql, int statementPtr, int numParameters, int type, boolean readOnly) argument 1198 trimSqlForDisplay(String sql) argument 1290 beginOperation(String kind, String sql, Object[] bindArgs) argument [all...] |
H A D | SQLiteDatabase.java | 984 * @param sql The raw SQL statement, may contain ? for unknown values to be 989 public SQLiteStatement compileStatement(String sql) throws SQLException { argument 992 return new SQLiteStatement(this, sql, null); 1158 String sql = SQLiteQueryBuilder.buildQueryString( 1161 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, 1245 * @param sql the SQL query. The SQL string must not be ; terminated 1252 public Cursor rawQuery(String sql, String[] selectionArgs) { argument 1253 return rawQueryWithFactory(null, sql, selectionArgs, null, null); 1259 * @param sql the SQL query. The SQL string must not be ; terminated 1269 public Cursor rawQuery(String sql, Strin argument 1286 rawQueryWithFactory( CursorFactory cursorFactory, String sql, String[] selectionArgs, String editTable) argument 1307 rawQueryWithFactory( CursorFactory cursorFactory, String sql, String[] selectionArgs, String editTable, CancellationSignal cancellationSignal) argument 1593 execSQL(String sql) argument 1640 execSQL(String sql, Object[] bindArgs) argument 1647 executeSql(String sql, Object[] bindArgs) argument [all...] |
H A D | SQLiteDirectCursorDriver.java | 35 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, argument 39 mSql = sql;
|
H A D | SQLiteStatement.java | 30 SQLiteStatement(SQLiteDatabase db, String sql, Object[] bindArgs) { argument 31 super(db, sql, bindArgs, null);
|
H A D | SQLiteCursor.java | 255 String sql = mQuery.getSql(); 256 int len = sql.length(); 261 ", query = " + sql.substring(0, (len > 1000) ? 1000 : len),
|
H A D | SQLiteProgram.java | 40 SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, argument 43 mSql = sql.trim();
|
H A D | SQLiteConnectionPool.java | 336 * @param sql If not null, try to find a connection that already has 346 public SQLiteConnection acquireConnection(String sql, int connectionFlags, argument 348 return waitForConnection(sql, connectionFlags, cancellationSignal); 591 private SQLiteConnection waitForConnection(String sql, int connectionFlags, argument 610 sql, connectionFlags); // might throw 623 priority, wantPrimaryConnection, sql, connectionFlags); 868 String sql, int connectionFlags) { 872 if (availableCount > 1 && sql != null) { 877 if (connection.isPreparedStatementInCache(sql)) { 968 int priority, boolean wantPrimaryConnection, String sql, in 867 tryAcquireNonPrimaryConnectionLocked( String sql, int connectionFlags) argument 967 obtainConnectionWaiterLocked(Thread thread, long startTime, int priority, boolean wantPrimaryConnection, String sql, int connectionFlags) argument [all...] |
H A D | SQLiteQueryBuilder.java | 167 * <li>Use one of the query overloads instead of getting the statement as a sql string</li> 393 String sql = buildQuery( 398 Log.d(TAG, "Performing query: " + sql); 401 mFactory, sql, selectionArgs, 410 private void validateQuerySql(SQLiteDatabase db, String sql, argument 412 db.getThreadSession().prepare(sql,
|
/frameworks/base/test-runner/src/android/test/ |
H A D | DatabaseTestUtils.java | 46 Cursor entityCursor = db.rawQuery("SELECT sql FROM sqlite_master", null); 49 String sql = entityCursor.getString(0); 50 schemaSet.add(sql);
|
H A D | ProviderTestCase.java | 98 String databaseName, int databaseVersion, String sql) 108 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); 96 newResolverWithContentProviderFromSql( Context targetContext, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
|
H A D | ProviderTestCase2.java | 201 * @param sql A string containing the SQL statements that are needed to create the desired 211 String databaseName, int databaseVersion, String sql) 219 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); 209 newResolverWithContentProviderFromSql( Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseCursorTest.java | 109 String sql = "INSERT INTO test (s, d, l, b) VALUES (?,?,?,?)"; 110 mDatabase.execSQL(sql, args); 239 StringBuilder sql = new StringBuilder(2100); 240 sql.append("INSERT INTO test (data) VALUES ('"); 246 sql.append(randomString); 247 sql.append("');"); 248 mDatabase.execSQL(sql.toString()); 320 StringBuilder sql = new StringBuilder(2100); 321 sql.append("INSERT INTO test (data) VALUES ('"); 327 sql [all...] |
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/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/base/packages/WAPPushManager/src/com/android/smspush/ |
H A D | WapPushManager.java | 75 String sql = "CREATE TABLE " + APPID_TABLE_NAME + " (" 87 if (DEBUG_SQL) Log.v(LOG_TAG, "sql: " + sql); 88 db.execSQL(sql); 120 String sql = "select install_order, package_name, class_name, " 126 if (DEBUG_SQL) Log.v(LOG_TAG, "sql: " + sql); 127 Cursor cur = db.rawQuery(sql, null);
|
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 91 static void sqliteTraceCallback(void *data, const char *sql) { argument 94 connection->label.string(), sql); 98 static void sqliteProfileCallback(void *data, const char *sql, sqlite3_uint64 tm) { argument 101 connection->label.string(), sql, tm * 0.000001f); 287 const jchar* sql = env->GetStringCritical(sqlString, NULL); local 290 sql, sqlLength * sizeof(jchar), &statement, NULL); 291 env->ReleaseStringCritical(sqlString, sql);
|
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 370 public static final void appendValueToSql(StringBuilder sql, Object value) { argument 372 sql.append("NULL"); 376 sql.append('1'); 378 sql.append('0'); 381 appendEscapedSQLString(sql, value.toString()); 1324 * Creates a db and populates it with the sql statements in sqlStatements. 1359 * @param sql the SQL statement whose type is returned by this method 1362 public static int getSqlStatementType(String sql) { argument 1363 sql = sql [all...] |