/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 55 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()
|
D | AppOpsStartedWatcherTest.java | 53 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/ |
D | AppOpsControllerTest.java | 163 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/ |
D | LocationControllerImplTest.java | 200 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/ |
D | SystemAppOpsHelperTest.java | 21 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/ |
D | AppOpsPrivacyItemMonitor.kt | 62 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/ |
D | LocationControllerImpl.java | 20 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/ |
D | AppOpsPrivacyItemMonitorTest.kt | 251 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/ |
D | RecentAppOpsAccessesTest.java | 140 AppOpsManager.OP_FINE_LOCATION, in testGetAppList_shouldNotShowAndroidOS() 177 AppOpsManager.OP_FINE_LOCATION, in createTestPackageOpsList()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssNavigationMessageProvider.java | 121 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
|
D | GnssNmeaProvider.java | 105 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
|
D | GnssStatusProvider.java | 161 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
|
D | GnssMeasurementsProvider.java | 231 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
|
D | GnssVisibilityControl.java | 494 mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, proxyAppInfo.uid, in handleNfwNotification()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationPermissions.java | 78 return AppOpsManager.OP_FINE_LOCATION; in asAppOp()
|
D | LocationManagerService.java | 384 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/ |
D | AppOpsManager.h | 44 OP_FINE_LOCATION = 1, enumerator
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccess.java | 48 AppOpsManager.OP_FINE_LOCATION,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 57 AppOpsManager.OP_FINE_LOCATION,
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | AppOpsPolicy.java | 408 case AppOpsManager.OP_FINE_LOCATION: in resolveLocationOp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 108 AppOpsManager.OP_FINE_LOCATION
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | DiscreteRegistry.java | 29 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/ |
D | LocationProviderManagerTest.java | 19 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/ |
D | BackgroundRestrictionTest.java | 36 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/ |
D | AppOpsManager.java | 884 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
|