/packages/providers/MediaProvider/legacy/src/com/android/providers/media/ |
D | LegacyDatabaseHelper.java | 26 import android.database.sqlite.SQLiteDatabase; 128 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase() 134 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() 140 public void onConfigure(SQLiteDatabase db) { in onConfigure() 145 public void onCreate(final SQLiteDatabase db) { in onCreate() 156 public void onUpgrade(final SQLiteDatabase db, final int oldV, final int newV) { in onUpgrade() 176 public void onDowngrade(final SQLiteDatabase db, final int oldV, final int newV) { in onDowngrade() 187 public void onOpen(final SQLiteDatabase db) { in onOpen() 243 final SQLiteDatabase db = super.getWritableDatabase(); in beginTransactionInternal() 256 final SQLiteDatabase db = super.getWritableDatabase(); in setTransactionSuccessful() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/ |
D | SharedDbHelper.java | 28 import android.database.sqlite.SQLiteDatabase; 103 public void onCreate(SQLiteDatabase db) { in onCreate() 106 SQLiteDatabase oldDb = mDbHelper.safeGetWritableDatabase(); in onCreate() 122 private void migrateEnrollmentTables(SQLiteDatabase db, SQLiteDatabase oldDb) { in migrateEnrollmentTables() 132 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 140 public void onOpen(SQLiteDatabase db) { in onOpen() 159 public static boolean hasAllTables(SQLiteDatabase db, String[] tableArray) { in hasAllTables() 179 public SQLiteDatabase safeGetWritableDatabase() { in safeGetWritableDatabase() 194 public SQLiteDatabase safeGetReadableDatabase() { in safeGetReadableDatabase() 207 private void createSchema(SQLiteDatabase db) { in createSchema() [all …]
|
/packages/apps/KeyChain/src/com/android/keychain/internal/ |
D | GrantsDatabase.java | 24 import android.database.sqlite.SQLiteDatabase; 78 void createSelectableTable(final SQLiteDatabase db) { in createSelectableTable() 95 public void onCreate(final SQLiteDatabase db) { in onCreate() 115 private void markExistingKeysAsSelectable(final SQLiteDatabase db) { in markExistingKeysAsSelectable() 126 private void markKeyAsSelectable(final SQLiteDatabase db, final String alias) { in markKeyAsSelectable() 133 private boolean hasEntryInUserSelectableTable(final SQLiteDatabase db, final String alias) { in hasEntryInUserSelectableTable() 143 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() 167 boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal() 177 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in hasGrant() 182 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in setGrant() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsTransaction.java | 19 import android.database.sqlite.SQLiteDatabase; 48 private final List<SQLiteDatabase> mDatabasesForTransaction; 53 private final Map<String, SQLiteDatabase> mDatabaseTagMap; 102 public void startTransactionForDb(SQLiteDatabase db, String tag, in startTransactionForDb() 136 public SQLiteDatabase getDbForTag(String tag) { in getDbForTag() 148 public SQLiteDatabase removeDbForTag(String tag) { in removeDbForTag() 149 SQLiteDatabase db = mDatabaseTagMap.get(tag); in removeDbForTag() 162 for (SQLiteDatabase db : mDatabasesForTransaction) { in markSuccessful() 171 private String getTagForDb(SQLiteDatabase db) { in getTagForDb() 191 for (SQLiteDatabase db : mDatabasesForTransaction) { in finish()
|
D | CallLogDatabaseHelper.java | 26 import android.database.sqlite.SQLiteDatabase; 105 public OpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, in OpenHelper() 113 public void onCreate(SQLiteDatabase db) { in onCreate() 214 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 265 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 294 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase() 298 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() 338 private void upgradeToVersion2(SQLiteDatabase db) { in upgradeToVersion2() 346 private void upgradeToVersion3(SQLiteDatabase db) { in upgradeToVersion3() 355 private void upgradeToVersion4(SQLiteDatabase db) { in upgradeToVersion4() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/ |
D | SharedDbHelperTest.java | 32 import android.database.sqlite.SQLiteDatabase; 108 SQLiteDatabase db = sharedDbHelper.safeGetWritableDatabase(); in testNewInstall() 109 SQLiteDatabase referenceLatestDb = in testNewInstall() 123 SQLiteDatabase db = sharedDbHelper.safeGetWritableDatabase(); in testNewInstall_sharedDbV4() 124 SQLiteDatabase referenceLatestDb = in testNewInstall_sharedDbV4() 133 SQLiteDatabase db = dbHelperV1.safeGetWritableDatabase(); in testEnrollmentTableMigrationFromOldDatabase() 139 SQLiteDatabase oldDb = dbHelper.safeGetWritableDatabase(); in testEnrollmentTableMigrationFromOldDatabase() 146 SQLiteDatabase actualMigratedDb = sharedDbHelper.safeGetWritableDatabase(); in testEnrollmentTableMigrationFromOldDatabase() 148 SQLiteDatabase referenceLatestDb = in testEnrollmentTableMigrationFromOldDatabase() 158 SQLiteDatabase db = dbHelperV1.safeGetWritableDatabase(); in testMigrationDataIntegrityToV1FromOldDatabase() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 26 import android.database.sqlite.SQLiteDatabase; 326 public void onOpen(SQLiteDatabase db) { in onOpen() 354 private void upgradeSyncState(SQLiteDatabase db) { in upgradeSyncState() 384 public void onCreate(SQLiteDatabase db) { in onCreate() 388 private void bootstrapDB(SQLiteDatabase db) { in bootstrapDB() 516 private void createEventsTable(SQLiteDatabase db) { in createEventsTable() 590 private void createEventsTable307(SQLiteDatabase db) { in createEventsTable307() 653 private void createEventsTable300(SQLiteDatabase db) { in createEventsTable300() 709 private void createCalendarsTable303(SQLiteDatabase db) { in createCalendarsTable303() 747 private void createColorsTable(SQLiteDatabase db) { in createColorsTable() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | DatabaseHelper.java | 36 import android.database.sqlite.SQLiteDatabase; 337 final SQLiteDatabase db = super.getWritableDatabase(); in setFilterVolumeNames() 350 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase() 356 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase() 362 SQLiteDatabase getWritableDatabaseForTest() { in getWritableDatabaseForTest() 372 public void onConfigure(SQLiteDatabase db) { in onConfigure() 519 public void onCreate(final SQLiteDatabase db) { in onCreate() 530 public void onUpgrade(final SQLiteDatabase db, final int oldV, final int newV) { in onUpgrade() 550 public void onDowngrade(final SQLiteDatabase db, final int oldV, final int newV) { in onDowngrade() 565 public void onOpen(final SQLiteDatabase db) { in onOpen() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/ |
D | DbTestUtil.java | 25 import android.database.sqlite.SQLiteDatabase; 52 SQLiteDatabase db = getDbHelperForTest().safeGetWritableDatabase(); in deleteTable() 105 SQLiteDatabase db, String tableName, int columnCount) { in doesTableExistAndColumnCountMatch() 113 public static Set<String> getTableColumns(SQLiteDatabase db, String tableName) { in getTableColumns() 134 public static boolean doesIndexExist(SQLiteDatabase db, String index) { in doesIndexExist() 140 public static boolean doesTableExist(SQLiteDatabase db, String table) { in doesTableExist() 151 public static void assertDatabasesEqual(SQLiteDatabase expectedDb, SQLiteDatabase actualDb) { in assertDatabasesEqual() 159 public static void assertMeasurementTablesDoNotExist(SQLiteDatabase db) { in assertMeasurementTablesDoNotExist() 172 SQLiteDatabase expectedDb, SQLiteDatabase actualDb, List<String> tableNames) { in assertTableSchemaEqual() 217 private static List<String> getTables(SQLiteDatabase db) { in getTables() [all …]
|
D | DbHelperTest.java | 42 import android.database.sqlite.SQLiteDatabase; 100 SQLiteDatabase db = DbTestUtil.getDbHelperForTest().safeGetReadableDatabase(); in testOnCreate() 113 public static void assertEnrollmentTableDoesNotExist(SQLiteDatabase db) { in assertEnrollmentTableDoesNotExist() 138 SQLiteDatabase db = DbTestUtil.getDbHelperForTest().safeGetReadableDatabase(); in onOpen_appliesForeignKeyConstraint() 148 SQLiteDatabase db = mock(SQLiteDatabase.class); in testOnUpgrade_topicsV7Migration() 171 SQLiteDatabase db = mock(SQLiteDatabase.class); in testOnUpgrade_topicsV8Migration() 195 SQLiteDatabase db = dbHelperV1.safeGetWritableDatabase(); in testOnUpgrade_topicsV8Migration_loggedTopicColumnExist() 210 SQLiteDatabase db = mock(SQLiteDatabase.class); in testOnUpgrade_topicsV9Migration() 241 SQLiteDatabase db = mock(SQLiteDatabase.class); in testOnUpgrade_topicsMigration_V7_V8_V9() 286 SQLiteDatabase db = mock(SQLiteDatabase.class); in testOnDowngrade() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/data/ |
D | DbTestUtil.java | 24 import android.database.sqlite.SQLiteDatabase; 51 SQLiteDatabase db = getDbHelperForTest().safeGetWritableDatabase(); in deleteTable() 95 SQLiteDatabase db, String tableName, int columnCount) { in doesTableExistAndColumnCountMatch() 103 public static Set<String> getTableColumns(SQLiteDatabase db, String tableName) { in getTableColumns() 124 public static boolean doesIndexExist(SQLiteDatabase db, String index) { in doesIndexExist() 137 public static boolean doesTableExist(SQLiteDatabase db, String table) { in doesTableExist() 154 public static void assertDatabasesEqual(SQLiteDatabase expectedDb, SQLiteDatabase actualDb) { in assertDatabasesEqual() 163 SQLiteDatabase expectedDb, SQLiteDatabase actualDb, List<String> tableNames) { in assertTableSchemaEqual() 208 private static List<String> getTables(SQLiteDatabase db) { in getTables() 221 SQLiteDatabase expectedDb, SQLiteDatabase actualDb, List<String> tables) { in assertIndexesEqual() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/ |
D | TransactionManager.java | 37 import android.database.sqlite.SQLiteDatabase; 138 SQLiteDatabase db = getWritableDb(); in upsertMedicalResources() 175 final SQLiteDatabase db = getWritableDb(); in insertAll() 219 final SQLiteDatabase db = getWritableDb(); in insertAll() 248 final SQLiteDatabase db = getWritableDb(); in insertOrIgnoreOnConflict() 269 final SQLiteDatabase db = getWritableDb(); in deleteAll() 356 final SQLiteDatabase db = getReadableDb(); in populateWithAggregation() 474 final SQLiteDatabase db = getWritableDb(); in insert() 491 final SQLiteDatabase db = getWritableDb(); in update() 511 final SQLiteDatabase db = getWritableDb(); in insertOrReplace() [all …]
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | OnDevicePersonalizationDbHelperTest.java | 36 import android.database.sqlite.SQLiteDatabase; 71 private SQLiteDatabase mDb; 147 SQLiteDatabase db = SQLiteDatabase.create(null); in testOnUpgradeFromV1() 166 SQLiteDatabase db = SQLiteDatabase.create(null); in testOnUpgradeFromV2() 182 SQLiteDatabase db = SQLiteDatabase.create(null); in testOnUpgradeFromV3() 198 SQLiteDatabase db = SQLiteDatabase.create(null); in testOnUpgradeFromV4() 224 SQLiteDatabase db = dbHelper.safeGetReadableDatabase(); in testSafeGetReadableDatabase_exceptionOccurs_validatesErrorLogging() 241 SQLiteDatabase db = dbHelper.safeGetWritableDatabase(); in testSafeGetWritableDatabase_exceptionOccurs_validatesErrorLogging() 251 private void createV1Tables(SQLiteDatabase db) { in createV1Tables() 260 private void createV2Tables(SQLiteDatabase db) { in createV2Tables() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataDbHelper.java | 22 import android.database.sqlite.SQLiteDatabase; 201 public static SQLiteDatabase getDb(final Context context, final String clientId) { in getDb() 205 private void createClientTable(final SQLiteDatabase db) { in createClientTable() 227 public void onCreate(final SQLiteDatabase db) { in onCreate() 232 private static void addRawChecksumColumnUnlessPresent(final SQLiteDatabase db) { in addRawChecksumColumnUnlessPresent() 243 private static void addRetryCountColumnUnlessPresent(final SQLiteDatabase db) { in addRetryCountColumnUnlessPresent() 268 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() 318 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() 359 SQLiteDatabase defaultDb = MetadataDbHelper.getDb(context, null); in getMetadataUriAsString() 388 final SQLiteDatabase defaultDb = getDb(context, null); in saveLastUpdateTimeOfUri() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsDatabaseHelper.java | 32 import android.database.sqlite.SQLiteDatabase; 305 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption() 373 private static void removeUnferencedCanonicalAddresses(SQLiteDatabase db) { in removeUnferencedCanonicalAddresses() 414 public static void updateThread(SQLiteDatabase db, long thread_id) { in updateThread() 426 public static void updateThreads(SQLiteDatabase db, String where, String[] whereArgs) { in updateThreads() 529 public static int deleteOneSms(SQLiteDatabase db, int message_id) { in deleteOneSms() 566 public void onCreate(SQLiteDatabase db) { in onCreate() 629 private void populateWordsTable(SQLiteDatabase db) { in populateWordsTable() 703 private void createWordsTables(SQLiteDatabase db) { in createWordsTables() 708 SQLiteDatabase db, int oldVersion, int currentVersion, int upgradeVersion) { in createWordsTables() [all …]
|
D | CarrierDatabaseHelper.java | 21 import android.database.sqlite.SQLiteDatabase; 79 public void onCreate(SQLiteDatabase db) { in onCreate() 83 public void createCarrierTable(SQLiteDatabase db) { in createCarrierTable() 87 public void dropCarrierTable(SQLiteDatabase db) { in dropCarrierTable() 92 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 111 private void renameCarrierTable(SQLiteDatabase db) { in renameCarrierTable() 117 private void copyContents(SQLiteDatabase db) { in copyContents() 129 private void dropTemporaryTable(SQLiteDatabase db) { in dropTemporaryTable()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | PickerDatabaseHelper.java | 24 import android.database.sqlite.SQLiteDatabase; 64 public void onCreate(final SQLiteDatabase db) { in onCreate() 71 public void onUpgrade(final SQLiteDatabase db, final int oldV, final int newV) { in onUpgrade() 78 public void onDowngrade(final SQLiteDatabase db, final int oldV, final int newV) { in onDowngrade() 85 public void onConfigure(SQLiteDatabase db) { in onConfigure() 98 private void resetData(SQLiteDatabase db) { in resetData() 108 static void dropAllTables(SQLiteDatabase db) { in dropAllTables() 119 private static void createLatestSchema(SQLiteDatabase db) { in createLatestSchema() 154 private static void createLatestIndexes(SQLiteDatabase db) { in createLatestIndexes()
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/ |
D | SpeedDialEntryDatabaseHelper.java | 22 import android.database.sqlite.SQLiteDatabase; 95 public void onCreate(SQLiteDatabase db) { in onCreate() 100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 107 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 117 try (SQLiteDatabase db = getReadableDatabase(); in getAllEntries() 158 SQLiteDatabase db = getWritableDatabase(); in insert() 171 SQLiteDatabase writeableDatabase, ImmutableList<SpeedDialEntry> entries) { in insert() 191 try (SQLiteDatabase db = getWritableDatabase()) { in insert() 207 SQLiteDatabase db = getWritableDatabase(); in update() 218 private void update(SQLiteDatabase writeableDatabase, ImmutableList<SpeedDialEntry> entries) { in update() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementDbHelper.java | 25 import android.database.sqlite.SQLiteDatabase; 113 public void onCreate(SQLiteDatabase db) { in onCreate() 118 SQLiteDatabase oldDb = mDbHelper.safeGetWritableDatabase(); in onCreate() 141 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 151 public void onOpen(SQLiteDatabase db) { in onOpen() 191 private boolean hasAllV6MeasurementTables(SQLiteDatabase db) { in hasAllV6MeasurementTables() 211 public SQLiteDatabase safeGetWritableDatabase() { in safeGetWritableDatabase() 224 private void createV6Schema(SQLiteDatabase db) { in createV6Schema() 229 private void createSchema(SQLiteDatabase db) { in createSchema() 241 private void migrateOldDataToNewDatabase(SQLiteDatabase oldDb, SQLiteDatabase db) { in migrateOldDataToNewDatabase() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/ |
D | IpMemoryStoreDatabase.java | 27 import android.database.sqlite.SQLiteDatabase; 167 public void onCreate(@NonNull final SQLiteDatabase db) { in onCreate() 175 public void onUpgrade(@NonNull final SQLiteDatabase db, final int oldVersion, in onUpgrade() 206 public void onDowngrade(@NonNull final SQLiteDatabase db, final int oldVersion, in onDowngrade() 219 private void createTrigger(@NonNull final SQLiteDatabase db) { in createTrigger() 347 static long getExpiry(@NonNull final SQLiteDatabase db, @NonNull final String key) { in getExpiry() 367 static int getRelevance(@NonNull final SQLiteDatabase db, @NonNull final String key) { in getRelevance() 374 static int storeNetworkAttributes(@NonNull final SQLiteDatabase db, @NonNull final String key, in storeNetworkAttributes() 383 null, cv, SQLiteDatabase.CONFLICT_IGNORE); in storeNetworkAttributes() 399 static int storeBlob(@NonNull final SQLiteDatabase db, @NonNull final String key, in storeBlob() [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyDatabaseHelperTest.java | 29 import android.database.sqlite.SQLiteDatabase; 77 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasApnSetIdField() 92 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasCarrierIdField() 105 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasCountryIsoField() 118 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasProfileClassField() 131 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasPortIndexField() 145 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasSkip464XlatField() 159 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_columnsMatchNewlyCreatedDb() 195 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasSubscriptionTypeField() 210 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasImsRcsUceEnabledField() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/ |
D | MigrationHelpers.java | 20 import android.database.sqlite.SQLiteDatabase; 39 SQLiteDatabase db, String tableName, String backupTableName, String createTableQuery) { in copyAndUpdateTable() 48 static void copyAndUpdateTable(SQLiteDatabase db, String tableName, String backupTableName, in copyAndUpdateTable() 93 static void addIntColumnsIfAbsent(SQLiteDatabase db, String tableName, String[] columnNames) { in addIntColumnsIfAbsent() 101 SQLiteDatabase db, String tableName, String columnName) { in addIntColumnIfAbsent() 109 static void addTextColumnIfAbsent(SQLiteDatabase db, String tableName, String columnName) { in addTextColumnIfAbsent() 123 static boolean isColumnPresent(SQLiteDatabase db, String tableName, String columnName) { in isColumnPresent() 139 private static boolean isTablePresent(SQLiteDatabase db, String tableName) { in isTablePresent() 149 private static List<String> getTableColumnNames(SQLiteDatabase db, String tableName) { in getTableColumnNames()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | DatabaseHelper.java | 28 import android.database.sqlite.SQLiteDatabase; 106 public void onCreate(SQLiteDatabase db) { in onCreate() 118 public void onAddOrDeleteOp(SQLiteDatabase db) { in onAddOrDeleteOp() 130 public void onOpen(SQLiteDatabase db) { in onOpen() 147 protected void handleOneTimeDataUpgrade(SQLiteDatabase db) { in handleOneTimeDataUpgrade() 159 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 289 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 303 public void createEmptyDB(SQLiteDatabase db) { in createEmptyDB() 316 public void removeGhostWidgets(SQLiteDatabase db) { in removeGhostWidgets() 367 void convertShortcutsToLauncherActivities(SQLiteDatabase db) { in convertShortcutsToLauncherActivities() [all …]
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberDatabaseHelper.java | 19 import android.database.sqlite.SQLiteDatabase; 44 public OpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, in OpenHelper() 52 public void onCreate(SQLiteDatabase db) { in onCreate() 57 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 64 private void createTables(SQLiteDatabase db) { in createTables() 100 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase() 104 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/ |
D | OnDevicePersonalizationDbHelper.java | 25 import android.database.sqlite.SQLiteDatabase; 85 public void onCreate(SQLiteDatabase db) { in onCreate() 96 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 116 private void execSqlIgnoreError(SQLiteDatabase db, List<String> sqls) { in execSqlIgnoreError() 122 private void execSqlIgnoreError(SQLiteDatabase db, String sql) { in execSqlIgnoreError() 132 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 140 public void onConfigure(SQLiteDatabase db) { in onConfigure() 147 public SQLiteDatabase safeGetWritableDatabase() { in safeGetWritableDatabase() 163 public SQLiteDatabase safeGetReadableDatabase() { in safeGetReadableDatabase()
|