/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | LocationAttributionHelperTest.java | 20 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 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()
|
/aosp12/frameworks/base/services/core/java/com/android/server/location/injector/ |
H A D | LocationAttributionHelper.java | 20 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 D | RecentLocationApps.java | 52 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 D | LocationProviderManagerTest.java | 21 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 D | GnssVisibilityControl.java | 571 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 D | AppOpsManager.h | 84 OP_MONITOR_LOCATION = 41, enumerator
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
H A D | RecentLocationAppsTest.java | 143 AppOpsManager.OP_MONITOR_LOCATION, in createTestPackageOpsList()
|
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appops/ |
H A D | AppOpsState.java | 103 AppOpsManager.OP_MONITOR_LOCATION,
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | AppOpsManager.java | 1012 public static final int OP_MONITOR_LOCATION = field in AppOpsManager
|
/aosp12/frameworks/base/services/core/java/com/android/server/appop/ |
H A D | AppOpsService.java | 596 case AppOpsManager.OP_MONITOR_LOCATION: in evalMode()
|