Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationUtils.java36 public static Location createLocation(String provider, Random random) { in createLocation() method in LocationUtils
37 return createLocation(provider, in createLocation()
44 return LocationResult.wrap(createLocation(provider, random)); in createLocationResult()
51 locations[i] = createLocation(provider, random); in createLocationResult()
56 public static Location createLocation(String provider, double latitude, double longitude, in createLocation() method in LocationUtils
69 return LocationResult.wrap(createLocation(provider, latitude, longitude, accuracy)); in createLocationResult()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/fudger/
DLocationFudgerTest.java21 import static com.android.server.location.LocationUtils.createLocation;
74 Location fine = createLocation("test", mRandom); in testCoarsen()
97 Location fine = createLocation("test", mRandom); in testCoarsen_Consistent()
112 Location fine = createLocation("test", mRandom); in testCoarsen_AvgMany()
132 Location fineAvg = createLocation("test", avgFineLatitude, avgFineLongitude, 0); in testCoarsen_AvgMany()
140 Location coarseAvg = createLocation("test", avgCoarseLatitude, avgCoarseLongitude, 0); in testCoarsen_AvgMany()
160 return createLocation("test", in step()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java36 import static com.android.server.location.LocationUtils.createLocation;
345 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Fine()
356 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Coarse()
366 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_InvisibleUser()
390 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass()
407 loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass()
424 loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass()
449 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_ClearOnMockRemoval()
461 Location loc1 = createLocation(NAME, mRandom); in testInjectLastLocation()
467 Location loc2 = createLocation(NAME, mRandom); in testInjectLastLocation()
[all …]
DStationaryThrottlingLocationProviderTest.java19 import static com.android.server.location.LocationUtils.createLocation;
192 Location l = createLocation("test_provider", mRandom); in testNoThrottle_oldLocation()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java125 Location location = createLocation(NETWORK_PROVIDER, mRandom); in testNetworkRequest()
139 Location location = createLocation(GPS_PROVIDER, mRandom); in testGpsRequest()
189 private static Location createLocation(String provider, Random random) { in createLocation() method in FusedLocationServiceTest
190 return createLocation(provider, in createLocation()
196 private static Location createLocation(String provider, double latitude, double longitude, in createLocation() method in FusedLocationServiceTest
/frameworks/base/packages/FusedLocation/test/src/com/android/location/gnss/tests/
DGnssOverlayLocationServiceTest.java114 Location location = createLocation(GPS_HARDWARE_PROVIDER, mRandom); in testGpsRequest()
164 private static Location createLocation(String provider, Random random) { in createLocation() method in GnssOverlayLocationServiceTest
165 return createLocation(provider, in createLocation()
171 private static Location createLocation(String provider, double latitude, double longitude, in createLocation() method in GnssOverlayLocationServiceTest
/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/
DPackageVisibilityDetector.kt111 val location = parser.createLocation(reportElement) in <lambda>()