Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java598 int availableCount = mAvailableNonPrimaryConnections.size(); in closeExcessConnectionsAndLogExceptionsLocked() local
599 while (availableCount-- > mMaxConnectionPoolSize - 1) { in closeExcessConnectionsAndLogExceptionsLocked()
601 mAvailableNonPrimaryConnections.remove(availableCount); in closeExcessConnectionsAndLogExceptionsLocked()
961 final int availableCount = mAvailableNonPrimaryConnections.size(); in tryAcquireNonPrimaryConnectionLocked() local
962 if (availableCount > 1 && sql != null) { in tryAcquireNonPrimaryConnectionLocked()
965 for (int i = 0; i < availableCount; i++) { in tryAcquireNonPrimaryConnectionLocked()
974 if (availableCount > 0) { in tryAcquireNonPrimaryConnectionLocked()
976 connection = mAvailableNonPrimaryConnections.remove(availableCount - 1); in tryAcquireNonPrimaryConnectionLocked()