HomeSort by relevance Sort by last modified time
    Searched defs:sQueryPool (Results 1 - 2 of 2) sorted by null

  /frameworks/support/room/runtime/src/test/java/androidx/room/
RoomSQLiteQueryTest.java 41 RoomSQLiteQuery.sQueryPool.clear();
100 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(1));
103 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(2));
141 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(RoomSQLiteQuery.POOL_LIMIT));
143 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(RoomSQLiteQuery.DESIRED_POOL_SIZE));
144 Iterator<RoomSQLiteQuery> itr = RoomSQLiteQuery.sQueryPool.values().iterator();
  /frameworks/support/room/runtime/src/main/java/androidx/room/
RoomSQLiteQuery.java 79 static final TreeMap<Integer, RoomSQLiteQuery> sQueryPool = new TreeMap<>();
141 synchronized (sQueryPool) {
143 sQueryPool.ceilingEntry(argumentCount);
145 sQueryPool.remove(entry.getKey());
182 synchronized (sQueryPool) {
183 sQueryPool.put(mCapacity, this);
189 if (sQueryPool.size() > POOL_LIMIT) {
190 int toBeRemoved = sQueryPool.size() - DESIRED_POOL_SIZE;
191 final Iterator<Integer> iterator = sQueryPool.descendingKeySet().iterator();

Completed in 201 milliseconds