Home
last modified time | relevance | path

Searched refs:sql (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/android/database/sqlite/
DSQLiteSession.java578 public void prepare(String sql, int connectionFlags, CancellationSignal cancellationSignal, in prepare() argument
580 if (sql == null) { in prepare()
588 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw in prepare()
590 mConnection.prepare(sql, outStatementInfo); // might throw in prepare()
609 public void execute(String sql, Object[] bindArgs, int connectionFlags, in execute() argument
611 if (sql == null) { in execute()
615 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) { in execute()
619 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw in execute()
621 mConnection.execute(sql, bindArgs, cancellationSignal); // might throw in execute()
642 public long executeForLong(String sql, Object[] bindArgs, int connectionFlags, in executeForLong() argument
[all …]
DSQLiteQueryBuilder.java477 final String sql; in query() local
501 sql = wrappedSql; in query()
504 sql = unwrappedSql; in query()
510 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in query()
512 Log.d(TAG, sql); in query()
516 mFactory, sql, sqlArgs, in query()
541 final String sql; in update() local
562 sql = wrappedSql; in update()
565 sql = unwrappedSql; in update()
583 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in update()
[all …]
DSQLiteConnection.java129 private static native long nativePrepareStatement(long connectionPtr, String sql); in nativePrepareStatement() argument
542 boolean isPreparedStatementInCache(String sql) { in isPreparedStatementInCache() argument
543 return mPreparedStatementCache.get(sql) != null; in isPreparedStatementInCache()
586 public void prepare(String sql, SQLiteStatementInfo outStatementInfo) { in prepare() argument
587 if (sql == null) { in prepare()
591 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); in prepare()
593 final PreparedStatement statement = acquirePreparedStatement(sql); in prepare()
633 public void execute(String sql, Object[] bindArgs, in execute() argument
635 if (sql == null) { in execute()
639 final int cookie = mRecentOperations.beginOperation("execute", sql, bindArgs); in execute()
[all …]
DSQLiteDatabase.java1118 public SQLiteStatement compileStatement(String sql) throws SQLException { in compileStatement() argument
1121 return new SQLiteStatement(this, sql, null); in compileStatement()
1287 String sql = SQLiteQueryBuilder.buildQueryString( in queryWithFactory() local
1290 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, in queryWithFactory()
1381 public Cursor rawQuery(String sql, String[] selectionArgs) { in rawQuery() argument
1382 return rawQueryWithFactory(null, sql, selectionArgs, null, null); in rawQuery()
1398 public Cursor rawQuery(String sql, String[] selectionArgs, in rawQuery() argument
1400 return rawQueryWithFactory(null, sql, selectionArgs, null, cancellationSignal); in rawQuery()
1416 CursorFactory cursorFactory, String sql, String[] selectionArgs, in rawQueryWithFactory() argument
1418 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, editTable, null); in rawQueryWithFactory()
[all …]
DSQLiteDirectCursorDriver.java37 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, in SQLiteDirectCursorDriver() argument
41 mSql = sql; in SQLiteDirectCursorDriver()
DSQLiteStatement.java32 SQLiteStatement(SQLiteDatabase db, String sql, Object[] bindArgs) { in SQLiteStatement() argument
33 super(db, sql, bindArgs, null); in SQLiteStatement()
DSQLiteCursor.java287 String sql = mQuery.getSql(); in finalize() local
288 int len = sql.length(); in finalize()
293 ", query = " + sql.substring(0, (len > 1000) ? 1000 : len), in finalize()
DSQLiteConnectionPool.java378 public SQLiteConnection acquireConnection(String sql, int connectionFlags, in acquireConnection() argument
380 SQLiteConnection con = waitForConnection(sql, connectionFlags, cancellationSignal); in acquireConnection()
677 private SQLiteConnection waitForConnection(String sql, int connectionFlags, in waitForConnection() argument
696 sql, connectionFlags); // might throw in waitForConnection()
709 priority, wantPrimaryConnection, sql, connectionFlags); in waitForConnection()
958 String sql, int connectionFlags) { in tryAcquireNonPrimaryConnectionLocked() argument
962 if (availableCount > 1 && sql != null) { in tryAcquireNonPrimaryConnectionLocked()
967 if (connection.isPreparedStatementInCache(sql)) { in tryAcquireNonPrimaryConnectionLocked()
1077 int priority, boolean wantPrimaryConnection, String sql, int connectionFlags) { in obtainConnectionWaiterLocked() argument
1089 waiter.mSql = sql; in obtainConnectionWaiterLocked()
DSQLiteProgram.java43 SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, in SQLiteProgram() argument
46 mSql = sql.trim(); in SQLiteProgram()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseCursorTest.java107 String sql = "INSERT INTO test (s, d, l, b) VALUES (?,?,?,?)"; in testBlob() local
108 mDatabase.execSQL(sql, args); in testBlob()
237 StringBuilder sql = new StringBuilder(2100); in testLargeField() local
238 sql.append("INSERT INTO test (data) VALUES ('"); in testLargeField()
244 sql.append(randomString); in testLargeField()
245 sql.append("');"); in testLargeField()
246 mDatabase.execSQL(sql.toString()); in testLargeField()
318 StringBuilder sql = new StringBuilder(2100); in testManyRowsTxt() local
319 sql.append("INSERT INTO test (data) VALUES ('"); in testManyRowsTxt()
325 sql.append(randomString); in testManyRowsTxt()
[all …]
DDatabaseLocaleTest.java65 private String[] query(String sql) { in query() argument
66 Log.i("LocaleTest", "Querying: " + sql); in query()
67 Cursor c = mDatabase.rawQuery(sql, null); in query()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java136 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1); in openFile() local
137 return getBlobColumnAsFile(url, mode, sql); in openFile()
152 private ParcelFileDescriptor getBlobColumnAsFile(Uri url, String mode, String sql) in getBlobColumnAsFile() argument
159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null); in getBlobColumnAsFile()
/frameworks/base/test-runner/src/android/test/
DProviderTestCase.java97 String databaseName, int databaseVersion, String sql) in newResolverWithContentProviderFromSql() argument
107 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
DProviderTestCase2.java223 String databaseName, int databaseVersion, String sql) in newResolverWithContentProviderFromSql() argument
231 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
/frameworks/base/core/java/android/database/
DDatabaseUtils.java460 public static final void appendValueToSql(StringBuilder sql, Object value) { in appendValueToSql() argument
462 sql.append("NULL"); in appendValueToSql()
466 sql.append('1'); in appendValueToSql()
468 sql.append('0'); in appendValueToSql()
471 appendEscapedSQLString(sql, value.toString()); in appendValueToSql()
1484 public static int getSqlStatementType(String sql) { in getSqlStatementType() argument
1485 sql = sql.trim(); in getSqlStatementType()
1486 if (sql.length() < 3) { in getSqlStatementType()
1489 String prefixSql = sql.substring(0, 3).toUpperCase(Locale.ROOT); in getSqlStatementType()
1504 boolean isRollbackToSavepoint = sql.toUpperCase(Locale.ROOT).contains(" TO "); in getSqlStatementType()
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp94 static void sqliteTraceCallback(void *data, const char *sql) { in sqliteTraceCallback() argument
97 connection->label.string(), sql); in sqliteTraceCallback()
101 static void sqliteProfileCallback(void *data, const char *sql, sqlite3_uint64 tm) { in sqliteProfileCallback() argument
104 connection->label.string(), sql, tm * 0.000001f); in sqliteProfileCallback()
301 const jchar* sql = env->GetStringCritical(sqlString, NULL); in nativePrepareStatement() local
304 sql, sqlLength * sizeof(jchar), &statement, NULL); in nativePrepareStatement()
305 env->ReleaseStringCritical(sqlString, sql); in nativePrepareStatement()
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java79 String sql = "CREATE TABLE " + APPID_TABLE_NAME + " (" in onCreate() local
91 if (DEBUG_SQL) Log.v(LOG_TAG, "sql: " + sql); in onCreate()
92 db.execSQL(sql); in onCreate()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java1326 String sql = "INSERT OR REPLACE INTO " + AccountsDb.TABLE_DEBUG in compileSqlStatementForLogging() local
1328 return db.compileStatement(sql); in compileSqlStatementForLogging()
/frameworks/base/core/proto/android/server/
Dactivitymanagerservice.proto347 optional SqlStats sql = 3; field
/frameworks/base/config/
Dpreloaded-classes6274 java.sql.Date
6275 java.sql.SQLException
6276 java.sql.Time
6277 java.sql.Timestamp