Home
last modified time | relevance | path

Searched refs:mAppOps (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/media/java/android/media/
DPlayerBase.java49 private final IAppOpsService mAppOps; field in PlayerBase
65 mAppOps = IAppOpsService.Stub.asInterface(b); in PlayerBase()
79 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in PlayerBase()
136 mAppOps.stopWatchingMode(mAppOpsCallback); in baseRelease()
149 final int mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio_sync()
DSoundPool.java133 private final IAppOpsService mAppOps; field in SoundPool
166 mAppOps = IAppOpsService.Stub.asInterface(b); in SoundPool()
180 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in SoundPool()
196 mAppOps.stopWatchingMode(mAppOpsCallback); in release()
537 final int mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java64 private final AppOpsManager mAppOps; field in ClipboardService
102 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in ClipboardService()
166 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_CLIPBOARD, callingUid, in setPrimaryClip()
239 if (mAppOps.checkOpNoThrow(AppOpsManager.OP_READ_CLIPBOARD, li.mUid, in setPrimaryClipInternal()
257 if (mAppOps.noteOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in getPrimaryClip()
268 if (mAppOps.checkOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in getPrimaryClipDescription()
279 if (mAppOps.checkOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in hasPrimaryClip()
303 if (mAppOps.checkOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in hasClipboardText()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java89 private final IAppOpsService mAppOps; field in Notifier
135 mAppOps = appOps; in Notifier()
188 mAppOps.startOperation(AppOpsManager.getToken(mAppOps), in onWakeLockAcquired()
295 mAppOps.finishOperation(AppOpsManager.getToken(mAppOps), in onWakeLockReleased()
535 mAppOps.noteOperation(AppOpsManager.OP_TURN_SCREEN_ON, opUid, opPackageName); in onWakeUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsAccessTest.java44 @Mock private AppOpsManager mAppOps; field in NetworkStatsAccessTest
59 when(mContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOps); in setUp()
166 when(mAppOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS, TEST_UID, TEST_PKG)) in setHasAppOpsPermission()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSubInfoController.java48 private final AppOpsManager mAppOps; field in PhoneSubInfoController
56 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in PhoneSubInfoController()
432 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in checkReadPhoneState()
441 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, in checkReadPhoneNumber()
451 return mAppOps.noteOp(AppOpsManager.OP_READ_SMS, in checkReadPhoneNumber()
DIccSmsInterfaceManager.java82 final protected AppOpsManager mAppOps; field in IccSmsInterfaceManager
130 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in IccSmsInterfaceManager()
199 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in updateMessageOnIccEf()
253 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in copyMessageToIccEf()
291 if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(), in getAllMessagesFromIccEf()
375 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendDataInternal()
444 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendTextInternal()
520 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMultipartText()
936 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), callingPkg) in sendStoredText()
962 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), callingPkg) in sendStoredMultipartText()
DSubscriptionController.java128 private AppOpsManager mAppOps; field in SubscriptionController
178 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in init()
194 mAppOps = mContext.getSystemService(AppOpsManager.class); in SubscriptionController()
225 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
/frameworks/base/services/core/java/com/android/server/
DGraphicsStatsService.java66 private final AppOpsManager mAppOps; field in GraphicsStatsService
75 mAppOps = context.getSystemService(AppOpsManager.class); in GraphicsStatsService()
86 mAppOps.checkPackage(uid, packageName); in requestBufferForProcess()
DLocationManagerService.java148 private final AppOpsManager mAppOps; field in LocationManagerService
223 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in LocationManagerService()
274 mAppOps.startWatchingMode(AppOpsManager.OP_COARSE_LOCATION, null, callback); in systemRunning()
783 return mAppOps.startOpNoThrow(op, mUid, mPackageName) in updateMonitoring()
787 if (!allowMonitoring || mAppOps.checkOpNoThrow(op, mUid, mPackageName) in updateMonitoring()
789 mAppOps.finishOp(op, mUid, mPackageName); in updateMonitoring()
1193 if (mAppOps.noteOpNoThrow(op, uid, packageName) != AppOpsManager.MODE_ALLOWED) { in reportLocationAccessNoThrow()
1208 if (mAppOps.checkOp(op, uid, packageName) != AppOpsManager.MODE_ALLOWED) { in checkLocationAccess()
2469 return mAppOps.noteOp(AppOpsManager.OP_MOCK_LOCATION, Binder.getCallingUid(), in canCallerAccessMockLocation()
DTelephonyRegistry.java133 private final AppOpsManager mAppOps; field in TelephonyRegistry
339 mAppOps = mContext.getSystemService(AppOpsManager.class); in TelephonyRegistry()
372 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in addOnSubscriptionsChangedListener()
487 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in listen()
665 mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java48 private final AppOpsManager mAppOps; field in MediaFocusControl
52 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in MediaFocusControl()
401 if (mAppOps.noteOp(AppOpsManager.OP_TAKE_AUDIO_FOCUS, Binder.getCallingUid(), in requestAudioFocus()
DAudioService.java172 private final AppOpsManager mAppOps; field in AudioService
605 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in AudioService()
1252 if (mAppOps.noteOp(STREAM_VOLUME_OPS[streamTypeAlias], uid, callingPackage) in adjustStreamVolume()
1545 if (mAppOps.noteOp(STREAM_VOLUME_OPS[streamTypeAlias], uid, callingPackage) in setStreamVolume()
1909 if (!mute && mAppOps.noteOp(AppOpsManager.OP_AUDIO_MASTER_VOLUME, uid, callingPackage) in setMasterMuteInternal()
2005 if (!on && mAppOps.noteOp(AppOpsManager.OP_MUTE_MICROPHONE, uid, callingPackage) in setMicrophoneMute()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceManager.java72 private final AppOpsManager mAppOps; field in GeofenceManager
112 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in GeofenceManager()
269 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, state.mUid, in updateFences()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java65 private final AppOpsManager mAppOps; field in MediaProjectionManagerService
79 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in MediaProjectionManagerService()
212 || mAppOps.noteOpNoThrow( in hasProjectionPermission()
237 mAppOps.setMode(AppOpsManager.OP_PROJECT_MEDIA, in createProjection()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java80 final AppOpsManager mAppOps; field in VoiceInteractionSessionConnection
185 mAppOps = context.getSystemService(AppOpsManager.class); in VoiceInteractionSessionConnection()
252 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ASSIST_STRUCTURE, mCallingUid, in showLocked()
289 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ASSIST_SCREENSHOT, mCallingUid, in showLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
DVpnTest.java90 @Mock private AppOpsManager mAppOps; field in VpnTest
98 when(mContext.getSystemService(eq(Context.APP_OPS_SERVICE))).thenReturn(mAppOps); in setUp()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java159 private AppOpsManager mAppOps; field in PackageInstallerService
247 mAppOps = mContext.getSystemService(AppOpsManager.class); in systemReady()
590 mAppOps.checkPackage(callingUid, installerPackageName); in createSessionInternal()
853 mAppOps.checkPackage(Binder.getCallingUid(), installerPackageName); in getMySessions()
875 mAppOps.checkPackage(callingUid, callerPackageName); in uninstall()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java90 private final AppOpsManager mAppOps; field in ZenModeHelper
116 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in ZenModeHelper()
752 mAppOps.setRestriction(AppOpsManager.OP_VIBRATE, usage, in applyRestrictions()
755 mAppOps.setRestriction(AppOpsManager.OP_PLAY_AUDIO, usage, in applyRestrictions()
DNotificationManagerService.java282 private AppOpsManager mAppOps; field in NotificationManagerService
435 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg) in noteNotificationOp()
445 return mAppOps.checkOp(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg) in checkNotificationOp()
929 mAppOps = (AppOpsManager) getContext().getSystemService(Context.APP_OPS_SERVICE); in onStart()
1142 mAppOps.setMode(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg, in setNotificationsEnabledForPackageImpl()
1430 return (mAppOps.checkOpNoThrow(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg)
1498 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ACCESS_NOTIFICATIONS, uid, callingPkg)
1568 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ACCESS_NOTIFICATIONS, uid, callingPkg)
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java104 private final AppOpsManager mAppOps; field in FingerprintService
186 mAppOps = context.getSystemService(AppOpsManager.class); in FingerprintService()
486 if (mAppOps.noteOp(AppOpsManager.OP_USE_FINGERPRINT, uid, opPackageName) in canUseFingerprint()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java79 private final AppOpsManager mAppOps; field in SipService
127 mAppOps = mContext.getSystemService(AppOpsManager.class); in SipService()
473 return mAppOps.noteOp(AppOpsManager.OP_USE_SIP, Binder.getCallingUid(), in canUseSip()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java140 private final AppOpsManager mAppOps; field in WifiServiceImpl
338 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in WifiServiceImpl()
983 if (mAppOps.noteOp(AppOpsManager.OP_WIFI_SCAN, uid, callingPackage) in getScanResults()
1856 return mAppOps.noteOp(op, uid, callingPackage) == AppOpsManager.MODE_ALLOWED; in checkAppOppAllowed()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java127 AppOpsManager mAppOps; field in UsageStatsService
164 mAppOps = (AppOpsManager) getContext().getSystemService(Context.APP_OPS_SERVICE); in onStart()
1226 final int mode = mAppOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS, in hasPermission()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionControllerTest.java53 @Mock private AppOpsManager mAppOps; field in SubscriptionControllerTest

12