Home
last modified time | relevance | path

Searched refs:noteOp (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java108 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
116 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
158 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission()
166 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission()
208 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission()
216 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission()
258 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission()
266 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission()
311 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission()
319 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission()
[all …]
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java337 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage()
355 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage()
376 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage()
390 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage()
403 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage()
413 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation()
423 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus()
434 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation()
445 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addTextMessageDraft()
457 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addMultimediaMessageDraft()
[all …]
DNetworkScorerAppManager.java219 && appOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName) in canAccessLocation()
DTelephonyRegistry.java371 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in addOnSubscriptionsChangedListener()
486 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in listen()
677 mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
DLocationManagerService.java2842 return mAppOps.noteOp(AppOpsManager.OP_MOCK_LOCATION, Binder.getCallingUid(), in canCallerAccessMockLocation()
/frameworks/support/compat/java/android/support/v4/app/
DAppOpsManagerCompat.java82 public static int noteOp(@NonNull Context context, @NonNull String op, int uid, in noteOp() method in AppOpsManagerCompat
86 return appOpsManager.noteOp(op, uid, packageName); in noteOp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccSmsInterfaceManager.java201 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()
DPhoneSubInfoController.java463 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in checkReadPhoneState()
473 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, in checkReadPhoneNumber()
486 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber()
498 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber()
DSubscriptionController.java250 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
/frameworks/native/libs/binder/include/binder/
DAppOpsManager.h101 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage);
/frameworks/av/services/audioflinger/
DServiceUtilities.cpp99 if (appOps.noteOp(AppOpsManager::OP_RECORD_AUDIO, uid, checkedOpPackageName) in recordingAllowed()
/frameworks/base/core/java/android/app/
DAppOpsManager.java1616 public int noteOp(String op, int uid, String packageName) { in noteOp() method in AppOpsManager
1617 return noteOp(strOpToOp(op), uid, packageName); in noteOp()
1796 public int noteOp(int op, int uid, String packageName) { in noteOp() method in AppOpsManager
1865 public int noteOp(int op) { in noteOp() method in AppOpsManager
1866 return noteOp(op, Process.myUid(), mContext.getOpPackageName()); in noteOp()
/frameworks/native/libs/binder/
DAppOpsManager.cpp96 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() function in android::AppOpsManager
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareClientState.java268 == PackageManager.PERMISSION_GRANTED && mAppOps.noteOp( in hasLocationingPermission()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java370 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java846 when(mMockAppOps.noteOp(AppOpsManager.OP_WIFI_SCAN, mUid, TEST_PACKAGE_NAME))
848 when(mMockAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, mUid, TEST_PACKAGE_NAME))
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java604 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionGranted()
611 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionDenied()
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java671 if (mAppOps.noteOp(AppOpsManager.OP_TAKE_AUDIO_FOCUS, Binder.getCallingUid(), in requestAudioFocus()
DAudioService.java1434 if (mAppOps.noteOp(STREAM_VOLUME_OPS[streamTypeAlias], uid, callingPackage) in adjustStreamVolume()
1756 if (mAppOps.noteOp(STREAM_VOLUME_OPS[streamTypeAlias], uid, callingPackage) in setStreamVolume()
2127 if (!mute && mAppOps.noteOp(AppOpsManager.OP_AUDIO_MASTER_VOLUME, uid, callingPackage) in setMasterMuteInternal()
2223 if (!on && mAppOps.noteOp(AppOpsManager.OP_MUTE_MICROPHONE, uid, callingPackage) in setMicrophoneMute()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java473 return mAppOps.noteOp(AppOpsManager.OP_USE_SIP, Binder.getCallingUid(), in canUseSip()
/frameworks/native/services/sensorservice/
DSensorService.cpp1472 if (appOps.noteOp(opCode, IPCThreadState::self()->getCallingUid(), opPackageName) in canAccessSensor()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java748 if (mAppOps.noteOp(AppOpsManager.OP_USE_FINGERPRINT, uid, opPackageName) in canUseFingerprint()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java142 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), in setUp()
144 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_COARSE_LOCATION), anyInt(), in setUp()
488 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_COARSE_LOCATION), anyInt(), in testAwareEventsDelivery()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1665 final int appOpMode = mAppOpsManager.noteOp(opName, callingUid, callingPkg); in enforceCallingOrSelfPermissionAndAppOp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2407 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in getNetworkPolicies()

12