/packages/services/Telephony/tests/src/com/android/phone/ |
D | LocationAccessPolicyTest.java | 136 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/ |
D | AppStateAppOpsBridgeTest.java | 100 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/ |
D | AppOpsSettingsTest.java | 18 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/ |
D | PictureInPictureDetails.java | 18 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/ |
D | PictureInPictureDetails.java | 18 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/ |
D | Permissions.java | 281 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/ |
D | MockLocationAppPreferenceControllerTest.java | 77 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/ |
D | AppPermissionGroup.java | 21 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/ |
D | BatteryUtilsTest.java | 497 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()
|
D | BackgroundActivityPreferenceControllerTest.java | 123 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/ |
D | DeviceAdminAddTest.java | 96 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/ |
D | FinancialAppsController.java | 103 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/ |
D | MockLocationAppPreferenceController.java | 110 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/ |
D | MockLocationAppPreferenceController.java | 116 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/ |
D | PictureInPicture.java | 64 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/ |
D | WriteSettingsDetails.java | 100 ? 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/ |
D | WriteSettingsDetails.java | 100 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanWriteSettings() 113 if (result == AppOpsManager.MODE_ALLOWED) { in canWriteSettings()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | LocalCallingIdentity.java | 22 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/ |
D | VoicemailContentProvider.java | 18 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/ |
D | AppOpsCategory.java | 298 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/ |
D | AppOpsCategory.java | 298 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/ |
D | TelecomServiceImpl.java | 1402 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/ |
D | UnrestrictAppAction.java | 51 AppOpsManager.MODE_ALLOWED); in handlePositiveAction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/ |
D | UnrestrictAppAction.java | 51 AppOpsManager.MODE_ALLOWED); in handlePositiveAction()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateInstallAppsBridgeTest.java | 39 appState.appOpMode = AppOpsManager.MODE_ALLOWED; in testInstallAppsStateCanInstallApps()
|