/cts/tests/location/location_fine/src/android/location/cts/fine/ |
D | LocationManagerFineTest.java | 115 private static final String TEST_PROVIDER = "test_provider"; field in LocationManagerFineTest 145 mManager.addTestProvider(TEST_PROVIDER, in setUp() 151 mManager.setTestProviderEnabled(TEST_PROVIDER, true); in setUp() 174 assertThat(mManager.isProviderEnabled(TEST_PROVIDER)).isTrue(); in testIsProviderEnabled() 176 mManager.setTestProviderEnabled(TEST_PROVIDER, false); in testIsProviderEnabled() 177 assertThat(mManager.isProviderEnabled(TEST_PROVIDER)).isFalse(); in testIsProviderEnabled() 179 mManager.setTestProviderEnabled(TEST_PROVIDER, true); in testIsProviderEnabled() 180 assertThat(mManager.isProviderEnabled(TEST_PROVIDER)).isTrue(); in testIsProviderEnabled() 197 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() 198 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() [all …]
|
D | GeofencingTest.java | 57 private static final String TEST_PROVIDER = "test_provider"; field in GeofencingTest 77 mManager.addTestProvider(TEST_PROVIDER, in setUp() 87 mManager.setTestProviderEnabled(TEST_PROVIDER, true); in setUp()
|
/cts/tests/location/location_coarse/src/android/location/cts/coarse/ |
D | LocationManagerCoarseTest.java | 79 private static final String TEST_PROVIDER = "test_provider"; field in LocationManagerCoarseTest 112 mManager.addTestProvider(TEST_PROVIDER, in setUp() 122 mManager.setTestProviderEnabled(TEST_PROVIDER, true); in setUp() 149 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() 151 mManager.setTestProviderLocation(TEST_PROVIDER, loc); in testGetLastKnownLocation() 152 assertThat(mManager.getLastKnownLocation(TEST_PROVIDER)).isNearby(loc, in testGetLastKnownLocation() 159 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval() 160 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval() 162 mManager.setTestProviderLocation(TEST_PROVIDER, loc1); in testGetLastKnownLocation_FastInterval() 163 Location coarseLocation = mManager.getLastKnownLocation(TEST_PROVIDER); in testGetLastKnownLocation_FastInterval() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | EmergencyCallOnSimCallManagerTest.java | 68 private static final String TEST_PROVIDER = "test_provider"; field in EmergencyCallOnSimCallManagerTest 150 connection.queryLocationForEmergency(3000L, TEST_PROVIDER, in testQueryLocationForEmergencyTryNormalCall() 184 mLocationManager.addTestProvider(TEST_PROVIDER, in testQueryLocationForEmergencyReturnLocation() 186 mLocationManager.setTestProviderEnabled(TEST_PROVIDER, true); in testQueryLocationForEmergencyReturnLocation() 188 Location loc = LocationUtils.createLocation(TEST_PROVIDER, in testQueryLocationForEmergencyReturnLocation() 191 mLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in testQueryLocationForEmergencyReturnLocation() 205 connection.queryLocationForEmergency(3000L, TEST_PROVIDER, in testQueryLocationForEmergencyReturnLocation() 229 mLocationManager.removeTestProvider(TEST_PROVIDER); in testQueryLocationForEmergencyReturnLocation() 246 mLocationManager.addTestProvider(TEST_PROVIDER, in testQueryLocationForEmergencyReturnTimeoutException() 248 mLocationManager.setTestProviderEnabled(TEST_PROVIDER, true); in testQueryLocationForEmergencyReturnTimeoutException() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerShellCommandMultiUserTest.kt | 102 private const val TEST_PROVIDER = "TestProvider" constant 305 assertTrue(isProviderAvailable(contextSystemUser, TEST_PROVIDER)) in testInstallAppHavingSystemUserOnlyComponents() 307 assertTrue(isProviderAvailable(contextSecondaryUser, TEST_PROVIDER)) in testInstallAppHavingSystemUserOnlyComponents()
|
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/ |
D | SatelliteManagerTestOnMockService.java | 152 private static final String TEST_PROVIDER = LocationManager.GPS_PROVIDER; field in SatelliteManagerTestOnMockService 5210 sLocationManager.addTestProvider(TEST_PROVIDER, in registerTestLocationProvider() 5212 sLocationManager.setTestProviderEnabled(TEST_PROVIDER, true); in registerTestLocationProvider() 5217 sLocationManager.removeTestProvider(TEST_PROVIDER); in unregisterTestLocationProvider() 5224 TEST_PROVIDER, latitude, longitude, LOCATION_ACCURACY); in setTestProviderLocation() 5225 sLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in setTestProviderLocation()
|