/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsStartedWatcherTest.java | 64 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 …]
|
D | AppOpsNotedWatcherTest.java | 64 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/ |
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/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 215 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/ |
D | AppOpsUidStateTrackerTest.java | 24 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 …]
|
D | AppOpsLegacyRestrictionsTest.java | 20 import static android.app.AppOpsManager.OP_FINE_LOCATION; 44 final int mOpCode2 = OP_FINE_LOCATION;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitor.kt | 66 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/ |
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 | 261 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/ |
D | GnssNmeaProvider.java | 105 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNmea()
|
D | GnssNavigationMessageProvider.java | 119 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportNavigationMessage()
|
D | GnssStatusProvider.java | 161 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportSvStatus()
|
D | GnssMeasurementsProvider.java | 265 if (mAppOpsHelper.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, in onReportMeasurements()
|
D | GnssVisibilityControl.java | 498 mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, proxyAppInfo.uid, in handleNfwNotification()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationPermissions.java | 81 return AppOpsManager.OP_FINE_LOCATION; in asAppOp()
|
D | LocationManagerService.java | 408 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/ |
D | RecentAppOpsAccessesTest.java | 200 AppOpsManager.OP_FINE_LOCATION, in testGetAppList_shouldNotShowAndroidOS() 237 AppOpsManager.OP_FINE_LOCATION, in createTestPackageOpsList()
|
/frameworks/native/libs/permission/include/binder/ |
D | AppOpsManager.h | 44 OP_FINE_LOCATION = 1, enumerator
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 57 AppOpsManager.OP_FINE_LOCATION,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccess.java | 50 AppOpsManager.OP_FINE_LOCATION,
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | AppOpsPolicy.java | 434 case AppOpsManager.OP_FINE_LOCATION: in resolveLocationOp()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsUidStateTrackerImpl.java | 169 case AppOpsManager.OP_FINE_LOCATION: in getOpCapability()
|
D | DiscreteRegistry.java | 29 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/ |
D | AppOpsControllerImpl.java | 118 AppOpsManager.OP_FINE_LOCATION,
|