/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | RuntimePermissionsUpgradeController.java | 56 final int currentVersion = permissionManager.getRuntimePermissionsVersion(); in upgradeIfNeeded() local 60 final int upgradedVersion = onUpgradeLocked(context, currentVersion); in upgradeIfNeeded() 64 + " to version " + LATEST_VERSION + " left it at " + currentVersion in upgradeIfNeeded() 70 if (currentVersion != upgradedVersion) { in upgradeIfNeeded() 128 private static int onUpgradeLocked(@NonNull Context context, int currentVersion) { in onUpgradeLocked() argument 135 if (currentVersion <= -1) { in onUpgradeLocked() 140 currentVersion = 0; in onUpgradeLocked() 145 if (currentVersion == 0) { in onUpgradeLocked() 168 currentVersion = 1; in onUpgradeLocked() 171 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 | 1242 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 1244 + " to " + currentVersion + "."); in onUpgrade() 1248 if (currentVersion <= 40) { in onUpgrade() 1264 if (currentVersion <= 41) { in onUpgrade() 1280 if (currentVersion <= 42) { in onUpgrade() 1296 if (currentVersion <= 43) { in onUpgrade() 1312 if (currentVersion <= 44) { in onUpgrade() 1328 if (currentVersion <= 45) { in onUpgrade() 1343 if (currentVersion <= 46) { in onUpgrade() 1359 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 | 233 Integer currentVersion = sSessionsToPlaceholderVersions.get(uri); in replacePlaceholder() local 234 sSessionsToPlaceholderVersions.put(uri, currentVersion == null ? 0 : currentVersion + 1); in replacePlaceholder() 248 Integer currentVersion = sSessionsToPlaceholderVersions.get(uri); in addEmptyPlaceholder() local 249 sSessionsToPlaceholderVersions.put(uri, currentVersion == null ? 0 : currentVersion + 1); in addEmptyPlaceholder()
|
/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/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/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.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 | 176 final int currentVersion = sharedPreferences.getInt( in dumpAnomalyDetection() local 179 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() 594 currentVersion.incrementAndGet()));
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | ThirdPartyProject.prop | 3 currentVersion=1.4
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
D | ThirdPartyProject.prop | 3 currentVersion=0.6
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 122 public void upgrade(SettingsManager settingsManager, int lastVersion, int currentVersion) { in upgrade() argument
|