Home | History | Annotate | Download | only in policy

Lines Matching refs:cfg

177         VpnConfig cfg = mCurrentVpns.get(mVpnUserId);
178 if (cfg != null) {
179 return getNameForVpnConfig(cfg, new UserHandle(mVpnUserId));
203 VpnConfig cfg = mCurrentVpns.get(profileId);
204 if (cfg != null) {
205 return getNameForVpnConfig(cfg, UserHandle.of(profileId));
234 VpnConfig cfg = mCurrentVpns.get(mVpnUserId);
235 if (cfg == null) {
239 String packageName = getPackageNameForVpnConfig(cfg);
299 private String getNameForVpnConfig(VpnConfig cfg, UserHandle user) {
300 if (cfg.legacy) {
304 final String vpnPackage = cfg.user;
328 VpnConfig cfg = mConnectivityManagerService.getVpnConfig(user.id);
329 if (cfg == null) {
331 } else if (cfg.legacy) {
339 vpns.put(user.id, cfg);
349 private String getPackageNameForVpnConfig(VpnConfig cfg) {
350 if (cfg.legacy) {
353 return cfg.user;