Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAudioRoutingManagerTest.java96 private TestLooper mTestLooper; field in AudioRoutingManagerTest
113 mTestLooper = new TestLooper(); in setUp()
115 doReturn(mTestLooper.getLooper()).when(mMethodProxy).handlerThreadGetLooper(any()); in setUp()
181 mTestLooper.dispatchAll(); in onlyA2dpConnected_setA2dpActiveShouldNotCalled()
188 mTestLooper.dispatchAll(); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
192 mTestLooper.dispatchAll(); in a2dpHeadsetConnected_setA2dpActiveShouldBeCalledAfterHeadsetConnected()
201 mTestLooper.dispatchAll(); in a2dpAndHfpConnectedAtTheSameTime_setA2dpActiveShouldNotBeCalled()
210 mTestLooper.dispatchAll(); in secondA2dpConnected_setA2dpActiveShouldNotBeCalled()
214 mTestLooper.dispatchAll(); in secondA2dpConnected_setA2dpActiveShouldNotBeCalled()
223 mTestLooper.dispatchAll(); in lastA2dpDisconnected_clearA2dpActive()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DInitiatorSecureChannelTest.java75 private TestLooper mTestLooper = new TestLooper(); field in InitiatorSecureChannelTest
94 mTestLooper.getLooper(), in doInit()
100 mTestLooper.dispatchNext(); in doInit()
107 assertThat(mTestLooper.nextMessage().what).isEqualTo(CMD_OPEN_CHANNEL); in init()
117 mTestLooper.dispatchNext(); in doOpenChannel()
129 assertThat(mTestLooper.nextMessage().what).isEqualTo(CMD_SELECT_ADF); in openChannelGeneralSuccess()
137 mTestLooper.dispatchNext(); // OPEN_CHANNEL in openChannelGeneralFailed()
143 assertThat(mTestLooper.nextMessage()).isNull(); in openChannelGeneralFailed()
162 mTestLooper.dispatchNext(); // OPEN_CHANNEL in openChannelSwapInAdfSuccess()
166 assertThat(mTestLooper.nextMessage().what).isEqualTo(CMD_SELECT_ADF); in openChannelSwapInAdfSuccess()
[all …]
DResponderSecureChannelTest.java64 private TestLooper mTestLooper = new TestLooper(); field in ResponderSecureChannelTest
83 mTestLooper.getLooper(), in doInit()
88 mTestLooper.dispatchNext(); in doInit()
96 assertThat(mTestLooper.nextMessage()).isNull(); in init()
114 mTestLooper.dispatchNext(); in openChannelSuccess()
118 assertThat(mTestLooper.nextMessage().what).isEqualTo(CMD_SEND_OOB_DATA); in openChannelSuccess()
134 mTestLooper.dispatchAll(); in remoteSelectAdfWithMatchedAdfOid()
163 mTestLooper.dispatchNext(); in remoteSelectAdfWithMismatchedAdfOid()
190 mTestLooper.dispatchNext(); in openChannelFail()
194 assertThat(mTestLooper.nextMessage().what).isEqualTo(CMD_SEND_OOB_DATA); in openChannelFail()
[all …]
DControleeInitiatorSessionTest.java65 private final TestLooper mTestLooper = new TestLooper(); field in ControleeInitiatorSessionTest
77 mTestLooper.getLooper(), mFiRaSecureChannel, mSecureSessionCallback, in setup()
125 mTestLooper.moveTimeForward(2000); in onSecureChannelEstablishedPutControleeInfoSuccess()
128 assertThat(mTestLooper.nextMessage().getCallback()).isNotNull(); in onSecureChannelEstablishedPutControleeInfoSuccess()
135 mTestLooper.moveTimeForward(2000); in onSecureChannelEstablishedPutControleeInfoTimeOut()
136 mTestLooper.dispatchNext(); // timeout callback in onSecureChannelEstablishedPutControleeInfoTimeOut()
171 mTestLooper.dispatchAll(); in getControleeSessionData()
203 mTestLooper.dispatchAll(); in putControleeInfoErrorResponse()
221 mTestLooper.dispatchAll(); in getControleeSessionDataSuccessResponseWithRdsAvailable()
240 mTestLooper.dispatchAll(); in successToGetSessionDataFromLocalAppletAsRdsAvailable()
[all …]
DControllerInitiatorSessionTest.java62 private final TestLooper mTestLooper = new TestLooper(); field in ControllerInitiatorSessionTest
72 mTestLooper.getLooper(), mFiRaSecureChannel, mSecureSessionCallback, in setup()
102 mTestLooper.moveTimeForward(2000); in onSecureChannelEstablishedPutControleeInfoSuccess()
105 assertThat(mTestLooper.nextMessage().getCallback()).isNotNull(); in onSecureChannelEstablishedPutControleeInfoSuccess()
112 mTestLooper.moveTimeForward(2000); in onSecureChannelEstablishedPutControleeInfoTimeOut()
113 mTestLooper.dispatchNext(); // timeout callback in onSecureChannelEstablishedPutControleeInfoTimeOut()
149 mTestLooper.dispatchAll(); in getControleeInfoErrorResponse()
167 mTestLooper.dispatchAll(); in doGetControleeInfoResponse()
199 mTestLooper.dispatchAll(); in putControleeSessionDataSuccessResponseWithNotification()
214 mTestLooper.dispatchAll(); in putControleeSessionDataSuccessResponseWithoutNotification()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java121 private TestLooper mTestLooper; field in HeadsetServiceAndStateMachineTest
179 mTestLooper = new TestLooper(); in setUp()
182 new HeadsetService(mAdapterService, mNativeInterface, mTestLooper.getLooper()); in setUp()
203 mTestLooper.dispatchAll(); in tearDown()
236 mTestLooper.dispatchAll(); in testConnectFromApi()
240 mTestLooper.getLooper(), in testConnectFromApi()
261 mTestLooper.dispatchAll(); in testConnectFromApi()
285 mTestLooper.dispatchAll(); in testUnbondDevice_disconnectBeforeUnbond()
289 mTestLooper.getLooper(), in testUnbondDevice_disconnectBeforeUnbond()
304 mTestLooper.dispatchAll(); in testUnbondDevice_disconnectBeforeUnbond()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DRestrictManagerTest.java100 protected TestLooper mTestLooper; field in RestrictManagerTest
151 mTestLooper = new TestLooper(); in setUp()
177 mTestLooper.getLooper(), in setUp()
182 mTestLooper.moveTimeForward(2000); in setUp()
183 mTestLooper.dispatchAll(); in setUp()
215 mTestLooper.moveTimeForward(DEFAULT_GUARDING_TIME / 2); in validateGuardingRestriction()
216 mTestLooper.dispatchAll(); in validateGuardingRestriction()
240 mTestLooper.moveTimeForward(DEFAULT_RESTRICT_NON_PREFERRED_TRANSPORT_TIME / 2); in testAddRestriction()
241 mTestLooper.dispatchAll(); in testAddRestriction()
246 mTestLooper.moveTimeForward(DEFAULT_RESTRICT_NON_PREFERRED_TRANSPORT_TIME / 2); in testAddRestriction()
[all …]
DQnsTelephonyListenerTest.java80 TestLooper mTestLooper; field in QnsTelephonyListenerTest
104 mTestLooper = new TestLooper(); in setUp()
105 mHandler = new Handler(mTestLooper.getLooper()); in setUp()
126 Message msg = mTestLooper.nextMessage(); in testNotifyQnsTelephonyInfo()
137 msg = mTestLooper.nextMessage(); in testNotifyQnsTelephonyInfo()
154 Message msg = mTestLooper.nextMessage(); in testNotifyQnsTelephonyInfoIms()
161 msg = mTestLooper.nextMessage(); in testNotifyQnsTelephonyInfoIms()
315 assertEquals(0, mTestLooper.dispatchAll()); in testRegisterQnsTelephonyInfoChanged()
329 assertEquals(1, mTestLooper.dispatchAll()); in testRegisterQnsTelephonyInfoChanged()
346 assertEquals(0, mTestLooper.dispatchAll()); in testRegisterPreciseDataConnectionStateChanged()
[all …]
DQnsProvisioningListenerTest.java61 TestLooper mTestLooper; field in QnsProvisioningListenerTest
75 mTestLooper = new TestLooper(); in setUp()
76 mHandler = new Handler(mTestLooper.getLooper()); in setUp()
114 Message msg = mTestLooper.nextMessage(); in testRegisterProvisioningItemInfoChanged()
123 mTestLooper.dispatchAll(); in testRegisterProvisioningItemInfoChanged()
129 msg = mTestLooper.nextMessage(); in testRegisterProvisioningItemInfoChanged()
142 msg = mTestLooper.nextMessage(); in testRegisterProvisioningItemInfoChanged()
156 Message msg = mTestLooper.nextMessage(); in testUnregisterProvisioningItemInfoChanged()
166 msg = mTestLooper.nextMessage(); in testUnregisterProvisioningItemInfoChanged()
180 mTestLooper.nextMessage(); in testQnsProvisioningInfo()
[all …]
DQnsCallStatusTrackerTest.java70 TestLooper mTestLooper; field in QnsCallStatusTrackerTest
86 mTestLooper = new TestLooper(); in setUp()
89 Mockito.when(sMockContext.getMainLooper()).thenReturn(mTestLooper.getLooper()); in setUp()
113 mTestLooper.getLooper()); in setUp()
755 mTestLooper.dispatchAll(); in testForActiveCallTrackerGetQualityLevel()
819 mTestLooper.dispatchAll(); in testForActiveCallTrackerGetQualityLevel()
946 mTestLooper.dispatchAll(); in testMediaQualityBreachedWithJitter()
1000 mTestLooper.dispatchAll(); in testMediaQualityBreachedWithNoRtp()
1054 mTestLooper.dispatchAll(); in testMediaQualityBreachedWithPacketLoss()
1057 mTestLooper.moveTimeForward(config.mPktLossTime - 1000); in testMediaQualityBreachedWithPacketLoss()
[all …]
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DNsdPublisherTest.java81 private TestLooper mTestLooper; field in NsdPublisherTest
102 mTestLooper.dispatchAll(); in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()
121 mTestLooper.dispatchAll(); in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()
148 mTestLooper.dispatchAll(); in registerService_nsdManagerFails_serviceRegistrationFails()
167 mTestLooper.dispatchAll(); in registerService_nsdManagerFails_serviceRegistrationFails()
197 mTestLooper.dispatchAll(); in registerService_nsdManagerThrows_serviceRegistrationFails()
217 mTestLooper.dispatchAll(); in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()
237 mTestLooper.dispatchAll(); in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()
241 mTestLooper.dispatchAll(); in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()
259 mTestLooper.dispatchAll(); in unregisterService_nsdManagerFails_serviceUnregistrationFails()
[all …]
DThreadNetworkControllerServiceTest.java164 private TestLooper mTestLooper; field in ThreadNetworkControllerServiceTest
183 mTestLooper = new TestLooper(); in setUp()
184 final Handler handler = new Handler(mTestLooper.getLooper()); in setUp()
186 new NetworkProvider(mContext, mTestLooper.getLooper(), "ThreadNetworkProvider"); in setUp()
232 mTestLooper.dispatchAll(); in initialize_tunInterfaceAndNsdPublisherSetToOtDaemon()
251 mTestLooper.dispatchAll(); in initialize_resourceOverlayValuesAreSetToOtDaemon()
349 mTestLooper.dispatchAll(); in join_otDaemonRemoteFailure_returnsInternalError()
364 mTestLooper.dispatchAll(); in join_succeed_threadNetworkRegistered()
365 mTestLooper.moveTimeForward(FakeOtDaemon.JOIN_DELAY.toMillis() + 100); in join_succeed_threadNetworkRegistered()
366 mTestLooper.dispatchAll(); in join_succeed_threadNetworkRegistered()
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgTunnelManagerTest.java149 private final TestLooper mTestLooper = new TestLooper(); field in EpdgTunnelManagerTest
205 doReturn(mTestLooper.getLooper()).when(mEpdgTunnelManager).getLooper(); in setUp()
244 mTestLooper.dispatchAll(); in setUp()
369 mTestLooper.dispatchAll(); in testBringUpTunnelSuccess()
400 mTestLooper.dispatchAll(); in setupTunnelBringup()
404 mTestLooper.dispatchAll(); in setupTunnelBringup()
804 mTestLooper.dispatchAll(); in testCloseTunnelWithNoTunnelForApn()
836 mTestLooper.dispatchAll(); in testCloseTunnelWithForceClose()
863 mTestLooper.dispatchAll(); in testCloseTunnelWithNonForceClose()
907 mTestLooper.dispatchAll(); in testRekeyAndNattTimerFromCarrierConfig()
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanDataServiceTest.java161 private final TestLooper mTestLooper = new TestLooper(); field in IwlanDataServiceTest
278 doReturn(mTestLooper.getLooper()).when(mIwlanDataService).getLooper(); in setUp()
284 mTestLooper.dispatchAll(); in setUp()
300 mTestLooper.moveTimeForward(milliSeconds); in moveTimeForwardAndDispatch()
301 mTestLooper.dispatchAll(); in moveTimeForwardAndDispatch()
309 mTestLooper.dispatchAll(); in cleanUp()
335 mTestLooper.dispatchAll(); in onSystemDefaultNetworkConnected()
347 mTestLooper.dispatchAll(); in onSystemDefaultNetworkLost()
369 mTestLooper.dispatchAll(); in testWifiOnLost()
544 mTestLooper.dispatchAll(); in testOnCrossSimCallingEnable_doNotUpdateTunnelManagerIfCellularDataOnSameSub()
[all …]
DErrorPolicyManagerTest.java140 private final TestLooper mTestLooper = new TestLooper(); field in ErrorPolicyManagerTest
181 doReturn(mTestLooper.getLooper()).when(mErrorPolicyManager).getLooper(); in setUp()
249 mTestLooper.dispatchAll(); in testValidCarrierConfig()
340 mTestLooper.dispatchAll(); in testShouldKeepRetryIndexForDifferentErrorCause()
411 mTestLooper.dispatchAll(); in testDefaultPolicyFallback()
487 mTestLooper.dispatchAll(); in testChoosingFallbackPolicy()
538 mTestLooper.dispatchAll(); in testNullCarrierConfig()
552 mTestLooper.dispatchAll(); in testNullCarrierConfig()
586 mTestLooper.dispatchAll(); in testGetLastError()
609 mTestLooper.dispatchAll(); in testGetLastError()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWaitingStateTest.java46 private TestLooper mTestLooper; field in WaitingStateTest
165 mTestLooper.dispatchAll(); in transitionToState()
181 mTestLooper = new TestLooper(); in setup()
190 "ExternalTransitionStateMachine", mTestLooper.getLooper()); in testExternalTransitionStateMachine()
192 mTestLooper.dispatchAll(); in testExternalTransitionStateMachine()
245 "PseudoLocalTransitionStateMachine", mTestLooper.getLooper(), false); in testPseudoLocalTransitionStateMachine()
247 mTestLooper.dispatchAll(); in testPseudoLocalTransitionStateMachine()
305 "PseudoLocalTransitionStateMachine", mTestLooper.getLooper(), true); in testWaitingStateTransitionAndDeferral()
307 mTestLooper.dispatchAll(); in testWaitingStateTransitionAndDeferral()
318 mTestLooper.dispatchAll(); in testWaitingStateTransitionAndDeferral()
[all …]
DWifiDiagnosticsTest.java93 TestLooper mTestLooper; field in WifiDiagnosticsTest
125 mTestLooper = new TestLooper(); in setUp()
177 mTestLooper.getLooper()); in setUp()
311 mTestLooper.dispatchAll(); in canCaptureAndStoreRingBufferData()
333 mTestLooper.dispatchAll(); in loggerDiscardsExtraneousData()
683 mTestLooper.dispatchAll();
700 mTestLooper.dispatchAll();
717 mTestLooper.dispatchAll();
731 mTestLooper.dispatchAll();
745 mTestLooper.dispatchAll();
[all …]
DAfcClientTest.java71 private TestLooper mTestLooper; field in AfcClientTest
85 mTestLooper = new TestLooper(); in setUp()
86 mWifiHandler = new Handler(mTestLooper.getLooper()); in setUp()
109 Handler backgroundHandler = new Handler(mTestLooper.getLooper()); in setUp()
141 mTestLooper.dispatchAll(); in testHTTPRequestInitialization()
158 mTestLooper.dispatchAll(); in testHTTPRequestInitialization()
176 mTestLooper.dispatchAll(); in testSendRequestAndReceiveResponse()
198 mTestLooper.dispatchAll(); in testSendHTTPRequestFail()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/
DEapMethodEndToEndTest.java47 protected TestLooper mTestLooper; field in EapMethodEndToEndTest
58 mTestLooper = new TestLooper(); in setUp()
63 mTestLooper.dispatchAll(); in verifyUnsupportedType()
72 mTestLooper.dispatchAll(); in verifyEapNotification()
82 mTestLooper.dispatchAll(); in verifyEapSuccess()
92 mTestLooper.dispatchAll(); in verifyEapSuccessWithOption()
100 mTestLooper.dispatchAll(); in verifyEapFailure()
112 mTestLooper.dispatchAll(); in verifyExpectsEapFailure()
DEapAuthenticatorTest.java69 private TestLooper mTestLooper; field in EapAuthenticatorTest
78 mTestLooper = new TestLooper(); in setUp()
100 mTestLooper.dispatchAll(); in testProcessEapMessageResponse()
123 mTestLooper.dispatchAll(); in testProcessEapMessageError()
147 mTestLooper.dispatchAll(); in testProcessEapMessageSuccess()
168 mTestLooper.dispatchAll(); in testProcessEapMessageFailure()
190 mTestLooper.dispatchAll(); in testProcessEapMessageExceptionThrown()
211 mTestLooper.moveTimeForward(TEST_TIMEOUT_MILLIS); in testProcessEapMessageStateMachineTimeout()
217 mTestLooper.dispatchAll(); in testProcessEapMessageStateMachineTimeout()
226 mTestLooper.getLooper(), in getEapAuthenticatorWithCallback()
DEapTtlsTest.java454 mTestLooper.getLooper(), in setUp()
582 mTestLooper.dispatchAll(); in processAndVerifyStartRequest()
592 mTestLooper.dispatchAll(); in processAndVerifyServerHello_initialFragment()
610 mTestLooper.dispatchAll(); in processAndVerifyServerHello_finalFragment()
630 mTestLooper.dispatchAll(); in processAndVerifyServerFinished()
657 mTestLooper.dispatchAll(); in processAndVerifyMsChapV2ChallengeRequest()
678 mTestLooper.dispatchAll(); in processAndVerifyMsChapV2SuccessRequest()
697 mTestLooper.dispatchAll(); in processAndVerifyTunneledEapNotification()
718 mTestLooper.dispatchAll(); in processMessageAndVerifyMsChapV2FailureRequest()
738 mTestLooper.dispatchAll(); in processAndVerifyTunneledUnsupportedType()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DBrowsablePlayerConnectorTest.java54 TestLooper mTestLooper; field in BrowsablePlayerConnectorTest
64 mTestLooper = new TestLooper(); in setUp()
104 mTestLooper.startAutoDispatch(); in browsablePlayerConnectorCallback_calledAfterConnection()
109 mTestLooper.getLooper(), in browsablePlayerConnectorCallback_calledAfterConnection()
115 mTestLooper.stopAutoDispatch(); in browsablePlayerConnectorCallback_calledAfterConnection()
116 mTestLooper.dispatchAll(); in browsablePlayerConnectorCallback_calledAfterConnection()
124 mTestLooper.getLooper(), in cleanup_doesNotCrash()
129 mTestLooper.dispatchAll(); in cleanup_doesNotCrash()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/provisioning/
DProvisioningManagerTest.java48 private final TestLooper mTestLooper = new TestLooper(); field in ProvisioningManagerTest
59 mUnderTest = new ProvisioningManager(mSecureElementChannel, mTestLooper.getLooper()); in setup()
66 mTestLooper.dispatchAll(); in provisioningException()
78 mTestLooper.dispatchAll(); in deleteAdfSuccess()
90 mTestLooper.dispatchAll(); in deleteAdfFail()
101 mTestLooper.dispatchAll(); in deleteAdfWithException()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbSessionManagerTest.java335 private TestLooper mTestLooper = new TestLooper(); field in UwbSessionManagerTest
378 mTestLooper.getLooper())); in setup()
982 assertThat(mTestLooper.nextMessage()).isNull(); in initSession_ExistedSession()
998 assertThat(mTestLooper.nextMessage()).isNull(); in initFiraSession_maxSessionsExceeded()
1014 assertThat(mTestLooper.nextMessage()).isNull(); in initAliroSession_maxSessionsExceeded()
1030 assertThat(mTestLooper.nextMessage()).isNull(); in initCccSession_maxSessionsExceeded()
1060 assertThat(mTestLooper.nextMessage()).isNull(); in initSession_UwbSession_RemoteException()
1091 assertThat(mTestLooper.nextMessage().what).isEqualTo(1); // SESSION_OPEN_RANGING in initSession_success()
1128 mTestLooper.dispatchNext(); in initSessionMaxSessions_lowestPrioritySessionReplaced()
1145 mTestLooper.dispatchAll(); in initSessionMaxSessions_lowestPrioritySessionReplaced()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHalHidlImplTest.java70 private final TestLooper mTestLooper = new TestLooper(); field in OffloadHalHidlImplTest
97 mIOffloadControlMock, new Handler(mTestLooper.getLooper()), mLog); in createAndInitOffloadHal()
297 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
301 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
305 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
309 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
313 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
318 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
327 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
339 mTestLooper.dispatchAll(); in testTetheringOffloadCallback()
[all …]

123