Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
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()
/aosp14/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()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
H A DLocationProviderManagerTest.java21 import static android.app.AppOpsManager.OP_MONITOR_LOCATION;
886 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
895 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
902 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
909 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring()
922 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
937 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
944 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
951 assertThat(mInjector.getAppOpsHelper().isAppOpStarted(OP_MONITOR_LOCATION, in testLocationMonitoring_multipleIdentities()
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssVisibilityControl.java575 if (mAppOps.startOpNoThrow(AppOpsManager.OP_MONITOR_LOCATION, uid, in updateLocationIcon()
581 mAppOps.finishOp(AppOpsManager.OP_MONITOR_LOCATION, uid, proxyAppPkgName); in updateLocationIcon()
585 mAppOps.finishOp(AppOpsManager.OP_MONITOR_LOCATION, uid, proxyAppPkgName); in updateLocationIcon()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
H A DRecentLocationAppsTest.java143 AppOpsManager.OP_MONITOR_LOCATION, in createTestPackageOpsList()
/aosp14/frameworks/base/services/core/java/com/android/server/appop/
H A DAppOpsUidStateTrackerImpl.java168 case AppOpsManager.OP_MONITOR_LOCATION: in getOpCapability()
/aosp14/frameworks/base/services/core/java/com/android/server/location/provider/
H A DLocationProviderManager.java20 import static android.app.AppOpsManager.OP_MONITOR_LOCATION;
448 mAppOpsHelper.startOpNoThrow(OP_MONITOR_LOCATION, getIdentity()); in onActive()
458 mAppOpsHelper.finishOp(OP_MONITOR_LOCATION, getIdentity()); in onInactive()
/aosp14/frameworks/base/core/java/android/app/
H A DAppOpsManager.java1015 public static final int OP_MONITOR_LOCATION = field in AppOpsManager
2490 new AppOpInfo.Builder(OP_MONITOR_LOCATION, OPSTR_MONITOR_LOCATION, "MONITOR_LOCATION")