Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTrackerTest.java128 AOOTestHandler mTestHandler; field in AutomaticOnOffKeepaliveTrackerTest
347 mTestHandler = new AOOTestHandler(mHandlerThread.getLooper()); in setup()
348 mTcpController = new TestTcpKeepaliveController(mTestHandler); in setup()
349 mKeepaliveTracker = new TestKeepaliveTracker(mCtx, mTestHandler, mTcpController); in setup()
350 mKeepaliveStatsTracker = spy(new KeepaliveStatsTracker(mCtx, mTestHandler)); in setup()
351 doReturn(mKeepaliveTracker).when(mDependencies).newKeepaliveTracker(mCtx, mTestHandler); in setup()
354 .newKeepaliveStatsTracker(mCtx, mTestHandler); in setup()
359 new AutomaticOnOffKeepaliveTracker(mCtx, mTestHandler, mDependencies); in setup()
411 assertTrue(visibleOnHandlerThread(mTestHandler, in testIsAnyTcpSocketConnected_withTargetNetId()
418 assertFalse(visibleOnHandlerThread(mTestHandler, in testIsAnyTcpSocketConnected_withIncorrectNetId()
[all …]
DKeepaliveStatsTrackerTest.java118 private Handler mTestHandler; field in KeepaliveStatsTrackerTest
134 eq(mTestHandler)); in getBroadcastReceiver()
234 mTestHandler = new Handler(mHandlerThread.getLooper()); in setUp()
237 mKeepaliveStatsTracker = new KeepaliveStatsTracker(mContext, mTestHandler, mDependencies); in setUp()
242 HandlerUtils.waitForIdle(mTestHandler, TIMEOUT_MS); in setUp()
261 mTestHandler, () -> mKeepaliveStatsTracker.buildKeepaliveMetrics()); in buildKeepaliveMetrics()
268 mTestHandler, () -> mKeepaliveStatsTracker.buildAndResetMetrics()); in buildAndResetMetrics()
291 visibleOnHandlerThread(mTestHandler, () -> in onStartKeepalive()
299 mTestHandler, () -> mKeepaliveStatsTracker.onPauseKeepalive(TEST_NETWORK, slot)); in onPauseKeepalive()
305 mTestHandler, () -> mKeepaliveStatsTracker.onResumeKeepalive(TEST_NETWORK, slot)); in onResumeKeepalive()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchViewManagerTest.java79 private TestHandler mTestHandler; field in SearchViewManagerTest
91 mTestHandler = new TestHandler(); in setUp()
123 mSearchChipViewManager, null /* savedState */, mTestTimer, mTestHandler); in setUp()
169 mTestHandler.dispatchAllMessages(); in fastForwardTo()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DMultiInternetManagerTest.java92 private TestHandler mTestHandler; field in MultiInternetManagerTest
180 mTestHandler = new TestHandler(mLooper.getLooper()); in setUp()
183 mContext, mCmiMonitor, mSettingsStore, mTestHandler, mClock); in setUp()
407 mTestHandler.timeAdvance(); in testStartConnectivityScan()
DWifiConnectivityManagerTest.java164 mTestHandler = new TestHandler(mLooper.getLooper()); in setUp()
286 private TestHandler mTestHandler; field in WifiConnectivityManagerTest
631 mTestHandler, in createConnectivityManager()
3029 + mTestHandler.getIntervals().stream().mapToLong(Long::longValue).sum() + 10); in triggerPeriodicScansAndGetIntervals()
3031 mTestHandler.timeAdvance(); in triggerPeriodicScansAndGetIntervals()
3038 assertEquals(triggerTimes + 1, mTestHandler.getIntervals().size()); in triggerPeriodicScansAndGetIntervals()
3040 return mTestHandler.getIntervals(); in triggerPeriodicScansAndGetIntervals()
3131 assertEquals(0, mTestHandler.getIntervals().size()); in testSetOneShotScreenOnConnectivityScanDelayMillis()
3134 assertEquals(1, mTestHandler.getIntervals().size()); in testSetOneShotScreenOnConnectivityScanDelayMillis()
3136 Math.abs(scanDelayMs - mTestHandler.getIntervals().get(0).longValue()) < 2); in testSetOneShotScreenOnConnectivityScanDelayMillis()
[all …]