Home
last modified time | relevance | path

Searched refs:noteOpNoThrow (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppOpsHelperTest.java133 mAppOps).noteOpNoThrow(eq(OP_FINE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
135 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow()
138 mAppOps).noteOpNoThrow(eq(OP_FINE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
140 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow()
146 mAppOps).noteOpNoThrow(eq(OP_COARSE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
148 assertThat(mHelper.noteOpNoThrow(OP_COARSE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow()
151 mAppOps).noteOpNoThrow(eq(OP_COARSE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
153 assertThat(mHelper.noteOpNoThrow(OP_COARSE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow()
DFakeAppOpsHelper.java85 if (!noteOpNoThrow(appOp, callerIdentity)) { in noteOp()
94 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow() method in FakeAppOpsHelper
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java113 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in setUp()
177 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetDeviceIdWithOutPermission()
199 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOpNoThrow( in testGetDeviceIdWithOutPermission()
291 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetNaiWithOutPermission()
312 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOpNoThrow( in testGetNaiWithOutPermission()
374 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetImeiWithOutPermission()
395 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOpNoThrow( in testGetImeiWithOutPermission()
451 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetDeviceSvnWithOutPermission()
460 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOpNoThrow( in testGetDeviceSvnWithOutPermission()
517 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetSubscriberIdWithOutPermission()
[all …]
DTelephonyPermissionsTest.java127 when(mMockAppOps.noteOpNoThrow(anyString(), eq(UID), eq(PACKAGE), eq(FEATURE), in setUp()
170 .noteOpNoThrow(eq(AppOpsManager.OPSTR_READ_PHONE_STATE), eq(UID), eq(PACKAGE), in testCheckReadPhoneState_hasPermissionAndAppOp()
214 .noteOpNoThrow(eq(AppOpsManager.OPSTR_READ_PHONE_STATE), eq(UID), eq(PACKAGE), in testCheckReadPhoneStateOnAnyActiveSub_hasPermissionAndAppOp()
379 when(mMockAppOps.noteOpNoThrow(eq(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS), eq(UID), in testCheckReadDeviceIdentifiers_hasAppOpNullSubscription()
/frameworks/base/errorprone/tests/res/android/app/
DAppOpsManager.java43 public int noteOpNoThrow(String op, int uid, String packageName) { in noteOpNoThrow() method in AppOpsManager
47 public int noteOpNoThrow(int op, int uid, String packageName) { in noteOpNoThrow() method in AppOpsManager
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemAppOpsHelper.java126 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow() method in SystemAppOpsHelper
131 return mAppOps.noteOpNoThrow( in noteOpNoThrow()
DAppOpsHelper.java88 public abstract boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity); in noteOpNoThrow() method in AppOpsHelper
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java196 return appOps.noteOpNoThrow(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage, in checkReadPhoneState()
249 return appOps.noteOpNoThrow(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage, in checkReadPhoneStateOnAnyActiveSub()
484 int opMode = appOps.noteOpNoThrow(AppOpsManager.OPSTR_USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER, in checkCallingOrSelfUseIccAuthWithDeviceIdentifier()
521 return appOps.noteOpNoThrow(AppOpsManager.OPSTR_READ_CALL_LOG, uid, callingPackage, in checkReadCallLog()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerService.java116 if (appOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS, uid, in checkDeviceIdentifierAccess()
247 if (appOpsManager.noteOpNoThrow(appop, uid, packageName, callingFeatureId, message) in checkPermissionAndAppop()
420 mContext.getSystemService(AppOpsManager.class).noteOpNoThrow( in checkSoundTriggerRecordAudioPermissionForDataDelivery()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/
DLegacyPermissionManagerServiceTest.java146 when(mAppOpsManager.noteOpNoThrow(eq(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS), in checkDeviceIdentifierAccess_hasAppOp_returnsGranted()
440 when(mAppOpsManager.noteOpNoThrow(anyString(), anyInt(), anyString(), any(), in setupAccessTest()
465 when(mAppOpsManager.noteOpNoThrow(eq(appop), eq(APP_UID), eq(mPackageName), any(), in grantPermissionAndAppop()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNmeaProvider.java105 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
DGnssNavigationMessageProvider.java119 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
DGnssStatusProvider.java161 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
DGnssMeasurementsProvider.java265 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
/frameworks/base/services/core/java/com/android/server/am/
DAssistDataRequester.java240 if (mAppOpsManager.noteOpNoThrow(mRequestStructureAppOps, callingUid, in requestData()
291 if (mAppOpsManager.noteOpNoThrow(mRequestScreenshotAppOps, callingUid, in requestData()
DBroadcastSkipPolicy.java139 if (opCode != AppOpsManager.OP_NONE && mService.getAppOpsManager().noteOpNoThrow(opCode, in shouldSkipMessage()
404 && mService.getAppOpsManager().noteOpNoThrow(opCode, r.callingUid, in shouldSkipMessage()
497 && mService.getAppOpsManager().noteOpNoThrow(appOp, in shouldSkipMessage()
587 && mService.getAppOpsManager().noteOpNoThrow(r.appOp, in shouldSkipMessage()
652 if (mService.getAppOpsManager().noteOpNoThrow(appOp, in noteOpForManifestReceiverInner()
/frameworks/base/services/core/java/com/android/server/audio/
DHardeningEnforcer.java192 if (mAppOps.noteOpNoThrow(op, uid, packageName, attributionTag, null) in noteOp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAssistDataRequesterTest.java151 .noteOpNoThrow(eq(OP_ASSIST_STRUCTURE), anyInt(), anyString(), any(), any()); in setupMocks()
153 .noteOpNoThrow(eq(OP_ASSIST_SCREENSHOT), anyInt(), anyString(), any(), any()); in setupMocks()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java140 appOpsManager.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, attributionSource, "message"); in testWatchNotedOpsForExternalDevice()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java619 if (mAppOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_BIND_ACCESSIBILITY_SERVICE, in canRegisterService()
653 return mAppOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_ACCESS_ACCESSIBILITY, in checkAccessibilityAccess()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java261 final int mode = context.getSystemService(AppOpsManager.class).noteOpNoThrow(
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedSwitchPreference.java287 final int mode = mAppOpsManager.noteOpNoThrow( in updateState()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVisualQueryDetectorSession.java359 mAppOpsManager.noteOpNoThrow( in enforcePermissionsForVisualQueryDelivery()
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java267 .noteOpNoThrow(getAppOpsString(permissionToCheck), query.callingUid, in checkAppLocationPermissionHelper()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java147 switch (appOps.noteOpNoThrow(AppOpsManager.OP_GET_USAGE_STATS, uid, pkg)) { in checkUsageStatsPermission()

123