/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiAudioSystemClientTest.java | 42 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/ |
D | HdmiCecControllerTest.java | 82 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 …]
|
D | ArcTerminationActionFromAvrTest.java | 44 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()
|
D | HdmiCecLocalDeviceAudioSystemTest.java | 65 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 …]
|
D | DetectTvSystemAudioModeSupportActionTest.java | 43 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()
|
D | SystemAudioInitiationActionFromAvrTest.java | 45 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()
|
D | ArcInitiationActionFromAvrTest.java | 52 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()
|
D | HdmiCecLocalDeviceTest.java | 85 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()
|
D | HdmiCecLocalDevicePlaybackTest.java | 47 private TestLooper mTestLooper = new TestLooper(); field in HdmiCecLocalDevicePlaybackTest 70 mMyLooper = mTestLooper.getLooper(); in setUp() 83 mTestLooper.dispatchAll(); in setUp()
|
D | HdmiControlServiceTest.java | 107 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/ |
D | TestLooperTest.java | 51 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/ |
D | PackageWatchdogTest.java | 86 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/ |
D | WifiP2pManagerTest.java | 41 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/ |
D | LocalOnlyHotspotRequestInfoTest.java | 50 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()
|
D | HalDeviceManagerTest.java | 95 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 …]
|
D | WifiMetricsTest.java | 136 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/ |
D | OffloadHardwareInterfaceTest.java | 67 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()
|
D | BpfCoordinatorTest.java | 103 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 …]
|
D | OffloadControllerTest.java | 121 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/ |
D | SIMRecordsTest.java | 66 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/ |
D | LowpanManagerTest.java | 54 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()
|
D | LowpanInterfaceTest.java | 52 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/ |
D | ExternalCallbackTrackerTest.java | 47 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/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 74 private TestLooper mTestLooper = new TestLooper(); field in NetworkStatsSubscriptionsMonitorTest 87 mMonitor = new NetworkStatsSubscriptionsMonitor(mContext, mTestLooper.getLooper(), in setUp()
|