/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 167 mMyLooper = mTestLooper.getLooper(); in setUp() 210 mTestLooper.dispatchAll(); in setUp() 230 mTestLooper.dispatchAll(); in handleGiveAudioStatus_volume_10_mute_true() 243 mTestLooper.dispatchAll(); in handleGiveSystemAudioModeStatus_originalOff() 261 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_featureDisabled() 279 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_samOff() 299 mTestLooper.dispatchAll(); in handleRequestShortAudioDescriptor_noAudioDeviceInfo() 315 mTestLooper.dispatchAll(); in handleSetSystemAudioMode_setOn_orignalOff() 322 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/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/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() 276 mTestLooper.dispatchAll(); in testNoPackageFailureBeforeThreshold() 303 mTestLooper.dispatchAll(); in testPackageFailureDifferentPackageNotifyNone() 338 mTestLooper.dispatchAll(); in testPackageFailureDifferentVersionNotifyNone() [all …]
|
/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 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() 418 mTestLooper.dispatchAll(); in testDuplicateAvailableRegistrations() [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() 1889 mTestLooper.dispatchAll(); in generateStaEvents()
|
/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()
|