Home
last modified time | relevance | path

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

/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DEABProvider.java122 public boolean upgradeDatabase(SQLiteDatabase db, int oldVersion, int newVersion) { in upgradeDatabase() argument
123 logger.info("Enter: upgradeDatabase() - oldVersion = " + oldVersion + in upgradeDatabase()
128 if (oldVersion == newVersion) { in upgradeDatabase()
134 if (oldVersion == 0) { in upgradeDatabase()
137 oldVersion++; in upgradeDatabase()
138 logger.debug("upgradeDatabase : DB has been upgraded to " + oldVersion); in upgradeDatabase()
140 if (oldVersion == 1) { in upgradeDatabase()
144 oldVersion++; in upgradeDatabase()
145 logger.debug("upgradeDatabase : DB has been upgraded to " + oldVersion); in upgradeDatabase()
147 if (oldVersion == 2) { in upgradeDatabase()
[all …]
DDatabaseContentProvider.java86 protected abstract boolean upgradeDatabase(SQLiteDatabase db, int oldVersion, int newVersion); in upgradeDatabase() argument
97 protected abstract boolean downgradeDatabase(SQLiteDatabase db, int oldVersion, int newVersion); in downgradeDatabase() argument
144 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
145 upgradeDatabase(db, oldVersion, newVersion); in onUpgrade()
149 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
150 logger.debug("Enter: onDowngrade() - oldVersion = " + oldVersion + " newVersion = " in onDowngrade()
152 downgradeDatabase(db, oldVersion, newVersion); in onDowngrade()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DSQLiteOpenHelperTest.java117 public void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) { in onUpgrade() argument