/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemAppOpsHelperTest.java | 20 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/ |
D | AppOpsUidStateTrackerTest.java | 23 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 …]
|
D | AppOpsLegacyRestrictionsTest.java | 19 import static android.app.AppOpsManager.OP_COARSE_LOCATION; 43 final int mOpCode1 = OP_COARSE_LOCATION;
|
D | AppOpsServiceTest.java | 20 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/ |
D | AppOpsPrivacyItemMonitorTest.kt | 218 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/ |
D | AppOpsPrivacyItemMonitor.kt | 65 AppOpsManager.OP_COARSE_LOCATION, in <lambda>() 213 AppOpsManager.OP_COARSE_LOCATION, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 19 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/ |
D | SystemAppOpsHelper.java | 50 AppOpsManager.OP_COARSE_LOCATION, in onSystemReady()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationPermissions.java | 79 return AppOpsManager.OP_COARSE_LOCATION; in asAppOp()
|
D | LocationManagerService.java | 408 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/ |
D | AppOpsManager.h | 43 OP_COARSE_LOCATION = 0, enumerator
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 58 AppOpsManager.OP_COARSE_LOCATION,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccess.java | 51 AppOpsManager.OP_COARSE_LOCATION,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 599 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/ |
D | LocationControllerImplTest.java | 314 new AppOpItem(AppOpsManager.OP_COARSE_LOCATION, 0, in testCallbackNotified_verifyMetrics()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | AppOpsPolicy.java | 436 case AppOpsManager.OP_COARSE_LOCATION: in resolveLocationOp()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsUidStateTrackerImpl.java | 170 case AppOpsManager.OP_COARSE_LOCATION: in getOpCapability()
|
D | DiscreteRegistry.java | 28 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/ |
D | AppOpsControllerImpl.java | 119 AppOpsManager.OP_COARSE_LOCATION,
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 910 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/ |
D | ActiveServices.java | 3351 AppOpsManager.OP_COARSE_LOCATION,
|
/frameworks/base/core/api/ |
D | test-current.txt | 289 field public static final int OP_COARSE_LOCATION = 0; // 0x0
|