/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSubInfoControllerTest.java | 129 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission() 150 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission() 210 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission() 230 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission() 290 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission() 310 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission() 365 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission() 373 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission() 428 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission() 449 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission() [all …]
|
D | SmsPermissionsTest.java | 127 Mockito.when(mMockAppOps.noteOp( in testCheckCallingSendTextPermissions_persist_noAppOps() 142 Mockito.when(mMockAppOps.noteOp( in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp() 186 Mockito.when(mMockAppOps.noteOp( in testCheckCallingSendTextPermissions_noPersist_noAppOps()
|
D | TelephonyPermissionsTest.java | 115 when(mMockAppOps.noteOp(anyString(), eq(UID), eq(PACKAGE))) in setUp() 153 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, UID, PACKAGE)) in testCheckReadPhoneState_hasPermissionAndAppOp() 195 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, UID, PACKAGE)) in testCheckReadPhoneStateOnAnyActiveSub_hasPermissionAndAppOp() 235 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_WRITE_SMS, UID, PACKAGE)) in testCheckReadPhoneNumber_defaultSmsApp() 255 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_READ_SMS, UID, PACKAGE)) in testCheckReadPhoneNumber_hasReadSms() 266 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_NUMBERS, UID, PACKAGE)) in testCheckReadPhoneNumber_hasReadPhoneNumbers()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 336 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage() 356 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage() 373 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage() 387 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage() 400 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage() 410 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation() 420 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus() 431 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation() 442 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addTextMessageDraft() 454 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 | 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()
|
D | AppOpsManager.cpp | 104 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() function in android::AppOpsManager
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 160 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) in checkReadPhoneState() 213 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) == in checkReadPhoneStateOnAnyActiveSub() 443 return appOps.noteOp(AppOpsManager.OPSTR_READ_CALL_LOG, uid, callingPackage) == in checkReadCallLog() 475 if (appOps.noteOp(AppOpsManager.OPSTR_WRITE_SMS, uid, callingPackage) == in checkReadPhoneNumber() 520 return appOps.noteOp(AppOpsManager.OPSTR_READ_SMS, uid, callingPackage) in checkReadPhoneNumber() 529 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_NUMBERS, uid, callingPackage) in checkReadPhoneNumber()
|
/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/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/tests/utiltests/src/com/android/internal/util/ |
D | LocationPermissionCheckerTest.java | 101 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_WIFI_SCAN, mUid, TEST_PKG_NAME)) in setupMocks() 103 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_COARSE_LOCATION), eq(mUid), in setupMocks() 106 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_FINE_LOCATION), eq(mUid), in setupMocks() 247 verify(mMockAppOps, never()).noteOp(anyInt(), anyInt(), anyString());
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 116 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingCanSendSms() 130 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingOrSelfCanSendSms()
|
D | IccSmsInterfaceManager.java | 271 if (mAppOps.noteOp(AppOpsManager.OPSTR_WRITE_ICC_SMS, Binder.getCallingUid(), in updateMessageOnIccEf() 331 if (mAppOps.noteOp(AppOpsManager.OPSTR_WRITE_ICC_SMS, Binder.getCallingUid(), in copyMessageToIccEf() 370 if (mAppOps.noteOp(AppOpsManager.OPSTR_READ_ICC_SMS, Binder.getCallingUid(), in getAllMessagesFromIccEf()
|
/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/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 552 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSDK() 571 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement() 615 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForDOAppsTargetingQSDK() 635 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForSystemAppsTargetingQSDK() 653 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK() 684 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFailureForAppsTargetingQSDK() 701 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsRejected() 721 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsIgnored() 753 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenInAirplaneMode() 797 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenApEnabled() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 417 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed() 511 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/core/java/com/android/internal/util/ |
D | LocationPermissionChecker.java | 241 return mAppOpsManager.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 177 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("blessedPackage"))) in setUp() 181 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("systemPackage"))) in setUp() 184 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()
|