Lines Matching refs:oldPackage
203 * with {@code oldPackage}. If they are the same, the prepared
205 * {@code oldPackage} is {@code null}, the comparison is omitted.
214 * @param oldPackage The package name of the old VPN application.
218 public synchronized boolean prepare(String oldPackage, String newPackage) {
219 if (oldPackage != null && getAppUid(oldPackage, mUserHandle) != mOwnerUID) {
222 if (!oldPackage.equals(VpnConfig.LEGACY_VPN) && isVpnUserPreConsented(oldPackage)) {
223 prepareInternal(oldPackage);