Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsStartedWatcherTest.java64 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchStartedOps()
68 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
74 .times(1)).onOpStarted(eq(AppOpsManager.OP_FINE_LOCATION), in testWatchStartedOps()
97 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
98 appOpsManager.finishOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
106 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
121 appOpsManager.finishOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps()
143 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchStartedOpsForExternalDevice()
147 AppOpsManager.OP_FINE_LOCATION, attributionSource, false, in testWatchStartedOpsForExternalDevice()
151 .times(1)).onOpStarted(eq(AppOpsManager.OP_FINE_LOCATION), in testWatchStartedOpsForExternalDevice()
[all …]
DAppOpsNotedWatcherTest.java64 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps()
68 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
95 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION); in testWatchNotedOps()
99 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps()
103 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
137 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOpsForExternalDevice()
140 appOpsManager.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, attributionSource, "message"); in testWatchNotedOpsForExternalDevice()
149 AppOpsManager.OP_FINE_LOCATION, attributionSource); in testWatchNotedOpsForExternalDevice()
/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/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java215 assertThat(first.getCode()).isEqualTo(AppOpsManager.OP_FINE_LOCATION); in startListening_fetchesCurrentActive_oneActive()
249 assertThat(item0.getCode()).isEqualTo(AppOpsManager.OP_FINE_LOCATION); in startListening_fetchesCurrentActive_multiplePackages()
254 assertThat(item1.getCode()).isEqualTo(AppOpsManager.OP_FINE_LOCATION); in startListening_fetchesCurrentActive_multiplePackages()
364 new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_FINE_LOCATION}, in addCallback_existingCallbacksNotifiedOfCurrentActive()
371 AppOpsManager.OP_FINE_LOCATION, in addCallback_existingCallbacksNotifiedOfCurrentActive()
390 new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_FINE_LOCATION}, in addCallback_includedCode()
396 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
411 AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_partialIncludedCode()
429 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_notIncludedCode()
483 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, in getActiveItems_differentDetails()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUidStateTrackerTest.java24 import static android.app.AppOpsManager.OP_FINE_LOCATION;
132 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testNoCapability()
150 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
166 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithMicrophoneCapability()
180 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testForegroundWithCameraCapability()
196 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithCameraCapability()
209 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testForegroundWithLocationCapability()
225 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithLocationCapability()
394 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testLocationCapabilityAdded()
409 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testLocationCapabilityRemoved()
[all …]
DAppOpsLegacyRestrictionsTest.java20 import static android.app.AppOpsManager.OP_FINE_LOCATION;
44 final int mOpCode2 = OP_FINE_LOCATION;
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitor.kt66 AppOpsManager.OP_FINE_LOCATION) in <lambda>()
214 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.kt261 AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, true) in testNotUpdated_LocationChangeWhenLocationDisabled()
273 AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, true) in testLogActiveChanged()
276 AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, true) in testLogActiveChanged()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNmeaProvider.java105 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
DGnssNavigationMessageProvider.java119 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
DGnssStatusProvider.java161 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
DGnssMeasurementsProvider.java265 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
DGnssVisibilityControl.java498 mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, proxyAppInfo.uid, in handleNfwNotification()
/frameworks/base/services/core/java/com/android/server/location/
DLocationPermissions.java81 return AppOpsManager.OP_FINE_LOCATION; in asAppOp()
DLocationManagerService.java408 new int[]{AppOpsManager.OP_FINE_LOCATION, AppOpsManager.OP_COARSE_LOCATION}, in onSystemReady()
1725 AppOpsManager.OP_FINE_LOCATION, in refreshAppOpsRestrictions()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DRecentAppOpsAccessesTest.java200 AppOpsManager.OP_FINE_LOCATION, in testGetAppList_shouldNotShowAndroidOS()
237 AppOpsManager.OP_FINE_LOCATION, in createTestPackageOpsList()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h44 OP_FINE_LOCATION = 1, enumerator
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java57 AppOpsManager.OP_FINE_LOCATION,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java50 AppOpsManager.OP_FINE_LOCATION,
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java434 case AppOpsManager.OP_FINE_LOCATION: in resolveLocationOp()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTrackerImpl.java169 case AppOpsManager.OP_FINE_LOCATION: in getOpCapability()
DDiscreteRegistry.java29 import static android.app.AppOpsManager.OP_FINE_LOCATION;
137 private static final String DEFAULT_DISCRETE_OPS = OP_FINE_LOCATION + "," + OP_COARSE_LOCATION
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java118 AppOpsManager.OP_FINE_LOCATION,

12