Home
last modified time | relevance | path

Searched defs:appOpsManager (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/activityrecognition/src/android/activityrecognition/cts/
DActivityRecognizerAttributionTags.kt69 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in setUpTest() constant
104 val appOpsManager = context.getSystemService(AppOpsManager::class.java) in accessActivityRecognition() constant
114 val appOpsManager: AppOpsManager = context.getSystemService(AppOpsManager::class.java)!! in assertNotedOpsSinceLastArAccess() constant
/cts/hostsidetests/media/app/ProxyMediaRouterMediaRoutingControl/src/android/media/router/cts/proxyroutingapp/
DMediaRouter2DeviceTest.java445 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in revokingMediaRoutingControl_onAppOpsManager_revokesProxyRouterAccess() local
484 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in revokeMediaRoutingControl_callsAllOnInstanceInvalidatedListeners() local
525 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in getInstance_withRevocableMediaRoutingControl_throwsWithNoCallback() local
558 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in revokeMediaRoutingControl_invalidatesAllInstancesAcrossTargetPackageNames() local
/cts/tests/tests/appop/src/android/app/appops/cts/
DAttributionTest.kt53 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! constant
237 val appOpsManager = ctx.getSystemService(Context.APP_OPS_SERVICE) as AppOpsManager in noteProxyOpForAttribution() constant
243 val appOpsManager = ctx.getSystemService(Context.APP_OPS_SERVICE) as AppOpsManager in startProxyOpForAttribution() constant
DRuntimeMessageCollectionTest.kt38 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! constant in android.app.appops.cts.RuntimeMessageCollectionTest
DAppOpsDeviceAwareTest.kt46 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! constant
DAppOpsMultiUserTest.kt32 private val appOpsManager: AppOpsManager = context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant in android.app.appops.cts.AppOpsMultiUserTest
DAppOpsLoggingTest.kt125 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in nativeNoteOp() constant in android.app.appops.cts.AppOpsLoggingTest
1000 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in nativeNoteOp() constant in android.app.appops.cts.AppOpsLoggingTest
/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/
DContextCrossProfileDeviceTest.java140 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService() local
182 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesAppOp_bindsService() local
202 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesAppOp_throwsException() local
285 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesAppOp_throwsException() local
328 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testBindServiceAsUser_withInteractAcrossProfilePermission_noAsserts() local
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioRecordAppOpTest.java65 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testRecordAppOps() local
/cts/tests/tests/appop/jni/android/app/appops/cts/
DAppOpsLoggingTest.cpp33 AppOpsManager appOpsManager; in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeNoteOp() local
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DAlertWindowsAppOpsTests.java95 final AppOpsManager appOpsManager = getInstrumentation().getContext() in testSystemAlertWindowAppOpsInitiallyAllowed() local
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DPermissionCheckerTest.kt36 private val appOpsManager = context.getSystemService(AppOpsManager::class.java) constant
DRuntimePermissionsAppOpTrackingTest.kt74 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
91 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
376 val appOpsManager = Companion.context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
809 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
839 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
/cts/tests/tests/voiceRecognition/RecognitionService/src/com/android/recognitionservice/service/
DCtsVoiceRecognitionService.java90 final AppOpsManager appOpsManager = getSystemService(AppOpsManager.class); in blameCameraPermission() local
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DDisplayWakeReportedTests.java81 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testWakeWithWakeLock() local
/cts/tests/tests/telecom/src/android/telecom/cts/
DTelecomManagerTest.java71 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in testHasManageOngoingCallsPermission() local
/cts/tests/tests/appop2/src/android/app/appops2/cts/
DAppOpsLoggingTest.kt51 private val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in <lambda>() constant
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/
DUtils.kt64 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in openCam() constant
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DMusicRecognitionManagerTest.java214 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in testRecordAudioOpsAreTracked() local
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraAndOverlayForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/overlay/
DUseMicCamera.kt35 private lateinit var appOpsManager: AppOpsManager variable in android.sensorprivacy.cts.usemiccamera.overlay.UseMicCamera
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/
DUseMicCamera.kt36 private lateinit var appOpsManager: AppOpsManager variable in android.sensorprivacy.cts.usemiccamera.UseMicCamera
/cts/tests/tests/soundtrigger/src/android/soundtrigger/cts/
DSoundTriggerManagerTest.java254 AppOpsManager appOpsManager = in testRecognitionEvent_notesAppOps() local
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DAlwaysOnHotwordDetectorTest.java878 AppOpsManager appOpsManager = sContext.getSystemService(AppOpsManager.class); in testOnDetected_appropriateAppOpsNoted() local
925 AppOpsManager appOpsManager = sContext.getSystemService(AppOpsManager.class); in testOnRejected_noAppOpsNoted() local
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.kt51 private val appOpsManager = getSystemService(AppOpsManager::class.java)!! in noteSyncOpFromNativeCode() constant
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java189 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in checkPermissionAndAppOps() local

12