Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java869 private final LinkedBlockingQueue<Integer> mExpectations; field in ConnectivityServiceTest.MockNetworkFactory
882 mExpectations = new LinkedBlockingQueue<>(); in MockNetworkFactory()
916 synchronized (mExpectations) { in handleAddRequest()
917 final Integer expectedScore = mExpectations.poll(); // null if the queue is empty in handleAddRequest()
933 mExpectations.notify(); in handleAddRequest()
939 synchronized (mExpectations) { in handleRemoveRequest()
940 final Integer expectedScore = mExpectations.poll(); // null if the queue is empty in handleRemoveRequest()
951 mExpectations.notify(); in handleRemoveRequest()
961 if (mExpectations.size() != 0) { in assertNoExpectations()
962 fail("Can't add expectation, " + mExpectations.size() + " already pending"); in assertNoExpectations()
[all …]