/frameworks/base/services/core/java/com/android/server/updates/ |
D | CertificateTransparencyLogInstallReceiver.java | 67 File newVersion = new File(updateDir, LOGDIR_PREFIX + String.valueOf(version)); in install() local 70 if (newVersion.exists()) { in install() 74 if (newVersion.getCanonicalPath().equals(currentSymlink.getCanonicalPath())) { in install() 79 FileUtils.deleteContentsAndDir(newVersion); in install() 84 newVersion.mkdir(); in install() 85 if (!newVersion.isDirectory()) { in install() 86 throw new IOException("Unable to make directory " + newVersion.getCanonicalPath()); in install() 88 if (!newVersion.setReadable(true, false)) { in install() 89 throw new IOException("Failed to set " +newVersion.getCanonicalPath() + in install() 99 installLog(newVersion, log); in install() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbHelper.java | 116 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/base/core/java/android/content/ |
D | SearchRecentSuggestionsProvider.java | 133 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/services/backup/java/com/android/server/backup/encryption/storage/ |
D | BackupEncryptionDbHelper.java | 68 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/ |
D | DistroRulesVersionTest.java | 55 DistroRulesVersion newVersion = DistroRulesVersion.CREATOR.createFromParcel(parcel); in parcelable() local 57 assertEquals(version, newVersion); in parcelable()
|
D | DistroFormatVersionTest.java | 55 DistroFormatVersion newVersion = DistroFormatVersion.CREATOR.createFromParcel(parcel); in parcelable() local 57 assertEquals(version, newVersion); in parcelable()
|
D | RulesStateTest.java | 118 RulesState newVersion = RulesState.CREATOR.createFromParcel(parcel); in checkParcelableRoundTrip() local 120 assertEquals(rulesState, newVersion); in checkParcelableRoundTrip()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountsDb.java | 246 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/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerProvider.java | 67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 70 + " to " + newVersion in onUpgrade()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteOpenHelper.java | 522 public abstract void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument 540 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 542 oldVersion + " to " + newVersion); in onDowngrade()
|
D | SQLiteDatabase.java | 1878 public boolean needUpgrade(int newVersion) { in needUpgrade() argument 1879 return newVersion > getVersion(); in needUpgrade()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | PreNTestDatabaseHelper.java | 88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 370 void runVersionChangeTest(int oldVersion, int newVersion, int interval) throws IOException { in runVersionChangeTest() argument 377 UsageStatsDatabase newDB = new UsageStatsDatabase(mTestDir, newVersion); in runVersionChangeTest() 384 final int minVersion = oldVersion < newVersion ? oldVersion : newVersion; in runVersionChangeTest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerServiceImpl.java | 115 private void upgradeTuner(int oldVersion, int newVersion, Handler mainHandler) { in upgradeTuner() argument 140 setValue(TUNER_VERSION, newVersion); in upgradeTuner()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | FakeSmsContentProvider.java | 70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
D | FakeTelephonyProvider.java | 129 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerDbHelper.java | 72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | WatchlistReportDbHelper.java | 120 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | SQLiteOpenHelperTest.java | 75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 3267 final int newVersion = SETTINGS_VERSION; 3270 if (oldVersion == newVersion) { 3275 final int curVersion = onUpgradeLocked(mUserId, oldVersion, newVersion); 3278 if (curVersion != newVersion) { 3285 dbHelper.recreateDatabase(database, newVersion, curVersion, oldVersion); 3291 onUpgradeLocked(mUserId, oldVersion, newVersion); 3295 + curVersion + " while expected: " + newVersion; 3305 globalSettings.setVersionLocked(newVersion); 3309 secureSettings.setVersionLocked(newVersion); 3314 systemSettings.setVersionLocked(newVersion); [all …]
|
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 97 int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 930 VersionedPackage newVersion = new VersionedPackage(packageName, newPackage.versionCode); in enableRollbackForPackageSession() local 949 newVersion, installedVersion, in enableRollbackForPackageSession()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationUsageStats.java | 1184 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in SQLiteLog() 1185 if (oldVersion != newVersion) { in SQLiteLog()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDatabase.java | 726 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
|