Home
last modified time | relevance | path

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

/aosp14/frameworks/base/location/java/com/android/internal/location/altitude/
H A DS2CellIdUtils.java39 private static final int LOOKUP_BITS = 4; field in S2CellIdUtils
40 private static final int LOOKUP_MASK = (1 << LOOKUP_BITS) - 1;
43 private static final int[] LOOKUP_POS = new int[1 << (2 * LOOKUP_BITS + 2)];
44 private static final int[] LOOKUP_IJ = new int[1 << (2 * LOOKUP_BITS + 2)];
304 bits += ((i >> (k * LOOKUP_BITS)) & LOOKUP_MASK) << (LOOKUP_BITS + 2); in lookupBits()
305 bits += ((j >> (k * LOOKUP_BITS)) & LOOKUP_MASK) << 2; in lookupBits()
343 int nbits = (k == 7) ? (MAX_LEVEL - 7 * LOOKUP_BITS) : LOOKUP_BITS; in toIjo()
347 i += (bits >> (LOOKUP_BITS + 2)) << (k * LOOKUP_BITS); in toIjo()
348 j += ((bits >> 2) & ((1 << LOOKUP_BITS) - 1)) << (k * LOOKUP_BITS); in toIjo()
388 if (level == LOOKUP_BITS) { in initLookupCell()
[all …]