Home
last modified time | relevance | path

Searched refs:newVersion (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/updates/
DCertificateTransparencyLogInstallReceiver.java71 File newVersion = new File(updateDir, LOGDIR_PREFIX + String.valueOf(version)); in install() local
74 if (newVersion.exists()) { in install()
78 if (newVersion.getCanonicalPath().equals(currentSymlink.getCanonicalPath())) { in install()
84 FileUtils.deleteContentsAndDir(newVersion); in install()
89 newVersion.mkdir(); in install()
90 if (!newVersion.isDirectory()) { in install()
91 throw new IOException("Unable to make directory " + newVersion.getCanonicalPath()); in install()
93 if (!newVersion.setReadable(true, false)) { in install()
94 throw new IOException("Failed to set " +newVersion.getCanonicalPath() + in install()
105 installLog(newVersion, log); in install()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbHelper.java116 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
123 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
130 if (oldVersion < 3 && newVersion >= 3) { in onUpgrade()
135 if (oldVersion < 4 && newVersion >= 4) { in onUpgrade()
140 if (oldVersion < 5 && newVersion >= 5) { in onUpgrade()
145 if (oldVersion < 6 && newVersion >= 6) { in onUpgrade()
150 if (oldVersion != newVersion) { in onUpgrade()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java107 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
108 if (oldVersion != newVersion) { in onUpgrade()
114 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
115 if (oldVersion != newVersion) { in onDowngrade()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java133 public DatabaseHelper(Context context, int newVersion) { in DatabaseHelper() argument
134 super(context, sDatabaseName, null, newVersion); in DatabaseHelper()
135 mNewVersion = newVersion; in DatabaseHelper()
154 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
156 + newVersion + ", which will destroy all old data"); in onUpgrade()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/storage/
DBackupEncryptionDbHelper.java68 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
74 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
/frameworks/base/core/tests/coretests/src/android/app/timezone/
DDistroRulesVersionTest.java55 DistroRulesVersion newVersion = DistroRulesVersion.CREATOR.createFromParcel(parcel); in parcelable() local
57 assertEquals(version, newVersion); in parcelable()
DDistroFormatVersionTest.java55 DistroFormatVersion newVersion = DistroFormatVersion.CREATOR.createFromParcel(parcel); in parcelable() local
57 assertEquals(version, newVersion); in parcelable()
DRulesStateTest.java118 RulesState newVersion = RulesState.CREATOR.createFromParcel(parcel); in checkParcelableRoundTrip() local
120 assertEquals(rulesState, newVersion); in checkParcelableRoundTrip()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
70 + " to " + newVersion in onUpgrade()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java246 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
247 Log.i(TAG, "Upgrade CE from version " + oldVersion + " to version " + newVersion); in onUpgrade()
263 if (oldVersion != newVersion) { in onUpgrade()
264 Log.e(TAG, "failed to upgrade version " + oldVersion + " to version " + newVersion); in onUpgrade()
269 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
602 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
603 Log.i(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
620 if (oldVersion != newVersion) { in onUpgrade()
621 Log.e(TAG, "failed to upgrade version " + oldVersion + " to version " + newVersion); in onUpgrade()
626 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java521 public abstract void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument
539 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
541 oldVersion + " to " + newVersion); in onDowngrade()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DPreNTestDatabaseHelper.java88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/
DEabProviderTestable.java100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
DFakeTelephonyProvider.java133 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java135 private void upgradeTuner(int oldVersion, int newVersion, Handler mainHandler) { in upgradeTuner() argument
160 setValue(TUNER_VERSION, newVersion); in upgradeTuner()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java406 void runVersionChangeTest(int oldVersion, int newVersion, int interval) throws IOException { in runVersionChangeTest() argument
418 UsageStatsDatabase newDB = new UsageStatsDatabase(mTestDir, newVersion); in runVersionChangeTest()
426 final int minVersion = oldVersion < newVersion ? oldVersion : newVersion; in runVersionChangeTest()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabProvider.java402 public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) { in onUpgrade() argument
403 Log.d(TAG, "DB upgrade from " + oldVersion + " to " + newVersion); in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/database/
DSQLiteOpenHelperTest.java75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java71 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistReportDbHelper.java120 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java3603 final int newVersion = SETTINGS_VERSION;
3606 if (oldVersion == newVersion) {
3611 final int curVersion = onUpgradeLocked(mUserId, oldVersion, newVersion);
3614 if (curVersion != newVersion) {
3621 dbHelper.recreateDatabase(database, newVersion, curVersion, oldVersion);
3627 onUpgradeLocked(mUserId, oldVersion, newVersion);
3631 + curVersion + " while expected: " + newVersion;
3641 globalSettings.setVersionLocked(newVersion);
3645 secureSettings.setVersionLocked(newVersion);
3650 systemSettings.setVersionLocked(newVersion);
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java386 boolean enableForPackage(String packageName, long newVersion, long installedVersion, in enableForPackage() argument
402 new VersionedPackage(packageName, newVersion), in enableForPackage()
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java106 int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java95 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument

12