Home
last modified time | relevance | path

Searched refs:DbDowngradeHelper (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java72 DbDowngradeHelper.updateSchemaFile(mSchemaFile, 0, mContext); in testDowngradeSchemaMatchesVersion()
73 assertEquals(LauncherProvider.SCHEMA_VERSION, DbDowngradeHelper.parse(mSchemaFile).version); in testDowngradeSchemaMatchesVersion()
88 DbDowngradeHelper.updateSchemaFile(mSchemaFile, 10, context); in testUpdateSchemaFile()
90 assertEquals(10, DbDowngradeHelper.parse(mSchemaFile).version); in testUpdateSchemaFile()
94 DbDowngradeHelper.updateSchemaFile(mSchemaFile, 11, context); in testUpdateSchemaFile()
99 DbDowngradeHelper.updateSchemaFile(mSchemaFile, 10, context); in testUpdateSchemaFile()
103 DbDowngradeHelper.updateSchemaFile(mSchemaFile, 3, context); in testUpdateSchemaFile()
162 DbDowngradeHelper.updateSchemaFile(mSchemaFile, LauncherProvider.SCHEMA_VERSION, mContext); in setupTestDb()
197 DbDowngradeHelper.parse(mSchemaFile).onDowngrade(db, oldVersion, newVersion); in onDowngrade()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DDbDowngradeHelper.java42 public class DbDowngradeHelper { class
52 private DbDowngradeHelper(int version) { in DbDowngradeHelper() method in DbDowngradeHelper
75 public static DbDowngradeHelper parse(File file) throws JSONException, IOException { in parse()
77 DbDowngradeHelper helper = new DbDowngradeHelper(obj.getInt(KEY_VERSION)); in parse()
93 if (DbDowngradeHelper.parse(schemaFile).version >= expectedVersion) { in updateSchemaFile()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java63 import com.android.launcher3.model.DbDowngradeHelper;
770 DbDowngradeHelper.updateSchemaFile(schemaFile, SCHEMA_VERSION, mContext); in onOpen()
905 DbDowngradeHelper.parse(mContext.getFileStreamPath(DOWNGRADE_SCHEMA_FILE)) in onDowngrade()