Home
last modified time | relevance | path

Searched refs:appOpsManager (Results 1 – 11 of 11) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DReviewAccessibilityServicesActivity.java75 AppOpsManager appOpsManager = getSystemService(AppOpsManager.class); in createDialogView() local
86 long lastAccessTime = getLastAccessTime(appInfo, appOpsManager); in createDialogView()
155 @NonNull AppOpsManager appOpsManager) { in getLastAccessTime() argument
156 List<AppOpsManager.PackageOps> ops = appOpsManager.getOpsForPackage(appInfo.uid, in getLastAccessTime()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/financialapps/
DFinancialAppsController.java73 final AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in updateList() local
98 appOpsManager.checkOp( in updateList()
116 appOpsManager.setMode( in updateList()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java224 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in create() local
231 userHandle, delayChanges, appOpsManager); in create()
280 int appOpsMode = appOpsManager.unsafeCheckOpRaw(appOp, in create()
340 delayChanges, appOpsManager); in create()
392 @NonNull AppOpsManager appOpsManager) { in AppPermissionGroup() argument
401 mAppOps = appOpsManager; in AppPermissionGroup()
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java61 final AppOpsManager appOpsManager = in hasAppOp() local
63 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(), in hasAppOp()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java259 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in grantSystemAlertWindowPermission() local
260 if (appOpsManager == null) { in grantSystemAlertWindowPermission()
273 appOpsManager.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, packageUid, packageName, in grantSystemAlertWindowPermission()
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java591 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService( in canUseCamera() local
596 return appOpsManager != null && appOpsManager.noteOp(AppOpsManager.OP_CAMERA, in canUseCamera()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java58 public static List<AppInfo> getRestrictedAppsList(AppOpsManager appOpsManager, in getRestrictedAppsList() argument
61 final List<AppOpsManager.PackageOps> packageOpsList = appOpsManager.getPackagesForOps( in getRestrictedAppsList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryTipUtils.java58 public static List<AppInfo> getRestrictedAppsList(AppOpsManager appOpsManager, in getRestrictedAppsList() argument
61 final List<AppOpsManager.PackageOps> packageOpsList = appOpsManager.getPackagesForOps( in getRestrictedAppsList()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java772 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in getAppOpMode() local
773 return appOpsManager.unsafeCheckOpRaw(appOp, applicationInfo.uid, packageName); in getAppOpMode()
792 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in setAppOpMode() local
793 appOpsManager.setUidMode(appOp, applicationInfo.uid, mode); in setAppOpMode()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java730 AppOpsManager appOpsManager = in writeMockLocation() local
735 appOpsManager.getPackagesForOps(MOCK_LOCATION_APP_OPS); in writeMockLocation()
744 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
758 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
799 AppOpsManager appOpsManager = in updateMockLocation() local
803 appOpsManager.getPackagesForOps(MOCK_LOCATION_APP_OPS); in updateMockLocation()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java1175 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in checkDownloadedFilePath() local
1176 final boolean runningLegacyMode = appOpsManager.checkOp(AppOpsManager.OP_LEGACY_STORAGE, in checkDownloadedFilePath()