/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSubInfoController.java | 49 private final AppOpsManager mAppOps; field in PhoneSubInfoController 57 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in PhoneSubInfoController() 433 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in checkReadPhoneState() 443 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, in checkReadPhoneNumber() 454 int opCode = mAppOps.permissionToOpCode(READ_SMS); in checkReadPhoneNumber() 456 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber() 466 int opCode = mAppOps.permissionToOpCode(READ_PHONE_NUMBERS); in checkReadPhoneNumber() 468 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber()
|
D | IccSmsInterfaceManager.java | 84 final protected AppOpsManager mAppOps; field in IccSmsInterfaceManager 132 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in IccSmsInterfaceManager() 201 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in updateMessageOnIccEf() 255 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in copyMessageToIccEf() 293 if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(), in getAllMessagesFromIccEf() 377 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendDataInternal() 446 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendTextInternal() 521 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMultipartText() 937 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), callingPkg) in sendStoredText() 963 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), callingPkg) in sendStoredMultipartText()
|
D | SubscriptionController.java | 129 private AppOpsManager mAppOps; field in SubscriptionController 179 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in init() 195 mAppOps = mContext.getSystemService(AppOpsManager.class); in SubscriptionController() 226 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 44 private final AppOpsManager mAppOps; field in WifiPermissionsUtil 56 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiPermissionsUtil() 109 mAppOps.checkPackage(uid, pkgName); in canAccessScanResults() 212 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 62 private IAppOpsService mAppOps; // may be null field in PlayerBase 96 mAppOps = IAppOpsService.Stub.asInterface(b); in baseRegisterPlayer() 102 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in baseRegisterPlayer() 243 if (mAppOps != null) { in baseRelease() 244 mAppOps.stopWatchingMode(mAppOpsCallback); in baseRelease() 265 if (mAppOps != null) { in updateAppOpsPlayAudio_sync() 266 mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio_sync()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 44 @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/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 91 private final IAppOpsService mAppOps; field in Notifier 137 mAppOps = appOps; in Notifier() 192 mAppOps.startOperation(AppOpsManager.getToken(mAppOps), in onWakeLockAcquired() 299 mAppOps.finishOperation(AppOpsManager.getToken(mAppOps), in onWakeLockReleased() 543 mAppOps.noteOperation(AppOpsManager.OP_TURN_SCREEN_ON, opUid, opPackageName); in onWakeUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 64 private AppOpsManager mAppOps; field in WifiAwareClientState 81 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiAwareClientState() 255 == PackageManager.PERMISSION_GRANTED && mAppOps.noteOp( in hasLocationingPermission()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GeofenceManager.java | 76 private final AppOpsManager mAppOps; field in GeofenceManager 122 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in GeofenceManager() 301 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, state.mUid, in updateFences()
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 66 private final AppOpsManager mAppOps; field in MediaProjectionManagerService 80 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in MediaProjectionManagerService() 213 || mAppOps.noteOpNoThrow( in hasProjectionPermission() 238 mAppOps.setMode(AppOpsManager.OP_PROJECT_MEDIA, in createProjection()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionSessionConnection.java | 82 final AppOpsManager mAppOps; field in VoiceInteractionSessionConnection 187 mAppOps = context.getSystemService(AppOpsManager.class); in VoiceInteractionSessionConnection() 253 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ASSIST_STRUCTURE, mCallingUid, in showLocked() 289 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ASSIST_SCREENSHOT, mCallingUid, in showLocked()
|
/frameworks/base/services/core/java/com/android/server/ |
D | GraphicsStatsService.java | 87 private final AppOpsManager mAppOps; field in GraphicsStatsService 98 mAppOps = context.getSystemService(AppOpsManager.class); in GraphicsStatsService() 172 mAppOps.checkPackage(uid, packageName); in requestBufferForProcess()
|
D | LocationManagerService.java | 164 private final AppOpsManager mAppOps; field in LocationManagerService 254 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in LocationManagerService() 309 mAppOps.startWatchingMode(AppOpsManager.OP_COARSE_LOCATION, null, callback); in systemRunning() 915 return mAppOps.startOpNoThrow(op, mIdentity.mUid, mIdentity.mPackageName) in updateMonitoring() 920 || mAppOps.checkOpNoThrow(op, mIdentity.mUid, mIdentity.mPackageName) in updateMonitoring() 922 mAppOps.finishOp(op, mIdentity.mUid, mIdentity.mPackageName); in updateMonitoring() 1508 if (mAppOps.noteOpNoThrow(op, uid, packageName) != AppOpsManager.MODE_ALLOWED) { in reportLocationAccessNoThrow() 1519 if (mAppOps.checkOp(op, uid, packageName) != AppOpsManager.MODE_ALLOWED) { in checkLocationAccess() 2831 return mAppOps.noteOp(AppOpsManager.OP_MOCK_LOCATION, Binder.getCallingUid(), in canCallerAccessMockLocation()
|
D | TelephonyRegistry.java | 134 private final AppOpsManager mAppOps; field in TelephonyRegistry 346 mAppOps = mContext.getSystemService(AppOpsManager.class); in TelephonyRegistry() 379 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in addOnSubscriptionsChangedListener() 494 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in listen() 685 mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 150 private final AppOpsManager mAppOps; field in ClipboardService 166 mAppOps = (AppOpsManager) getContext().getSystemService(Context.APP_OPS_SERVICE); in ClipboardService() 557 if (mAppOps.checkOp(op, callingUid, callingPackage) != AppOpsManager.MODE_ALLOWED) { in clipboardAccessAllowed()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 93 private final AppOpsManager mAppOps; field in StorageStatsService 104 mAppOps = Preconditions.checkNotNull(context.getSystemService(AppOpsManager.class)); in StorageStatsService() 140 final int mode = mAppOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS, in enforcePermission()
|
D | UsageStatsService.java | 139 AppOpsManager mAppOps; field in UsageStatsService 182 mAppOps = (AppOpsManager) getContext().getSystemService(Context.APP_OPS_SERVICE); in onStart() 1374 final int mode = mAppOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS, in hasPermission()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 77 private final AppOpsManager mAppOps; field in MediaFocusControl 84 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in MediaFocusControl() 657 if (mAppOps.noteOp(AppOpsManager.OP_TAKE_AUDIO_FOCUS, Binder.getCallingUid(), in requestAudioFocus()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 94 @Mock private AppOpsManager mAppOps; field in VpnTest 104 when(mContext.getSystemService(eq(Context.APP_OPS_SERVICE))).thenReturn(mAppOps); in setUp()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerService.java | 165 private AppOpsManager mAppOps; field in PackageInstallerService 234 mAppOps = mContext.getSystemService(AppOpsManager.class); in systemReady() 613 mAppOps.checkPackage(callingUid, installerPackageName); in createSessionInternal() 878 mAppOps.checkPackage(Binder.getCallingUid(), installerPackageName); in getMySessions() 899 mAppOps.checkPackage(callingUid, callerPackageName); in uninstall()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 95 private final AppOpsManager mAppOps; field in ZenModeHelper 121 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in ZenModeHelper() 779 mAppOps.setRestriction(AppOpsManager.OP_VIBRATE, usage, in applyRestrictions() 782 mAppOps.setRestriction(AppOpsManager.OP_PLAY_AUDIO, usage, in applyRestrictions()
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipService.java | 79 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/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 120 private final AppOpsManager mAppOps; field in FingerprintService 218 mAppOps = context.getSystemService(AppOpsManager.class); in FingerprintService() 748 if (mAppOps.noteOp(AppOpsManager.OP_USE_FINGERPRINT, uid, opPackageName) in canUseFingerprint()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionControllerTest.java | 53 @Mock private AppOpsManager mAppOps; field in SubscriptionControllerTest
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 162 private final AppOpsManager mAppOps; field in WifiServiceImpl 394 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiServiceImpl() 623 mAppOps.checkPackage(Binder.getCallingUid(), packageName); in isRequestFromBackground()
|