/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSubInfoControllerTest.java | 121 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 …]
|
D | SmsPermissionsTest.java | 106 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()
|
D | TelephonyPermissionsTest.java | 95 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/ |
D | MmsServiceBroker.java | 337 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 …]
|
D | NetworkScorerAppManager.java | 219 && appOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName) in canAccessLocation()
|
/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 | 52 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()
|
D | AppOpsManager.cpp | 104 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/ |
D | SmsPermissions.java | 114 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()
|
D | IccSmsInterfaceManager.java | 222 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/ |
D | AppOpsNotedWatcherTest.java | 59 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/ |
D | TelephonyPermissions.java | 181 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/ |
D | WifiPermissionsUtilTest.java | 729 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/ |
D | IPermissionController.aidl | 23 int noteOp(String op, int uid, String packageName); in noteOp() method
|
/frameworks/native/libs/binder/include/binder/ |
D | PermissionController.h | 50 int32_t noteOp(const String16& op, int32_t uid, const String16& packageName);
|
D | IPermissionController.h | 37 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) = 0;
|
D | AppOpsManager.h | 119 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | RcsPermissions.java | 54 int mode = appOps.noteOp(op, uid, callingPackage); in checkOp()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | ServiceManagerPermissionTests.java | 59 public int noteOp(String op, int uid, String packageName) { in testSetPermissionController()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 545 .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/ |
D | WifiPermissionsUtil.java | 416 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/ |
D | NetworkStatsAccess.java | 177 final int mode = appOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, in hasAppOpsPermission()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 174 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/ |
D | NetworkStatsAccessTest.java | 180 when(mAppOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, TEST_UID, TEST_PKG)) in setHasAppOpsPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 599 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionGranted() 606 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionDenied()
|