Home
last modified time | relevance | path

Searched refs:lat (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/
DLocationFudger.java209 double lat = coarse.getLatitude(); in createCoarseLocked() local
213 lat = wrapLatitude(lat); in createCoarseLocked()
226 lon += metersToDegreesLongitude(mOffsetLongitudeMeters, lat); in createCoarseLocked()
227 lat += metersToDegreesLatitude(mOffsetLatitudeMeters); in createCoarseLocked()
232 lat = wrapLatitude(lat); in createCoarseLocked()
246 lat = Math.round(lat / latGranularity) * latGranularity; in createCoarseLocked()
247 double lonGranularity = metersToDegreesLongitude(mGridSizeInMeters, lat); in createCoarseLocked()
251 lat = wrapLatitude(lat); in createCoarseLocked()
255 coarse.setLatitude(lat); in createCoarseLocked()
305 private static double wrapLatitude(double lat) { in wrapLatitude() argument
[all …]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/vo/
DCoordinates.java20 public double lat; field in Coordinates
30 if (Double.compare(that.lat, lat) != 0) return false; in equals()
38 temp = Double.doubleToLongBits(lat); in hashCode()
/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java77 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat) { in CellIdentityCdma() argument
78 this(nid, sid, bid, lon, lat, null, null); in CellIdentityCdma()
95 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat, String alphal, in CellIdentityCdma() argument
101 if (!isNullIsland(lat, lon)) { in CellIdentityCdma()
103 mLatitude = lat; in CellIdentityCdma()
126 private boolean isNullIsland(int lat, int lon) { in isNullIsland() argument
127 return Math.abs(lat) <= 1 && Math.abs(lon) <= 1; in isNullIsland()
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/location/
DLocationTest.kt25 val (lat, lon) = Location("").apply { in destructuring() constant
29 assertEquals(lat, 1.0, 0.0) in destructuring()
/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.cpp270 double lat = dt / (loops * mMemLoopCount); in runMemoryLatencyTest() local
271 __android_log_print(ANDROID_LOG_INFO, "bench", "latency ret %f", lat); in runMemoryLatencyTest()
281 return (float)lat; in runMemoryLatencyTest()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DEmbeddedTest.java215 school.getAddress().getCoordinates().lat = 3.; in loadNestedSub()
219 assertThat(coordinates.lat, is(3.)); in loadNestedSub()
223 assertThat(asSchool.address.getCoordinates().lat, is(3.)); in loadNestedSub()
DTestUtil.java105 coordinates.lat = Math.random(); in createCoordinates()
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/
DLargeAssetTest.java44 setContentView(R.layout.lat); in onCreate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java5246 Parcel p, int ni, int si, int bsi, int lon, int lat, String al, String as, in writeToParcelForCdma() argument
5248 new CellIdentityCdma(ni, si, bsi, lon, lat, al, as).writeToParcel(p, 0); in writeToParcelForCdma()