Searched refs:mIterator (Results 1 – 8 of 8) sorted by relevance
103 private FederatedExampleIterator mIterator; field in FederatedExampleIteratorTest121 mIterator = in testNormalHasGetNextResultSuccess()126 assertThat(runInBackgroundAndWait(mIterator::hasNext)).isTrue(); in testNormalHasGetNextResultSuccess()127 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_1); in testNormalHasGetNextResultSuccess()128 assertThat(runInBackgroundAndWait(mIterator::hasNext)).isTrue(); in testNormalHasGetNextResultSuccess()129 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_2); in testNormalHasGetNextResultSuccess()130 assertThat(runInBackgroundAndWait(mIterator::hasNext)).isFalse(); in testNormalHasGetNextResultSuccess()133 runInBackgroundAndWait(mIterator::close); in testNormalHasGetNextResultSuccess()143 mIterator = in testGetNextResultSuccess()148 assertThat(runInBackgroundAndWait(mIterator::hasNext)).isTrue(); in testGetNextResultSuccess()[all …]
31 private final Iterator<E> mIterator; field in PushBackIterator34 mIterator = iterator; in PushBackIterator()39 return !mPushBackStack.isEmpty() || mIterator.hasNext(); in hasNext()47 return mIterator.next(); in next()
50 @Mock private com.android.federatedcompute.services.examplestore.ExampleIterator mIterator; field in JavaExampleStoreTest80 when(mIterator.hasNext()).thenThrow(new InterruptedException("Interrupted")); in testCreateExampleIterator_interruptedIterator()82 mJavaExampleStore = new JavaExampleStore(mIterator); in testCreateExampleIterator_interruptedIterator()93 when(mIterator.hasNext()) in testCreateExampleIterator_throwingIterator()98 mJavaExampleStore = new JavaExampleStore(mIterator); in testCreateExampleIterator_throwingIterator()
76 mIterator = mExampleIterator; in createExampleIteratorWithContext()82 boolean hasNext = mIterator.hasNext(); in createExampleIteratorWithContext()86 return mIterator.next(); in createExampleIteratorWithContext()110 mIterator.close(); in createExampleIteratorWithContext()
69 private final ExampleStoreIterator mIterator; field in ExampleStoreQueryCallbackImpl.IteratorAdapter74 this.mIterator = iterator; in IteratorAdapter()87 mIterator.next(callbackAdapter); in next()100 mIterator.close(); in close()
115 return callbackResult.mIterator; in getExampleIterator()123 final IExampleStoreIterator mIterator; field in ExampleStoreServiceProvider.CallbackResult127 mIterator = iterator; in CallbackResult()
370 private IExampleStoreIterator mIterator; field in OdpExampleStoreServiceTests.TestQueryCallback376 mIterator = iExampleStoreIterator; in onStartQuerySuccess()392 return mIterator; in getIterator()