Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java121 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
142 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
197 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission()
204 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission()
249 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission()
269 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission()
324 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission()
332 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission()
387 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission()
408 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission()
[all …]
DSmsPermissionsTest.java106 Mockito.when(mMockAppOps.noteOp( in testCheckCallingSendTextPermissions_persist_noAppOps()
121 Mockito.when(mMockAppOps.noteOp( in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp()
163 Mockito.when(mMockAppOps.noteOp( in testCheckCallingSendTextPermissions_noPersist_noAppOps()
DTelephonyPermissionsTest.java95 when(mMockAppOps.noteOp(anyInt(), eq(UID), eq(PACKAGE))) in setUp()
130 when(mMockAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, UID, PACKAGE)) in testCheckReadPhoneState_hasPermissionAndAppOp()
170 when(mMockAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, UID, PACKAGE)) in testCheckReadPhoneStateOnAnyActiveSub_hasPermissionAndAppOp()
205 when(mMockAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, UID, PACKAGE)) in testCheckReadPhoneNumber_defaultSmsApp()
223 when(mMockAppOps.noteOp(AppOpsManager.OP_READ_SMS, UID, PACKAGE)) in testCheckReadPhoneNumber_hasReadSms()
233 when(mMockAppOps.noteOp(AppOpsManager.OP_READ_PHONE_NUMBERS, UID, PACKAGE)) in testCheckReadPhoneNumber_hasReadPhoneNumbers()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java337 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage()
356 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage()
378 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()
[all …]
DNetworkScorerAppManager.java219 && appOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName) in canAccessLocation()
/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.cpp52 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) in noteOp() function in android::BpPermissionController
133 int32_t res = noteOp(op, uid, packageName); in onTransact()
DAppOpsManager.cpp104 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() function in android::AppOpsManager
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsPermissions.java114 return mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingCanSendSms()
127 return mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingOrSelfCanSendSms()
DIccSmsInterfaceManager.java222 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in updateMessageOnIccEf()
277 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in copyMessageToIccEf()
316 if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(), in getAllMessagesFromIccEf()
/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()
/frameworks/base/telephony/java/com/android/internal/telephony/
DTelephonyPermissions.java181 return appOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, uid, callingPackage) in checkReadPhoneState()
229 return appOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, uid, callingPackage) == in checkReadPhoneStateOnAnyActiveSub()
451 return appOps.noteOp(AppOpsManager.OP_READ_CALL_LOG, uid, callingPackage) == in checkReadCallLog()
474 if (appOps.noteOp(AppOpsManager.OP_WRITE_SMS, uid, callingPackage) == in checkReadPhoneNumber()
493 return appOps.noteOp(opCode, uid, callingPackage) == AppOpsManager.MODE_ALLOWED; in checkReadPhoneNumber()
506 return appOps.noteOp(opCode, uid, callingPackage) == AppOpsManager.MODE_ALLOWED; in checkReadPhoneNumber()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java729 verify(mMockAppOps).noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), anyString()); in testEnforceCoarseLocationPermissionLegacyApp()
750 verify(mMockAppOps).noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), anyString()); in testEnforceFineLocationPermissionNewQApp()
778 verify(mMockAppOps, never()).noteOp(anyInt(), anyInt(), anyString()); in testEnforceFailureFineLocationPermissionNewQApp()
832 when(mMockAppOps.noteOp( in testCheckSystemAlertWindowPermissionWithModeDefaultAppOps()
841 when(mMockAppOps.noteOp( in testCheckSystemAlertWindowPermissionWithModeDefaultAppOps()
860 when(mMockAppOps.noteOp( in testCheckSystemAlertWindowPermissionWithModeAllowedAppOps()
904 verify(mMockAppOps).noteOp(AppOpsManager.OP_FINE_LOCATION, mUid, TEST_PACKAGE_NAME); in testCanAccessScanResultsForWifiScanner()
932 verify(mMockAppOps, never()).noteOp( in testCannotAccessScanResultsForWifiScanner_HideFromAppOps()
1154 when(mMockAppOps.noteOp(AppOpsManager.OP_WIFI_SCAN, mUid, TEST_PACKAGE_NAME))
1156 when(mMockAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, mUid, TEST_PACKAGE_NAME))
[all …]
/frameworks/base/core/java/android/os/
DIPermissionController.aidl23 int noteOp(String op, int uid, String packageName); in noteOp() method
/frameworks/native/libs/binder/include/binder/
DPermissionController.h50 int32_t noteOp(const String16& op, int32_t uid, const String16& packageName);
DIPermissionController.h37 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) = 0;
DAppOpsManager.h119 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DRcsPermissions.java54 int mode = appOps.noteOp(op, uid, callingPackage); in checkOp()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DServiceManagerPermissionTests.java59 public int noteOp(String op, int uid, String packageName) { in testSetPermissionController()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java545 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
564 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement()
608 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK()
625 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFailureForAppsTargetingQSDK()
642 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsRejected()
662 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsIgnored()
694 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenInAirplaneMode()
738 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenApEnabled()
820 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiDisabledSuccessForAppsTargetingBelowQSDK()
837 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiDisabledFailureForAppsTargetingQSDK()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java416 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed()
510 final int mode = mAppOps.noteOp( in checkSystemAlertWindowPermission()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java177 final int mode = appOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, in hasAppOpsPermission()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java174 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("blessedPackage"))) in setUp()
178 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("systemPackage"))) in setUp()
181 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("badPackage"))) in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java180 when(mAppOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, TEST_UID, TEST_PKG)) in setHasAppOpsPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java599 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionGranted()
606 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionDenied()

12