Home
last modified time | relevance | path

Searched refs:mAppOpsHelper (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DLocationAttributionHelperTest.java45 @Mock private AppOpsHelper mAppOpsHelper; field in LocationAttributionHelperTest
53 when(mAppOpsHelper.startOpNoThrow(anyInt(), any(CallerIdentity.class))).thenReturn(true); in setUp()
55 mHelper = new LocationAttributionHelper(mAppOpsHelper); in setUp()
68 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, caller1); in testLocationMonitoring()
69 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, caller1); in testLocationMonitoring()
72 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, caller1); in testLocationMonitoring()
73 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, caller1); in testLocationMonitoring()
76 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, caller2); in testLocationMonitoring()
77 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, caller2); in testLocationMonitoring()
80 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, caller2); in testLocationMonitoring()
[all …]
DTestInjector.java28 private final FakeAppOpsHelper mAppOpsHelper; field in TestInjector
44 mAppOpsHelper = new FakeAppOpsHelper(); in TestInjector()
45 mLocationPermissionsHelper = new FakeLocationPermissionsHelper(mAppOpsHelper); in TestInjector()
52 mLocationAttributionHelper = new LocationAttributionHelper(mAppOpsHelper); in TestInjector()
74 return mAppOpsHelper; in getAppOpsHelper()
/frameworks/base/services/core/java/com/android/server/location/injector/
DLocationAttributionHelper.java70 private final AppOpsHelper mAppOpsHelper; field in LocationAttributionHelper
78 mAppOpsHelper = appOpsHelper; in LocationAttributionHelper()
93 if (!mAppOpsHelper.startOpNoThrow(OP_MONITOR_LOCATION, identity)) { in reportLocationStart()
109 mAppOpsHelper.finishOp(OP_MONITOR_LOCATION, identity); in reportLocationStop()
123 if (mAppOpsHelper.startOpNoThrow(OP_MONITOR_HIGH_POWER_LOCATION, identity)) { in reportHighPowerLocationStart()
146 mAppOpsHelper.finishOp(OP_MONITOR_HIGH_POWER_LOCATION, identity); in reportHighPowerLocationStop()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNavigationMessageProvider.java60 private final AppOpsHelper mAppOpsHelper; field in GnssNavigationMessageProvider
65 mAppOpsHelper = injector.getAppOpsHelper(); in GnssNavigationMessageProvider()
121 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
DGnssNmeaProvider.java42 private final AppOpsHelper mAppOpsHelper; field in GnssNmeaProvider
51 mAppOpsHelper = injector.getAppOpsHelper(); in GnssNmeaProvider()
96 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
DGnssStatusProvider.java44 private final AppOpsHelper mAppOpsHelper; field in GnssStatusProvider
51 mAppOpsHelper = injector.getAppOpsHelper(); in GnssStatusProvider()
150 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
DGnssMeasurementsProvider.java85 private final AppOpsHelper mAppOpsHelper; field in GnssMeasurementsProvider
92 mAppOpsHelper = injector.getAppOpsHelper(); in GnssMeasurementsProvider()
222 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java1689 private final SystemAppOpsHelper mAppOpsHelper; field in LocationManagerService.SystemInjector
1714 mAppOpsHelper = new SystemAppOpsHelper(context); in SystemInjector()
1716 mAppOpsHelper); in SystemInjector()
1723 mLocationAttributionHelper = new LocationAttributionHelper(mAppOpsHelper); in SystemInjector()
1728 mAppOpsHelper.onSystemReady(); in onSystemReady()
1761 return mAppOpsHelper; in getAppOpsHelper()
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java889 if (!mAppOpsHelper.noteOpNoThrow(LocationPermissions.asAppOp(getPermissionLevel()), in acceptLocationChange()
1208 if (fineLocationResult != null && !mAppOpsHelper.noteOpNoThrow( in acceptLocationChange()
1312 protected final AppOpsHelper mAppOpsHelper;
1380 mAppOpsHelper = injector.getAppOpsHelper();
1602 if (!mAppOpsHelper.noteOpNoThrow(LocationPermissions.asAppOp(permissionLevel),