Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsServiceTypeClientTests.java139 private FakeExecutor currentThreadExecutor = new FakeExecutor(); field in MdnsServiceTypeClientTests
265 return new MdnsServiceTypeClient(SERVICE_TYPE, mockSocketClient, currentThreadExecutor, in makeMdnsServiceTypeClient()
630 Runnable firstMdnsTask = currentThreadExecutor.getAndClearSubmittedRunnable(); in testIfPreviousTaskIsCanceledWhenNewSessionStarts()
642 currentThreadExecutor.getAndClearLastScheduledRunnable(); in testIfPreviousTaskIsCanceledWhenNewSessionStarts()
649 assertNull(currentThreadExecutor.getAndClearLastScheduledRunnable()); in testIfPreviousTaskIsCanceledWhenNewSessionStarts()
662 currentThreadExecutor.getAndClearLastScheduledRunnable(); in testIfPreviousTaskIsCanceledWhenSessionStops()
666 currentThreadExecutor.getAndClearSubmittedRunnable().run(); in testIfPreviousTaskIsCanceledWhenSessionStops()
669 assertNull(currentThreadExecutor.getAndClearLastScheduledRunnable()); in testIfPreviousTaskIsCanceledWhenSessionStops()
676 assertNotNull(currentThreadExecutor.getAndClearSubmittedRunnable()); in testQueryScheduledWhenAnsweredFromCache()
693 assertNull(currentThreadExecutor.getAndClearSubmittedRunnable()); in testQueryScheduledWhenAnsweredFromCache()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/
DPickerDataLayerV2Test.java2515 final Executor currentThreadExecutor = Runnable::run; in testQuerySearchSuggestionsZeroState() local
2518 mContext, bundle, currentThreadExecutor, null)) { in testQuerySearchSuggestionsZeroState() argument
2570 final Executor currentThreadExecutor = Runnable::run; in testQuerySearchSuggestionsNonZeroState() local
2573 mContext, bundle, currentThreadExecutor, null)) { in testQuerySearchSuggestionsNonZeroState() argument
2625 final Executor currentThreadExecutor = Runnable::run; in testQuerySearchSuggestionsWithHistory() local
2632 mContext, bundle, currentThreadExecutor, null)) { in testQuerySearchSuggestionsWithHistory() argument
2673 final Executor currentThreadExecutor = Runnable::run; in testHandleNewSearchRequest() local
2676 mMockContext, extras, currentThreadExecutor, mMockWorkManager); in testHandleNewSearchRequest()