Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/database/sqlite/
DSQLiteTokenizer.java56 private static IllegalArgumentException genException(String message, String sql) { in genException() argument
57 throw new IllegalArgumentException(message + " in '" + sql + "'"); in genException()
77 public static List<String> tokenize(@Nullable String sql, int options) { in tokenize() argument
79 tokenize(sql, options, res::add); in tokenize()
89 public static void tokenize(@Nullable String sql, int options, Consumer<String> checker) { in tokenize() argument
90 if (sql == null) { in tokenize()
94 final int len = sql.length(); in tokenize()
96 final char ch = peek(sql, pos); in tokenize()
102 while (isAlNum(peek(sql, pos))) { in tokenize()
107 final String token = sql.substring(start, end); in tokenize()
[all …]
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.java560 final String sql; in query() local
590 sql = wrappedSql; in query()
593 sql = unwrappedSql; in query()
599 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in query()
601 Log.d(TAG, sql); in query()
605 mFactory, sql, sqlArgs, in query()
628 final String sql = buildInsert(values); in insert() local
638 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in insert()
640 Log.d(TAG, sql); in insert()
643 return db.executeSql(sql, sqlArgs); in insert()
[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/database/sqlite/
DSQLiteTokenizerTest.java34 private List<String> getTokens(String sql) { in getTokens() argument
35 return SQLiteTokenizer.tokenize(sql, SQLiteTokenizer.OPTION_NONE); in getTokens()
38 private void checkTokens(String sql, String spaceSeparatedExpectedTokens) { in checkTokens() argument
43 assertEquals(expected, getTokens(sql)); in checkTokens()
46 private void assertInvalidSql(String sql, String message) { in assertInvalidSql() argument
48 getTokens(sql); in assertInvalidSql()
/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/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/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/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/opt/setupwizard/tools/docs/
Dandroid-22.txt45779 package java.sql {
45782 method public abstract void free() throws java.sql.SQLException;
45783 method public abstract java.lang.Object getArray() throws java.sql.SQLException;
45784 method public abstract java.lang.Object getArray(long, int) throws java.sql.SQLException;
45785 …Array(long, int, java.util.Map<java.lang.String, java.lang.Class<?>>) throws java.sql.SQLException;
45786 ….Object getArray(java.util.Map<java.lang.String, java.lang.Class<?>>) throws java.sql.SQLException;
45787 method public abstract int getBaseType() throws java.sql.SQLException;
45788 method public abstract java.lang.String getBaseTypeName() throws java.sql.SQLException;
45789 method public abstract java.sql.ResultSet getResultSet() throws java.sql.SQLException;
45790 method public abstract java.sql.ResultSet getResultSet(long, int) throws java.sql.SQLException;
[all …]
/frameworks/base/non-updatable-api/
Dcurrent.txt9599 field public static final String QUERY_ARG_SQL_SELECTION = "android:query-arg-sql-selection";
9600 …field public static final String QUERY_ARG_SQL_SELECTION_ARGS = "android:query-arg-sql-selection-a…
9601 field public static final String QUERY_ARG_SQL_SORT_ORDER = "android:query-arg-sql-sort-order";
67056 package java.sql {
67059 method public void free() throws java.sql.SQLException;
67060 method public Object getArray() throws java.sql.SQLException;
67061 …c Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
67062 method public Object getArray(long, int) throws java.sql.SQLException;
67063 …tArray(long, int, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
67064 method public int getBaseType() throws java.sql.SQLException;
[all …]
/frameworks/base/api/
Dcurrent.txt9599 field public static final String QUERY_ARG_SQL_SELECTION = "android:query-arg-sql-selection";
9600 …field public static final String QUERY_ARG_SQL_SELECTION_ARGS = "android:query-arg-sql-selection-a…
9601 field public static final String QUERY_ARG_SQL_SORT_ORDER = "android:query-arg-sql-sort-order";
67200 package java.sql {
67203 method public void free() throws java.sql.SQLException;
67204 method public Object getArray() throws java.sql.SQLException;
67205 …c Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
67206 method public Object getArray(long, int) throws java.sql.SQLException;
67207 …tArray(long, int, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
67208 method public int getBaseType() throws java.sql.SQLException;
[all …]
/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-classes6271 java.sql.Date
6272 java.sql.SQLException
6273 java.sql.Time
6274 java.sql.Timestamp

12