Home
last modified time | relevance | path

Searched refs:noteOp (Results 1 – 25 of 43) 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 …]
DTelephonyRegistry.java379 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()
DLocationManagerService.java2831 return mAppOps.noteOp(AppOpsManager.OP_MOCK_LOCATION, Binder.getCallingUid(), in canCallerAccessMockLocation()
/frameworks/support/compat/java/android/support/v4/app/
DAppOpsManagerCompat.java83 public static int noteOp(@NonNull Context context, @NonNull String op, int uid, in noteOp() method in AppOpsManagerCompat
87 return appOpsManager.noteOp(op, uid, packageName); in noteOp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSubInfoController.java433 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in checkReadPhoneState()
443 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, in checkReadPhoneNumber()
456 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber()
468 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber()
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()
DSubscriptionController.java226 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/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/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/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java212 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java487 when(mMockAppOps.noteOp(AppOpsManager.OP_WIFI_SCAN, mUid, TEST_PACKAGE_NAME))
489 when(mMockAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, mUid, TEST_PACKAGE_NAME))
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareClientState.java255 == PackageManager.PERMISSION_GRANTED && mAppOps.noteOp( in hasLocationingPermission()
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java657 if (mAppOps.noteOp(AppOpsManager.OP_TAKE_AUDIO_FOCUS, Binder.getCallingUid(), in requestAudioFocus()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java473 return mAppOps.noteOp(AppOpsManager.OP_USE_SIP, Binder.getCallingUid(), in canUseSip()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java119 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), in setUp()
121 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_COARSE_LOCATION), anyInt(), in setUp()
396 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_COARSE_LOCATION), anyInt(), in testAwareEventsDelivery()
/frameworks/native/services/sensorservice/
DSensorService.cpp1446 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/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java5245 if (opCode == AppOpsManager.OP_NONE || mAppOpsManager.noteOp(
5266 if (opCode == AppOpsManager.OP_NONE || mAppOpsManager.noteOp(
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2287 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in getNetworkPolicies()
/frameworks/support/api/
D25.1.0.txt4131 … method public static int noteOp(android.content.Context, java.lang.String, int, java.lang.String);
D25.0.0.txt3771 … method public static int noteOp(android.content.Context, java.lang.String, int, java.lang.String);
D23.0.0.txt2554 … method public static int noteOp(android.content.Context, java.lang.String, int, java.lang.String);

12