Home
last modified time | relevance | path

Searched refs:MODE_ALLOWED (Results 1 – 25 of 73) sorted by relevance

123

/packages/services/Telephony/tests/src/com/android/phone/
DLocationAccessPolicyTest.java136 this.coarseAppOp = coarseAppOp == AppOpsManager.MODE_ALLOWED ? coarseAppOp : fineAppOp; in Scenario()
239 .setFineAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
251 .setFineAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
263 .setCoarseAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
287 .setCoarseAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
300 .setCoarseAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
312 .setCoarseAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
335 .setCoarseAppOp(AppOpsManager.MODE_ALLOWED) in getScenarios()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java100 addPackageWithPermission(packageInfo, AppOpsManager.MODE_ALLOWED); in androidPackagesIgnored()
113 addPackageWithPermission(packageInfo, AppOpsManager.MODE_ALLOWED); in selfPackageIgnored()
142 addPackageWithPermission(packageInfo, AppOpsManager.MODE_ALLOWED); in unavailablePackageIgnored()
157 addPackageWithPermission(packageInfo, AppOpsManager.MODE_ALLOWED); in loadsAppOpsExtraInfo_modeAllowed_isPermissible()
202 addPackageWithPermission(packageInfo1, AppOpsManager.MODE_ALLOWED); in loadsAppOpsExtraInfo_multipleApps()
208 addPackageWithPermission(packageInfo2, AppOpsManager.MODE_ALLOWED); in loadsAppOpsExtraInfo_multipleApps()
222 addPackageWithPermission(packageInfo1, AppOpsManager.MODE_ALLOWED); in loadsAppOpExtraInfo_multipleProfiles()
240 packageInfo2.packageName, AppOpsManager.MODE_ALLOWED); in loadsAppOpExtraInfo_multipleProfiles()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java18 import static android.app.AppOpsManager.MODE_ALLOWED;
172 findAndVerifySwitchState(appOpMode == MODE_ALLOWED || appOpMode == MODE_DEFAULT); in testAppDetailScreenForAppOp()
180 testAppDetailScreenForAppOp(MODE_ALLOWED, user.id); in testSingleApp()
187 final boolean initialState = (fromAppOp == MODE_ALLOWED || fromAppOp == MODE_DEFAULT); in testSwitchToggle()
202 testSwitchToggle(MODE_ALLOWED, MODE_ERRORED); in testIfSwitchTogglesAppOp()
203 testSwitchToggle(MODE_ERRORED, MODE_ALLOWED); in testIfSwitchTogglesAppOp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java18 import static android.app.AppOpsManager.MODE_ALLOWED;
97 final int newMode = value ? MODE_ALLOWED : MODE_ERRORED; in setEnterPipStateForPackage()
107 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED; in getEnterPipStateForPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java18 import static android.app.AppOpsManager.MODE_ALLOWED;
97 final int newMode = value ? MODE_ALLOWED : MODE_ERRORED; in setEnterPipStateForPackage()
107 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED; in getEnterPipStateForPackage()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java281 return appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissionAndAppOpGranted()
286 || appOpMode == AppOpsManager.MODE_ALLOWED; in isPermissionAndAppOpGranted()
304 if (foregroundAppOpMode == AppOpsManager.MODE_ALLOWED) { in isPermissionAndAppOpGranted()
328 appOpMode = AppOpsManager.MODE_ALLOWED; in grantPermissionAndAppOp()
336 appOpMode = AppOpsManager.MODE_ALLOWED; in grantPermissionAndAppOp()
353 AppOpsManager.MODE_ALLOWED, context); in grantPermissionAndAppOp()
507 || appOpMode == AppOpsManager.MODE_ALLOWED)) { in revokePermissionAndAppOp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java77 Collections.singletonList(createOpEntry(AppOpsManager.MODE_ALLOWED))); in updateState_foobarAppSelected_shouldSetSummaryToFoobar()
104 Collections.singletonList(createOpEntry(AppOpsManager.MODE_ALLOWED))); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
116 eq(AppOpsManager.MODE_ALLOWED)); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java21 import static android.app.AppOpsManager.MODE_ALLOWED;
282 appOpAllowed = appOpsMode == MODE_ALLOWED || appOpsMode == MODE_FOREGROUND; in create()
321 packageInfo.packageName) == MODE_ALLOWED) { in create()
424 packageInfo.applicationInfo.uid, packageInfo.packageName) == MODE_ALLOWED; in AppPermissionGroup()
718 wasChanged |= setAppOpMode(foregroundPermission.getAppOp(), uid, MODE_ALLOWED); in allowAppOp()
732 wasChanged = setAppOpMode(permission.getAppOp(), uid, MODE_ALLOWED); in allowAppOp()
738 wasChanged = setAppOpMode(permission.getAppOp(), uid, MODE_ALLOWED); in allowAppOp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java497 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOpsManager).checkOpNoThrow( in testBackgroundRestrictionOn_restrictionOff_returnFalse()
609 mBatteryUtils.setForceAppStandby(UID, HIGH_SDK_PACKAGE, AppOpsManager.MODE_ALLOWED); in testSetForceAppStandby_unrestrictApp_deleteTime()
626 PACKAGE_NAME)).thenReturn(AppOpsManager.MODE_ALLOWED); in testIsForceAppStandbyEnabled_disabled_returnFalse()
708 HIGH_SDK_PACKAGE, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby_appRestricted_clearAndReturnTrue()
717 PACKAGE_NAME, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby_appInvalid_returnFalse()
724 PACKAGE_NAME)).thenReturn(AppOpsManager.MODE_ALLOWED); in clearForceAppStandby_appUnrestricted_returnFalse()
728 PACKAGE_NAME, AppOpsManager.MODE_ALLOWED); in clearForceAppStandby_appUnrestricted_returnFalse()
DBackgroundActivityPreferenceControllerTest.java123 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOpsManager) in handlePreferenceTreeClick_restrictApp_showDialog()
144 LOW_SDK_PACKAGE)).thenReturn(AppOpsManager.MODE_ALLOWED); in updateState_noError_setEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAddTest.java96 verify(mBatteryUtils).setForceAppStandby(UID, PACKAGE_NAME, AppOpsManager.MODE_ALLOWED); in unrestrictAppIfPossible_appRestricted_unrestrictApp()
106 AppOpsManager.MODE_ALLOWED); in unrestrictAppIfPossible_appUnrestricted_doNothing()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/financialapps/
DFinancialAppsController.java103 pkgName) == AppOpsManager.MODE_ALLOWED); in updateList()
122 (Boolean) newValue ? AppOpsManager.MODE_ALLOWED in updateList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DMockLocationAppPreferenceController.java110 mockLocationAppName, AppOpsManager.MODE_ALLOWED); in writeMockLocation()
159 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java116 mockLocationAppName, AppOpsManager.MODE_ALLOWED); in writeMockLocation()
165 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DPictureInPicture.java64 info.info.packageName) == AppOpsManager.MODE_ALLOWED;
122 (Boolean) newValue ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in bindPreference()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DWriteSettingsDetails.java100 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanWriteSettings()
113 if (result == AppOpsManager.MODE_ALLOWED) { in canWriteSettings()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DWriteSettingsDetails.java100 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanWriteSettings()
113 if (result == AppOpsManager.MODE_ALLOWED) { in canWriteSettings()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java22 import static android.app.AppOpsManager.MODE_ALLOWED;
224 .checkOp(OP_LEGACY_STORAGE, uid, getPackageName()) == MODE_ALLOWED; in isLegacyInternal()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailContentProvider.java18 import static android.app.AppOpsManager.MODE_ALLOWED;
125 return MODE_ALLOWED; in enforceReadPermissionInner()
136 return MODE_ALLOWED; in enforceWritePermissionInner()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsCategory.java298 item.getPrimaryOpMode() == AppOpsManager.MODE_ALLOWED); in getView()
339 int mode = checked ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED; in onListItemClick()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java298 item.getPrimaryOpMode() == AppOpsManager.MODE_ALLOWED); in getView()
339 int mode = checked ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED; in onListItemClick()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1402 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED;
1868 != AppOpsManager.MODE_ALLOWED) { in enforceAnswerCallPermission()
1887 != AppOpsManager.MODE_ALLOWED)) { in enforceAcceptHandoverPermission()
2159 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED; in canReadPhoneState()
2208 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED; in canCallPhone()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java51 AppOpsManager.MODE_ALLOWED); in handlePositiveAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java51 AppOpsManager.MODE_ALLOWED); in handlePositiveAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateInstallAppsBridgeTest.java39 appState.appOpMode = AppOpsManager.MODE_ALLOWED; in testInstallAppsStateCanInstallApps()

123