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 D | SystemAppOpsHelperTest.java | 23 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 D | RecentLocationApps.java | 52 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 D | LocationProviderManagerTest.java | 21 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 D | GnssVisibilityControl.java | 575 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 D | RecentLocationAppsTest.java | 143 AppOpsManager.OP_MONITOR_LOCATION, in createTestPackageOpsList()
|
/aosp14/frameworks/base/services/core/java/com/android/server/appop/ |
H A D | AppOpsUidStateTrackerImpl.java | 168 case AppOpsManager.OP_MONITOR_LOCATION: in getOpCapability()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/provider/ |
H A D | LocationProviderManager.java | 20 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 D | AppOpsManager.java | 1015 public static final int OP_MONITOR_LOCATION = field in AppOpsManager 2490 new AppOpInfo.Builder(OP_MONITOR_LOCATION, OPSTR_MONITOR_LOCATION, "MONITOR_LOCATION")
|