Home
last modified time | relevance | path

Searched refs:lon (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/
DLocationFudger.java210 double lon = coarse.getLongitude(); in createCoarseLocked() local
214 lon = wrapLongitude(lon); in createCoarseLocked()
226 lon += metersToDegreesLongitude(mOffsetLongitudeMeters, lat); in createCoarseLocked()
233 lon = wrapLongitude(lon); in createCoarseLocked()
248 lon = Math.round(lon / lonGranularity) * lonGranularity; in createCoarseLocked()
252 lon = wrapLongitude(lon); in createCoarseLocked()
256 coarse.setLongitude(lon); in createCoarseLocked()
315 private static double wrapLongitude(double lon) { in wrapLongitude() argument
316 lon %= 360.0; // wraps into range (-360.0, +360.0) in wrapLongitude()
317 if (lon >= 180.0) { in wrapLongitude()
[all …]
/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java95 public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat, in CellIdentityCdma() argument
102 lon = inRangeOrUnavailable(lon, LONGITUDE_MIN, LONGITUDE_MAX); in CellIdentityCdma()
104 if (!isNullIsland(lat, lon)) { in CellIdentityCdma()
105 mLongitude = lon; in CellIdentityCdma()
159 private boolean isNullIsland(int lat, int lon) { in isNullIsland() argument
160 return Math.abs(lat) <= 1 && Math.abs(lon) <= 1; in isNullIsland()