Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java129 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 …]
DSmsPermissionsTest.java127 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()
DTelephonyPermissionsTest.java115 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/
DMmsServiceBroker.java336 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 …]
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.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()
DAppOpsManager.cpp104 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/
DTelephonyPermissions.java160 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/
DAppOpsNotedWatcherTest.java59 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/
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/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java101 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/
DSmsPermissions.java116 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()
DIccSmsInterfaceManager.java271 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/
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/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java552 .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/
DWifiPermissionsUtil.java417 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/
DNetworkStatsAccess.java177 final int mode = appOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, in hasAppOpsPermission()
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java241 return mAppOpsManager.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java177 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/
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()

123