Merge changes from topics "RefactorIR", "appExclusionPrefix", "reStartVpnProfile" am: 09940f74cb

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2145799

Change-Id: I28277ec8feb8fbf06e8dd323f99e4c2f610e2d2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chiachang Wang
2022-07-11 01:48:16 +00:00
committed by Automerger Merge Worker

View File

@@ -769,8 +769,7 @@ public class VpnManagerService extends IVpnManager.Stub {
} }
}; };
@VisibleForTesting private void onUserStarted(int userId) {
void onUserStarted(int userId) {
synchronized (mVpns) { synchronized (mVpns) {
Vpn userVpn = mVpns.get(userId); Vpn userVpn = mVpns.get(userId);
if (userVpn != null) { if (userVpn != null) {
@@ -854,8 +853,7 @@ public class VpnManagerService extends IVpnManager.Stub {
} }
} }
@VisibleForTesting private void onPackageRemoved(String packageName, int uid, boolean isReplacing) {
void onPackageRemoved(String packageName, int uid, boolean isReplacing) {
if (TextUtils.isEmpty(packageName) || uid < 0) { if (TextUtils.isEmpty(packageName) || uid < 0) {
Log.wtf(TAG, "Invalid package in onPackageRemoved: " + packageName + " | " + uid); Log.wtf(TAG, "Invalid package in onPackageRemoved: " + packageName + " | " + uid);
return; return;
@@ -878,8 +876,7 @@ public class VpnManagerService extends IVpnManager.Stub {
} }
} }
@VisibleForTesting private void onPackageAdded(String packageName, int uid, boolean isReplacing) {
void onPackageAdded(String packageName, int uid, boolean isReplacing) {
if (TextUtils.isEmpty(packageName) || uid < 0) { if (TextUtils.isEmpty(packageName) || uid < 0) {
Log.wtf(TAG, "Invalid package in onPackageAdded: " + packageName + " | " + uid); Log.wtf(TAG, "Invalid package in onPackageAdded: " + packageName + " | " + uid);
return; return;