Home
last modified time | relevance | path

Searched refs:sql (Results 1 – 25 of 26) 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.java548 final String sql; in query() local
578 sql = wrappedSql; in query()
581 sql = unwrappedSql; in query()
587 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in query()
589 Log.d(TAG, sql); in query()
593 mFactory, sql, sqlArgs, in query()
614 final String sql = buildInsert(values); in insert() local
624 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in insert()
626 Log.d(TAG, sql); in insert()
629 return DatabaseUtils.executeInsert(db, sql, sqlArgs); in insert()
[all …]
DSQLiteDatabase.java1065 public void execPerConnectionSQL(@NonNull String sql, @Nullable Object[] bindArgs) in execPerConnectionSQL() argument
1067 Objects.requireNonNull(sql); in execPerConnectionSQL()
1077 mConfigurationLocked.perConnectionSql.add(Pair.create(sql, bindArgs)); in execPerConnectionSQL()
1220 public SQLiteStatement compileStatement(String sql) throws SQLException { in compileStatement() argument
1223 return new SQLiteStatement(this, sql, null); in compileStatement()
1389 String sql = SQLiteQueryBuilder.buildQueryString( in queryWithFactory() local
1392 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, in queryWithFactory()
1483 public Cursor rawQuery(String sql, String[] selectionArgs) { in rawQuery() argument
1484 return rawQueryWithFactory(null, sql, selectionArgs, null, null); in rawQuery()
1500 public Cursor rawQuery(String sql, String[] selectionArgs, in rawQuery() argument
[all …]
DSQLiteConnection.java137 private static native long nativePrepareStatement(long connectionPtr, String sql); in nativePrepareStatement() argument
601 boolean isPreparedStatementInCache(String sql) { in isPreparedStatementInCache() argument
602 return mPreparedStatementCache.get(sql) != null; in isPreparedStatementInCache()
645 public void prepare(String sql, SQLiteStatementInfo outStatementInfo) { in prepare() argument
646 if (sql == null) { in prepare()
650 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); in prepare()
652 final PreparedStatement statement = acquirePreparedStatement(sql); in prepare()
692 public void execute(String sql, Object[] bindArgs, in execute() argument
694 if (sql == null) { in execute()
698 final int cookie = mRecentOperations.beginOperation("execute", sql, bindArgs); in execute()
[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.java195 public static long executeInsert(@NonNull SQLiteDatabase db, @NonNull String sql, in executeInsert() argument
197 try (SQLiteStatement st = db.compileStatement(sql)) { in executeInsert()
204 public static int executeUpdateDelete(@NonNull SQLiteDatabase db, @NonNull String sql, in executeUpdateDelete() argument
206 try (SQLiteStatement st = db.compileStatement(sql)) { in executeUpdateDelete()
542 public static final void appendValueToSql(StringBuilder sql, Object value) { in appendValueToSql() argument
544 sql.append("NULL"); in appendValueToSql()
548 sql.append('1'); in appendValueToSql()
550 sql.append('0'); in appendValueToSql()
553 appendEscapedSQLString(sql, value.toString()); in appendValueToSql()
1566 public static int getSqlStatementType(String sql) { in getSqlStatementType() argument
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/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.cpp92 static void sqliteTraceCallback(void *data, const char *sql) { in sqliteTraceCallback() argument
95 connection->label.string(), sql); in sqliteTraceCallback()
99 static void sqliteProfileCallback(void *data, const char *sql, sqlite3_uint64 tm) { in sqliteProfileCallback() argument
102 connection->label.string(), sql, tm * 0.000001f); in sqliteProfileCallback()
371 const jchar* sql = env->GetStringCritical(sqlString, NULL); in nativePrepareStatement() local
374 sql, sqlLength * sizeof(jchar), &statement, NULL); in nativePrepareStatement()
375 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/api/
Dcurrent.txt9941 field public static final String QUERY_ARG_SQL_GROUP_BY = "android:query-arg-sql-group-by";
9942 field public static final String QUERY_ARG_SQL_HAVING = "android:query-arg-sql-having";
9943 field public static final String QUERY_ARG_SQL_LIMIT = "android:query-arg-sql-limit";
9944 field public static final String QUERY_ARG_SQL_SELECTION = "android:query-arg-sql-selection";
9945 …field public static final String QUERY_ARG_SQL_SELECTION_ARGS = "android:query-arg-sql-selection-a…
9946 field public static final String QUERY_ARG_SQL_SORT_ORDER = "android:query-arg-sql-sort-order";
69669 package java.sql {
69672 method public void free() throws java.sql.SQLException;
69673 method public Object getArray() throws java.sql.SQLException;
69674 …c Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>>) 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.proto271 optional SqlStats sql = 3; field
/frameworks/base/config/
Dpreloaded-classes10706 java.sql.Date
10707 java.sql.SQLException
10708 java.sql.Time
10709 java.sql.Timestamp

12