/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDatabase.java | 243 synchronized void setLastSqlStatement(String sql) { in setLastSqlStatement() argument 244 mLastSqlStatement = sql; in setLastSqlStatement() 403 /* package */ void lock(String sql) { in lock() argument 404 lock(sql, false); in lock() 412 private void lock(String sql, boolean forced) { in lock() argument 443 if (sql != null) { in lock() 445 logTimeStat(sql, timeStart, GET_LOCK_LOG_PREFIX); in lock() 475 private void lockForced(String sql) { in lockForced() argument 476 lock(sql, true); in lockForced() 1370 public SQLiteStatement compileStatement(String sql) throws SQLException { [all …]
|
D | SQLiteCompiledSql.java | 57 /* package */ SQLiteCompiledSql(SQLiteDatabase db, String sql) { in SQLiteCompiledSql() argument 61 mSqlStmt = sql; in SQLiteCompiledSql() 64 native_compile(sql); in SQLiteCompiledSql() 153 private final native void native_compile(String sql); in native_compile() argument
|
D | SQLiteProgram.java | 93 /* package */ SQLiteProgram(SQLiteDatabase db, String sql) { in SQLiteProgram() argument 94 this(db, sql, null, true); in SQLiteProgram() 97 /* package */ SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, in SQLiteProgram() argument 99 mSql = sql.trim(); in SQLiteProgram() 221 protected void compile(String sql, boolean forceCompilation) { in compile() argument 417 protected final native void native_compile(String sql); in native_compile() argument
|
D | SQLiteQueryBuilder.java | 347 String sql = buildQuery( in query() local 352 Log.d(TAG, "Performing query: " + sql); in query() 355 mFactory, sql, selectionArgs, in query() 363 private void validateSql(SQLiteDatabase db, String sql) { in validateSql() argument 364 db.lock(sql); in validateSql() 366 new SQLiteCompiledSql(db, sql).releaseSqlStatement(); in validateSql()
|
D | SQLiteDirectCursorDriver.java | 34 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable) { in SQLiteDirectCursorDriver() argument 37 mSql = sql; in SQLiteDirectCursorDriver()
|
D | SQLiteStatement.java | 58 /* package */ SQLiteStatement(SQLiteDatabase db, String sql, Object[] bindArgs) { in SQLiteStatement() argument 59 super(db, sql, bindArgs, false /* don't compile sql statement */); in SQLiteStatement() 298 private final native void native_executeSql(String sql); in native_executeSql() argument
|
D | DatabaseConnectionPool.java | 78 /* package */ synchronized SQLiteDatabase get(String sql) { in get() argument 83 assert sql != null; in get() 96 if (mPool.get(i).mDb.isInStatementCache(sql)) { in get() 122 if (mPool.get(i).isFree() && mPool.get(i).mDb.isInStatementCache(sql)) { in get()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseCursorTest.java | 112 String sql = "INSERT INTO test (s, d, l, b) VALUES (?,?,?,?)"; in testBlob() local 113 mDatabase.execSQL(sql, args); in testBlob() 242 StringBuilder sql = new StringBuilder(2100); in testLargeField() local 243 sql.append("INSERT INTO test (data) VALUES ('"); in testLargeField() 249 sql.append(randomString); in testLargeField() 250 sql.append("');"); in testLargeField() 251 mDatabase.execSQL(sql.toString()); in testLargeField() 323 StringBuilder sql = new StringBuilder(2100); in testManyRowsTxt() local 324 sql.append("INSERT INTO test (data) VALUES ('"); in testManyRowsTxt() 330 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/jni/ |
D | android_database_SQLiteCompiledSql.cpp | 51 jchar const * sql; in compile() local 62 sql = env->GetStringChars(sqlString, NULL); in compile() 64 err = sqlite3_prepare16_v2(handle, sql, sqlLen * 2, &statement, NULL); in compile() 65 env->ReleaseStringChars(sqlString, sql); in compile()
|
D | android_database_SQLiteProgram.cpp | 103 jchar const * sql; in native_bind_string() local 107 sql = env->GetStringChars(sqlString, NULL); in native_bind_string() 109 err = sqlite3_bind_text16(statement, index, sql, sqlLen * 2, SQLITE_TRANSIENT); in native_bind_string() 110 env->ReleaseStringChars(sqlString, sql); in native_bind_string() 123 jchar const * sql; in native_bind_blob() local
|
D | android_database_SQLiteDatabase.cpp | 199 static void sqlTrace(void *databaseName, const char *sql) { in sqlTrace() argument 200 LOGI("sql_statement|%s|%s\n", (char *)databaseName, sql); in sqlTrace() 210 static void sqlProfile(void *databaseName, const char *sql, sqlite3_uint64 tm) { in sqlProfile() argument 212 LOGI("elapsedTime4Sql|%s|%.3f ms|%s\n", (char *)databaseName, d, sql); in sqlProfile() 334 static const char *sql = "INSERT INTO " ANDROID_TABLE " (locale) VALUES(?);"; in native_setLocale() local 335 err = sqlite3_prepare_v2(handle, sql, -1, &stmt, NULL); in native_setLocale() 337 LOGE("sqlite3_prepare_v2(\"%s\") failed\n", sql); in native_setLocale() 351 LOGE("sqlite3_step(\"%s\") failed setting locale\n", sql); in native_setLocale()
|
D | android_database_SQLiteStatement.cpp | 242 static void native_executeSql(JNIEnv* env, jobject object, jstring sql) in native_executeSql() argument 244 char const* sqlString = env->GetStringUTFChars(sql, NULL); in native_executeSql() 250 env->ReleaseStringUTFChars(sql, sqlString); in native_executeSql()
|
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
D | SQLiteDatabaseTest.java | 171 String sql = "select count(*) from " + TEST_TABLE; in runTestForStartXactBeforeUpdateSql() local 172 SQLiteStatement stmt = mDatabase.compileStatement(sql); in runTestForStartXactBeforeUpdateSql() 176 Cursor c = mDatabase.rawQuery(sql, null); in runTestForStartXactBeforeUpdateSql() 204 String sql = "select count(*) from " + TEST_TABLE; in runTestForStartXactBeforeUpdateSql() 205 SQLiteStatement stmt = getDb().compileStatement(sql); in runTestForStartXactBeforeUpdateSql() 208 Cursor c = getDb().rawQuery(sql, null); in runTestForStartXactBeforeUpdateSql() 220 stmt = mDatabase.compileStatement(sql); in runTestForStartXactBeforeUpdateSql() 224 c = mDatabase.rawQuery(sql, null); in runTestForStartXactBeforeUpdateSql() 417 private ClassToTestSqlCompilationAndCaching(SQLiteDatabase db, String sql) { in ClassToTestSqlCompilationAndCaching() argument 418 super(db, sql); in ClassToTestSqlCompilationAndCaching() [all …]
|
D | DatabaseConnectionPoolTest.java | 202 private void executeSqlOnDatabaseConn(SQLiteDatabase db, String sql) { in executeSqlOnDatabaseConn() argument 207 ClassToTestSqlCompilationAndCaching.create(db, sql); in executeSqlOnDatabaseConn()
|
/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 | DatabaseTestUtils.java | 49 String sql = entityCursor.getString(0); in getSchemaSet() local 50 schemaSet.add(sql); in getSchemaSet()
|
D | ProviderTestCase.java | 98 String databaseName, int databaseVersion, String sql) in newResolverWithContentProviderFromSql() argument 108 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
|
D | ProviderTestCase2.java | 211 String databaseName, int databaseVersion, String sql) in newResolverWithContentProviderFromSql() argument 219 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
|
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 75 String sql = "CREATE TABLE " + APPID_TABLE_NAME + " (" in onCreate() local 87 if (DEBUG_SQL) Log.v(LOG_TAG, "sql: " + sql); in onCreate() 88 db.execSQL(sql); in onCreate() 120 String sql = "select install_order, package_name, class_name, " in queryLastApp() local 126 if (DEBUG_SQL) Log.v(LOG_TAG, "sql: " + sql); in queryLastApp() 127 Cursor cur = db.rawQuery(sql, null); in queryLastApp()
|
/frameworks/base/core/java/android/database/ |
D | DatabaseUtils.java | 296 public static final void appendValueToSql(StringBuilder sql, Object value) { in appendValueToSql() argument 298 sql.append("NULL"); in appendValueToSql() 302 sql.append('1'); in appendValueToSql() 304 sql.append('0'); in appendValueToSql() 307 appendEscapedSQLString(sql, value.toString()); in appendValueToSql() 1239 public static int getSqlStatementType(String sql) { in getSqlStatementType() argument 1240 sql = sql.trim(); in getSqlStatementType() 1241 if (sql.length() < 3) { in getSqlStatementType() 1244 String prefixSql = sql.substring(0, 3).toUpperCase(); in getSqlStatementType()
|
/frameworks/base/api/ |
D | current.txt | 34030 package java.sql { 34033 method public abstract void free() throws java.sql.SQLException; 34034 method public abstract java.lang.Object getArray() throws java.sql.SQLException; 34035 method public abstract java.lang.Object getArray(long, int) throws java.sql.SQLException; 34036 …Array(long, int, java.util.Map<java.lang.String, java.lang.Class<?>>) throws java.sql.SQLException; 34037 ….Object getArray(java.util.Map<java.lang.String, java.lang.Class<?>>) throws java.sql.SQLException; 34038 method public abstract int getBaseType() throws java.sql.SQLException; 34039 method public abstract java.lang.String getBaseTypeName() throws java.sql.SQLException; 34040 method public abstract java.sql.ResultSet getResultSet() throws java.sql.SQLException; 34041 method public abstract java.sql.ResultSet getResultSet(long, int) throws java.sql.SQLException; [all …]
|
D | 14.txt | 34030 package java.sql { 34033 method public abstract void free() throws java.sql.SQLException; 34034 method public abstract java.lang.Object getArray() throws java.sql.SQLException; 34035 method public abstract java.lang.Object getArray(long, int) throws java.sql.SQLException; 34036 …Array(long, int, java.util.Map<java.lang.String, java.lang.Class<?>>) throws java.sql.SQLException; 34037 ….Object getArray(java.util.Map<java.lang.String, java.lang.Class<?>>) throws java.sql.SQLException; 34038 method public abstract int getBaseType() throws java.sql.SQLException; 34039 method public abstract java.lang.String getBaseTypeName() throws java.sql.SQLException; 34040 method public abstract java.sql.ResultSet getResultSet() throws java.sql.SQLException; 34041 method public abstract java.sql.ResultSet getResultSet(long, int) throws java.sql.SQLException; [all …]
|
/frameworks/base/docs/html/ |
D | sitemap.txt | 329 http://developer.android.com/reference/java/sql/package-summary.html 352 http://developer.android.com/reference/javax/sql/package-summary.html 2799 http://developer.android.com/reference/java/sql/SQLPermission.html 3058 http://developer.android.com/sdk/api_diff/9/changes/javax.sql.PooledConnection.html 3089 http://developer.android.com/sdk/api_diff/9/changes/java.sql.Array.html 3105 http://developer.android.com/sdk/api_diff/9/changes/java.sql.DatabaseMetaData.html 3107 http://developer.android.com/sdk/api_diff/9/changes/java.sql.BatchUpdateException.html 3108 http://developer.android.com/sdk/api_diff/9/changes/java.sql.Blob.html 3114 http://developer.android.com/sdk/api_diff/9/changes/java.sql.CallableStatement.html 3126 http://developer.android.com/sdk/api_diff/9/changes/pkg_java.sql.html [all …]
|
/frameworks/base/tests/DumpRenderTree/assets/results/ |
D | layout_tests_failed.txt | 982 /sdcard/android/layout_tests/storage/execute-sql-args.html
|