Home
last modified time | relevance | path

Searched refs:appOpMode (Results 1 – 13 of 13) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageAppOp.java178 public final int appOpMode;
181 int appOpMode) {
184 this.appOpMode = appOpMode;
191 if (appOpMode == AppOpsManager.MODE_DEFAULT) {
194 return appOpMode == AppOpsManager.MODE_ALLOWED;
202 return appOpMode != AppOpsManager.MODE_DEFAULT || permissionRequested;
209 + ", appOpMode: " + appOpMode
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateInstallAppsBridge.java96 appState.appOpMode = getAppOpMode(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, uid, in createInstallAppsStateFor()
106 int appOpMode; field in AppStateInstallAppsBridge.InstallAppsState
109 this.appOpMode = AppOpsManager.MODE_DEFAULT; in InstallAppsState()
113 return appOpMode == AppOpsManager.MODE_ALLOWED; in canInstallApps()
117 return appOpMode != AppOpsManager.MODE_DEFAULT || permissionRequested; in isPotentialAppSource()
124 sb.append(", appOpMode: " + appOpMode); in toString()
DAppStateAppOpsBridge.java138 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
288 pe.appOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpsStates()
340 public int appOpMode; field in AppStateAppOpsBridge.PermissionState
344 this.appOpMode = AppOpsManager.MODE_DEFAULT; in PermissionState()
352 if (appOpMode == AppOpsManager.MODE_DEFAULT) { in isPermissible()
355 return appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissible()
DAppStateWriteSettingsBridge.java70 this.appOpMode = permissionState.appOpMode; in WriteSettingsState()
DAppStateUsageBridge.java67 this.appOpMode = permissionState.appOpMode; in UsageState()
DAppStateManageExternalStorageBridge.java57 ((PermissionState) app.extraInfo).appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in loadAllExtraInfo()
66 ps.appOpMode = mAppOpsManager.unsafeCheckOpNoThrow(APP_OP_STR, uid, pkg); in getPermissionInfo()
DAppStateOverlayBridge.java79 this.appOpMode = permissionState.appOpMode; in OverlayState()
DAppStateMediaManagementAppsBridge.java71 permissionState.appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in createPermissionState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DPermissions.java295 Integer appOpMode = getAppOpMode(packageName, appOp, context); in isPermissionAndAppOpGranted() local
296 if (appOpMode == null) { in isPermissionAndAppOpGranted()
302 return appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissionAndAppOpGranted()
306 return appOpMode == AppOpsManager.MODE_FOREGROUND in isPermissionAndAppOpGranted()
307 || appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissionAndAppOpGranted()
343 int appOpMode; in grantPermissionAndAppOp() local
347 appOpMode = AppOpsManager.MODE_ALLOWED; in grantPermissionAndAppOp()
353 appOpMode = AppOpsManager.MODE_FOREGROUND; in grantPermissionAndAppOp()
355 appOpMode = AppOpsManager.MODE_ALLOWED; in grantPermissionAndAppOp()
358 permissionOrAppOpChanged |= setAppOpUidMode(packageName, appOp, appOpMode, context); in grantPermissionAndAppOp()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateInstallAppsBridgeTest.java39 appState.appOpMode = AppOpsManager.MODE_ALLOWED; in testInstallAppsStateCanInstallApps()
42 appState.appOpMode = AppOpsManager.MODE_ERRORED; in testInstallAppsStateCanInstallApps()
52 appState.appOpMode = AppOpsManager.MODE_ERRORED; in testInstallAppsStateIsPotentialAppSource()
56 appState.appOpMode = AppOpsManager.MODE_DEFAULT; in testInstallAppsStateIsPotentialAppSource()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateAppOpsBridgeTest.java70 permissionState.appOpMode = AppOpsManager.MODE_DEFAULT; in permissionState_modeDefault_IsPermissible()
83 permissionState.appOpMode = AppOpsManager.MODE_ERRORED; in permissionState_modeErrored_IsPermissible()
96 permissionState.appOpMode = AppOpsManager.MODE_ALLOWED; in permissionState_modeAllowed_IsPermissible()
109 permissionState.appOpMode = AppOpsManager.MODE_IGNORED; in permissionState_modeIgnored_IsPermissible()
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java74 this.appOpMode = permissionState.appOpMode; in WifiSettingsState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DManageExternalStorageDetailsTest.java161 state.appOpMode = enabled ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED; in injectPermissionState()
191 res.appOpMode = mUidToOpModeMap.get(uid); in mockAppOpsOperations()