Home
last modified time | relevance | path

Searched refs:permissionState (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateOverlayBridge.java53 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getOverlayInfo() local
54 return new OverlayState(permissionState); in getOverlayInfo()
76 public OverlayState(PermissionState permissionState) { in OverlayState() argument
77 super(permissionState.packageName, permissionState.userHandle); in OverlayState()
78 this.packageInfo = permissionState.packageInfo; in OverlayState()
79 this.appOpMode = permissionState.appOpMode; in OverlayState()
80 this.permissionDeclared = permissionState.permissionDeclared; in OverlayState()
81 this.staticPermissionGranted = permissionState.staticPermissionGranted; in OverlayState()
82 controlEnabled = !DISABLE_PACKAGE_LIST.contains(permissionState.packageName); in OverlayState()
DAppStateWriteSettingsBridge.java52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo() local
53 return new WriteSettingsState(permissionState); in getWriteSettingsInfo()
67 public WriteSettingsState(PermissionState permissionState) { in WriteSettingsState() argument
68 super(permissionState.packageName, permissionState.userHandle); in WriteSettingsState()
69 this.packageInfo = permissionState.packageInfo; in WriteSettingsState()
70 this.appOpMode = permissionState.appOpMode; in WriteSettingsState()
71 this.permissionDeclared = permissionState.permissionDeclared; in WriteSettingsState()
72 this.staticPermissionGranted = permissionState.staticPermissionGranted; in WriteSettingsState()
DAppStateUsageBridge.java51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo() local
52 return new UsageState(permissionState); in getUsageInfo()
57 public UsageState(PermissionState permissionState) { in UsageState() argument
58 super(permissionState.packageName, permissionState.userHandle); in UsageState()
59 this.packageInfo = permissionState.packageInfo; in UsageState()
60 this.appOpMode = permissionState.appOpMode; in UsageState()
61 this.permissionDeclared = permissionState.permissionDeclared; in UsageState()
62 this.staticPermissionGranted = permissionState.staticPermissionGranted; in UsageState()
DAppStateAppOpsBridge.java100 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo() local
103 permissionState.packageInfo = mIPackageManager.getPackageInfo(pkg, in getPermissionInfo()
105 permissionState.userHandle.getIdentifier()); in getPermissionInfo()
106 if (permissionState.packageInfo != null) { in getPermissionInfo()
108 String[] requestedPermissions = permissionState.packageInfo.requestedPermissions; in getPermissionInfo()
109 int[] permissionFlags = permissionState.packageInfo.requestedPermissionsFlags; in getPermissionInfo()
113 permissionState.permissionDeclared = true; in getPermissionInfo()
116 permissionState.staticPermissionGranted = true; in getPermissionInfo()
126 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
131 return permissionState; in getPermissionInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateOverlayBridge.java53 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getOverlayInfo() local
54 return new OverlayState(permissionState); in getOverlayInfo()
76 public OverlayState(PermissionState permissionState) { in OverlayState() argument
77 super(permissionState.packageName, permissionState.userHandle); in OverlayState()
78 this.packageInfo = permissionState.packageInfo; in OverlayState()
79 this.appOpMode = permissionState.appOpMode; in OverlayState()
80 this.permissionDeclared = permissionState.permissionDeclared; in OverlayState()
81 this.staticPermissionGranted = permissionState.staticPermissionGranted; in OverlayState()
82 controlEnabled = !DISABLE_PACKAGE_LIST.contains(permissionState.packageName); in OverlayState()
DAppStateWriteSettingsBridge.java52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo() local
53 return new WriteSettingsState(permissionState); in getWriteSettingsInfo()
67 public WriteSettingsState(PermissionState permissionState) { in WriteSettingsState() argument
68 super(permissionState.packageName, permissionState.userHandle); in WriteSettingsState()
69 this.packageInfo = permissionState.packageInfo; in WriteSettingsState()
70 this.appOpMode = permissionState.appOpMode; in WriteSettingsState()
71 this.permissionDeclared = permissionState.permissionDeclared; in WriteSettingsState()
72 this.staticPermissionGranted = permissionState.staticPermissionGranted; in WriteSettingsState()
DAppStateUsageBridge.java51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo() local
52 return new UsageState(permissionState); in getUsageInfo()
57 public UsageState(PermissionState permissionState) { in UsageState() argument
58 super(permissionState.packageName, permissionState.userHandle); in UsageState()
59 this.packageInfo = permissionState.packageInfo; in UsageState()
60 this.appOpMode = permissionState.appOpMode; in UsageState()
61 this.permissionDeclared = permissionState.permissionDeclared; in UsageState()
62 this.staticPermissionGranted = permissionState.staticPermissionGranted; in UsageState()
DAppStateAppOpsBridge.java100 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo() local
103 permissionState.packageInfo = mIPackageManager.getPackageInfo(pkg, in getPermissionInfo()
105 permissionState.userHandle.getIdentifier()); in getPermissionInfo()
106 if (permissionState.packageInfo != null) { in getPermissionInfo()
108 String[] requestedPermissions = permissionState.packageInfo.requestedPermissions; in getPermissionInfo()
109 int[] permissionFlags = permissionState.packageInfo.requestedPermissionsFlags; in getPermissionInfo()
113 permissionState.permissionDeclared = true; in getPermissionInfo()
116 permissionState.staticPermissionGranted = true; in getPermissionInfo()
126 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
131 return permissionState; in getPermissionInfo()
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java65 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo() local
66 return new WifiSettingsState(permissionState); in getWifiSettingsInfo()
70 public WifiSettingsState(PermissionState permissionState) { in WifiSettingsState() argument
71 super(permissionState.packageName, permissionState.userHandle); in WifiSettingsState()
72 this.packageInfo = permissionState.packageInfo; in WifiSettingsState()
73 this.appOpMode = permissionState.appOpMode; in WifiSettingsState()
74 this.permissionDeclared = permissionState.permissionDeclared; in WifiSettingsState()
75 this.staticPermissionGranted = permissionState.staticPermissionGranted; in WifiSettingsState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DAppStateChangeWifiStateBridge.java65 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo() local
66 return new WifiSettingsState(permissionState); in getWifiSettingsInfo()
70 public WifiSettingsState(PermissionState permissionState) { in WifiSettingsState() argument
71 super(permissionState.packageName, permissionState.userHandle); in WifiSettingsState()
72 this.packageInfo = permissionState.packageInfo; in WifiSettingsState()
73 this.appOpMode = permissionState.appOpMode; in WifiSettingsState()
74 this.permissionDeclared = permissionState.permissionDeclared; in WifiSettingsState()
75 this.staticPermissionGranted = permissionState.staticPermissionGranted; in WifiSettingsState()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java149 PermissionState permissionState = packageStateMap.get(packageOp.getPackageName()); in loadAppOpModes() local
150 if (permissionState == null) { in loadAppOpModes()
160 permissionState.mAppOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpModes()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoAppPermissionFragment.java376 private void setSelectedPermissionState(@NonNull TwoStatePreference permissionState) { in setSelectedPermissionState() argument
377 permissionState.setChecked(true); in setSelectedPermissionState()
378 if (permissionState != mAlwaysPermissionPreference) { in setSelectedPermissionState()
381 if (permissionState != mForegroundOnlyPermissionPreference) { in setSelectedPermissionState()
384 if (permissionState != mDenyPermissionPreference) { in setSelectedPermissionState()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAppPermissionFragment.java375 PermissionState permissionState = previousPermissionSnapshot.get(i); in logPermissionChanges() local
376 boolean wasGranted = permissionState.permissionGranted; in logPermissionChanges()
377 Permission permission = mGroup.getPermission(permissionState.permissionName); in logPermissionChanges()
384 permissionState.permissionName); in logPermissionChanges()
391 permissionState.permissionName, isGranted); in logPermissionChanges()
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java202 final int permissionState = context.checkSelfPermission(permission); in hasPermission() local
203 sPermissions.put(permission, permissionState); in hasPermission()