Home
last modified time | relevance | path

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

123

/frameworks/base/errorprone/tests/res/android/app/
DAppOpsManager.java21 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/
DAppOpsNotedWatcherTest.java59 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/
DMmsServiceBroker.java340 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/
DSystemAppOpsHelperTest.java184 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()
DFakeAppOpsHelper.java84 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() method in FakeAppOpsHelper
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java143 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 …]
DSmsPermissionsTest.java125 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()
DTelephonyPermissionsTest.java120 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/
DPermissionController.cpp62 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()
DIPermissionController.cpp50 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/
DAppOpsManager.cpp94 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/
DSystemAppOpsHelper.java109 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() method in SystemAppOpsHelper
114 return mAppOps.noteOp( in noteOp()
DAppOpsHelper.java83 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/
DLocationPermissionCheckerTest.java112 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/
DIPermissionController.aidl23 int noteOp(String op, int uid, String packageName); in noteOp() method
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h161 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/
DSmsPermissions.java105 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/
DPermissionController.h48 int32_t noteOp(const String16& op, int32_t uid, const String16& packageName);
DIPermissionController.h35 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) = 0;
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp71 switch (auto result = pc.noteOp(String16(operation), uid, packageName); result) { in CheckPermissionForDataDelivery()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java179 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/
DAuthServiceTest.java185 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/
DAudioServiceTest.java73 when(mMockAppOpsManager.noteOp(anyInt(), anyInt(), anyString(), anyString(), anyString())) in setUp()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DLocationPermissionChecker.java252 return mAppOpsManager.noteOp(op, uid, pkgName, featureId, message) in noteAppOpAllowed()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java177 appOps.noteOp(AppOpsManager.OPSTR_READ_EXTERNAL_STORAGE, uid, packageName); in initializeBenchmarks()

123