/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteTokenizer.java | 56 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 …]
|
D | SQLiteSession.java | 602 public void prepare(String sql, int connectionFlags, CancellationSignal cancellationSignal, in prepare() argument 604 if (sql == null) { in prepare() 612 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw in prepare() 614 mConnection.prepare(sql, outStatementInfo); // might throw in prepare() 633 public void execute(String sql, Object[] bindArgs, int connectionFlags, in execute() argument 635 if (sql == null) { in execute() 639 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) { in execute() 643 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw in execute() 645 mConnection.execute(sql, bindArgs, cancellationSignal); // might throw in execute() 666 public long executeForLong(String sql, Object[] bindArgs, int connectionFlags, in executeForLong() argument [all …]
|
D | SQLiteQueryBuilder.java | 557 final String sql; in query() local 587 sql = wrappedSql; in query() 590 sql = unwrappedSql; in query() 596 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in query() 598 Log.d(TAG, sql); in query() 602 mFactory, sql, sqlArgs, in query() 623 final String sql = buildInsert(values); in insert() local 633 Log.d(TAG, sql + " with args " + Arrays.toString(sqlArgs)); in insert() 635 Log.d(TAG, sql); in insert() 638 return DatabaseUtils.executeInsert(db, sql, sqlArgs); in insert() [all …]
|
D | SQLiteConnection.java | 145 private static native long nativePrepareStatement(long connectionPtr, String sql); in nativePrepareStatement() argument 635 boolean isPreparedStatementInCache(String sql) { in isPreparedStatementInCache() argument 636 return mPreparedStatementCache.get(sql) != null; in isPreparedStatementInCache() 679 public void prepare(String sql, SQLiteStatementInfo outStatementInfo) { in prepare() argument 680 if (sql == null) { in prepare() 684 final int cookie = mRecentOperations.beginOperation("prepare", sql, null); in prepare() 686 final PreparedStatement statement = acquirePreparedStatement(sql); in prepare() 726 public void execute(String sql, Object[] bindArgs, in execute() argument 728 if (sql == null) { in execute() 732 final int cookie = mRecentOperations.beginOperation("execute", sql, bindArgs); in execute() [all …]
|
D | SQLiteDatabase.java | 1310 public void execPerConnectionSQL(@NonNull String sql, @Nullable Object[] bindArgs) in execPerConnectionSQL() argument 1312 Objects.requireNonNull(sql); in execPerConnectionSQL() 1322 mConfigurationLocked.perConnectionSql.add(Pair.create(sql, bindArgs)); in execPerConnectionSQL() 1465 public SQLiteStatement compileStatement(String sql) throws SQLException { in compileStatement() argument 1468 return new SQLiteStatement(this, sql, null); in compileStatement() 1652 String sql = SQLiteQueryBuilder.buildQueryString( in queryWithFactory() local 1655 return rawQueryWithFactory(cursorFactory, sql, selectionArgs, in queryWithFactory() 1754 public Cursor rawQuery(@NonNull String sql, @Nullable String[] selectionArgs) { in rawQuery() argument 1755 return rawQueryWithFactory(null, sql, selectionArgs, null, null); in rawQuery() 1773 public Cursor rawQuery(@NonNull String sql, @Nullable String[] selectionArgs, in rawQuery() argument [all …]
|
D | SQLiteDirectCursorDriver.java | 37 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, in SQLiteDirectCursorDriver() argument 41 mSql = sql; in SQLiteDirectCursorDriver()
|
D | SQLiteStatement.java | 33 SQLiteStatement(SQLiteDatabase db, String sql, Object[] bindArgs) { in SQLiteStatement() argument 34 super(db, sql, bindArgs, null); in SQLiteStatement()
|
D | SQLiteCursor.java | 280 String sql = mQuery.getSql(); in finalize() local 281 int len = sql.length(); in finalize() 286 + ", query = " + sql.substring(0, (len > 1000) ? 1000 : len), in finalize()
|
D | SQLiteConnectionPool.java | 397 public SQLiteConnection acquireConnection(String sql, int connectionFlags, in acquireConnection() argument 399 SQLiteConnection con = waitForConnection(sql, connectionFlags, cancellationSignal); in acquireConnection() 708 private SQLiteConnection waitForConnection(String sql, int connectionFlags, in waitForConnection() argument 727 sql, connectionFlags); // might throw in waitForConnection() 740 priority, wantPrimaryConnection, sql, connectionFlags); in waitForConnection() 989 String sql, int connectionFlags) { in tryAcquireNonPrimaryConnectionLocked() argument 993 if (availableCount > 1 && sql != null) { in tryAcquireNonPrimaryConnectionLocked() 998 if (connection.isPreparedStatementInCache(sql)) { in tryAcquireNonPrimaryConnectionLocked() 1109 int priority, boolean wantPrimaryConnection, String sql, int connectionFlags) { in obtainConnectionWaiterLocked() argument 1121 waiter.mSql = sql; in obtainConnectionWaiterLocked()
|
D | SQLiteProgram.java | 44 SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, in SQLiteProgram() argument 47 mSql = sql.trim(); in SQLiteProgram()
|
D | SQLiteRawStatement.java | 166 SQLiteRawStatement(@NonNull SQLiteDatabase db, @NonNull String sql) { in SQLiteRawStatement() argument 171 mSql = sql; in SQLiteRawStatement()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseCursorTest.java | 107 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 …]
|
D | DatabaseLocaleTest.java | 65 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/ |
D | SQLiteTokenizerTest.java | 34 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()
|
D | SQLiteDatabaseTest.java | 372 final String sql = "SELECT i FROM t1 WHERE j = 30"; in testTempTable() local 373 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testTempTable() 395 final String sql = "SELECT i FROM t2 WHERE j = 30"; in testTempTable() local 396 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testTempTable()
|
D | SQLiteRawStatementTest.java | 673 final String sql = "INSERT INTO t1 (i, d, t) VALUES (:1, ?2, @FOO)"; in testParameterMetadata() local 678 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testParameterMetadata() 698 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testParameterMetadata() 989 final String sql = "SELECT i AS " + cat + " FROM t1 WHERE j = " + head; in testUnicode() local 992 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testUnicode()
|
/frameworks/base/core/java/android/database/ |
D | DatabaseUtils.java | 208 public static long executeInsert(@NonNull SQLiteDatabase db, @NonNull String sql, in executeInsert() argument 210 try (SQLiteStatement st = db.compileStatement(sql)) { in executeInsert() 217 public static int executeUpdateDelete(@NonNull SQLiteDatabase db, @NonNull String sql, in executeUpdateDelete() argument 219 try (SQLiteStatement st = db.compileStatement(sql)) { in executeUpdateDelete() 569 public static final void appendValueToSql(StringBuilder sql, Object value) { in appendValueToSql() argument 571 sql.append("NULL"); in appendValueToSql() 575 sql.append('1'); in appendValueToSql() 577 sql.append('0'); in appendValueToSql() 580 appendEscapedSQLString(sql, value.toString()); in appendValueToSql() 1582 private static String getSqlStatementPrefixSimple(@NonNull String sql) { in getSqlStatementPrefixSimple() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | MemoryFileProvider.java | 136 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/ |
D | ProviderTestCase.java | 97 String databaseName, int databaseVersion, String sql) in newResolverWithContentProviderFromSql() argument 107 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
|
D | ProviderTestCase2.java | 223 String databaseName, int databaseVersion, String sql) in newResolverWithContentProviderFromSql() argument 231 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |
/frameworks/base/core/jni/ |
D | android_database_SQLiteConnection.cpp | 98 static void sqliteTraceCallback(void *data, const char *sql) { in sqliteTraceCallback() argument 100 ALOG(LOG_VERBOSE, SQLITE_TRACE_TAG, "%s: \"%s\"\n", connection->label.c_str(), sql); in sqliteTraceCallback() 104 static void sqliteProfileCallback(void *data, const char *sql, sqlite3_uint64 tm) { in sqliteProfileCallback() argument 107 sql, tm * 0.000001f); in sqliteProfileCallback() 379 const jchar* sql = env->GetStringCritical(sqlString, NULL); in nativePrepareStatement() local 382 sql, sqlLength * sizeof(jchar), &statement, NULL); in nativePrepareStatement() 383 env->ReleaseStringCritical(sqlString, sql); in nativePrepareStatement() 438 static char const* sql = in nativeUpdatesTempOnly() local 440 result = sqlite3_prepare_v2(connection->db, sql, -1, &connection->tableQuery, nullptr); in nativeUpdatesTempOnly()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 45779 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/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 88 String sql = "CREATE TABLE " + APPID_TABLE_NAME + " (" in onCreate() local 100 if (DEBUG_SQL) Log.v(LOG_TAG, "sql: " + sql); in onCreate() 101 db.execSQL(sql); in onCreate()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManager.java | 29 import java.sql.Timestamp;
|