/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManagerTest.java | 80 private static final int TIMEOUT_MS = 1000; field in ActiveDeviceManagerTest 183 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive() 192 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive() 195 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in secondA2dpConnected_setSecondA2dpActive() 204 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive() 207 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(isNull()); in lastA2dpDisconnected_clearA2dpActive() 216 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in a2dpActiveDeviceSelected_setActive() 219 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpActiveDeviceSelected_setActive() 235 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in a2dpSecondDeviceDisconnected_fallbackDeviceActive() 238 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mSecondaryAudioDevice); in a2dpSecondDeviceDisconnected_fallbackDeviceActive() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientTest.java | 88 private static final int TIMEOUT_MS = 1000; field in HapClientTest 131 HapClientStateMachine.sConnectTimeoutMs = TIMEOUT_MS; in setUp() 307 int policy = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testGetSetPolicy() 440 verifyConnectionStateIntent(TIMEOUT_MS, mDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout() 451 int state = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testOutgoingConnectTimeout() 475 List<BluetoothDevice> devices = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testConnectTwo() 523 int hapGroup = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testGetHapGroupCoordinatedOps() 542 verify(mCallback, after(TIMEOUT_MS).times(1)).onPresetSelectionFailed(eq(mDevice), in testSelectPresetNative() 568 verify(mCallback, after(TIMEOUT_MS).times(1)).onPresetSelectionForGroupFailed( in testGroupSelectActivePresetNative() 657 int presetIndex = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testGetActivePresetIndex() [all …]
|
D | HapClientStateMachineTest.java | 62 private static final int TIMEOUT_MS = 1000; field in HapClientStateMachineTest 134 verify(mHapClientService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPolicyReject() 158 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPolicyAccept() 178 verify(mHapClientService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPolicyAccept() 201 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout() 245 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout() 280 verify(mHearingAccessGattClientInterface, timeout(TIMEOUT_MS).times(1)) in testStatesChangesWithMessages() 377 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in sendMessageAndVerifyTransition()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 77 private static final int TIMEOUT_MS = 1000; field in HearingAidServiceTest 110 HearingAidStateMachine.sConnectTimeoutMs = TIMEOUT_MS; // 1s in setUp() 235 int connectionPolicy = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testGetSetPriority() 337 Duration.ofMillis(TIMEOUT_MS)).getValue(defaultRecvValue)); in testOutgoingConnectPriorityOff() 362 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout() 368 int connectionState = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testOutgoingConnectTimeout() 404 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices() 408 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices() 438 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAnotherPair_disconnectCurrentPair() 440 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAnotherPair_disconnectCurrentPair() [all …]
|
D | HearingAidStateMachineTest.java | 57 private static final int TIMEOUT_MS = 1000; field in HearingAidStateMachineTest 125 verify(mHearingAidService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject() 148 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPriorityAccept() 167 verify(mHearingAidService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPriorityAccept() 191 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout() 236 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | JavaMockitoHelperTest.java | 49 private static final long TIMEOUT_MS = Math.max(1_000L, JavaMockitoHelper.ASYNC_TIMEOUT_MS) + 1; field in JavaMockitoHelperTest 52 private static final String CUSTOM_TIMEOUT_MSG = TIMEOUT_MS + "ms"; 61 JavaMockitoHelper.await(semaphore, TIMEOUT_MS); in testAwait_Semaphore() 71 JavaMockitoHelper.await(latch, TIMEOUT_MS); in testAwait_CountDownLatch() 89 assertThat(JavaMockitoHelper.silentAwait(latch, TIMEOUT_MS)).isTrue(); in testSilentAwait_called() 152 () -> JavaMockitoHelper.getResult(null, TIMEOUT_MS, "D'OH!")); in testGetResult_withCustomTimeout_nullFuture() 158 () -> JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, null)); in testGetResult_withCustomTimeout_nullMessageFormat() 165 assertThat(JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, "I am number %d!", 4)) in testGetResult_withCustomTimeout_ok() 167 verify(mFuture).get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testGetResult_withCustomTimeout_ok() 177 () -> JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, "I am number %d!", 4)); in testGetResult_withCustomTimeout_timeoutException() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/ |
D | SapRilReceiverTest.java | 76 private static final long TIMEOUT_MS = 1_000; field in SapRilReceiverTest 126 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_RIL_SOCK_CLOSED), any()); in notifyShutdown() 133 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RIL_CONNECT), any()); in sendRilConnectMessage() 141 verify(mCallback, timeout(ISAP_GET_SERVICE_DELAY_MILLIS + TIMEOUT_MS)) in serviceDied() 154 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RFC_REPLY), argThat( in callback_connectResponse() 174 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RFC_REPLY), argThat( in callback_disconnectResponse() 194 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RIL_IND), argThat( in callback_disconnectIndication() 221 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RFC_REPLY), argThat( in callback_apduResponse() 249 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RFC_REPLY), argThat( in callback_transferAtrResponse() 275 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RFC_REPLY), argThat( in callback_powerResponse_powerOff() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | RadioOnStateListenerTest.java | 55 private static final long TIMEOUT_MS = 1000; field in RadioOnStateListenerTest 76 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/); in tearDown() local 90 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback() local 115 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue() local 120 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue() local 139 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout() local 144 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout() local 168 waitForHandlerActionDelayed(mListener.getHandler(), TIMEOUT_MS, TIMEOUT_MS /*delay*/); in testTimeout_RetryFailure() local 189 waitForHandlerActionDelayed(mListener.getHandler(), TIMEOUT_MS, TIMEOUT_MS /*delay*/); in testTimeout_RetryFailure_ForEmergency() local
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/ |
D | HidDeviceTest.java | 62 private static final int TIMEOUT_MS = 1000; // 1s field in HidDeviceTest 291 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testRegistration() 300 verifyCallback(TIMEOUT_MS, CALLBACK_APP_UNREGISTERED, mCallbackQueue); in testRegistration() 325 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testSendReport() 362 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testReplyReport() 397 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testReportError() 432 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectSuccess() 440 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess() 455 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTING, in testOutgoingConnectDisconnectSuccess() 463 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectDisconnectSuccess() [all …]
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsTetheringUtils.java | 71 private static int TIMEOUT_MS = 30_000; field in CtsTetheringUtils.StartTetheringCallback 107 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted() 108 assertNotNull("No onTetheringStarted after " + TIMEOUT_MS + " ms", cv); in verifyTetheringStarted() 114 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectTetheringFailed() 115 assertNotNull("No onTetheringFailed after " + TIMEOUT_MS + " ms", cv); in expectTetheringFailed() 157 private static final int TIMEOUT_MS = 30_000; field in CtsTetheringUtils.TestTetheringEventCallback 275 assertNotNull("No expected tetherable ifaces callback", mCurrent.poll(TIMEOUT_MS, in expectTetherableInterfacesChanged() 286 mCurrent.poll(TIMEOUT_MS, (cv) -> { in expectNoTetheringActive() 296 final CallbackValue cv = mCurrent.poll(TIMEOUT_MS, c -> true); in expectTetheredInterfacesChanged() 328 final CallbackValue cv = history.poll(TIMEOUT_MS, c -> true); in expectCallbackStarted() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | SipTransportControllerTest.java | 84 private static final int TIMEOUT_MS = 200; field in SipTransportControllerTest 352 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createDestroyAppDied() 441 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange() 448 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange() 451 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange() 455 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange() 495 assertTrue(waitForExecutorAction(mExecutorService, TIMEOUT_MS)); in createTwoAndDestroyOlder() 594 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in testSubIdChangeDestroyTriggered() 614 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in testRcsManagerGoneDestroyTriggered() 634 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in testDestroyTriggered() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceTest.java | 80 private static final int TIMEOUT_MS = 1000; field in VolumeControlServiceTest 134 VolumeControlStateMachine.sConnectTimeoutMs = TIMEOUT_MS; // 1s in setUp() 286 int policy = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testGetPolicyAfterStopped() 375 recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)).getValue(false)); in testOutgoingConnectDisconnectExistingVolumeControlUuid() 378 verifyConnectionStateIntent(TIMEOUT_MS, mDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectExistingVolumeControlUuid() 385 recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)).getValue(false)); in testOutgoingConnectDisconnectExistingVolumeControlUuid() 388 verifyConnectionStateIntent(TIMEOUT_MS, mDevice, BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectDisconnectExistingVolumeControlUuid() 427 verifyConnectionStateIntent(TIMEOUT_MS, mDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout() 440 int state = recv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)) in testOutgoingConnectTimeout() 621 voidRecv.awaitResultNoInterrupt(Duration.ofMillis(TIMEOUT_MS)); in testVolumeCache() [all …]
|
D | VolumeControlStateMachineTest.java | 62 private static final int TIMEOUT_MS = 1000; field in VolumeControlStateMachineTest 131 verify(mVolumeControlService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPolicyReject() 155 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPolicyAccept() 175 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPolicyAccept() 198 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout() 242 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout() 390 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in sendMessageAndVerifyTransition()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DnsResolverTest.java | 108 static final int TIMEOUT_MS = 12_000; field in DnsResolverTest 248 return waitForAnswer(TIMEOUT_MS); in waitForAnswer() 376 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQuery() 402 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryBlob() 416 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryRoot() 439 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomain() 461 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomainWithPrivateDns() 492 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryCancel() 521 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryBlobCancel() 561 return mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForAnswer() [all …]
|
/packages/modules/DnsResolver/tests/ |
D | doh_ffi_test.cpp | 30 static const int TIMEOUT_MS = 3000; variable 57 .probe_timeout_ms = TIMEOUT_MS, in TEST() 58 .idle_timeout_ms = TIMEOUT_MS, in TEST() 70 EXPECT_EQ(cv.wait_for(lk, std::chrono::milliseconds(TIMEOUT_MS)), in TEST() 79 len = doh_query(doh, dnsNetId, buf.data(), len, answer, sizeof answer, TIMEOUT_MS); in TEST()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeSessionTestBase.java | 121 private static final int TIMEOUT_MS = 1000; field in IkeSessionTestBase 333 return mFutureIkeConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitIkeConfig() 337 return mFutureOnClosedException.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosedException() 342 (long) TIMEOUT_MS, in awaitNextOnErrorException() 350 mFutureOnClosedCall.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosed() 354 return mFutureConnectionConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnIkeSessionConnectionInfoChanged() 432 return mFutureChildConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitChildConfig() 436 return mFutureOnClosedException.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosedException() 441 (long) TIMEOUT_MS, in awaitNextCreatedIpSecTransform() 450 (long) TIMEOUT_MS, in awaitNextMigratedIpSecTransform() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioServiceTest.java | 93 private static final int TIMEOUT_MS = 1000; field in LeAudioServiceTest 204 LeAudioStateMachine.sConnectTimeoutMs = TIMEOUT_MS; // 1s in setUp() 489 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout() 542 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testAudioManagerConnectDisconnect() 546 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testAudioManagerConnectDisconnect() 560 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect() 573 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect() 587 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_DISCONNECTING, in testAudioManagerConnectDisconnect() 591 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_DISCONNECTING, in testAudioManagerConnectDisconnect() 604 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_DISCONNECTED, in testAudioManagerConnectDisconnect() [all …]
|
D | LeAudioStateMachineTest.java | 60 private static final int TIMEOUT_MS = 1000; field in LeAudioStateMachineTest 128 verify(mLeAudioService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject() 151 verify(mLeAudioService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPriorityAccept() 170 verify(mLeAudioService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPriorityAccept() 193 verify(mLeAudioService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout() 236 verify(mLeAudioService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | ConntrackMonitorTest.java | 71 private static final long TIMEOUT_MS = 10_000L; field in ConntrackMonitorTest 108 TIMEOUT_MS); in sendMessage() 135 if (!initDone.block(TIMEOUT_MS)) { in setUp() 136 fail("... init monitor timed-out after " + TIMEOUT_MS + "ms"); in setUp() 224 verify(mConsumer, timeout(TIMEOUT_MS)).accept(eq(expectedEvent)); in testConntrackEventNew() 334 verify(mConsumer, timeout(TIMEOUT_MS)).accept(eq(expectedEvent)); in testConntrackEventDelete()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 70 private static final int TIMEOUT_MS = 1000; // 1s field in A2dpServiceTest 106 A2dpStateMachine.sConnectTimeoutMs = TIMEOUT_MS; // 1s in setUp() 373 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout() 403 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectSuccess() 415 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess() 427 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTING, in testOutgoingConnectDisconnectSuccess() 439 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectDisconnectSuccess() 469 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTING, in testMaxConnectDevices() 481 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices() 615 verifyAudioStateIntent(TIMEOUT_MS, mTestDevice, BluetoothA2dp.STATE_NOT_PLAYING, in testProcessAudioStateChangedCodecConfigChangedEvents() [all …]
|
D | A2dpStateMachineTest.java | 64 private static final int TIMEOUT_MS = 1000; // 1s field in A2dpStateMachineTest 136 mHandlerThread.join(TIMEOUT_MS); in tearDown() 174 verify(mA2dpService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject() 197 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingPriorityAccept() 217 verify(mA2dpService, timeout(TIMEOUT_MS).times(3)).sendBroadcast(intentArgument2.capture(), in testIncomingPriorityAccept() 244 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testOutgoingTimeout() 284 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingTimeout() 378 verify(mA2dpService, timeout(TIMEOUT_MS).times(2)).sendBroadcast(intentArgument2.capture(), in testProcessCodecConfigEventCase()
|
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 130 private static final int TIMEOUT_MS = 5000; field in EthernetTetheringTest 268 final String iface = futureIface.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testVirtualEthernet() 430 return future.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in isEthernetTetheringSupported() 513 assertTrue("Ethernet not tethered after " + TIMEOUT_MS + "ms", in awaitInterfaceTethered() 514 mTetheringStartedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in awaitInterfaceTethered() 518 assertTrue("Ethernet not local-only after " + TIMEOUT_MS + "ms", in awaitInterfaceLocalOnly() 519 mLocalOnlyStartedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in awaitInterfaceLocalOnly() 530 assertTrue(mIface + " not untethered after " + TIMEOUT_MS + "ms", in awaitInterfaceUntethered() 531 mTetheringStoppedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in awaitInterfaceUntethered() 533 assertTrue(mIface + " not untethered after " + TIMEOUT_MS + "ms", in awaitInterfaceUntethered() [all …]
|
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/ |
D | EnterTransitionAnimationDelegateTest.kt | 38 private const val TIMEOUT_MS = 200 constant 54 whenever(getInteger(anyInt())).thenReturn(TIMEOUT_MS) in <lambda>() 84 scheduler.advanceTimeBy(TIMEOUT_MS + 1L) in test_postponeTransition_timeout() 97 scheduler.advanceTimeBy(TIMEOUT_MS + 1L) in test_postponeTransition_animation_resumes_only_once()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/ |
D | BatteryStateMachineTest.java | 73 private static final int TIMEOUT_MS = 2_000; field in BatteryStateMachineTest 174 verify(mBatteryService, timeout(TIMEOUT_MS)) in testSuccessfullyConnected() 186 verify(mBatteryService, timeout(TIMEOUT_MS)) in testSuccessfullyConnected() 269 verify(mBatteryService, timeout(TIMEOUT_MS)) in testConnectGattTimeout() 277 verify(mBatteryService, timeout(TIMEOUT_MS)) in testConnectGattTimeout() 295 verify(mBatteryService, timeout(TIMEOUT_MS)) in testBatteryLevelChanged()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | HandlerUtilsTest.kt | 27 const val TIMEOUT_MS = 200 in <lambda>() constant 38 handlerThread.waitForIdle(TIMEOUT_MS) in <lambda>() 57 handlerThread.waitForIdle(TIMEOUT_MS) in <lambda>()
|