Home
last modified time | relevance | path

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

/frameworks/base/location/java/com/android/internal/location/altitude/
DS2CellIdUtils.java97 public static int getFace(long s2CellId) { in getFace() argument
98 return (int) (s2CellId >>> POS_BITS); in getFace()
106 public static long getParent(long s2CellId, int level) { in getParent() argument
108 return (s2CellId & -newLsb) | newLsb; in getParent()
120 public static void getEdgeNeighbors(long s2CellId, @NonNull long[] neighbors) { in getEdgeNeighbors() argument
121 int level = getLevel(s2CellId); in getEdgeNeighbors()
123 int face = getFace(s2CellId); in getEdgeNeighbors()
124 long ijo = toIjo(s2CellId); in getEdgeNeighbors()
154 public static int getI(long s2CellId) { in getI() argument
155 return ijoToI(toIjo(s2CellId)); in getI()
[all …]
DGeoidMap.java131 private static long getCacheKey(@NonNull MapParamsProto params, long s2CellId) { in getCacheKey() argument
132 return S2CellIdUtils.getParent(s2CellId, params.cacheTileS2Level); in getCacheKey()
136 private static String getDiskToken(@NonNull MapParamsProto params, long s2CellId) { in getDiskToken() argument
137 return S2CellIdUtils.getToken(S2CellIdUtils.getParent(s2CellId, params.diskTileS2Level)); in getDiskToken()
241 private static int getIndexX(@NonNull MapParamsProto params, long s2CellId, int width) { in getIndexX() argument
242 return getIndexXOrY(params, S2CellIdUtils.getI(s2CellId), width); in getIndexX()
246 private static int getIndexY(@NonNull MapParamsProto params, long s2CellId, int height) { in getIndexY() argument
247 return getIndexXOrY(params, S2CellIdUtils.getJ(s2CellId), height); in getIndexY()
260 for (long s2CellId : s2CellIds) { in validate()
261 Preconditions.checkArgument(S2CellIdUtils.getLevel(s2CellId) == params.mapS2Level); in validate()
[all …]
/frameworks/base/location/java/android/location/altitude/
DAltitudeConverter.java90 long s2CellId = S2CellIdUtils.fromLatLngDegrees(location.getLatitude(), in findMapSquare() local
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()
175 long s2CellId = S2CellIdUtils.fromLatLngDegrees(location.getLatitude(), in addMslAltitude() local
178 double wi = (S2CellIdUtils.getI(s2CellId) % sizeIj) / sizeIj; in addMslAltitude()
179 double wj = (S2CellIdUtils.getJ(s2CellId) % sizeIj) / sizeIj; in addMslAltitude()
296 long s2CellId = S2CellIdUtils.fromLatLngDegrees(location.getLatitude(), in getGeoidHeight() local
298 long[] mapCell = {S2CellIdUtils.getParent(s2CellId, expirationDistanceParams.mapS2Level)}; in getGeoidHeight()