Home
last modified time | relevance | path

Searched refs:OP_MONITOR_LOCATION (Results 1 – 11 of 11) sorted by relevance

/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
H A DLocationAttributionHelperTest.java20 import static android.app.AppOpsManager.OP_MONITOR_LOCATION;
64 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, in testLocationMonitoring()
66 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, in testLocationMonitoring()
70 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, in testLocationMonitoring()
72 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, in testLocationMonitoring()
76 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, in testLocationMonitoring()
78 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, in testLocationMonitoring()
82 verify(mAppOpsHelper).startOpNoThrow(OP_MONITOR_LOCATION, in testLocationMonitoring()
84 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, in testLocationMonitoring()
88 verify(mAppOpsHelper, never()).finishOp(OP_MONITOR_LOCATION, in testLocationMonitoring()
[all …]
H A DSystemAppOpsHelperTest.java23 import static android.app.AppOpsManager.OP_MONITOR_LOCATION;
161 mAppOps).startOpNoThrow(eq(OP_MONITOR_LOCATION), eq(1000), eq("mypackage"), in testStartOp()
163 assertThat(mHelper.startOpNoThrow(OP_MONITOR_LOCATION, identity)).isTrue(); in testStartOp()
166 mAppOps).startOpNoThrow(eq(OP_MONITOR_LOCATION), eq(1000), eq("mypackage"), in testStartOp()
168 assertThat(mHelper.startOpNoThrow(OP_MONITOR_LOCATION, identity)).isFalse(); in testStartOp()
175 mHelper.finishOp(OP_MONITOR_LOCATION, identity); in testFinishOp()
176 verify(mAppOps).finishOp(OP_MONITOR_LOCATION, 1000, "mypackage", "myfeature"); in testFinishOp()
/aosp12/frameworks/base/services/core/java/com/android/server/location/injector/
H A DLocationAttributionHelper.java20 import static android.app.AppOpsManager.OP_MONITOR_LOCATION;
60 if (mAppOpsHelper.startOpNoThrow(OP_MONITOR_LOCATION, identity)) { in reportLocationStart()
78 mAppOpsHelper.finishOp(OP_MONITOR_LOCATION, identity); in reportLocationStop()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
H A DRecentLocationApps.java52 AppOpsManager.OP_MONITOR_LOCATION,
179 case AppOpsManager.OP_MONITOR_LOCATION: in getRequestFromOps()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
H A DLocationProviderManagerTest.java21 import static android.app.AppOpsManager.OP_MONITOR_LOCATION;
818 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
827 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
834 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
841 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
854 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
869 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
876 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
883 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
/aosp12/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssVisibilityControl.java571 if (mAppOps.startOpNoThrow(AppOpsManager.OP_MONITOR_LOCATION, uid, in updateLocationIcon()
577 mAppOps.finishOp(AppOpsManager.OP_MONITOR_LOCATION, uid, proxyAppPkgName); in updateLocationIcon()
581 mAppOps.finishOp(AppOpsManager.OP_MONITOR_LOCATION, uid, proxyAppPkgName); in updateLocationIcon()
/aosp12/frameworks/native/libs/permission/include/binder/
H A DAppOpsManager.h84 OP_MONITOR_LOCATION = 41, enumerator
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
H A DRecentLocationAppsTest.java143 AppOpsManager.OP_MONITOR_LOCATION, in createTestPackageOpsList()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appops/
H A DAppOpsState.java103 AppOpsManager.OP_MONITOR_LOCATION,
/aosp12/frameworks/base/core/java/android/app/
H A DAppOpsManager.java1012 public static final int OP_MONITOR_LOCATION = field in AppOpsManager
/aosp12/frameworks/base/services/core/java/com/android/server/appop/
H A DAppOpsService.java596 case AppOpsManager.OP_MONITOR_LOCATION: in evalMode()