Home
last modified time | relevance | path

Searched refs:OP_WRITE_SMS (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsServiceTest.java26 import static android.app.AppOpsManager.OP_WRITE_SMS;
129 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, mMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage()
137 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, mMyPackageName); in testNoteOperationAndGetOpsForPackage()
140 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage()
172 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, mMyPackageName, MODE_ERRORED); in testStatePersistence()
174 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, mMyPackageName); in testStatePersistence()
185 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testStatePersistence()
217 mMyUid, mMyPackageName, new int[]{OP_READ_SMS, OP_WRITE_SMS}); in testGetOpsForPackage()
230 new int[]{OP_WRITE_SMS}); in testGetOpsForPackage()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java378 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage()
392 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage()
405 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage()
415 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation()
425 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus()
436 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation()
447 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addTextMessageDraft()
459 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addMultimediaMessageDraft()
481 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in setAutoPersisting()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DRcsPermissions.java37 checkOp(context, uid, callingPackage, AppOpsManager.OP_WRITE_SMS); in checkWritePermissions()
/frameworks/native/libs/binder/include/binder/
DAppOpsManager.h55 OP_WRITE_SMS = 15, enumerator
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java530 eq(AppOpsManager.OP_WRITE_SMS), anyInt(), eq(TAG)); in testLine1NumberWithOutPermission()
549 eq(AppOpsManager.OP_WRITE_SMS), anyInt(), eq(TAG)); in testLine1NumberWithOutPermission()
555 eq(AppOpsManager.OP_WRITE_SMS), anyInt(), eq(TAG)); in testLine1NumberWithOutPermission()
DTelephonyPermissionsTest.java205 when(mMockAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, UID, PACKAGE)) in testCheckReadPhoneNumber_defaultSmsApp()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java81 AppOpsManager.OP_WRITE_SMS,
754 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid, in assignExclusiveSmsPermissionsToSystemApp()
DTelephonyPermissions.java474 if (appOps.noteOp(AppOpsManager.OP_WRITE_SMS, uid, callingPackage) == in checkReadPhoneNumber()
/frameworks/base/core/java/android/app/
DAppOpsManager.java626 public static final int OP_WRITE_SMS = 15; field in AppOpsManager
1201 OP_WRITE_SMS, // WRITE_SMS
1208 OP_WRITE_SMS, // WRITE_ICC_SMS