Lines Matching refs:Key
42 private static final List<Key> EMPTY_KEY_LIST = Collections.emptyList();
56 private final List<Key> mSortedKeys;
58 private final List<Key>[] mGridNeighbors;
63 @Nonnull final List<Key> sortedKeys,
98 static boolean needsProximityInfo(final Key key) {
103 private static int getProximityInfoKeysCount(final List<Key> keys) {
105 for (final Key key : keys) {
115 final List<Key>[] gridNeighborKeys = mGridNeighbors;
119 final List<Key> neighborKeys = gridNeighborKeys[i];
123 final Key neighborKey = neighborKeys.get(j);
148 final List<Key> sortedKeys = mSortedKeys;
160 final Key key = sortedKeys.get(keyIndex);
184 final Key key = sortedKeys.get(keyIndex);
255 // keycount is about 40 and a pointer to a Key is 4 bytes. This contains, for each cell,
261 final Key[] neighborsFlatBuffer = new Key[gridSize * keyCount];
265 for (final Key key : mSortedKeys) {
361 final ArrayList<Key> neighbors = new ArrayList<>(indexEnd - indexStart);
379 final List<Key> nearestKeys = getNearestKeys(x, y);
380 for (Key key : nearestKeys) {
396 public List<Key> getNearestKeys(final int x, final int y) {