Home
last modified time | relevance | path

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

/aosp14/frameworks/base/location/java/com/android/internal/location/altitude/
H A DS2CellIdUtils.java93 int level = getLevel(s2CellId); in getEdgeNeighbors()
95 int face = getFace(s2CellId); in getEdgeNeighbors()
96 long ijo = toIjo(s2CellId); in getEdgeNeighbors()
127 return ijoToI(toIjo(s2CellId)); in getI()
132 return ijoToJ(toIjo(s2CellId)); in getJ()
152 if (isLeaf(s2CellId)) { in getLevel()
160 return s2CellId & -s2CellId; in getLowestOnBit()
173 return s2CellId - getLowestOnBit(s2CellId) + getLowestOnBitForLevel(level); in getTraversalStart()
178 return s2CellId + (getLowestOnBit(s2CellId) << 1); in getTraversalNext()
187 if (s2CellId == 0) { in getToken()
[all …]
H A DGeoidHeightMap.java90 private static long getCacheKey(@NonNull MapParamsProto params, long s2CellId) { in getCacheKey() argument
91 return S2CellIdUtils.getParent(s2CellId, params.cacheTileS2Level); in getCacheKey()
95 private static String getDiskToken(@NonNull MapParamsProto params, long s2CellId) { in getDiskToken() argument
97 S2CellIdUtils.getParent(s2CellId, params.diskTileS2Level)); in getDiskToken()
209 private static int getIndexX(@NonNull MapParamsProto params, long s2CellId, int width) { in getIndexX() argument
210 return getIndexXOrY(params, S2CellIdUtils.getI(s2CellId), width); in getIndexX()
215 return getIndexXOrY(params, S2CellIdUtils.getJ(s2CellId), height); in getIndexY()
228 for (long s2CellId : s2CellIds) { in validate()
230 s2CellId == 0 || S2CellIdUtils.getLevel(s2CellId) == params.mapS2Level); in validate()
365 s2CellIds[j] = s2CellId;
[all …]
/aosp14/frameworks/base/location/java/android/location/altitude/
H A DAltitudeConverter.java81 long s2CellId = S2CellIdUtils.fromLatLngDegrees(location.getLatitude(), in findMapSquare() local
85 long s0 = S2CellIdUtils.getParent(s2CellId, params.mapS2Level); in findMapSquare()
90 int i1 = S2CellIdUtils.getI(s2CellId) > S2CellIdUtils.getI(s0) ? -1 : 1; in findMapSquare()
94 int i2 = S2CellIdUtils.getJ(s2CellId) > S2CellIdUtils.getJ(s0) ? 1 : -1; in findMapSquare()
132 long s2CellId = S2CellIdUtils.fromLatLngDegrees(location.getLatitude(), in addMslAltitude() local
135 double wi = Math.abs(S2CellIdUtils.getI(s2CellId) - S2CellIdUtils.getI(s0)) / sizeIj; in addMslAltitude()
136 double wj = Math.abs(S2CellIdUtils.getJ(s2CellId) - S2CellIdUtils.getJ(s0)) / sizeIj; in addMslAltitude()