/frameworks/compile/mclinker/include/mcld/Support/ |
D | CXADemangle.tcc | 34 const char* parse_type(const char* first, const char* last, C& db); 36 const char* parse_encoding(const char* first, const char* last, C& db); 38 const char* parse_name(const char* first, const char* last, C& db, 41 const char* parse_expression(const char* first, const char* last, C& db); 43 const char* parse_template_args(const char* first, const char* last, C& db); 45 const char* parse_operator_name(const char* first, const char* last, C& db); 47 const char* parse_unqualified_name(const char* first, const char* last, C& db); 49 const char* parse_decltype(const char* first, const char* last, C& db); 53 print_stack(const C& db) in print_stack() argument 57 for (auto& s : db.names) in print_stack() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | DatabaseHelper.java | 178 private void createSecureTable(SQLiteDatabase db) { in createSecureTable() argument 179 db.execSQL("CREATE TABLE secure (" + in createSecureTable() 184 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); in createSecureTable() 187 private void createGlobalTable(SQLiteDatabase db) { in createGlobalTable() argument 188 db.execSQL("CREATE TABLE global (" + in createGlobalTable() 193 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); in createGlobalTable() 197 public void onCreate(SQLiteDatabase db) { in onCreate() argument 198 db.execSQL("CREATE TABLE system (" + in onCreate() 203 db.execSQL("CREATE INDEX systemIndex1 ON system (name);"); in onCreate() 205 createSecureTable(db); in onCreate() [all …]
|
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/ |
D | RoomOpenHelper.java | 19 import android.arch.persistence.db.SimpleSQLiteQuery; 20 import android.arch.persistence.db.SupportSQLiteDatabase; 21 import android.arch.persistence.db.SupportSQLiteOpenHelper; 54 public void onConfigure(SupportSQLiteDatabase db) { in onConfigure() argument 55 super.onConfigure(db); in onConfigure() 59 public void onCreate(SupportSQLiteDatabase db) { in onCreate() argument 60 updateIdentity(db); in onCreate() 61 mDelegate.createAllTables(db); in onCreate() 62 mDelegate.onCreate(db); in onCreate() 66 public void onUpgrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument [all …]
|
D | RoomDatabase.java | 20 import android.arch.persistence.db.SimpleSQLiteQuery; 21 import android.arch.persistence.db.SupportSQLiteDatabase; 22 import android.arch.persistence.db.SupportSQLiteOpenHelper; 23 import android.arch.persistence.db.SupportSQLiteQuery; 24 import android.arch.persistence.db.SupportSQLiteStatement; 25 import android.arch.persistence.db.framework.FrameworkSQLiteOpenHelperFactory; 133 final SupportSQLiteDatabase db = mDatabase; in isOpen() local 134 return db != null && db.isOpen(); in isOpen() 275 protected void internalInitInvalidationTracker(SupportSQLiteDatabase db) { in internalInitInvalidationTracker() argument 276 mInvalidationTracker.internalInit(db); in internalInitInvalidationTracker() [all …]
|
/frameworks/compile/mclinker/lib/Support/ |
D | Demangle.cpp | 45 Db db(a); in isCtorOrDtor() local 46 db.cv = 0; in isCtorOrDtor() 47 db.ref = 0; in isCtorOrDtor() 48 db.encoding_depth = 0; in isCtorOrDtor() 49 db.parsed_ctor_dtor_cv = false; in isCtorOrDtor() 50 db.tag_templates = true; in isCtorOrDtor() 51 db.template_param.emplace_back(a); in isCtorOrDtor() 52 db.fix_forward_references = false; in isCtorOrDtor() 53 db.try_to_parse_template_args = true; in isCtorOrDtor() 55 demangle(pName, pName + pLength, db, internal_status); in isCtorOrDtor() [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountsDb.java | 203 public void onCreate(SQLiteDatabase db) { in onCreate() argument 205 db.execSQL("CREATE TABLE " + TABLE_ACCOUNTS + " ( " in onCreate() 212 db.execSQL("CREATE TABLE " + TABLE_AUTHTOKENS + " ( " in onCreate() 219 db.execSQL("CREATE TABLE " + TABLE_EXTRAS + " ( " in onCreate() 226 createAccountsDeletionTrigger(db); in onCreate() 229 private void createAccountsDeletionTrigger(SQLiteDatabase db) { in createAccountsDeletionTrigger() argument 230 db.execSQL("" in createAccountsDeletionTrigger() 241 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 248 db.execSQL("DROP TABLE IF EXISTS " + TABLE_META); in onUpgrade() 249 db.execSQL("DROP TABLE IF EXISTS " + TABLE_SHARED_ACCOUNTS); in onUpgrade() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteOpenHelper.java | 281 SQLiteDatabase db = mDatabase; in getDatabaseLocked() local 285 if (db != null) { in getDatabaseLocked() 286 if (writable && db.isReadOnly()) { in getDatabaseLocked() 287 db.reopenReadWrite(); in getDatabaseLocked() 290 db = SQLiteDatabase.createInMemory(mOpenParamsBuilder.build()); in getDatabaseLocked() 295 db = SQLiteDatabase.openDatabase(filePath, params); in getDatabaseLocked() 305 db = SQLiteDatabase.openDatabase(filePath, params); in getDatabaseLocked() 309 onConfigure(db); in getDatabaseLocked() 311 final int version = db.getVersion(); in getDatabaseLocked() 313 if (db.isReadOnly()) { in getDatabaseLocked() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_location_ContextHubService.cpp | 381 ContextHubServiceDb db; variable 384 if (hubHandle < 0 || hubHandle >= db.hubInfo.numHubs || hubId == nullptr) { in getHubIdForHubHandle() 387 *hubId = db.hubInfo.hubs[hubHandle].hubId; in getHubIdForHubHandle() 393 if (!db.appInstances.count(id)) { in getHubHandleForAppInstance() 400 return db.appInstances[id].hubHandle; in getHubHandleForAppInstance() 404 auto end = db.appInstances.end(); in getAppInstanceForAppId() 405 for (auto current = db.appInstances.begin(); current != end; ++current) { in getAppInstanceForAppId() 415 if (!db.appInstances.count(id)) { in getAppIdForAppInstance() 418 return db.appInstances[id].appInfo.appId; in getAppIdForAppInstance() 422 Result r = db.hubInfo.contextHub->queryApps(hubId); in queryHubForApps() [all …]
|
/frameworks/ex/common/java/com/android/common/content/ |
D | SyncStateContentProviderHelper.java | 54 public void createDatabase(SQLiteDatabase db) { in createDatabase() argument 55 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_TABLE); in createDatabase() 56 db.execSQL("CREATE TABLE " + SYNC_STATE_TABLE + " (" in createDatabase() 64 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_META_TABLE); in createDatabase() 65 db.execSQL("CREATE TABLE " + SYNC_STATE_META_TABLE + " (" in createDatabase() 69 db.insert(SYNC_STATE_META_TABLE, SYNC_STATE_META_VERSION_COLUMN, values); in createDatabase() 72 public void onDatabaseOpened(SQLiteDatabase db) { in onDatabaseOpened() argument 73 long version = DatabaseUtils.longForQuery(db, in onDatabaseOpened() 77 createDatabase(db); in onDatabaseOpened() 81 public Cursor query(SQLiteDatabase db, String[] projection, in query() argument [all …]
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/android/arch/persistence/room/integration/kotlintestapp/migration/ |
D | MigrationKotlinTest.kt | 19 import android.arch.persistence.db.SupportSQLiteDatabase 20 import android.arch.persistence.db.framework.FrameworkSQLiteOpenHelperFactory 67 val db = helper.createDatabase(TEST_DB, in startInCurrentVersion() constant 69 val dao = MigrationDbKotlin.Dao_V1(db) in startInCurrentVersion() 71 db.close() in startInCurrentVersion() 81 var db = helper.createDatabase(TEST_DB, 1) in addTable() variable 82 val dao = MigrationDbKotlin.Dao_V1(db) in addTable() 85 db.close() in addTable() 86 db = helper.runMigrationsAndValidate(TEST_DB, 2, true, in addTable() 88 MigrationDbKotlin.Dao_V2(db).insertIntoEntity2(3, "blah") in addTable() [all …]
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/migration/ |
D | MigrationTest.java | 25 import android.arch.persistence.db.SupportSQLiteDatabase; 26 import android.arch.persistence.db.framework.FrameworkSQLiteOpenHelperFactory; 74 SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, in startInCurrentVersion() local 76 final MigrationDb.Dao_V1 dao = new MigrationDb.Dao_V1(db); in startInCurrentVersion() 78 db.close(); in startInCurrentVersion() 87 SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, 1); in addTable() local 88 final MigrationDb.Dao_V1 dao = new MigrationDb.Dao_V1(db); in addTable() 91 db.close(); in addTable() 92 db = helper.runMigrationsAndValidate(TEST_DB, 2, true, MIGRATION_1_2); in addTable() 93 new MigrationDb.Dao_V2(db).insertIntoEntity2(3, "blah"); in addTable() [all …]
|
/frameworks/support/persistence/db-framework/src/main/java/android/arch/persistence/db/framework/ |
D | FrameworkSQLiteOpenHelper.java | 17 package android.arch.persistence.db.framework; 19 import android.arch.persistence.db.SupportSQLiteDatabase; 20 import android.arch.persistence.db.SupportSQLiteOpenHelper; 82 FrameworkSQLiteDatabase db = dbRef[0]; in OpenHelper() 83 if (db != null) { in OpenHelper() 84 callback.onCorruption(db); in OpenHelper() 93 SQLiteDatabase db = super.getWritableDatabase(); in getWritableSupportDatabase() local 94 return getWrappedDb(db); in getWritableSupportDatabase() 98 SQLiteDatabase db = super.getReadableDatabase(); in getReadableSupportDatabase() local 99 return getWrappedDb(db); in getReadableSupportDatabase() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | PreNTestDatabaseHelper.java | 39 public void onCreate(SQLiteDatabase db) { in onCreate() argument 40 db.execSQL("CREATE TABLE accounts ( " in onCreate() 46 db.execSQL("INSERT INTO accounts (name, type, password) VALUES " in onCreate() 49 db.execSQL("CREATE TABLE authtokens ( " in onCreate() 55 db.execSQL("INSERT INTO authtokens (accounts_id, type, authtoken) VALUES " in onCreate() 58 db.execSQL("CREATE TABLE grants ( " in onCreate() 64 db.execSQL("CREATE TABLE extras ( " in onCreate() 71 db.execSQL("CREATE TABLE meta ( " in onCreate() 75 db.execSQL("" in onCreate() 88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerDbHelper.java | 66 public void onCreate(SQLiteDatabase db) { in onCreate() argument 68 db.execSQL(CREATE_TABLE_ST_SOUND_MODEL); in onCreate() 72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 74 db.execSQL("DROP TABLE IF EXISTS " + GenericSoundModelContract.TABLE); in onUpgrade() 75 onCreate(db); in onUpgrade() 84 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel() local 91 return db.insertWithOnConflict(GenericSoundModelContract.TABLE, null, values, in updateGenericSoundModel() 94 db.close(); in updateGenericSoundModel() 107 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel() local 108 Cursor c = db.rawQuery(selectQuery, null); in getGenericSoundModel() [all …]
|
/frameworks/support/room/runtime/src/test/java/android/arch/persistence/room/ |
D | BuilderTest.java | 28 import android.arch.persistence.db.SupportSQLiteDatabase; 29 import android.arch.persistence.db.SupportSQLiteOpenHelper; 30 import android.arch.persistence.db.framework.FrameworkSQLiteOpenHelperFactory; 71 TestDatabase db = Room.databaseBuilder(mock(Context.class), TestDatabase.class, "foo") in migration() local 73 DatabaseConfiguration config = ((BuilderTest_TestDatabase_Impl) db).mConfig; in migration() 87 TestDatabase db = Room.databaseBuilder(mock(Context.class), TestDatabase.class, "foo") in migrationOverride() local 89 DatabaseConfiguration config = ((BuilderTest_TestDatabase_Impl) db).mConfig; in migrationOverride() 102 TestDatabase db = Room.databaseBuilder(mock(Context.class), TestDatabase.class, "foo") in migrationJump() local 104 DatabaseConfiguration config = ((BuilderTest_TestDatabase_Impl) db).mConfig; in migrationJump() 113 TestDatabase db = Room.inMemoryDatabaseBuilder(context, TestDatabase.class) in skipMigration() local [all …]
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerProvider.java | 56 public void onCreate(SQLiteDatabase db) { in onCreate() argument 62 db.execSQL(queryBuilder.toString()); in onCreate() 63 db.setVersion(DB_VERSION); in onCreate() 67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 72 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade() 73 onCreate(db); in onUpgrade() 87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local 88 int result = db.delete(TABLE_NAME, selection, selectionArgs); in delete() 100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 101 long rowId = db.insert(TABLE_NAME, null, values); in insert() [all …]
|
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 73 public void onCreate(SQLiteDatabase db) { in onCreate() argument 88 db.execSQL(sql); in onCreate() 92 public void onUpgrade(SQLiteDatabase db, in onUpgrade() argument 118 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp() argument 123 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp() 186 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() local 187 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, app_id, content_type); in processMessage() 188 db.close(); in processMessage() 247 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() local 248 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, x_app_id, content_type); in addPackage() [all …]
|
/frameworks/base/core/jni/ |
D | android_database_SQLiteConnection.cpp | 82 sqlite3* const db; member 89 SQLiteConnection(sqlite3* db, int openFlags, const String8& path, const String8& label) : in SQLiteConnection() 90 db(db), openFlags(openFlags), path(path), label(label), canceled(false) { } in SQLiteConnection() 134 sqlite3* db; in nativeOpen() local 135 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL); in nativeOpen() 142 int err = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE, NULL, lookasideSz, lookasideCnt); in nativeOpen() 145 throw_sqlite3_exception(env, db, "Cannot set lookaside"); in nativeOpen() 146 sqlite3_close(db); in nativeOpen() 152 if ((sqliteFlags & SQLITE_OPEN_READWRITE) && sqlite3_db_readonly(db, NULL)) { in nativeOpen() 153 throw_sqlite3_exception(env, db, "Could not open the database in read/write mode."); in nativeOpen() [all …]
|
/frameworks/support/persistence/db/src/main/java/android/arch/persistence/db/ |
D | SupportSQLiteOpenHelper.java | 17 package android.arch.persistence.db; 148 public void onConfigure(SupportSQLiteDatabase db) { in onConfigure() argument 158 public abstract void onCreate(SupportSQLiteDatabase db); in onCreate() argument 180 public abstract void onUpgrade(SupportSQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument 199 public void onDowngrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 217 public void onOpen(SupportSQLiteDatabase db) { in onOpen() argument 228 public void onCorruption(SupportSQLiteDatabase db) { in onCorruption() argument 231 Log.e(TAG, "Corruption reported by sqlite on database: " + db.getPath()); in onCorruption() 233 if (!db.isOpen()) { in onCorruption() 240 deleteDatabaseFile(db.getPath()); in onCorruption() [all …]
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/ |
D | MainThreadCheckTest.java | 46 public Void apply(TestDatabase db) { in testMainThread() 47 db.getUserDao().load(3); in testMainThread() 59 public Void apply(TestDatabase db) { in testFlowableOnMainThread() 60 db.getUserDao().flowableUserById(3); in testFlowableOnMainThread() 71 public Void apply(TestDatabase db) { in testLiveDataOnMainThread() 72 db.getUserDao().liveUserById(3); in testLiveDataOnMainThread() 83 public Void apply(TestDatabase db) { in testAllowMainThread() 84 db.getUserDao().load(3); in testAllowMainThread() 98 final TestDatabase db = builder.build(); in test() local 105 fun.apply(db); in test() [all …]
|
D | CustomDatabaseTest.java | 24 import android.arch.persistence.db.SupportSQLiteDatabase; 25 import android.arch.persistence.db.SupportSQLiteOpenHelper; 26 import android.arch.persistence.db.SupportSQLiteQuery; 27 import android.arch.persistence.db.framework.FrameworkSQLiteOpenHelperFactory; 57 SampleDatabase db = builder.build(); in invalidationTrackerAfterClose() local 58 db.getCustomerDao().insert(customer); in invalidationTrackerAfterClose() 64 db.close(); in invalidationTrackerAfterClose() 87 final SupportSQLiteDatabase db = helper.getWritableDatabase(); in create() 89 delegatesTo(db)); in create() 95 return db.query(query); in create()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | FakeSmsContentProvider.java | 52 public void onCreate(SQLiteDatabase db) { in onCreate() argument 53 db.execSQL("CREATE TABLE raw (" + in onCreate() 70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 78 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local 79 return db.query(RAW_TABLE_NAME, projection, selection, selectionArgs, null, null, in query() 85 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local 86 long rowId = db.insert(RAW_TABLE_NAME, null, values); in insert() 93 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local 100 count = db.update(RAW_TABLE_NAME, cv, selection, selectionArgs); in delete() 104 count = db.delete(RAW_TABLE_NAME, selection, selectionArgs); in delete()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | LocalProvider.java | 66 public void onCreate(SQLiteDatabase db) { in onCreate() argument 67 db.execSQL("CREATE TABLE " + TABLE_DATA_NAME + " (" + in onCreate() 73 db.execSQL(getInsertCommand(TEXT1, INTEGER1)); in onCreate() 74 db.execSQL(getInsertCommand(TEXT2, INTEGER2)); in onCreate() 84 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 88 db.execSQL("DROP TABLE IF EXISTS data"); in onUpgrade() 89 onCreate(db); in onUpgrade() 127 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local 128 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, in query() 158 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | SelectionBuilder.java | 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query() argument 100 return query(db, table, columns, null, null, orderBy, null); in query() 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query() argument 108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having, in query() 115 public int update(SQLiteDatabase db, String table, ContentValues values) { in update() argument 116 return db.update(table, values, getSelection(), getSelectionArgs()); in update() 122 public int delete(SQLiteDatabase db, String table) { in delete() argument 123 return db.delete(table, getSelection(), getSelectionArgs()); in delete()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 83 public void onCreate(SQLiteDatabase db) { in onCreate() argument 85 db.execSQL(CREATE_TABLE_SOUND_MODEL); in onCreate() 89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 92 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade() 93 onCreate(db); in onUpgrade() 98 db.execSQL("ALTER TABLE " + SoundModelContract.TABLE + " ADD COLUMN " in onUpgrade() 109 Cursor c = db.rawQuery(selectQuery, null); in onUpgrade() 124 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade() 125 onCreate(db); in onUpgrade() 129 long return_value = record.writeToDatabase(6, db); in onUpgrade() [all …]
|