Home
last modified time | relevance | path

Searched refs:S2CellIdUtils (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/location/java/android/location/altitude/
DAltitudeConverter.java29 import com.android.internal.location.altitude.S2CellIdUtils;
90 long s2CellId = S2CellIdUtils.fromLatLngDegrees(location.getLatitude(), in findMapSquare()
94 int sizeIj = 1 << (S2CellIdUtils.MAX_LEVEL - geoidHeightParams.mapS2Level); in findMapSquare()
95 int maxIj = 1 << S2CellIdUtils.MAX_LEVEL; in findMapSquare()
96 long z11 = S2CellIdUtils.getParent(s2CellId, geoidHeightParams.mapS2Level); in findMapSquare()
97 int f11 = S2CellIdUtils.getFace(s2CellId); in findMapSquare()
98 int i1 = S2CellIdUtils.getI(s2CellId); in findMapSquare()
99 int j1 = S2CellIdUtils.getJ(s2CellId); in findMapSquare()
105 return new long[]{z11, S2CellIdUtils.getParent(S2CellIdUtils.fromFij(f11, i2, j1), in findMapSquare()
106 geoidHeightParams.mapS2Level), S2CellIdUtils.getParent( in findMapSquare()
[all …]
/frameworks/base/location/java/com/android/internal/location/altitude/
DGeoidMap.java132 return S2CellIdUtils.getParent(s2CellId, params.cacheTileS2Level); in getCacheKey()
137 return S2CellIdUtils.getToken(S2CellIdUtils.getParent(s2CellId, params.diskTileS2Level)); in getDiskToken()
197 int numBitsRightOfMap = 2 * (S2CellIdUtils.MAX_LEVEL - params.mapS2Level) + 1; in mergeByteBufferValues()
242 return getIndexXOrY(params, S2CellIdUtils.getI(s2CellId), width); in getIndexX()
247 return getIndexXOrY(params, S2CellIdUtils.getJ(s2CellId), height); in getIndexY()
251 return (iOrJ >> (S2CellIdUtils.MAX_LEVEL - params.mapS2Level)) % widthOrHeight; in getIndexXOrY()
261 Preconditions.checkArgument(S2CellIdUtils.getLevel(s2CellId) == params.mapS2Level); in validate()
420 long s2CellId = S2CellIdUtils.getTraversalStart(cacheKeys[i], params.mapS2Level);
423 s2CellId = S2CellIdUtils.getTraversalNext(s2CellId);
DS2CellIdUtils.java29 public final class S2CellIdUtils { class
62 private S2CellIdUtils() { in S2CellIdUtils() method in S2CellIdUtils