/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemAppOpsHelperTest.java | 133 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()
|
D | FakeAppOpsHelper.java | 85 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/ |
D | PhoneSubInfoControllerTest.java | 113 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 …]
|
D | TelephonyPermissionsTest.java | 127 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/ |
D | AppOpsManager.java | 43 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/ |
D | SystemAppOpsHelper.java | 126 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow() method in SystemAppOpsHelper 131 return mAppOps.noteOpNoThrow( in noteOpNoThrow()
|
D | AppOpsHelper.java | 88 public abstract boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity); in noteOpNoThrow() method in AppOpsHelper
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 196 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/ |
D | LegacyPermissionManagerService.java | 116 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/ |
D | LegacyPermissionManagerServiceTest.java | 146 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/ |
D | GnssNmeaProvider.java | 105 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
|
D | GnssNavigationMessageProvider.java | 119 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
|
D | GnssStatusProvider.java | 161 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
|
D | GnssMeasurementsProvider.java | 265 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AssistDataRequester.java | 240 if (mAppOpsManager.noteOpNoThrow(mRequestStructureAppOps, callingUid, in requestData() 291 if (mAppOpsManager.noteOpNoThrow(mRequestScreenshotAppOps, callingUid, in requestData()
|
D | BroadcastSkipPolicy.java | 139 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/ |
D | HardeningEnforcer.java | 192 if (mAppOps.noteOpNoThrow(op, uid, packageName, attributionTag, null) in noteOp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AssistDataRequesterTest.java | 151 .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/ |
D | AppOpsNotedWatcherTest.java | 140 appOpsManager.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, attributionSource, "message"); in testWatchNotedOpsForExternalDevice()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilitySecurityPolicy.java | 619 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/ |
D | PackageUtils.java | 261 final int mode = context.getSystemService(AppOpsManager.class).noteOpNoThrow(
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedSwitchPreference.java | 287 final int mode = mAppOpsManager.noteOpNoThrow( in updateState()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VisualQueryDetectorSession.java | 359 mAppOpsManager.noteOpNoThrow( in enforcePermissionsForVisualQueryDelivery()
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 267 .noteOpNoThrow(getAppOpsString(permissionToCheck), query.callingUid, in checkAppLocationPermissionHelper()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 147 switch (appOps.noteOpNoThrow(AppOpsManager.OP_GET_USAGE_STATS, uid, pkg)) { in checkUsageStatsPermission()
|