/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | ForegroundModeTest.kt | 26 import android.app.AppOpsManager.OPSTR_FINE_LOCATION in <lambda>() 69 appopsManager.noteOp(OPSTR_FINE_LOCATION, testPkgUid, TEST_SERVICE_PKG, in <lambda>() 196 appopsManager.startWatchingMode(OPSTR_FINE_LOCATION, TEST_SERVICE_PKG, in <lambda>() 198 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 212 appopsManager.startWatchingMode(OPSTR_FINE_LOCATION, TEST_SERVICE_PKG, in <lambda>() 214 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 283 appopsManager.startWatchingMode(OPSTR_FINE_LOCATION, TEST_SERVICE_PKG, in <lambda>() 285 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() 308 appopsManager.startWatchingMode(OPSTR_FINE_LOCATION, TEST_SERVICE_PKG, in <lambda>() 310 if (op == OPSTR_FINE_LOCATION && packageName == TEST_SERVICE_PKG) { in <lambda>() [all …]
|
D | AppOpsTest.kt | 39 import android.app.AppOpsManager.OPSTR_FINE_LOCATION in <lambda>() 85 AppOpsManager.OPSTR_FINE_LOCATION in <lambda>() 326 assertFalse(mAppOps.isOpActive(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName)) in <lambda>() 328 mAppOps.finishOp(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName, null) in <lambda>() 329 assertFalse(mAppOps.isOpActive(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName)) in <lambda>() 334 assertFalse(mAppOps.isOpActive(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName)) in <lambda>() 336 mAppOps.startOp(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName, null, null) in <lambda>() 337 assertTrue(mAppOps.isOpActive(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName)) in <lambda>() 339 mAppOps.finishOp(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName, null) in <lambda>() 340 assertFalse(mAppOps.isOpActive(OPSTR_FINE_LOCATION, mMyUid, mOpPackageName)) in <lambda>() [all …]
|
D | AppOpsLoggingTest.kt | 28 import android.app.AppOpsManager.OPSTR_FINE_LOCATION 450 assertThat(noted[0].first.op).isEqualTo(OPSTR_FINE_LOCATION) in nativeNoteOp() 475 var filteredAsync = asyncNoted.filter { it.op == OPSTR_FINE_LOCATION } in nativeNoteOp() 541 OPSTR_FINE_LOCATION) in nativeNoteOp() 581 .containsAnyOf(OPSTR_COARSE_LOCATION, OPSTR_FINE_LOCATION) in nativeNoteOp() 585 .containsAnyOf(OPSTR_COARSE_LOCATION, OPSTR_FINE_LOCATION) in nativeNoteOp() 631 assertThat(asyncNoted.map { it.op }).contains(OPSTR_FINE_LOCATION) in nativeNoteOp() 690 assertThat(noted[0].first.op).isEqualTo(OPSTR_FINE_LOCATION) in nativeNoteOp() 905 assertThat(noted[0].first.op).isEqualTo(OPSTR_FINE_LOCATION) in nativeNoteOp() 1028 appOpsManager.noteOpNoThrow(OPSTR_FINE_LOCATION, getCallingUid(), in nativeNoteOp()
|
D | DiscreteAppopsTest.kt | 31 import android.app.AppOpsManager.OPSTR_FINE_LOCATION in <lambda>() 100 appOpsManager.noteOp(OPSTR_FINE_LOCATION, uid, PACKAGE_NAME, null, null) in <lambda>() 992 noteOp(OPSTR_FINE_LOCATION, uid, PACKAGE_NAME, null, null) in <lambda>() 1021 assertThat(op.opName).isEqualTo(OPSTR_FINE_LOCATION) in <lambda>()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NearbyDevicesRenouncePermissionTest.java | 20 import static android.app.AppOpsManager.OPSTR_FINE_LOCATION; 112 case OPSTR_FINE_LOCATION: in setUp() 129 case OPSTR_FINE_LOCATION: in setUp()
|
D | LocationAccessCheckTest.java | 21 import static android.app.AppOpsManager.OPSTR_FINE_LOCATION; 182 OPSTR_FINE_LOCATION)); in accessLocation() 820 appOpsManager.noteProxyOpNoThrow(OPSTR_FINE_LOCATION, TEST_APP_PKG, in noNotificationIfBlamerNotSystemOrLocationProvider()
|
/cts/tests/location/location_fine/src/android/location/cts/fine/ |
D | LocationManagerFineTest.java | 1552 /*expectedOp*/ AppOpsManager.OPSTR_FINE_LOCATION, in testLocationAttributionTagBlaming() 1562 /*unexpectedOp*/ AppOpsManager.OPSTR_FINE_LOCATION, in testLocationAttributionTagBlaming() 1569 /*expectedOp*/ AppOpsManager.OPSTR_FINE_LOCATION, in testLocationAttributionTagBlaming() 1578 /*unexpectedOp*/ AppOpsManager.OPSTR_FINE_LOCATION, in testLocationAttributionTagBlaming() 1586 /*expectedOp*/ AppOpsManager.OPSTR_FINE_LOCATION, in testLocationAttributionTagBlaming() 1596 /* expectedOp */ AppOpsManager.OPSTR_FINE_LOCATION, in testGetLastKnownLocationNoteOps() 1605 AppOpsManager.OPSTR_FINE_LOCATION, null); in testGetLastKnownLocationNoteOps() 1619 /* expectedOp */ AppOpsManager.OPSTR_FINE_LOCATION, in testGetCurrentLocationNoteOps() 1632 AppOpsManager.OPSTR_FINE_LOCATION, null); in testGetCurrentLocationNoteOps() 1648 /* expectedOp */ AppOpsManager.OPSTR_FINE_LOCATION, in testRequestLocationUpdatesNoteOps() [all …]
|
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/ |
D | AppOpsUserService.kt | 21 import android.app.AppOpsManager.OPSTR_FINE_LOCATION 181 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_FINE_LOCATION) in noteSyncOpFromNativeCode()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionTest30WithBluetooth.kt | 102 AppOpsManager.OPSTR_FINE_LOCATION, in testGivenBluetoothIsDeniedWhenScanIsAttemptedThenThenGetEmptyScanResult()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 522 op = AppOpsManager.OPSTR_FINE_LOCATION; in assertRestrictedPermissionWhitelisted()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | AtomTests.java | 107 APP_OPS_ENUM_MAP.put(AppOpsManager.OPSTR_FINE_LOCATION, 1); in APP_OPS_ENUM_MAP.put() argument 491 noteAppOp(appOpsManager, AppOpsManager.OPSTR_FINE_LOCATION); in testForegroundServiceAccessAppOp()
|