use of com.android.server.connectivity.Vpn in project android_frameworks_base by ResurrectionRemix.
the class ConnectivityService method onUserStop.
private void onUserStop(int userId) {
synchronized (mVpns) {
Vpn userVpn = mVpns.get(userId);
if (userVpn == null) {
loge("Stopped user has no VPN");
return;
}
userVpn.onUserStopped();
mVpns.delete(userId);
}
}
use of com.android.server.connectivity.Vpn in project android_frameworks_base by ResurrectionRemix.
the class ConnectivityService method onUserAdded.
private void onUserAdded(int userId) {
synchronized (mVpns) {
final int vpnsSize = mVpns.size();
for (int i = 0; i < vpnsSize; i++) {
Vpn vpn = mVpns.valueAt(i);
vpn.onUserAdded(userId);
}
}
}
use of com.android.server.connectivity.Vpn in project android_frameworks_base by ResurrectionRemix.
the class ConnectivityService method onUserRemoved.
private void onUserRemoved(int userId) {
synchronized (mVpns) {
final int vpnsSize = mVpns.size();
for (int i = 0; i < vpnsSize; i++) {
Vpn vpn = mVpns.valueAt(i);
vpn.onUserRemoved(userId);
}
}
}
use of com.android.server.connectivity.Vpn in project android_frameworks_base by ResurrectionRemix.
the class ConnectivityService method getAlwaysOnVpnPackage.
@Override
public String getAlwaysOnVpnPackage(int userId) {
enforceConnectivityInternalPermission();
enforceCrossUserPermission(userId);
synchronized (mVpns) {
Vpn vpn = mVpns.get(userId);
if (vpn == null) {
Slog.w(TAG, "User " + userId + " has no Vpn configuration");
return null;
}
return vpn.getAlwaysOnPackage();
}
}
use of com.android.server.connectivity.Vpn in project android_frameworks_base by DirtyUnicorns.
the class ConnectivityService method onUserStop.
private void onUserStop(int userId) {
synchronized (mVpns) {
Vpn userVpn = mVpns.get(userId);
if (userVpn == null) {
loge("Stopped user has no VPN");
return;
}
userVpn.onUserStopped();
mVpns.delete(userId);
}
}
Aggregations