Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageAppOp.java159 public final int appOpMode;
162 int appOpMode) {
165 this.appOpMode = appOpMode;
172 if (appOpMode == AppOpsManager.MODE_DEFAULT) {
175 return appOpMode == AppOpsManager.MODE_ALLOWED;
183 return appOpMode != AppOpsManager.MODE_DEFAULT || permissionRequested;
190 + ", appOpMode: " + appOpMode
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java126 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
268 pe.appOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpsStates()
320 public int appOpMode; field in AppStateAppOpsBridge.PermissionState
324 this.appOpMode = AppOpsManager.MODE_DEFAULT; in PermissionState()
332 if (appOpMode == AppOpsManager.MODE_DEFAULT) { in isPermissible()
335 return appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissible()
DAppStateWriteSettingsBridge.java70 this.appOpMode = permissionState.appOpMode; in WriteSettingsState()
DAppStateUsageBridge.java60 this.appOpMode = permissionState.appOpMode; in UsageState()
DAppStateOverlayBridge.java79 this.appOpMode = permissionState.appOpMode; in OverlayState()
/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.java126 permissionState.appOpMode = ops.get(0).getOps().get(0).getMode(); in getPermissionInfo()
268 pe.appOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpsStates()
320 public int appOpMode; field in AppStateAppOpsBridge.PermissionState
324 this.appOpMode = AppOpsManager.MODE_DEFAULT; in PermissionState()
332 if (appOpMode == AppOpsManager.MODE_DEFAULT) { in isPermissible()
335 return appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissible()
DAppStateWriteSettingsBridge.java70 this.appOpMode = permissionState.appOpMode; in WriteSettingsState()
DAppStateUsageBridge.java60 this.appOpMode = permissionState.appOpMode; in UsageState()
DAppStateOverlayBridge.java79 this.appOpMode = permissionState.appOpMode; in OverlayState()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java274 Integer appOpMode = getAppOpMode(packageName, appOp, context); in isPermissionAndAppOpGranted() local
275 if (appOpMode == null) { in isPermissionAndAppOpGranted()
281 return appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissionAndAppOpGranted()
285 return appOpMode == AppOpsManager.MODE_FOREGROUND in isPermissionAndAppOpGranted()
286 || appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissionAndAppOpGranted()
325 int appOpMode; in grantPermissionAndAppOp() local
328 appOpMode = AppOpsManager.MODE_ALLOWED; in grantPermissionAndAppOp()
334 appOpMode = AppOpsManager.MODE_FOREGROUND; in grantPermissionAndAppOp()
336 appOpMode = AppOpsManager.MODE_ALLOWED; in grantPermissionAndAppOp()
339 permissionOrAppOpChanged = setAppOpMode(packageName, appOp, appOpMode, context); in grantPermissionAndAppOp()
[all …]
/packages/apps/Settings/tests/robotests/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/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java161 private void testAppDetailScreenForAppOp(int appOpMode, int userId) throws Exception { in testAppDetailScreenForAppOp() argument
168 mPackageManager.getPackageUidAsUser(mPackageName, userId), mPackageName, appOpMode); in testAppDetailScreenForAppOp()
172 findAndVerifySwitchState(appOpMode == MODE_ALLOWED || appOpMode == MODE_DEFAULT); in testAppDetailScreenForAppOp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DAppStateChangeWifiStateBridge.java73 this.appOpMode = permissionState.appOpMode; in WifiSettingsState()
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java73 this.appOpMode = permissionState.appOpMode; in WifiSettingsState()