/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | LocationAttributionHelperTest.java | 45 @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 …]
|
D | TestInjector.java | 28 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/ |
D | LocationAttributionHelper.java | 70 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/ |
D | GnssNavigationMessageProvider.java | 60 private final AppOpsHelper mAppOpsHelper; field in GnssNavigationMessageProvider 65 mAppOpsHelper = injector.getAppOpsHelper(); in GnssNavigationMessageProvider() 121 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
|
D | GnssNmeaProvider.java | 42 private final AppOpsHelper mAppOpsHelper; field in GnssNmeaProvider 51 mAppOpsHelper = injector.getAppOpsHelper(); in GnssNmeaProvider() 96 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
|
D | GnssStatusProvider.java | 44 private final AppOpsHelper mAppOpsHelper; field in GnssStatusProvider 51 mAppOpsHelper = injector.getAppOpsHelper(); in GnssStatusProvider() 150 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
|
D | GnssMeasurementsProvider.java | 85 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/ |
D | LocationManagerService.java | 1689 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/ |
D | LocationProviderManager.java | 889 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),
|