Home
last modified time | relevance | path

Searched refs:OP_FINE_LOCATION (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java55 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps()
59 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
67 .times(1)).onOpNoted(eq(AppOpsManager.OP_FINE_LOCATION), in testWatchNotedOps()
84 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION); in testWatchNotedOps()
88 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps()
92 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
97 .times(2)).onOpNoted(eq(AppOpsManager.OP_FINE_LOCATION), in testWatchNotedOps()
DAppOpsStartedWatcherTest.java53 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchStartedOps()
57 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
64 .times(1)).onOpStarted(eq(AppOpsManager.OP_FINE_LOCATION), in testWatchStartedOps()
85 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
86 appOpsManager.finishOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
94 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
108 appOpsManager.finishOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java163 new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_FINE_LOCATION}, in addCallback_includedCode()
167 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
176 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_notIncludedCode()
221 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, in getActiveItems_differentDetails()
233 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, in getActiveItemsForUser()
273 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in opNotedScheduledForRemoval()
285 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in noItemsAfterStopListening()
299 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in noDoubleUpdateOnOpNoted()
301 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in noDoubleUpdateOnOpNoted()
315 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in onDoubleOPNoted_scheduleTwiceForRemoval()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java200 new AppOpItem(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps()
203 mLocationController.onActiveStateChanged(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps()
211 mLocationController.onActiveStateChanged(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps()
237 new AppOpItem(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps_shouldNotShowSystem()
240 mLocationController.onActiveStateChanged(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps_shouldNotShowSystem()
268 new AppOpItem(AppOpsManager.OP_FINE_LOCATION, 0, "com.system.app", in testCallbackNotified_additionalOps_shouldShowSystem()
270 mLocationController.onActiveStateChanged(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps_shouldShowSystem()
278 mLocationController.onActiveStateChanged(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps_shouldShowSystem()
285 mLocationController.onActiveStateChanged(AppOpsManager.OP_FINE_LOCATION, 0, in testCallbackNotified_additionalOps_shouldShowSystem()
312 new AppOpItem(AppOpsManager.OP_FINE_LOCATION, 0, "com.system.app", in testCallbackNotified_verifyMetrics()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppOpsHelperTest.java21 import static android.app.AppOpsManager.OP_FINE_LOCATION;
110 mAppOps).checkOpNoThrow(eq(OP_FINE_LOCATION), eq(1000), eq("mypackage")); in testCheckOp()
111 assertThat(mHelper.checkOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testCheckOp()
114 mAppOps).checkOpNoThrow(eq(OP_FINE_LOCATION), eq(1000), eq("mypackage")); in testCheckOp()
115 assertThat(mHelper.checkOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testCheckOp()
133 mAppOps).noteOpNoThrow(eq(OP_FINE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
135 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow()
138 mAppOps).noteOpNoThrow(eq(OP_FINE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
140 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitor.kt62 AppOpsManager.OP_FINE_LOCATION) in <lambda>()
210 AppOpsManager.OP_FINE_LOCATION -> PrivacyType.TYPE_LOCATION in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java20 import static android.app.AppOpsManager.OP_FINE_LOCATION;
138 new int[]{OP_COARSE_LOCATION, OP_FINE_LOCATION, OP_MONITOR_HIGH_POWER_LOCATION}, in LocationControllerImpl()
262 if (appOpsItems.get(i).getCode() == OP_FINE_LOCATION in areActiveLocationRequests()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitorTest.kt251 AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, true) in testNotUpdated_LocationChangeWhenLocationDisabled()
263 AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, true) in testLogActiveChanged()
266 AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, true) in testLogActiveChanged()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DRecentAppOpsAccessesTest.java140 AppOpsManager.OP_FINE_LOCATION, in testGetAppList_shouldNotShowAndroidOS()
177 AppOpsManager.OP_FINE_LOCATION, in createTestPackageOpsList()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNavigationMessageProvider.java121 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
DGnssNmeaProvider.java105 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
DGnssStatusProvider.java161 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
DGnssMeasurementsProvider.java231 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
DGnssVisibilityControl.java494 mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, proxyAppInfo.uid, in handleNfwNotification()
/frameworks/base/services/core/java/com/android/server/location/
DLocationPermissions.java78 return AppOpsManager.OP_FINE_LOCATION; in asAppOp()
DLocationManagerService.java384 new int[]{AppOpsManager.OP_FINE_LOCATION, AppOpsManager.OP_COARSE_LOCATION}, in onSystemReady()
1556 AppOpsManager.OP_FINE_LOCATION, in refreshAppOpsRestrictions()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h44 OP_FINE_LOCATION = 1, enumerator
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java48 AppOpsManager.OP_FINE_LOCATION,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java57 AppOpsManager.OP_FINE_LOCATION,
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java408 case AppOpsManager.OP_FINE_LOCATION: in resolveLocationOp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java108 AppOpsManager.OP_FINE_LOCATION
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java29 import static android.app.AppOpsManager.OP_FINE_LOCATION;
135 private static final String DEFAULT_DISCRETE_OPS = OP_FINE_LOCATION + "," + OP_COARSE_LOCATION
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java19 import static android.app.AppOpsManager.OP_FINE_LOCATION;
642 mInjector.getAppOpsHelper().setAppOpAllowed(OP_FINE_LOCATION, IDENTITY.getPackageName(), in testRegisterListener_NoteOpFailure()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java36 import static android.app.AppOpsManager.OP_FINE_LOCATION;
324 OP_FINE_LOCATION, in initController()
2169 ACCESS_FINE_LOCATION, OP_FINE_LOCATION, null, null, listener, stats, uids, in testBgCurrentDrainMonitorExemptions()
/frameworks/base/core/java/android/app/
DAppOpsManager.java884 public static final int OP_FINE_LOCATION = AppProtoEnums.APP_OP_FINE_LOCATION; field in AppOpsManager
1856 OP_FINE_LOCATION,
1921 OP_FINE_LOCATION, // FINE_LOCATION
2028 OP_FINE_LOCATION, // OP_FINE_LOCATION_SOURCE

12