/frameworks/base/errorprone/tests/res/android/app/ |
D | AppOpsManager.java | 21 public int noteOp(String op, int uid, String packageName) { in noteOp() method in AppOpsManager 25 public int noteOp(int op) { in noteOp() method in AppOpsManager 29 public int noteOp(int op, int uid, String packageName) { in noteOp() method in AppOpsManager 33 public int noteOp(String op, int uid, String packageName, in noteOp() method in AppOpsManager 38 public int noteOp(int op, int uid, String packageName, in noteOp() method in AppOpsManager
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 59 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps() 61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps() 84 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION); in testWatchNotedOps() 92 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 340 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage() 360 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage() 377 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage() 391 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage() 404 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage() 414 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation() 424 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus() 435 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation() 446 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addTextMessageDraft() 458 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addMultimediaMessageDraft() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemAppOpsHelperTest.java | 184 mAppOps).noteOp(eq(OP_MOCK_LOCATION), eq(1000), eq("mypackage"), eq("myfeature"), in testNoteOp() 186 assertThat(mHelper.noteOp(OP_MOCK_LOCATION, identity)).isTrue(); in testNoteOp() 189 mAppOps).noteOp(eq(OP_MOCK_LOCATION), eq(1000), eq("mypackage"), eq("myfeature"), in testNoteOp() 191 assertThat(mHelper.noteOp(OP_MOCK_LOCATION, identity)).isFalse(); in testNoteOp() 195 mAppOps).noteOp(eq(OP_MOCK_LOCATION), eq(1000), eq("mypackage"), eq("myfeature"), in testNoteOp() 197 assertThrows(SecurityException.class, () -> mHelper.noteOp(OP_MOCK_LOCATION, identity)); in testNoteOp()
|
D | FakeAppOpsHelper.java | 84 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() method in FakeAppOpsHelper
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSubInfoControllerTest.java | 143 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission() 165 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission() 227 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission() 248 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission() 310 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission() 331 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission() 387 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission() 396 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission() 453 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission() 475 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission() [all …]
|
D | SmsPermissionsTest.java | 125 mMockAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE, in testCheckCallingSendTextPermissions_persist_noAppOps() 141 mMockAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE, in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp() 186 mMockAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE, in testCheckCallingSendTextPermissions_noPersist_noAppOps()
|
D | TelephonyPermissionsTest.java | 120 when(mMockAppOps.noteOp(anyString(), eq(UID), eq(PACKAGE), eq(FEATURE), in setUp() 162 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_READ_PHONE_STATE), eq(UID), eq(PACKAGE), in testCheckReadPhoneState_hasPermissionAndAppOp() 204 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_READ_PHONE_STATE), eq(UID), eq(PACKAGE), in testCheckReadPhoneStateOnAnyActiveSub_hasPermissionAndAppOp()
|
/frameworks/native/libs/binder/ |
D | PermissionController.cpp | 62 int32_t PermissionController::noteOp(const String16& op, int32_t uid, const String16& packageName) in noteOp() function in android::PermissionController 65 return service != nullptr ? service->noteOp(op, uid, packageName) : MODE_ERRORED; in noteOp()
|
D | IPermissionController.cpp | 50 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) in noteOp() function in android::BpPermissionController 131 int32_t res = noteOp(op, uid, packageName); in onTransact()
|
/frameworks/native/libs/permission/ |
D | AppOpsManager.cpp | 94 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() function in android::AppOpsManager 95 return noteOp(op, uid, callingPackage, {}, in noteOp() 99 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage, in noteOp() function in android::AppOpsManager
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemAppOpsHelper.java | 109 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() method in SystemAppOpsHelper 114 return mAppOps.noteOp( in noteOp()
|
D | AppOpsHelper.java | 83 public abstract boolean noteOp(int appOp, CallerIdentity callerIdentity); in noteOp() method in AppOpsHelper
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | LocationPermissionCheckerTest.java | 112 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_WIFI_SCAN, mUid, TEST_PKG_NAME, in setupMocks() 114 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_COARSE_LOCATION), eq(mUid), in setupMocks() 117 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_FINE_LOCATION), eq(mUid), in setupMocks() 273 verify(mMockAppOps, never()).noteOp(anyInt(), anyInt(), anyString());
|
/frameworks/base/core/java/android/os/ |
D | IPermissionController.aidl | 23 int noteOp(String op, int uid, String packageName); in noteOp() method
|
/frameworks/native/libs/permission/include/binder/ |
D | AppOpsManager.h | 161 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage); 162 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage,
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 105 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage, in checkCallingCanSendSms() 119 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage, in checkCallingOrSelfCanSendSms()
|
/frameworks/native/libs/binder/include/binder/ |
D | PermissionController.h | 48 int32_t noteOp(const String16& op, int32_t uid, const String16& packageName);
|
D | IPermissionController.h | 35 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) = 0;
|
/frameworks/base/services/incremental/ |
D | IncrementalServiceValidation.cpp | 71 switch (auto result = pc.noteOp(String16(operation), uid, packageName); result) { in CheckPermissionForDataDelivery()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 179 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage, in checkReadPhoneState() 232 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage, in checkReadPhoneStateOnAnyActiveSub() 504 return appOps.noteOp(AppOpsManager.OPSTR_READ_CALL_LOG, uid, callingPackage, in checkReadCallLog()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | AuthServiceTest.java | 185 when(mAppOpsManager.noteOp(eq(AppOpsManager.OP_USE_BIOMETRIC), anyInt(), any(), any(), in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() 214 when(mAppOpsManager.noteOp(eq(AppOpsManager.OP_USE_BIOMETRIC), anyInt(), any(), any(), in testAuthenticate_appOpsDenied_doesNotCallBiometricService()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AudioServiceTest.java | 73 when(mMockAppOpsManager.noteOp(anyInt(), anyInt(), anyString(), anyString(), anyString())) in setUp()
|
/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | LocationPermissionChecker.java | 252 return mAppOpsManager.noteOp(op, uid, pkgName, featureId, message) in noteAppOpAllowed()
|
/frameworks/base/startop/apps/test/src/ |
D | SystemServerBenchmarks.java | 177 appOps.noteOp(AppOpsManager.OPSTR_READ_EXTERNAL_STORAGE, uid, packageName); in initializeBenchmarks()
|