Home
last modified time | relevance | path

Searched refs:SupportSQLiteDatabase (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/support/room/runtime/src/main/java/androidx/room/
DRoomOpenHelper.java26 import androidx.sqlite.db.SupportSQLiteDatabase;
67 public void onConfigure(SupportSQLiteDatabase db) { in onConfigure()
72 public void onCreate(SupportSQLiteDatabase db) { in onCreate()
79 public void onUpgrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
109 public void onDowngrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
114 public void onOpen(SupportSQLiteDatabase db) { in onOpen()
122 private void checkIdentity(SupportSQLiteDatabase db) { in checkIdentity()
142 private void updateIdentity(SupportSQLiteDatabase db) { in updateIdentity()
147 private void createMasterTableIfNotExists(SupportSQLiteDatabase db) { in createMasterTableIfNotExists()
151 private static boolean hasRoomMasterTable(SupportSQLiteDatabase db) { in hasRoomMasterTable()
[all …]
DRoomDatabase.java37 import androidx.sqlite.db.SupportSQLiteDatabase;
72 protected volatile SupportSQLiteDatabase mDatabase;
174 final SupportSQLiteDatabase db = mDatabase; in isOpen()
253 SupportSQLiteDatabase database = mOpenHelper.getWritableDatabase(); in beginTransaction()
323 protected void internalInitInvalidationTracker(@NonNull SupportSQLiteDatabase db) { in internalInitInvalidationTracker()
747 public void onCreate(@NonNull SupportSQLiteDatabase db) {
755 public void onOpen(@NonNull SupportSQLiteDatabase db) {
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
DMigrationTest.java38 import androidx.sqlite.db.SupportSQLiteDatabase;
80 SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, in startInCurrentVersion()
93 SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, 1); in addTable()
132 SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, 2); in addColumnFailure()
145 SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, 2); in addColumn()
171 final SupportSQLiteDatabase db = helper.runMigrationsAndValidate(TEST_DB, in removeColumn()
180 final SupportSQLiteDatabase db = helper.runMigrationsAndValidate(TEST_DB, in dropTable()
194 final SupportSQLiteDatabase db = helper.runMigrationsAndValidate(TEST_DB, in failedToDropTableDontVerify()
202 final SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, 6); in failedForeignKey()
209 public void migrate(SupportSQLiteDatabase database) { in failedForeignKey()
[all …]
DMigrationDb.java33 import androidx.sqlite.db.SupportSQLiteDatabase;
103 final SupportSQLiteDatabase mDb;
105 Dao_V1(SupportSQLiteDatabase db) { in Dao_V1()
125 final SupportSQLiteDatabase mDb;
127 Dao_V2(SupportSQLiteDatabase db) { in Dao_V2()
DJournalDbPostMigrationTest.java46 import androidx.sqlite.db.SupportSQLiteDatabase;
115 public void migrate(@NonNull SupportSQLiteDatabase database) {
133 public void migrate(@NonNull SupportSQLiteDatabase database) {
144 public void onCreate(@NonNull SupportSQLiteDatabase db) { in getDb()
149 public void onOpen(@NonNull SupportSQLiteDatabase db) { in getDb()
/frameworks/support/room/testing/src/main/java/androidx/room/testing/
DMigrationTestHelper.java36 import androidx.sqlite.db.SupportSQLiteDatabase;
82 private List<WeakReference<SupportSQLiteDatabase>> mManagedDatabases = new ArrayList<>();
133 public SupportSQLiteDatabase createDatabase(String name, int version) throws IOException { in createDatabase()
180 public SupportSQLiteDatabase runMigrationsAndValidate(String name, int version, in runMigrationsAndValidate()
203 private SupportSQLiteDatabase openDatabase(String name, RoomOpenHelper roomOpenHelper) { in openDatabase()
210 SupportSQLiteDatabase db = mOpenFactory.create(config).getWritableDatabase(); in openDatabase()
218 for (WeakReference<SupportSQLiteDatabase> dbRef : mManagedDatabases) { in finished()
219 SupportSQLiteDatabase db = dbRef.get(); in finished()
243 public void closeWhenFinished(SupportSQLiteDatabase db) { in closeWhenFinished()
360 protected void createAllTables(SupportSQLiteDatabase database) { in createAllTables()
[all …]
/frameworks/support/persistence/db/src/main/java/androidx/sqlite/db/
DSupportSQLiteOpenHelper.java80 SupportSQLiteDatabase getWritableDatabase(); in getWritableDatabase()
100 SupportSQLiteDatabase getReadableDatabase(); in getReadableDatabase()
149 public void onConfigure(SupportSQLiteDatabase db) { in onConfigure()
159 public abstract void onCreate(SupportSQLiteDatabase db); in onCreate()
181 public abstract void onUpgrade(SupportSQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade()
200 public void onDowngrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
218 public void onOpen(SupportSQLiteDatabase db) { in onOpen()
229 public void onCorruption(SupportSQLiteDatabase db) { in onCorruption()
/frameworks/support/persistence/db/ktx/src/test/java/androidx/sqlite/db/
DSupportSQLiteDatabaseTest.kt27 val db = mock(SupportSQLiteDatabase::class.java) in exclusiveDefault()
33 val db = mock(SupportSQLiteDatabase::class.java) in exclusiveFalse()
39 val db = mock(SupportSQLiteDatabase::class.java) in exclusiveTrue()
45 val db = mock(SupportSQLiteDatabase::class.java) in bodyNormalCallsSuccessAndEnd()
53 val db = mock(SupportSQLiteDatabase::class.java) in bodyThrowsDoesNotCallSuccess()
/frameworks/support/room/compiler/src/test/data/databasewriter/output/
DComplexDatabase.java11 import androidx.sqlite.db.SupportSQLiteDatabase;
32 public void createAllTables(SupportSQLiteDatabase _db) { in createOpenHelper()
39 public void dropAllTables(SupportSQLiteDatabase _db) { in createOpenHelper()
44 protected void onCreate(SupportSQLiteDatabase _db) { in createOpenHelper()
53 public void onOpen(SupportSQLiteDatabase _db) { in createOpenHelper()
64 protected void validateMigration(SupportSQLiteDatabase _db) { in createOpenHelper()
97 final SupportSQLiteDatabase _db = super.getOpenHelper().getWritableDatabase(); in clearAllTables()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DCustomDatabaseTest.java36 import androidx.sqlite.db.SupportSQLiteDatabase;
86 public SupportSQLiteDatabase answer(InvocationOnMock invocation) in create()
88 final SupportSQLiteDatabase db = helper.getWritableDatabase(); in create()
89 SupportSQLiteDatabase dbMock = mock(SupportSQLiteDatabase.class, in create()
DDatabaseCallbackTest.java38 import androidx.sqlite.db.SupportSQLiteDatabase;
95 public void onCreate(@NonNull SupportSQLiteDatabase db) { in writeOnCreate()
123 public void onCreate(@NonNull SupportSQLiteDatabase db) { in onCreate()
128 public void onOpen(@NonNull SupportSQLiteDatabase db) { in onOpen()
DIdentityDetectionTest.java32 import androidx.sqlite.db.SupportSQLiteDatabase;
67 SupportSQLiteDatabase db = mTestDatabase.getOpenHelper().getWritableDatabase(); in reOpenChangedHash()
87 SupportSQLiteDatabase db = mTestDatabase.getOpenHelper().getWritableDatabase(); in reOpenMasterTableDropped()
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/
DMigrationKotlinTest.kt24 import androidx.sqlite.db.SupportSQLiteDatabase
205 override fun migrate(database: SupportSQLiteDatabase) { in failedForeignKey()
246 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
253 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
260 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
267 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
278 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
284 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
301 override fun migrate(database: SupportSQLiteDatabase) { in migrate()
DMigrationDbKotlin.kt31 import androidx.sqlite.db.SupportSQLiteDatabase
94 internal class Dao_V1(val mDb: SupportSQLiteDatabase) { in loadAllEntity1s()
111 internal class Dao_V2(val mDb: SupportSQLiteDatabase) {
/frameworks/support/persistence/db-framework/src/main/java/androidx/sqlite/db/framework/
DFrameworkSQLiteOpenHelper.java25 import androidx.sqlite.db.SupportSQLiteDatabase;
53 public SupportSQLiteDatabase getWritableDatabase() { in getWritableDatabase()
58 public SupportSQLiteDatabase getReadableDatabase() { in getReadableDatabase()
94 synchronized SupportSQLiteDatabase getWritableSupportDatabase() { in getWritableSupportDatabase()
105 synchronized SupportSQLiteDatabase getReadableSupportDatabase() { in getReadableSupportDatabase()
/frameworks/support/room/testing/api/
Dcurrent.txt6 method public void closeWhenFinished(androidx.sqlite.db.SupportSQLiteDatabase);
8 …method public androidx.sqlite.db.SupportSQLiteDatabase createDatabase(java.lang.String, int) throw…
9 …method public androidx.sqlite.db.SupportSQLiteDatabase runMigrationsAndValidate(java.lang.String, …
/frameworks/support/room/testing/api_legacy/
Dcurrent.txt6 method public void closeWhenFinished(android.arch.persistence.db.SupportSQLiteDatabase);
8 …method public android.arch.persistence.db.SupportSQLiteDatabase createDatabase(java.lang.String, i…
9 …method public android.arch.persistence.db.SupportSQLiteDatabase runMigrationsAndValidate(java.lang…
D1.0.0.txt6 method public void closeWhenFinished(android.arch.persistence.db.SupportSQLiteDatabase);
8 …method public android.arch.persistence.db.SupportSQLiteDatabase createDatabase(java.lang.String, i…
9 …method public android.arch.persistence.db.SupportSQLiteDatabase runMigrationsAndValidate(java.lang…
D1.1.0.txt6 method public void closeWhenFinished(android.arch.persistence.db.SupportSQLiteDatabase);
8 …method public android.arch.persistence.db.SupportSQLiteDatabase createDatabase(java.lang.String, i…
9 …method public android.arch.persistence.db.SupportSQLiteDatabase runMigrationsAndValidate(java.lang…
/frameworks/support/persistence/db/api/
Dcurrent.txt12 public abstract interface SupportSQLiteDatabase implements java.io.Closeable {
56 method public abstract androidx.sqlite.db.SupportSQLiteDatabase getReadableDatabase();
57 method public abstract androidx.sqlite.db.SupportSQLiteDatabase getWritableDatabase();
63 method public void onConfigure(androidx.sqlite.db.SupportSQLiteDatabase);
64 method public void onCorruption(androidx.sqlite.db.SupportSQLiteDatabase);
65 method public abstract void onCreate(androidx.sqlite.db.SupportSQLiteDatabase);
66 method public void onDowngrade(androidx.sqlite.db.SupportSQLiteDatabase, int, int);
67 method public void onOpen(androidx.sqlite.db.SupportSQLiteDatabase);
68 method public abstract void onUpgrade(androidx.sqlite.db.SupportSQLiteDatabase, int, int);
/frameworks/support/persistence/db/ktx/src/main/java/androidx/sqlite/db/
DSupportSQLiteDatabase.kt24 inline fun <T> SupportSQLiteDatabase.transaction( in transaction()
26 body: SupportSQLiteDatabase.() -> T in transaction()
/frameworks/support/room/runtime/src/main/java/androidx/room/migration/
DMigration.java20 import androidx.sqlite.db.SupportSQLiteDatabase;
62 public abstract void migrate(@NonNull SupportSQLiteDatabase database); in migrate()
/frameworks/support/persistence/db/api_legacy/
D1.0.0.txt11 public abstract interface SupportSQLiteDatabase implements java.io.Closeable {
55 method public abstract android.arch.persistence.db.SupportSQLiteDatabase getReadableDatabase();
56 method public abstract android.arch.persistence.db.SupportSQLiteDatabase getWritableDatabase();
62 method public void onConfigure(android.arch.persistence.db.SupportSQLiteDatabase);
63 method public void onCorruption(android.arch.persistence.db.SupportSQLiteDatabase);
64 method public abstract void onCreate(android.arch.persistence.db.SupportSQLiteDatabase);
65 method public void onDowngrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
66 method public void onOpen(android.arch.persistence.db.SupportSQLiteDatabase);
67 …method public abstract void onUpgrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
D1.1.0.txt12 public abstract interface SupportSQLiteDatabase implements java.io.Closeable {
56 method public abstract android.arch.persistence.db.SupportSQLiteDatabase getReadableDatabase();
57 method public abstract android.arch.persistence.db.SupportSQLiteDatabase getWritableDatabase();
63 method public void onConfigure(android.arch.persistence.db.SupportSQLiteDatabase);
64 method public void onCorruption(android.arch.persistence.db.SupportSQLiteDatabase);
65 method public abstract void onCreate(android.arch.persistence.db.SupportSQLiteDatabase);
66 method public void onDowngrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
67 method public void onOpen(android.arch.persistence.db.SupportSQLiteDatabase);
68 …method public abstract void onUpgrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
Dcurrent.txt12 public abstract interface SupportSQLiteDatabase implements java.io.Closeable {
56 method public abstract android.arch.persistence.db.SupportSQLiteDatabase getReadableDatabase();
57 method public abstract android.arch.persistence.db.SupportSQLiteDatabase getWritableDatabase();
63 method public void onConfigure(android.arch.persistence.db.SupportSQLiteDatabase);
64 method public void onCorruption(android.arch.persistence.db.SupportSQLiteDatabase);
65 method public abstract void onCreate(android.arch.persistence.db.SupportSQLiteDatabase);
66 method public void onDowngrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
67 method public void onOpen(android.arch.persistence.db.SupportSQLiteDatabase);
68 …method public abstract void onUpgrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);

12