Home
last modified time | relevance | path

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

/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DHdmiAudioSystemClientTest.java42 private TestLooper mTestLooper; field in HdmiAudioSystemClientTest
51 mTestLooper = new TestLooper(); in before()
53 new HdmiAudioSystemClient(mService, new Handler(mTestLooper.getLooper())); in before()
67 mTestLooper.moveTimeForward(500); in testMultipleCommands_longTimeBetweenCalls()
68 mTestLooper.dispatchAll(); in testMultipleCommands_longTimeBetweenCalls()
78 mTestLooper.moveTimeForward(100); // current time: 100ms in testMultipleCommands_shortTimeBetweenCalls()
79 mTestLooper.dispatchAll(); in testMultipleCommands_shortTimeBetweenCalls()
83 mTestLooper.moveTimeForward(100); // current time: 200ms in testMultipleCommands_shortTimeBetweenCalls()
84 mTestLooper.dispatchAll(); in testMultipleCommands_shortTimeBetweenCalls()
88 mTestLooper.moveTimeForward(300); // current time: 500ms in testMultipleCommands_shortTimeBetweenCalls()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecControllerTest.java82 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecControllerTest
86 mMyLooper = mTestLooper.getLooper(); in SetUp()
87 mMyLooper = mTestLooper.getLooper(); in SetUp()
98 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_TvDevicePreferredNotOcupied()
106 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_TvDeviceNonPreferredNotOcupied()
114 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_TvDeviceNonPreferredFirstOcupied()
123 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_TvDeviceNonPreferredAllOcupied()
131 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_AudioSystemNonPreferredNotOcupied()
140 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_AudioSystemNonPreferredAllOcupied()
147 mTestLooper.dispatchAll(); in testAllocatLogicalAddress_PlaybackPreferredNotOccupied()
[all …]
DArcTerminationActionFromAvrTest.java44 private TestLooper mTestLooper = new TestLooper(); field in ArcTerminationActionFromAvrTest
93 return mTestLooper.getLooper(); in setUp()
110 Looper looper = mTestLooper.getLooper(); in setUp()
122 mTestLooper.dispatchAll(); in testSendMessage_notSuccess()
132 mTestLooper.moveTimeForward(1000); in testReportArcTerminated_notReceived()
133 mTestLooper.dispatchAll(); in testReportArcTerminated_notReceived()
143 mTestLooper.moveTimeForward(1000); in testReportArcTerminated_received()
144 mTestLooper.dispatchAll(); in testReportArcTerminated_received()
DHdmiCecLocalDeviceAudioSystemTest.java65 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDeviceAudioSystemTest
164 mMyLooper = mTestLooper.getLooper(); in setUp()
207 mTestLooper.dispatchAll(); in setUp()
226 mTestLooper.dispatchAll(); in handleGiveAudioStatus_volume_10_mute_true()
239 mTestLooper.dispatchAll(); in handleGiveSystemAudioModeStatus_originalOff()
257 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_featureDisabled()
275 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_samOff()
295 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_noAudioDeviceInfo()
311 mTestLooper.dispatchAll(); in handleSetSystemAudioMode_setOn_orignalOff()
318 mTestLooper.dispatchAll(); in handleSetSystemAudioMode_setOn_orignalOff()
[all …]
DDetectTvSystemAudioModeSupportActionTest.java43 private TestLooper mTestLooper = new TestLooper(); field in DetectTvSystemAudioModeSupportActionTest
91 return mTestLooper.getLooper(); in SetUp()
102 Looper looper = mTestLooper.getLooper(); in SetUp()
121 mTestLooper.dispatchAll(); in testSendCecCommandNotSucceed()
130 mTestLooper.dispatchAll(); in testFeatureAbort()
139 mTestLooper.moveTimeForward(2000); in testSupported()
140 mTestLooper.dispatchAll(); in testSupported()
DSystemAudioInitiationActionFromAvrTest.java45 private TestLooper mTestLooper = new TestLooper(); field in SystemAudioInitiationActionFromAvrTest
182 Looper looper = mTestLooper.getLooper(); in SetUp()
196 mTestLooper.dispatchAll(); in testNoActiveSourceMessageReceived()
215 mTestLooper.dispatchAll(); in testTvNotSupport()
231 mTestLooper.dispatchAll(); in testTvSupport()
250 mTestLooper.dispatchAll(); in testKnownActiveSource()
271 mTestLooper.dispatchAll(); in testRetry()
289 mTestLooper.dispatchAll(); in testIsPlaybackDevice_cannotReceiveActiveSource()
DArcInitiationActionFromAvrTest.java52 private TestLooper mTestLooper = new TestLooper(); field in ArcInitiationActionFromAvrTest
112 return mTestLooper.getLooper(); in setUp()
135 Looper looper = mTestLooper.getLooper(); in setUp()
148 mTestLooper.dispatchAll(); in setUp()
160 mTestLooper.dispatchAll(); in arcInitiation_requestActiveSource()
DHdmiCecLocalDeviceTest.java85 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDeviceTest
116 mHdmiControlService.setIoLooper(mTestLooper.getLooper()); in SetUp()
158 mTestLooper.dispatchAll(); in handleGivePhysicalAddress_success()
175 mTestLooper.dispatchAll(); in handleGiveDeviceVendorId_success()
DHdmiCecLocalDevicePlaybackTest.java47 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDevicePlaybackTest
70 mMyLooper = mTestLooper.getLooper(); in setUp()
83 mTestLooper.dispatchAll(); in setUp()
DHdmiControlServiceTest.java107 private TestLooper mTestLooper = new TestLooper(); field in HdmiControlServiceTest
121 mMyLooper = mTestLooper.getLooper(); in SetUp()
153 mTestLooper.dispatchAll(); in SetUp()
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java51 private TestLooper mTestLooper; field in TestLooperTest
63 mTestLooper = new TestLooper(); in setUp()
64 mHandler = new Handler(mTestLooper.getLooper()); in setUp()
66 mExecutor = mTestLooper.getNewExecutor(); in setUp()
86 mTestLooper.dispatchAll(); in testNoTimeMovement()
116 mTestLooper.dispatchAll(); in testNoTimeMovementExecutor()
144 mTestLooper.dispatchAll(); in testDelayedDispatchNoTimeMove()
172 mTestLooper.moveTimeForward(5000); in testDelayedDispatchAdvanceTimeOnce()
173 mTestLooper.dispatchAll(); in testDelayedDispatchAdvanceTimeOnce()
203 mTestLooper.moveTimeForward(4000); in testDelayedDispatchAdvanceTimeTwice()
[all …]
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java86 private TestLooper mTestLooper; field in PackageWatchdogTest
101 mTestLooper = new TestLooper(); in setUp()
162 mTestLooper.dispatchAll(); in testRegistration()
175 mTestLooper.dispatchAll(); in testRegistration()
197 mTestLooper.dispatchAll(); in testObserveAlreadyObservedPackage()
204 mTestLooper.dispatchAll(); in testObserveAlreadyObservedPackage()
233 mTestLooper.dispatchAll(); in testPersistence()
277 mTestLooper.dispatchAll(); in testNoPackageFailureBeforeThreshold()
305 mTestLooper.dispatchAll(); in testPackageFailureDifferentPackageNotifyNone()
341 mTestLooper.dispatchAll(); in testPackageFailureDifferentVersionNotifyNone()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pManagerTest.java41 private TestLooper mTestLooper; field in WifiP2pManagerTest
57 mTestLooper = new TestLooper(); in setUp()
66 mTestLooper.getLooper(), null, null, mDut)) { in testChannelFinalize()
78 mTestLooper.getLooper(), null, null, mDut); in testChannelClose()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLocalOnlyHotspotRequestInfoTest.java50 private TestLooper mTestLooper; field in LocalOnlyHotspotRequestInfoTest
60 mTestLooper = new TestLooper(); in setUp()
61 mHandler = new Handler(mTestLooper.getLooper()); in setUp()
148 Message message = mTestLooper.nextMessage(); in verifySendFailedMessage()
161 Message message = mTestLooper.nextMessage(); in verifySendStartedMessage()
173 Message message = mTestLooper.nextMessage(); in verifySendStoppedMessage()
DHalDeviceManagerTest.java95 private TestLooper mTestLooper; field in HalDeviceManagerTest
110 super(mClock, mTestLooper.getLooper()); in HalDeviceManagerSpy()
128 mTestLooper = new TestLooper(); in before()
129 mHandler = new Handler(mTestLooper.getLooper()); in before()
180 mTestLooper.dispatchAll(); in testStartStopFlow()
244 mTestLooper.dispatchAll(); in testWifiDeathAndRegistration()
259 mTestLooper.dispatchAll(); in testWifiDeathAndRegistration()
279 mTestLooper.dispatchAll(); in testWifiFail()
287 mTestLooper.dispatchAll(); in testWifiFail()
361 mTestLooper.dispatchAll(); in testCacheMismatchError()
[all …]
DWifiMetricsTest.java136 TestLooper mTestLooper; field in WifiMetricsTest
163 mTestLooper = new TestLooper(); in setUp()
164 mWifiMetrics = new WifiMetrics(mContext, mFacade, mClock, mTestLooper.getLooper(), in setUp()
1902 mTestLooper.dispatchAll(); in generateStaEvents()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java67 private final TestLooper mTestLooper = new TestLooper(); field in OffloadHardwareInterfaceTest
106 mOffloadHw = new OffloadHardwareInterface(new Handler(mTestLooper.getLooper()), log, in setUp()
182 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
186 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
190 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
194 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
198 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
203 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
212 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
DBpfCoordinatorTest.java103 private final TestLooper mTestLooper = new TestLooper(); field in BpfCoordinatorTest
108 return new Handler(mTestLooper.getLooper());
138 mTestLooper.dispatchAll(); in waitForIdle()
184 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in setTetherOffloadStatsList()
253 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testGetForwardedStats()
278 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testOnSetAlert()
285 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testOnSetAlert()
291 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testOnSetAlert()
511 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testTetheringConfigDisable()
591 mTestLooper.moveTimeForward(pollingInterval); in testTetheringConfigSetPollingInterval()
[all …]
DOffloadControllerTest.java121 private final TestLooper mTestLooper = new TestLooper(); field in OffloadControllerTest
162 mTestLooper.dispatchAll(); in waitForIdle()
166 OffloadController offload = new OffloadController(new Handler(mTestLooper.getLooper()), in makeOffloadController()
807 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testOnSetAlert()
814 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testOnSetAlert()
822 mTestLooper.moveTimeForward(DEFAULT_TETHER_OFFLOAD_POLL_INTERVAL_MS); in testOnSetAlert()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DSIMRecordsTest.java66 private TestLooper mTestLooper; field in SIMRecordsTest
94 mTestLooper = new TestLooper(); in setUp()
95 mTestHandler = new Handler(mTestLooper.getLooper()); in setUp()
107 mTestLooper.dispatchAll(); in setUp()
121 mTestLooper.dispatchAll(); in testSetForbiddenPlmnsPad()
136 mTestLooper.dispatchAll(); in testSetForbiddenPlmnsTruncate()
151 mTestLooper.dispatchAll(); in testSetForbiddenPlmnsClear()
197 mTestLooper.dispatchAll(); in testGetForbiddenPlmns()
220 mTestLooper.dispatchAll(); in testGetForbiddenPlmnsException()
243 mTestLooper.dispatchAll(); in testGetForbiddenPlmnsNull()
[all …]
/frameworks/base/lowpan/tests/src/android/net/lowpan/
DLowpanManagerTest.java54 private final TestLooper mTestLooper = new TestLooper(); field in LowpanManagerTest
66 mLowpanManager = new LowpanManager(mContext, mLowpanService, mTestLooper.getLooper()); in setUp()
108 mTestLooper.dispatchAll(); in testRegisterCallback()
131 mTestLooper.dispatchAll(); in testRegisterCallback()
156 mTestLooper.dispatchAll(); in testUnregisterCallback()
DLowpanInterfaceTest.java52 private final TestLooper mTestLooper = new TestLooper(); field in LowpanInterfaceTest
66 new LowpanInterface(mContext, mLowpanInterfaceService, mTestLooper.getLooper()); in setUp()
85 mTestLooper.dispatchAll(); in testStateChangedCallback()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DExternalCallbackTrackerTest.java47 private TestLooper mTestLooper; field in ExternalCallbackTrackerTest
54 mTestLooper = new TestLooper(); in setUp()
55 mHandler = new Handler(mTestLooper.getLooper()); in setUp()
119 mTestLooper.dispatchAll(); in testCallbackRemovalOnDeath()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java74 private TestLooper mTestLooper = new TestLooper(); field in NetworkStatsSubscriptionsMonitorTest
87 mMonitor = new NetworkStatsSubscriptionsMonitor(mContext, mTestLooper.getLooper(), in setUp()