/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ManageAppOp.java | 178 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/ |
D | AppStateInstallAppsBridge.java | 96 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()
|
D | AppStateAppOpsBridge.java | 138 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()
|
D | AppStateWriteSettingsBridge.java | 70 this.appOpMode = permissionState.appOpMode; in WriteSettingsState()
|
D | AppStateUsageBridge.java | 67 this.appOpMode = permissionState.appOpMode; in UsageState()
|
D | AppStateManageExternalStorageBridge.java | 57 ((PermissionState) app.extraInfo).appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in loadAllExtraInfo() 66 ps.appOpMode = mAppOpsManager.unsafeCheckOpNoThrow(APP_OP_STR, uid, pkg); in getPermissionInfo()
|
D | AppStateOverlayBridge.java | 79 this.appOpMode = permissionState.appOpMode; in OverlayState()
|
D | AppStateMediaManagementAppsBridge.java | 71 permissionState.appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in createPermissionState()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | Permissions.java | 295 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/ |
D | AppStateInstallAppsBridgeTest.java | 39 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/ |
D | AppStateAppOpsBridgeTest.java | 70 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/ |
D | AppStateChangeWifiStateBridge.java | 74 this.appOpMode = permissionState.appOpMode; in WifiSettingsState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ManageExternalStorageDetailsTest.java | 161 state.appOpMode = enabled ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED; in injectPermissionState() 191 res.appOpMode = mUidToOpModeMap.get(uid); in mockAppOpsOperations()
|