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.java121 public boolean upgradeDatabase(SQLiteDatabase db, int oldVersion, int newVersion) { in upgradeDatabase() argument
122 logger.debug("Enter: upgradeDatabase() - oldVersion = " + oldVersion + in upgradeDatabase()
125 if (oldVersion == newVersion) { in upgradeDatabase()
131 if (oldVersion == 0) { in upgradeDatabase()
134 oldVersion++; in upgradeDatabase()
135 logger.debug("upgradeDatabase : DB has been upgraded to " + oldVersion); in upgradeDatabase()
137 if (oldVersion == 1) { in upgradeDatabase()
141 oldVersion++; in upgradeDatabase()
142 logger.debug("upgradeDatabase : DB has been upgraded to " + oldVersion); in upgradeDatabase()
151 if (oldVersion == newVersion) { 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