Home
last modified time | relevance | path

Searched refs:createLocation (Results 1 – 8 of 8) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DLocationUtils.java45 public static Location createLocation(String provider, Random random) { in createLocation() method in LocationUtils
46 return createLocation(provider, in createLocation()
52 …public static Location createLocation(String provider, double latitude, double longitude, float ac… in createLocation() method in LocationUtils
53 …return createLocation(provider, latitude, longitude, accuracy, SystemClock.elapsedRealtimeNanos()); in createLocation()
56 …public static Location createLocation(String provider, double latitude, double longitude, float ac… in createLocation() method in LocationUtils
/cts/tests/location/location_fine/src/android/location/cts/fine/
DGeofencingTest.java21 import static com.android.compatibility.common.util.LocationUtils.createLocation;
120 createLocation(FUSED_PROVIDER, 30, 30, 10)); in testAddProximityAlert()
126 createLocation(FUSED_PROVIDER, 0, 0, 10)); in testAddProximityAlert()
130 createLocation(FUSED_PROVIDER, 30, 30, 10)); in testAddProximityAlert()
198 createLocation(FUSED_PROVIDER, 30, 30, 10)); in testRemoveProximityAlert()
205 createLocation(FUSED_PROVIDER, 0, 0, 10)); in testRemoveProximityAlert()
235 mManager.setTestProviderLocation(FUSED_PROVIDER, createLocation(FUSED_PROVIDER, 0, 0, 10)); in testAddProximityAlert_StartProximate()
262 createLocation(FUSED_PROVIDER, 30, 30, 10)); in testAddProximityAlert_Multiple()
272 createLocation(FUSED_PROVIDER, 0, 0, 10)); in testAddProximityAlert_Multiple()
283 createLocation(FUSED_PROVIDER, 30, 30, 10)); in testAddProximityAlert_Multiple()
[all …]
DLocationProviderBaseTest.java21 import static com.android.compatibility.common.util.LocationUtils.createLocation;
107 Location location = createLocation("test", mRandom); in testReportLocation()
116 bundle.putParcelable(EXTRA_NO_GPS_LOCATION, createLocation("test", mRandom)); in testReportLocation_stripExtras()
118 bundle.putParcelable("coarseLocation", createLocation("test", mRandom)); in testReportLocation_stripExtras()
119 Location location = createLocation("test", mRandom); in testReportLocation_stripExtras()
131 createLocation("test", mRandom), in testReportLocations()
132 createLocation("test", mRandom)); in testReportLocations()
141 bundle.putParcelable(EXTRA_NO_GPS_LOCATION, createLocation("test", mRandom)); in testReportLocations_stripExtras()
143 bundle.putParcelable("coarseLocation", createLocation("test", mRandom)); in testReportLocations_stripExtras()
144 Location location1 = createLocation("test", mRandom); in testReportLocations_stripExtras()
[all …]
DLocationManagerFineTest.java42 import static com.android.compatibility.common.util.LocationUtils.createLocation;
197 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation()
198 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation()
229 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettingsOn()
277 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettingsOff()
309 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_RemoveProvider()
324 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testGetLastKnownLocation_NoteOp()
339 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation()
382 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation_FreshOldLocation()
395 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation_DirectExecutor()
[all …]
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java28 import static com.android.compatibility.common.util.LocationUtils.createLocation;
149 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation()
159 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval()
160 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval()
171 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates()
187 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testRequestLocationUpdates()
195 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_Passive()
212 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testRequestLocationUpdates_Passive()
220 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_PendingIntent()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/location/
DLocationProvider.java92 createLocation(sProviderName, latitude, longitude, accuracy)); in setLocation()
95 private static Location createLocation(String provider, double latitude, double longitude, in createLocation() method in LocationProvider
/cts/tests/tests/telecom/src/android/telecom/cts/
DEmergencyCallOnSimCallManagerTest.java188 Location loc = LocationUtils.createLocation(TEST_PROVIDER, in testQueryLocationForEmergencyReturnLocation()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTestOnMockService.java5223 Location loc = LocationUtils.createLocation( in setTestProviderLocation()