Home
last modified time | relevance | path

Searched refs:setUidMode (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DManageExternalStorageDetailsTest.java109 .setUidMode(anyInt(), anyInt(), anyInt()); in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager()
144 .setUidMode(anyInt(), anyInt(), anyInt()); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager()
181 .setUidMode(anyInt(), anyInt(), anyInt()); in mockAppOpsOperations()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DAppOpsManagerCompat.java65 public void setUidMode(int code, int uid, @AppOpsManager.Mode int mode) { in setUidMode() method in AppOpsManagerCompat
66 mAppOpsManager.setUidMode(code, uid, mode); in setUidMode()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DHibernationSwitchPreferenceTest.kt221 verify(appOpsManager).setUidMode(OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, UID, MODE_ALLOWED) in An app is exempted - on click()
233 verify(appOpsManager).setUidMode(OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, UID, MODE_IGNORED) in An app is not exempted - on click()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/appinfo/
DHibernationSwitchPreferenceController.java129 mAppOpsManager.setUidMode(OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, mPackageUid, in handlePreferenceChanged()
/packages/apps/Settings/src/com/android/settings/notification/app/
DFullScreenIntentPermissionPreferenceController.kt109 appOpsManager.setUidMode(OP_USE_FULL_SCREEN_INTENT, uid, mode) in setPermissionGranted()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DMediaManagementAppsDetails.java78 mAppOpsManager.setUidMode(AppOpsManager.OP_MANAGE_MEDIA, mPackageInfo.applicationInfo.uid, in setCanManageMedia()
DTurnScreenOnDetails.java111 mAppOpsManager.setUidMode(AppOpsManager.OPSTR_TURN_SCREEN_ON, in setCanTurnScreenOn()
DHibernationSwitchPreferenceController.java137 mAppOpsManager.setUidMode(OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, mPackageUid, in onPreferenceChange()
DAlarmsAndRemindersDetails.java109 mAppOpsManager.setUidMode(AppOpsManager.OPSTR_SCHEDULE_EXACT_ALARM, uid, in setCanScheduleAlarms()
DLongBackgroundTasksDetails.java109 mAppOpsManager.setUidMode(AppOpsManager.OPSTR_RUN_USER_INITIATED_JOBS, uid, in setCanRunUserInitiatedJobs()
DManageExternalStorageDetails.java112 mAppOpsManager.setUidMode(AppOpsManager.OP_MANAGE_EXTERNAL_STORAGE, in setManageExternalStorageState()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPermissionTest30WithBluetooth.kt154 .setUidMode(appOp, packageManager.getPackageUid(packageName, 0), appOpMode) in setAppOp()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DHibernationSwitchPreference.kt148 appOpsManager.setUidMode( in isArchivingEnabled()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DPermissions.java870 int mode, boolean setUidMode, @NonNull UserHandle user, @NonNull Context context) { in setAppOpModeAsUser() argument
883 if (setUidMode) { in setAppOpModeAsUser()
884 appOpsManager.setUidMode(appOp, applicationInfo.uid, mode); in setAppOpModeAsUser()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaGrantsAppOpStateTest.java196 sAppOpsManager.setUidMode(op, sTestAppUid, mode); in modifyAppOpAndPoll()
DPermissionActivityTest.java497 getContext().getSystemService(AppOpsManager.class).setUidMode(op, uid, mode); in modifyAppOp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java229 mAppOpsManager.setUidMode(OP_INTERACT_ACROSS_PROFILES, uid, mode); in setInteractAcrossProfilesAppOpForPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DFullScreenIntentPermissionPreferenceControllerTest.kt273 verify(appOpsManager).setUidMode(OP_USE_FULL_SCREEN_INTENT, TEST_UID, expectedMode) in verifySetAppOpMode()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java144 () -> sContext.getSystemService(AppOpsManager.class).setUidMode(op, in setAppOpByName()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionGroupsViewModel.kt368 aom.setUidMode(OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, lightPackageInfo.uid, mode) in <lambda>()
DAppPermissionViewModel.kt1369 aom.setUidMode(OPSTR_MANAGE_EXTERNAL_STORAGE, uid, mode) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/utils/
DGrantRevokeTests.kt378 verify(aom).setUidMode(appOpName, TEST_UID, expectedMode) in verifyAppOpState()
380 verify(aom, never()).setUidMode(eq(appOpName), eq(TEST_UID), anyInt()) in verifyAppOpState()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPermissionControllerTest.java163 sContext.getSystemService(AppOpsManager.class).setUidMode(permissionToOp(perm), in setAppOp()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java680 getContext().getSystemService(AppOpsManager.class).setUidMode(op, uid, mode); in modifyAppOp()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java824 mAppOps.setUidMode(op, uid, mode);

12