Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DFullStoragePermissionAppsLiveData.kt64 val appOpsManager = app.getSystemService(AppOpsManager::class.java) ?: return in loadDataAndPostValue() constant
74 fullStoragePackages.add(getFullStorageStateForPackage(appOpsManager, in loadDataAndPostValue()
93 appOpsManager: AppOpsManager, in getFullStorageStateForPackage()
103 appOpsManager.unsafeCheckOpNoThrow(OPSTR_LEGACY_STORAGE, packageInfo.uid, in getFullStorageStateForPackage()
109 val mode = appOpsManager.unsafeCheckOpNoThrow(OPSTR_MANAGE_EXTERNAL_STORAGE, in getFullStorageStateForPackage()
DOpUsageLiveData.kt49 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! constant
56 appOpsManager.getPackagesForOps(opNames.toTypedArray()) in loadDataAndPostValue()
128 appOpsManager.startWatchingActive(opNames.toTypedArray(), { it.run() }, this) in onActive()
137 appOpsManager.stopWatchingActive(this) in onInactive()
DHibernationSettingStateLiveData.kt53 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
115 appOpsManager.startWatchingMode(OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, packageName, this) in <lambda>()
120 appOpsManager.stopWatchingMode(this) in <lambda>()
DAppOpLiveData.kt42 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! constant
45 value = appOpsManager.unsafeCheckOpNoThrow(op, uid, packageName) in onUpdate()
DAppPermGroupUiInfoLiveData.kt323 val appOpsManager = Utils.getUserContext(app, UserHandle.getUserHandleForUid(pkg.uid)) in <lambda>() constant
326 appOpsManager, pkg) ?: return false in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DReviewAccessibilityServicesActivity.java74 AppOpsManager appOpsManager = getSystemService(AppOpsManager.class); in createDialogView() local
85 long lastAccessTime = getLastAccessTime(appInfo, appOpsManager); in createDialogView()
154 @NonNull AppOpsManager appOpsManager) { in getLastAccessTime() argument
155 List<AppOpsManager.PackageOps> ops = appOpsManager.getOpsForPackage(appInfo.uid, in getLastAccessTime()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java456 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in checkAppOpPermission() local
458 ? appOpsManager.noteOpNoThrow(op, uid, packageName, attributionTag, message) in checkAppOpPermission()
459 : appOpsManager.unsafeCheckOpRawNoThrow(op, uid, packageName); in checkAppOpPermission()
484 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in checkRuntimePermission() local
486 ? appOpsManager.noteOpNoThrow(op, uid, packageName, attributionTag, message) in checkRuntimePermission()
487 : appOpsManager.unsafeCheckOpRawNoThrow(op, uid, packageName); in checkRuntimePermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt869 val appOpsManager = app.getSystemService(AppOpsManager::class.java) as AppOpsManager in <lambda>() constant
879 appOpsManager) in <lambda>()
890 setOpMode(appOpName, uid, packageName, mode, appOpsManager) in <lambda>()
895 setOpMode(appOpName, uid, packageName, MODE_FOREGROUND, appOpsManager) in <lambda>()
898 wasChanged = setOpMode(appOpName, uid, packageName, MODE_ALLOWED, appOpsManager) in <lambda>()
932 val appOpsManager = app.getSystemService(AppOpsManager::class.java) as AppOpsManager in <lambda>() constant
941 MODE_FOREGROUND, appOpsManager) in <lambda>()
946 wasChanged = setOpMode(appOpName, uid, packageName, MODE_IGNORED, appOpsManager) in <lambda>()
/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/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantController.java64 AppOpsManager appOpsManager) { in CrossProfileAppsPregrantController() argument
70 mAppOpsManager = appOpsManager; in CrossProfileAppsPregrantController()
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java598 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService( in canUseCamera() local
603 return appOpsManager != null && appOpsManager.noteOp(AppOpsManager.OP_CAMERA, in canUseCamera()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsages.java317 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in loadInBackground() local
328 usageOps = appOpsManager.getOpsForPackage(mFilterUid, mFilterPackageName, in loadInBackground()
331 usageOps = appOpsManager.getPackagesForOps(opNamesArray); in loadInBackground()
362 appOpsManager.getHistoricalOps(request, Runnable::run, in loadInBackground()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DPermissions.java791 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in getAppOpMode() local
792 return appOpsManager.unsafeCheckOpRaw(appOp, applicationInfo.uid, packageName); in getAppOpMode()
821 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in setAppOpMode() local
823 appOpsManager.setUidMode(appOp, applicationInfo.uid, mode); in setAppOpMode()
825 appOpsManager.setMode(appOp, applicationInfo.uid, packageName, mode); in setAppOpMode()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java274 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in grantSystemAlertWindowPermission() local
275 if (appOpsManager == null) { in grantSystemAlertWindowPermission()
288 appOpsManager.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, packageUid, packageName, in grantSystemAlertWindowPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java274 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in create() local
282 userHandle, delayChanges, appOpsManager); in create()
331 int appOpsMode = appOpsManager.unsafeCheckOpRaw(appOp, in create()
396 delayChanges, appOpsManager); in create()
439 @NonNull AppOpsManager appOpsManager) { in AppPermissionGroup() argument
448 mAppOps = appOpsManager; in AppPermissionGroup()
/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/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java780 AppOpsManager appOpsManager = in writeMockLocation() local
785 appOpsManager.getPackagesForOps(MOCK_LOCATION_APP_OPS); in writeMockLocation()
794 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
808 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
849 AppOpsManager appOpsManager = in updateMockLocation() local
853 appOpsManager.getPackagesForOps(MOCK_LOCATION_APP_OPS); in updateMockLocation()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt104 lateinit var appOpsManager: AppOpsManager in <lambda>() variable in com.android.permissioncontroller.permission.service.RuntimePermissionsUpgradeControllerTest
175 whenever(application.getSystemService(AppOpsManager::class.java)).thenReturn(appOpsManager) in <lambda>()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java202 ScanRequestProxy(Context context, AppOpsManager appOpsManager, ActivityManager activityManager, in ScanRequestProxy() argument
208 mAppOps = appOpsManager; in ScanRequestProxy()
DWifiNetworkFactory.java503 AppOpsManager appOpsManager, in WifiNetworkFactory() argument
517 mAppOpsManager = appOpsManager; in WifiNetworkFactory()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java504 AppOpsManager appOpsManager = (AppOpsManager) mContext in enforceDumpAndUsageStatsPermission() local
506 switch (appOpsManager.noteOp(USAGE_STATS_PERMISSION_OPS, in enforceDumpAndUsageStatsPermission()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java1071 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in checkFileUriDestination() local
1072 final boolean runningLegacyMode = appOpsManager.checkOp(AppOpsManager.OP_LEGACY_STORAGE, in checkFileUriDestination()
1093 ((appOpsManager.noteOp( in checkFileUriDestination()
1127 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in checkDownloadedFilePath() local
1128 final boolean runningLegacyMode = appOpsManager.checkOp(AppOpsManager.OP_LEGACY_STORAGE, in checkDownloadedFilePath()