/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | RuntimePermissionsUpgradeController.java | 58 final int currentVersion = permissionManager.getRuntimePermissionsVersion(); in upgradeIfNeeded() local 62 final int upgradedVersion = onUpgradeLocked(context, currentVersion); in upgradeIfNeeded() 66 + " to version " + LATEST_VERSION + " left it at " + currentVersion in upgradeIfNeeded() 72 if (currentVersion != upgradedVersion) { in upgradeIfNeeded() 137 private static int onUpgradeLocked(@NonNull Context context, int currentVersion) { in onUpgradeLocked() argument 144 if (currentVersion <= -1) { in onUpgradeLocked() 149 currentVersion = 0; in onUpgradeLocked() 154 if (currentVersion == 0) { in onUpgradeLocked() 177 currentVersion = 1; in onUpgradeLocked() 180 if (currentVersion == 1) { in onUpgradeLocked() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
D | EditorUiUtilsTest.java | 141 final int currentVersion = Build.VERSION_CODES.M; in testGetRingtongStrFromUri_lessThanOrEqualsToM() local 142 assertNull(EditorUiUtils.getRingtoneStringFromUri(null, currentVersion)); in testGetRingtongStrFromUri_lessThanOrEqualsToM() 144 currentVersion)); in testGetRingtongStrFromUri_lessThanOrEqualsToM() 146 currentVersion)); in testGetRingtongStrFromUri_lessThanOrEqualsToM() 150 final int currentVersion = Build.VERSION_CODES.M + 1; in testGetRingtongStrFromUri_nOrGreater() local 151 assertEquals("", EditorUiUtils.getRingtoneStringFromUri(null, currentVersion)); in testGetRingtongStrFromUri_nOrGreater() 153 currentVersion)); in testGetRingtongStrFromUri_nOrGreater() 155 currentVersion)); in testGetRingtongStrFromUri_nOrGreater() 159 final int currentVersion = Build.VERSION_CODES.M; in testGetRingtongUriFromStr_lessThanOrEqualsToM() local 161 .getRingtoneUriFromString(null, currentVersion)); in testGetRingtongUriFromStr_lessThanOrEqualsToM() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsDatabaseHelper.java | 1234 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 1236 + " to " + currentVersion + "."); in onUpgrade() 1240 if (currentVersion <= 40) { in onUpgrade() 1256 if (currentVersion <= 41) { in onUpgrade() 1272 if (currentVersion <= 42) { in onUpgrade() 1288 if (currentVersion <= 43) { in onUpgrade() 1304 if (currentVersion <= 44) { in onUpgrade() 1320 if (currentVersion <= 45) { in onUpgrade() 1335 if (currentVersion <= 46) { in onUpgrade() 1351 if (currentVersion <= 47) { in onUpgrade() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseUpgradeHelper.java | 47 int currentVersion = oldVersion; in doUpgradeWithExceptions() local 48 if (currentVersion < 2) { in doUpgradeWithExceptions() 49 currentVersion = upgradeToVersion2(db); in doUpgradeWithExceptions() 56 checkAndUpdateVersionAtReleaseEnd(currentVersion, Integer.MAX_VALUE, newVersion); in doUpgradeWithExceptions() 73 private int checkAndUpdateVersionAtReleaseEnd(final int currentVersion, in checkAndUpdateVersionAtReleaseEnd() argument 83 if (currentVersion != targetVersion) { in checkAndUpdateVersionAtReleaseEnd() 86 currentVersion + " to version " + targetVersion); in checkAndUpdateVersionAtReleaseEnd()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EditorUiUtils.java | 205 public static String getRingtoneStringFromUri(Uri pickedUri, int currentVersion) { in getRingtoneStringFromUri() argument 206 if (isNewerThanM(currentVersion)) { in getRingtoneStringFromUri() 217 public static Uri getRingtoneUriFromString(String str, int currentVersion) { in getRingtoneUriFromString() argument 219 if (isNewerThanM(currentVersion) && TextUtils.isEmpty(str)) return null; in getRingtoneUriFromString() 225 private static boolean isNewerThanM(int currentVersion) { in isNewerThanM() argument 226 return currentVersion > Build.VERSION_CODES.M; in isNewerThanM()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 256 Integer currentVersion = sSessionsToPlaceholderVersions.get(uri); in replacePlaceholder() local 257 sSessionsToPlaceholderVersions.put(uri, currentVersion == null ? 0 : currentVersion + 1); in replacePlaceholder() 271 Integer currentVersion = sSessionsToPlaceholderVersions.get(uri); in addEmptyPlaceholder() local 272 sSessionsToPlaceholderVersions.put(uri, currentVersion == null ? 0 : currentVersion + 1); in addEmptyPlaceholder()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyConfigJobService.java | 95 final int currentVersion = sharedPreferences.getInt(KEY_ANOMALY_CONFIG_VERSION, in checkAnomalyConfig() local 101 Log.i(TAG, "CurrentVersion: " + currentVersion + " new version: " + newVersion); in checkAnomalyConfig() 103 if (newVersion > currentVersion) { in checkAnomalyConfig()
|
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/ |
D | OneTimeInitializer.java | 69 final int currentVersion = getMappingVersion(); in initialize() local 70 int newVersion = currentVersion; in initialize() 71 if (currentVersion < 1) { in initialize()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | AnomalyConfigJobService.java | 95 final int currentVersion = sharedPreferences.getInt(KEY_ANOMALY_CONFIG_VERSION, in checkAnomalyConfig() local 101 Log.i(TAG, "CurrentVersion: " + currentVersion + " new version: " + newVersion); in checkAnomalyConfig() 103 if (newVersion > currentVersion) { in checkAnomalyConfig()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockDatabaseHelper.kt | 64 override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, currentVersion: Int) { in onUpgrade() 66 oldVersion, currentVersion) in onUpgrade()
|
D | ClockDatabaseHelper.java | 132 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 133 LogUtils.v("Upgrading alarms database from version %d to %d", oldVersion, currentVersion); in onUpgrade()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsDumpService.java | 178 final int currentVersion = sharedPreferences.getInt( in dumpAnomalyDetection() local 181 obj.put("anomaly_config_version", String.valueOf(currentVersion)); in dumpAnomalyDetection()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | SettingsDumpService.java | 176 final int currentVersion = sharedPreferences.getInt( in dumpAnomalyDetection() local 179 obj.put("anomaly_config_version", String.valueOf(currentVersion)); in dumpAnomalyDetection()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 131 private static final AtomicInteger currentVersion = new AtomicInteger(0); field in CalendarAppWidgetService.CalendarFactory 153 if (mLoader != null && version >= currentVersion.get()) { in createUpdateLoaderRunnable() 597 currentVersion.incrementAndGet()));
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 122 public void upgrade(SettingsManager settingsManager, int lastVersion, int currentVersion) { in upgrade() argument
|