Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/updates/
DCertificateTransparencyLogInstallReceiver.java67 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/support/room/runtime/src/main/java/android/arch/persistence/room/
DRoomOpenHelper.java66 public void onUpgrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
70 oldVersion, newVersion); in onUpgrade()
83 + newVersion + " is necessary. Please provide a Migration in the builder or call" in onUpgrade()
93 public void onDowngrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
94 onUpgrade(db, oldVersion, newVersion); in onDowngrade()
DInvalidationTracker.java464 final long newVersion = versions[tableId]; in checkForInvalidation() local
466 if (currentVersion < newVersion) { in checkForInvalidation()
467 mVersions[index] = newVersion; in checkForInvalidation()
/frameworks/support/persistence/db-framework/src/main/java/android/arch/persistence/db/framework/
DFrameworkSQLiteOpenHelper.java117 public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) { in onUpgrade() argument
118 mCallback.onUpgrade(getWrappedDb(sqLiteDatabase), oldVersion, newVersion); in onUpgrade() local
127 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
128 mCallback.onDowngrade(getWrappedDb(db), oldVersion, newVersion); in onDowngrade() local
DFrameworkSQLiteDatabase.java259 public boolean needUpgrade(int newVersion) {
260 return mDelegate.needUpgrade(newVersion);
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java131 public DatabaseHelper(Context context, int newVersion) { in DatabaseHelper() argument
132 super(context, sDatabaseName, null, newVersion); in DatabaseHelper()
133 mNewVersion = newVersion; in DatabaseHelper()
152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
154 + newVersion + ", which will destroy all old data"); in onUpgrade()
/frameworks/support/persistence/db/src/main/java/android/arch/persistence/db/
DSupportSQLiteOpenHelper.java180 public abstract void onUpgrade(SupportSQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument
199 public void onDowngrade(SupportSQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
201 + oldVersion + " to " + newVersion); in onDowngrade()
DSupportSQLiteDatabase.java416 boolean needUpgrade(int newVersion); in needUpgrade() argument
/frameworks/base/core/tests/coretests/src/android/app/timezone/
DDistroRulesVersionTest.java52 DistroRulesVersion newVersion = DistroRulesVersion.CREATOR.createFromParcel(parcel); in parcelable() local
54 assertEquals(version, newVersion); in parcelable()
DDistroFormatVersionTest.java52 DistroFormatVersion newVersion = DistroFormatVersion.CREATOR.createFromParcel(parcel); in parcelable() local
54 assertEquals(version, newVersion); in parcelable()
DRulesStateTest.java117 RulesState newVersion = RulesState.CREATOR.createFromParcel(parcel); in checkParcelableRoundTrip() local
119 assertEquals(rulesState, newVersion); in checkParcelableRoundTrip()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java443 public abstract void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument
461 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
463 oldVersion + " to " + newVersion); in onDowngrade()
DSQLiteDatabase.java1823 public boolean needUpgrade(int newVersion) { in needUpgrade() argument
1824 return newVersion > getVersion(); in needUpgrade()
/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.java241 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
242 Log.i(TAG, "Upgrade CE from version " + oldVersion + " to version " + newVersion); in onUpgrade()
258 if (oldVersion != newVersion) { in onUpgrade()
259 Log.e(TAG, "failed to upgrade version " + oldVersion + " to version " + newVersion); in onUpgrade()
590 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
591 Log.i(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
608 if (oldVersion != newVersion) { in onUpgrade()
609 Log.e(TAG, "failed to upgrade version " + oldVersion + " to version " + newVersion); in onUpgrade()
1165 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
1166 Log.e(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
[all …]
/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/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java104 private void upgradeTuner(int oldVersion, int newVersion) { in upgradeTuner() argument
119 setValue(TUNER_VERSION, newVersion); in upgradeTuner()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2914 final int newVersion = SETTINGS_VERSION;
2917 if (oldVersion == newVersion) {
2922 final int curVersion = onUpgradeLocked(mUserId, oldVersion, newVersion);
2925 if (curVersion != newVersion) {
2932 dbHelper.recreateDatabase(database, newVersion, curVersion, oldVersion);
2938 onUpgradeLocked(mUserId, oldVersion, newVersion);
2942 + curVersion + " while expected: " + newVersion;
2952 globalSettings.setVersionLocked(newVersion);
2956 secureSettings.setVersionLocked(newVersion);
2961 systemSettings.setVersionLocked(newVersion);
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DSQLiteOpenHelperTest.java69 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DLoaderThrottleSupport.java151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
155 + newVersion + ", which will destroy all old data"); in onUpgrade()
/frameworks/support/room/runtime/src/androidTest/java/android/arch/persistence/room/migration/
DTableInfoTest.java212 int newVersion) { in createDatabase() argument
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java93 int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument

12