Home
last modified time | relevance | path

Searched refs:OP_COARSE_LOCATION (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppOpsHelperTest.java20 import static android.app.AppOpsManager.OP_COARSE_LOCATION;
77 eq(AppOpsManager.OP_COARSE_LOCATION), in setUp()
120 mAppOps).checkOpNoThrow(eq(OP_COARSE_LOCATION), eq(1000), eq("mypackage")); in testCheckOp()
121 assertThat(mHelper.checkOpNoThrow(OP_COARSE_LOCATION, identity)).isTrue(); in testCheckOp()
124 mAppOps).checkOpNoThrow(eq(OP_COARSE_LOCATION), eq(1000), eq("mypackage")); in testCheckOp()
125 assertThat(mHelper.checkOpNoThrow(OP_COARSE_LOCATION, identity)).isFalse(); in testCheckOp()
146 mAppOps).noteOpNoThrow(eq(OP_COARSE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
148 assertThat(mHelper.noteOpNoThrow(OP_COARSE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow()
151 mAppOps).noteOpNoThrow(eq(OP_COARSE_LOCATION), eq(1000), eq("mypackage"), in testNoteOpNoThrow()
153 assertThat(mHelper.noteOpNoThrow(OP_COARSE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUidStateTrackerTest.java23 import static android.app.AppOpsManager.OP_COARSE_LOCATION;
131 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testNoCapability()
149 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
165 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithMicrophoneCapability()
179 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testForegroundWithCameraCapability()
195 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithCameraCapability()
208 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testForegroundWithLocationCapability()
224 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithLocationCapability()
393 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testLocationCapabilityAdded()
408 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testLocationCapabilityRemoved()
[all …]
DAppOpsLegacyRestrictionsTest.java19 import static android.app.AppOpsManager.OP_COARSE_LOCATION;
43 final int mOpCode1 = OP_COARSE_LOCATION;
DAppOpsServiceTest.java20 import static android.app.AppOpsManager.OP_COARSE_LOCATION;
295 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp()
304 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitorTest.kt218 AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, 0))) in testListShouldNotHaveNull()
240 AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, 0))) in testNotSendingLocationWhenLocationDisabled()
251 AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, 0))) in testNotUpdated_LocationChangeWhenLocationDisabled()
293 AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, 0), in testListFilterCurrentUser()
317 AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, 0), in testAlwaysGetPhoneCameraOps()
341 AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, 0), in testAlwaysGetPhoneMicOps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitor.kt65 AppOpsManager.OP_COARSE_LOCATION, in <lambda>()
213 AppOpsManager.OP_COARSE_LOCATION, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java19 import static android.app.AppOpsManager.OP_COARSE_LOCATION;
138 new int[]{OP_COARSE_LOCATION, OP_FINE_LOCATION, OP_MONITOR_HIGH_POWER_LOCATION}, in LocationControllerImpl()
263 || appOpsItems.get(i).getCode() == OP_COARSE_LOCATION) { in areActiveLocationRequests()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemAppOpsHelper.java50 AppOpsManager.OP_COARSE_LOCATION, in onSystemReady()
/frameworks/base/services/core/java/com/android/server/location/
DLocationPermissions.java79 return AppOpsManager.OP_COARSE_LOCATION; in asAppOp()
DLocationManagerService.java408 new int[]{AppOpsManager.OP_FINE_LOCATION, AppOpsManager.OP_COARSE_LOCATION}, in onSystemReady()
1719 AppOpsManager.OP_COARSE_LOCATION, in refreshAppOpsRestrictions()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h43 OP_COARSE_LOCATION = 0, enumerator
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java58 AppOpsManager.OP_COARSE_LOCATION,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java51 AppOpsManager.OP_COARSE_LOCATION,
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java599 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionGranted()
606 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionDenied()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java314 new AppOpItem(AppOpsManager.OP_COARSE_LOCATION, 0, in testCallbackNotified_verifyMetrics()
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java436 case AppOpsManager.OP_COARSE_LOCATION: in resolveLocationOp()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTrackerImpl.java170 case AppOpsManager.OP_COARSE_LOCATION: in getOpCapability()
DDiscreteRegistry.java28 import static android.app.AppOpsManager.OP_COARSE_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.java119 AppOpsManager.OP_COARSE_LOCATION,
/frameworks/base/core/java/android/app/
DAppOpsManager.java910 public static final int OP_COARSE_LOCATION = AppProtoEnums.APP_OP_COARSE_LOCATION; field in AppOpsManager
2541 OP_COARSE_LOCATION,
2617 new AppOpInfo.Builder(OP_COARSE_LOCATION, OPSTR_COARSE_LOCATION, "COARSE_LOCATION")
2628 .setSwitchCode(OP_COARSE_LOCATION)
2655 .setSwitchCode(OP_COARSE_LOCATION)
2664 .setSwitchCode(OP_COARSE_LOCATION).setDefaultMode(AppOpsManager.MODE_ALLOWED).build(),
2759 .setSwitchCode(OP_COARSE_LOCATION)
2763 "MONITOR_HIGH_POWER_LOCATION").setSwitchCode(OP_COARSE_LOCATION)
2957 "COARSE_LOCATION_SOURCE").setSwitchCode(OP_COARSE_LOCATION)
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java3351 AppOpsManager.OP_COARSE_LOCATION,
/frameworks/base/core/api/
Dtest-current.txt289 field public static final int OP_COARSE_LOCATION = 0; // 0x0