Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DHdmiAudioSystemClientTest.java43 private TestLooper mTestLooper; field in HdmiAudioSystemClientTest
52 mTestLooper = new TestLooper(); in before()
54 new HdmiAudioSystemClient(mService, new Handler(mTestLooper.getLooper())); in before()
68 mTestLooper.moveTimeForward(500); in testMultipleCommands_longTimeBetweenCalls()
69 mTestLooper.dispatchAll(); in testMultipleCommands_longTimeBetweenCalls()
79 mTestLooper.moveTimeForward(100); // current time: 100ms in testMultipleCommands_shortTimeBetweenCalls()
80 mTestLooper.dispatchAll(); in testMultipleCommands_shortTimeBetweenCalls()
84 mTestLooper.moveTimeForward(100); // current time: 200ms in testMultipleCommands_shortTimeBetweenCalls()
85 mTestLooper.dispatchAll(); in testMultipleCommands_shortTimeBetweenCalls()
89 mTestLooper.moveTimeForward(300); // current time: 500ms in testMultipleCommands_shortTimeBetweenCalls()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DDevicePowerStatusActionTest.java67 private TestLooper mTestLooper = new TestLooper(); field in DevicePowerStatusActionTest
85 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
88 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
115 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
124 Looper looper = mTestLooper.getLooper(); in setUp()
143 mTestLooper.dispatchAll(); in setUp()
150 mTestLooper.dispatchAll(); in queryDisplayStatus_sendsRequestAndHandlesResponse()
159 mTestLooper.dispatchAll(); in queryDisplayStatus_sendsRequestAndHandlesResponse()
170 mTestLooper.dispatchAll(); in queryDisplayStatus_sendsRequest_nack()
181 mTestLooper.dispatchAll(); in queryDisplayStatus_sendsRequest_timeout_retriesSuccessfully()
[all …]
DPowerStatusMonitorActionTest.java65 private TestLooper mTestLooper = new TestLooper(); field in PowerStatusMonitorActionTest
83 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
86 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
114 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
123 Looper looper = mTestLooper.getLooper(); in setUp()
135 mTestLooper.dispatchAll(); in setUp()
146 mTestLooper.dispatchAll(); in setUp()
157 mTestLooper.dispatchAll(); in sourceDevice_1_4_updatesPowerState()
167 mTestLooper.moveTimeForward(TimeUnit.SECONDS.toMillis(60)); in sourceDevice_1_4_updatesPowerState()
168 mTestLooper.dispatchAll(); in sourceDevice_1_4_updatesPowerState()
[all …]
DArcInitiationActionFromAvrTest.java60 private TestLooper mTestLooper = new TestLooper(); field in ArcInitiationActionFromAvrTest
75 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
78 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
95 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
114 return mTestLooper.getLooper(); in setUp()
125 Looper looper = mTestLooper.getLooper(); in setUp()
139 mTestLooper.dispatchAll(); in setUp()
145 mTestLooper.dispatchAll(); in arcInitiation_initiated()
155 mTestLooper.dispatchAll(); in arcInitiation_initiated()
164 mTestLooper.dispatchAll(); in arcInitiation_sendFailed()
[all …]
DSystemAudioAutoInitiationActionTest.java65 private TestLooper mTestLooper = new TestLooper(); field in SystemAudioAutoInitiationActionTest
80 Looper myLooper = mTestLooper.getLooper(); in setUp()
142 mTestLooper.dispatchAll(); in setUp()
165 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_systemAudioOn()
176 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_systemAudioOn()
191 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_systemAudioOnAndImpossibleToChangeSystemAudio()
202 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_systemAudioOnAndImpossibleToChangeSystemAudio()
215 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_systemAudioOnAndResponseOff()
226 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_systemAudioOnAndResponseOff()
242 mTestLooper.dispatchAll(); in testReceiveSystemAudioMode_settingOffAndResponseOn()
[all …]
DHdmiCecControllerTest.java95 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecControllerTest
99 mMyLooper = mTestLooper.getLooper(); in SetUp()
132 mTestLooper.dispatchAll(); in setUpForOnMessageTest()
139 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_TvDevicePreferredNotOccupied()
146 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_TvDeviceNonPreferredNotOccupied()
154 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_TvDeviceNonPreferredFirstOccupied()
163 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_TvDeviceNonPreferredAllOccupied()
171 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_AudioSystemNonPreferredNotOccupied()
180 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_AudioSystemNonPreferredAllOccupied()
187 mTestLooper.dispatchAll(); in testAllocateLogicalAddress_PlaybackPreferredNotOccupied()
[all …]
DHdmiCecLocalDeviceTvTest.java71 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDeviceTvTest
88 mMyLooper = mTestLooper.getLooper(); in setUp()
150 mTestLooper.dispatchAll(); in setUp()
167 mTestLooper.dispatchAll(); in onAddressAllocated_invokesDeviceDiscovery()
190 mTestLooper.dispatchAll(); in getActiveSource_deviceInNetworkIsActiveSource()
239 mTestLooper.dispatchAll(); in tvWakeOnOneTouchPlay_TextViewOn_Enabled()
244 mTestLooper.dispatchAll(); in tvWakeOnOneTouchPlay_TextViewOn_Enabled()
253 mTestLooper.dispatchAll(); in tvWakeOnOneTouchPlay_ImageViewOn_Enabled()
258 mTestLooper.dispatchAll(); in tvWakeOnOneTouchPlay_ImageViewOn_Enabled()
267 mTestLooper.dispatchAll(); in tvWakeOnOneTouchPlay_TextViewOn_Disabled()
[all …]
DOneTouchPlayActionTest.java74 private TestLooper mTestLooper = new TestLooper(); field in OneTouchPlayActionTest
98 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
101 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
128 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
137 Looper looper = mTestLooper.getLooper(); in setUp()
149 mTestLooper.dispatchAll(); in setUp()
169 mTestLooper.dispatchAll(); in succeedWithUnknownTvDevice()
177 mTestLooper.dispatchAll(); in succeedWithUnknownTvDevice()
194 mTestLooper.dispatchAll(); in succeedWithUnknownTvDevice()
212 mTestLooper.dispatchAll(); in succeedAfterGettingPowerStatusOn_Cec14b()
[all …]
DActiveSourceActionTest.java58 private TestLooper mTestLooper = new TestLooper(); field in ActiveSourceActionTest
73 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
76 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
103 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
112 Looper looper = mTestLooper.getLooper(); in setUp()
124 mTestLooper.dispatchAll(); in setUp()
134 mTestLooper.dispatchAll(); in playbackDevice_sendsActiveSource_sendsMenuStatus()
139 mTestLooper.dispatchAll(); in playbackDevice_sendsActiveSource_sendsMenuStatus()
157 mTestLooper.dispatchAll(); in playbackDevice_updatesActiveSourceState()
162 mTestLooper.dispatchAll(); in playbackDevice_updatesActiveSourceState()
[all …]
DArcTerminationActionFromAvrTest.java61 private TestLooper mTestLooper = new TestLooper(); field in ArcTerminationActionFromAvrTest
76 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
79 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
91 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
115 return mTestLooper.getLooper(); in setUp()
119 Looper looper = mTestLooper.getLooper(); in setUp()
141 mTestLooper.dispatchAll(); in setUp()
149 mTestLooper.dispatchAll(); in testSendMessage_sendFailed()
161 mTestLooper.dispatchAll(); in testReportArcTerminated_timeout()
173 mTestLooper.dispatchAll(); in testReportArcTerminated_received()
[all …]
DHdmiCecLocalDevicePlaybackTest.java76 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDevicePlaybackTest
94 mMyLooper = mTestLooper.getLooper(); in setUp()
171 mTestLooper.dispatchAll(); in setUp()
196 mTestLooper.dispatchAll(); in handleRoutingChange_None()
218 mTestLooper.dispatchAll(); in handleRoutingInformation_None()
240 mTestLooper.dispatchAll(); in handleRoutingChange_WakeUpOnly()
262 mTestLooper.dispatchAll(); in handleRoutingInformation_WakeUpOnly()
286 mTestLooper.dispatchAll(); in handleRoutingChange_WakeUpAndSendActiveSource()
310 mTestLooper.dispatchAll(); in handleRoutingInformation_WakeUpAndSendActiveSource()
434 mTestLooper.dispatchAll(); in handleRoutingChange_otherDevice_ActiveSource_mediaSessionsPaused()
[all …]
DDetectTvSystemAudioModeSupportActionTest.java47 private TestLooper mTestLooper = new TestLooper(); field in DetectTvSystemAudioModeSupportActionTest
95 return mTestLooper.getLooper(); in SetUp()
106 Looper looper = mTestLooper.getLooper(); in SetUp()
125 mTestLooper.dispatchAll(); in testSendCecCommandNotSucceed()
134 mTestLooper.dispatchAll(); in testFeatureAbort()
143 mTestLooper.moveTimeForward(2000); in testSupported()
144 mTestLooper.dispatchAll(); in testSupported()
DDeviceSelectActionTest.java92 private TestLooper mTestLooper = new TestLooper(); field in DeviceSelectActionTest
105 mMyLooper = mTestLooper.getLooper(); in setUp()
157 mTestLooper.dispatchAll(); in setUp()
216 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
221 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
235 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
239 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
247 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
261 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
274 mTestLooper.dispatchAll(); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
[all …]
DHdmiControlServiceTest.java185 private TestLooper mTestLooper = new TestLooper(); field in HdmiControlServiceTest
212 mMyLooper = mTestLooper.getLooper(); in setUp()
247 mTestLooper.dispatchAll(); in setUp()
328 mTestLooper.dispatchAll(); in initialPowerStatus_normalBoot_goToStandby_broadcastsPowerStatus_2_0()
334 mTestLooper.dispatchAll(); in initialPowerStatus_normalBoot_goToStandby_broadcastsPowerStatus_2_0()
340 mTestLooper.dispatchAll(); in initialPowerStatus_normalBoot_goToStandby_broadcastsPowerStatus_2_0()
442 mTestLooper.dispatchAll(); in addHdmiCecVolumeControlFeatureListener_emitsCurrentState_enabled()
456 mTestLooper.dispatchAll(); in addHdmiCecVolumeControlFeatureListener_emitsCurrentState_disabled()
473 mTestLooper.dispatchAll(); in addHdmiCecVolumeControlFeatureListener_notifiesStateUpdate()
487 mTestLooper.dispatchAll(); in addHdmiCecVolumeControlFeatureListener_honorsUnregistration()
[all …]
DHdmiCecLocalDeviceAudioSystemTest.java73 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDeviceAudioSystemTest
96 mMyLooper = mTestLooper.getLooper(); in setUp()
192 mMyLooper = mTestLooper.getLooper(); in setUp()
231 mTestLooper.dispatchAll(); in setUp()
251 mTestLooper.dispatchAll(); in handleGiveAudioStatus_volume_10_mute_true()
265 mTestLooper.dispatchAll(); in handleGiveSystemAudioModeStatus_originalOff()
300 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_noAudioDeviceInfo()
317 mTestLooper.dispatchAll(); in handleSetSystemAudioMode_setOn_orignalOff()
325 mTestLooper.dispatchAll(); in handleSetSystemAudioMode_setOn_orignalOff()
328 mTestLooper.dispatchAll(); in handleSetSystemAudioMode_setOn_orignalOff()
[all …]
DHdmiCecPowerStatusControllerTest.java63 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecPowerStatusControllerTest
77 Looper myLooper = mTestLooper.getLooper(); in setUp()
130 mTestLooper.dispatchAll(); in setUp()
184 mTestLooper.dispatchAll(); in setPowerStatus_doesntSendBroadcast_1_4()
197 mTestLooper.dispatchAll(); in setPowerStatus_transient_doesntSendBroadcast_1_4()
210 mTestLooper.dispatchAll(); in setPowerStatus_fast_transient_doesntSendBroadcast_1_4()
222 mTestLooper.dispatchAll(); in setPowerStatus_sendsBroadcast_2_0()
235 mTestLooper.dispatchAll(); in setPowerStatus_transient_sendsBroadcast_2_0()
248 mTestLooper.dispatchAll(); in setPowerStatus_fast_transient_doesntSendBroadcast_2_0()
260 mTestLooper.dispatchAll(); in setCecVersion()
/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/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest11.java53 private final TestLooper mTestLooper = new TestLooper(); field in ShortcutManagerTest11
59 mTestLooper.getNewExecutor()); in testShortcutChangeCallback_setDynamicShortcuts()
66 mTestLooper.dispatchAll(); in testShortcutChangeCallback_setDynamicShortcuts()
86 mTestLooper.getNewExecutor()); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
93 mTestLooper.dispatchAll(); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
128 mTestLooper.getNewExecutor()); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
135 mTestLooper.dispatchAll(); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
155 mTestLooper.getNewExecutor()); in testShortcutChangeCallback_pinShortcuts()
159 mTestLooper.dispatchAll(); in testShortcutChangeCallback_pinShortcuts()
187 mTestLooper.getNewExecutor()); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
[all …]
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionConnectingStateTest.java50 mTestLooper.dispatchAll(); in setUp()
69 mTestLooper.dispatchAll(); in testNullNetworkTriggersDisconnect()
81 mTestLooper.dispatchAll(); in testNewNetworkTriggersReconnect()
94 mTestLooper.dispatchAll(); in testSameNetworkDoesNotTriggerReconnect()
102 mTestLooper.dispatchAll(); in testChildSessionClosedTriggersDisconnect()
112 mTestLooper.dispatchAll(); in testIkeSessionClosedTriggersDisconnect()
128 mTestLooper.dispatchAll(); in testTeardown()
132 mTestLooper.dispatchAll(); in testTeardown()
141 mTestLooper.dispatchAll(); in testNonTeardownDisconnectRequest()
DVcnGatewayConnectionConnectedStateTest.java106 mTestLooper.dispatchAll(); in setUp()
124 mTestLooper.dispatchAll(); in testNullNetworkDoesNotTriggerDisconnect()
136 mTestLooper.dispatchAll(); in testNewNetworkTriggersMigration()
148 mTestLooper.dispatchAll(); in testSameNetworkDoesNotTriggerMigration()
158 mTestLooper.dispatchAll(); in verifyVcnTransformsApplied()
196 mTestLooper.dispatchAll(); in testCreatedTransformsAreAppliedWithDun()
210 mTestLooper.dispatchAll(); in testMigration()
280 mTestLooper.dispatchAll(); in testChildOpenedRegistersNetwork()
332 mTestLooper.dispatchAll(); in testInternalAndDnsAddressesChanged()
360 mTestLooper.dispatchAll(); in testInternalAndDnsAddressesChanged()
[all …]
DVcnGatewayConnectionRetryTimeoutStateTest.java53 mTestLooper.dispatchAll(); in setUp()
63 mTestLooper.dispatchAll(); in testNewNetworkTriggerRetry()
77 mTestLooper.dispatchAll(); in testSameNetworkDoesNotTriggerRetry()
91 mTestLooper.dispatchAll(); in testNullNetworkTriggersDisconnect()
95 mTestLooper.dispatchAll(); in testNullNetworkTriggersDisconnect()
115 mTestLooper.dispatchAll(); in testTimeoutElapsingTriggersRetry()
133 mTestLooper.dispatchAll(); in testTeardownDisconnectRequest()
145 mTestLooper.dispatchAll(); in testNonTeardownDisconnectRequest()
DVcnGatewayConnectionDisconnectedStateTest.java56 mTestLooper.dispatchAll(); in setUp()
73 mTestLooper.dispatchAll(); in testEnterWhileQuittingTriggersQuit()
83 mTestLooper.dispatchAll(); in testNetworkChangesTriggerStateTransitions()
94 mTestLooper.dispatchAll(); in testNullNetworkDoesNotTriggerStateTransition()
103 mTestLooper.dispatchAll(); in testTeardown()
107 mTestLooper.dispatchAll(); in testTeardown()
119 mTestLooper.dispatchAll(); in testNonTeardownDisconnectRequest()
DVcnGatewayConnectionDisconnectingStateTest.java48 mTestLooper.dispatchAll(); in setUp()
54 mTestLooper.dispatchAll(); in testIkeSessionClosed()
72 mTestLooper.dispatchAll(); in testTimeoutExpired()
80 mTestLooper.dispatchAll(); in testTeardown()
84 mTestLooper.dispatchAll(); in testTeardown()
101 mTestLooper.dispatchAll(); in testNonTeardownDisconnectRequest()
DTelephonySubscriptionTrackerTest.java103 @NonNull private final TestLooper mTestLooper; field in TelephonySubscriptionTrackerTest
116 mTestLooper = new TestLooper(); in TelephonySubscriptionTrackerTest()
117 mHandler = new Handler(mTestLooper.getLooper()); in TelephonySubscriptionTrackerTest()
264 mTestLooper.dispatchAll(); in testOnSubscriptionsChangedFired_NoReadySubIds()
277 mTestLooper.dispatchAll(); in testOnSubscriptionsChangedFired_onActiveSubIdsChanged()
297 mTestLooper.dispatchAll(); in testOnSubscriptionsChangedFired_WithReadySubidsNoPrivilegedPackages()
311 mTestLooper.dispatchAll(); in testOnSubscriptionsChangedFired_WithReadySubidsAndPrivilegedPackages()
319 mTestLooper.dispatchAll(); in testReceiveBroadcast_ConfigReadyWithSubscriptions()
331 mTestLooper.dispatchAll(); in testReceiveBroadcast_ConfigReadyNoSubscriptions()
342 mTestLooper.dispatchAll(); in testReceiveBroadcast_SlotCleared()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DNotifierTest.java80 private TestLooper mTestLooper = new TestLooper(); field in NotifierTest
108 mTestLooper.dispatchAll(); in testVibrateEnabled_wiredCharging()
123 mTestLooper.dispatchAll(); in testVibrateDisabled_wiredCharging()
138 mTestLooper.dispatchAll(); in testVibrateEnabled_wirelessCharging()
153 mTestLooper.dispatchAll(); in testVibrateDisabled_wirelessCharging()
171 mTestLooper.dispatchAll(); in testVibrateEnabled_dndOn()
187 mTestLooper.dispatchAll(); in testWirelessAnimationEnabled()
203 mTestLooper.dispatchAll(); in testWirelessAnimationDisabled()
295 mTestLooper.getLooper(), in createNotifier()

123