/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/v31/ |
D | AllLightPackageOpsLiveData.kt | 46 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant 72 appOpsManager.startWatchingActive(arrayOf(opName), { it.run() }, this) in <lambda>() 78 appOpsManager.startWatchingMode(opName, /* all packages */ null, this) in <lambda>() 85 appOpsManager.startWatchingNoted(arrayOf(opName), this) in <lambda>() 96 appOpsManager.stopWatchingActive(this) in <lambda>() 97 appOpsManager.stopWatchingMode(this) in <lambda>() 107 appOpsManager.getPackagesForOps(opNames.toTypedArray()) in <lambda>()
|
D | AllLightHistoricalPackageOpsLiveData.kt | 49 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant 60 appOpsManager.startWatchingActive(arrayOf(opName), { it.run() }, this) in <lambda>() 66 appOpsManager.startWatchingMode(opName, /* all packages */ null, this) in <lambda>() 73 appOpsManager.startWatchingNoted(arrayOf(opName), this) in <lambda>() 84 appOpsManager.stopWatchingActive(this) in <lambda>() 85 appOpsManager.stopWatchingMode(this) in <lambda>() 108 appOpsManager.getHistoricalOps(request, { it.run() }) { ops: HistoricalOps -> in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | FullStoragePermissionAppsLiveData.kt | 64 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()
|
D | OpUsageLiveData.kt | 50 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! constant 57 appOpsManager.getPackagesForOps(opNames.toTypedArray()) in loadDataAndPostValue() 129 appOpsManager.startWatchingActive(opNames.toTypedArray(), { it.run() }, this) in onActive() 138 appOpsManager.stopWatchingActive(this) in onInactive()
|
D | HibernationSettingStateLiveData.kt | 57 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant in com.android.permissioncontroller.permission.data.HibernationSettingStateLiveData 138 appOpsManager.startWatchingMode(OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, packageName, this) in <lambda>() 143 appOpsManager.stopWatchingMode(this) in <lambda>()
|
D | AppOpLiveData.kt | 42 private val appOpsManager = app.getSystemService(AppOpsManager::class.java)!! constant in com.android.permissioncontroller.permission.data.AppOpLiveData 45 value = appOpsManager.unsafeCheckOpNoThrow(op, uid, packageName) in onUpdate()
|
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/ |
D | AlarmsAndRemindersController.kt | 27 import com.android.settingslib.spaprivileged.framework.common.appOpsManager 35 private val appOpsManager = context.appOpsManager constant 42 appOpsManager.setUidMode(AppOpsManager.OP_SCHEDULE_EXACT_ALARM, app.uid, mode) in setAllowed()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | HibernationSwitchPreferenceTest.kt | 54 import com.android.settingslib.spaprivileged.framework.common.appOpsManager 92 private lateinit var appOpsManager: AppOpsManager variable in com.android.settings.spa.app.appinfo.HibernationSwitchPreferenceTest 109 whenever(context.appOpsManager).thenReturn(appOpsManager) in setUp() 131 appOpsManager.checkOpNoThrow(OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, UID, PACKAGE_NAME) in mockOpsMode() 210 verify(appOpsManager).setUidMode(OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, UID, MODE_ALLOWED) in An app is exempted - on click() 222 verify(appOpsManager).setUidMode(OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, UID, MODE_IGNORED) in An app is not exempted - on click()
|
D | AppInfoSettingsMoreOptionsTest.kt | 42 import com.android.settingslib.spaprivileged.framework.common.appOpsManager 82 private lateinit var appOpsManager: AppOpsManager variable in com.android.settings.spa.app.appinfo.AppInfoSettingsMoreOptionsTest 104 whenever(context.appOpsManager).thenReturn(appOpsManager) in setUp() 163 appOpsManager.noteOpNoThrow( in shouldShowAccessRestrictedSettings() 181 verify(appOpsManager).setMode( in shouldShowAccessRestrictedSettings()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/permissions/ |
D | DiscoveryPermissions.java | 84 public static boolean noteDiscoveryResultDelivery(AppOpsManager appOpsManager, in noteDiscoveryResultDelivery() argument 86 return noteAppOpAllowed(appOpsManager, callerIdentity, /* message= */ null); in noteDiscoveryResultDelivery() 89 private static boolean noteAppOpAllowed(AppOpsManager appOpsManager, in noteAppOpAllowed() argument 91 return appOpsManager.noteOp(asAppOp(PERMISSION_BLUETOOTH_SCAN), in noteAppOpAllowed()
|
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/ |
D | HibernationSwitchPreference.kt | 44 import com.android.settingslib.spaprivileged.framework.common.appOpsManager in <lambda>() 80 private val appOpsManager = context.appOpsManager constant 110 val mode = appOpsManager.checkOpNoThrow( in <lambda>() 125 appOpsManager.setUidMode( in isExemptByDefault()
|
D | AppInfoSettingsMoreOptions.kt | 37 import com.android.settingslib.spaprivileged.framework.common.appOpsManager 93 context.appOpsManager.setMode( in allowRestrictedSettings() 140 shouldShowAccessRestrictedSettings(context.appOpsManager) in getMoreOptionsState() 172 private fun ApplicationInfo.shouldShowAccessRestrictedSettings(appOpsManager: AppOpsManager) = 173 appOpsManager.noteOpNoThrow(
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/ |
D | AppOpsPolicyHandler.java | 46 AppOpsManager appOpsManager) { in AppOpsPolicyHandler() argument 47 this(context, systemDeviceLockManager, appOpsManager, SetupParametersClient.getInstance()); in AppOpsPolicyHandler() 51 AppOpsManager appOpsManager, SetupParametersClientInterface setupParametersClient) { in AppOpsPolicyHandler() argument 54 mAppOpsManager = appOpsManager; in AppOpsPolicyHandler()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ReviewAccessibilityServicesActivity.java | 74 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/services/Car/car-builtin-lib/src/android/car/builtin/app/ |
D | AppOpsManagerHelper.java | 53 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in setTurnScreenOnAllowed() local 54 appOpsManager.setMode(AppOpsManager.OP_TURN_SCREEN_ON, uid, packageName, mode); in setTurnScreenOnAllowed()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 567 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in checkAppOpPermission() local 569 ? appOpsManager.noteOpNoThrow(op, uid, packageName, attributionTag, message) in checkAppOpPermission() 570 : appOpsManager.unsafeCheckOpRawNoThrow(op, uid, packageName); in checkAppOpPermission() 595 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in checkRuntimePermission() local 597 ? appOpsManager.noteOpNoThrow(op, uid, packageName, attributionTag, message) in checkRuntimePermission() 598 : appOpsManager.unsafeCheckOpRawNoThrow(op, uid, packageName); in checkRuntimePermission()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | PermissionsUtil.java | 61 final AppOpsManager appOpsManager = in hasAppOp() local 63 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(), in hasAppOp()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | AppOpsManagerCompat.java | 52 public AppOpsManagerCompat(AppOpsManager appOpsManager) { in AppOpsManagerCompat() argument 53 mAppOpsManager = appOpsManager; in AppOpsManagerCompat()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | FullScreenIntentPermissionPreferenceControllerTest.kt | 75 private lateinit var appOpsManager: AppOpsManager variable in com.android.settings.notification.app.FullScreenIntentPermissionPreferenceControllerTest 89 whenever(context.getSystemService(AppOpsManager::class.java)).thenReturn(appOpsManager) in setUp() 255 verify(appOpsManager).setUidMode(OP_USE_FULL_SCREEN_INTENT, TEST_UID, expectedMode) in verifySetAppOpMode()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | FullScreenIntentPermissionPreferenceController.kt | 40 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! constant 104 appOpsManager.setUidMode(OP_USE_FULL_SCREEN_INTENT, uid, mode) in setPermissionGranted()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantController.java | 64 AppOpsManager appOpsManager) { in CrossProfileAppsPregrantController() argument 70 mAppOpsManager = appOpsManager; in CrossProfileAppsPregrantController()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/ |
D | DiscoveryProviderManagerLegacy.java | 141 AppOpsManager appOpsManager = Objects.requireNonNull(mInjector.getAppOpsManager()); in onNearbyDeviceDiscovered() local 150 appOpsManager, callerIdentity)) { in onNearbyDeviceDiscovered() 192 AppOpsManager appOpsManager = Objects.requireNonNull(mInjector.getAppOpsManager()); in onError() local 201 appOpsManager, callerIdentity)) { in onError()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v31/ |
D | PermissionUsages.java | 323 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in loadInBackground() local 337 usageOps = appOpsManager.getOpsForPackage(mFilterUid, mFilterPackageName, in loadInBackground() 340 usageOps = appOpsManager.getPackagesForOps(opNamesArray); in loadInBackground() 371 appOpsManager.getHistoricalOps(request, Runnable::run, in loadInBackground()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | VideoProviderProxy.java | 598 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService( in canUseCamera() local 603 return appOpsManager != null && appOpsManager.noteOp(AppOpsManager.OP_CAMERA, in canUseCamera()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserNoticeService.java | 283 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in grantSystemAlertWindowPermission() local 284 if (appOpsManager == null) { in grantSystemAlertWindowPermission() 298 appOpsManager.setMode(AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW, packageUid, packageName, in grantSystemAlertWindowPermission()
|