Home
last modified time | relevance | path

Searched refs:TIMEOUT_MS (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java60 private static final int TIMEOUT_MS = 1000; field in ActiveDeviceManagerTest
118 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive()
127 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive()
130 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in secondA2dpConnected_setSecondA2dpActive()
139 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive()
142 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(isNull()); in lastA2dpDisconnected_clearA2dpActive()
151 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in a2dpActiveDeviceSelected_setActive()
154 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpActiveDeviceSelected_setActive()
169 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mHeadsetDevice); in onlyHeadsetConnected_setHeadsetActive()
178 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mHeadsetDevice); in secondHeadsetConnected_setSecondHeadsetActive()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java107 private static final int TIMEOUT_MS = 50; field in UserHalServiceTest
113 private static final int CALLBACK_TIMEOUT_SUCCESS = TIMEOUT_MS + 50;
119 private static final int CALLBACK_TIMEOUT_TIMEOUT = TIMEOUT_MS + 450;
257 TIMEOUT_MS, mUsersInfo, noOpCallback())); in testGetUserInfo_noHalSupported()
271 mUserHalService.getInitialUserInfo(COLD_BOOT, TIMEOUT_MS, null, noOpCallback())); in testGetUserInfo_noUsersInfo()
277 () -> mUserHalService.getInitialUserInfo(COLD_BOOT, TIMEOUT_MS, in testGetUserInfo_noCallback()
287 mUserHalService.getInitialUserInfo(COLD_BOOT, TIMEOUT_MS, mUsersInfo, in testGetUserInfo_halSetTimedOut()
303 mUserHalService.getInitialUserInfo(COLD_BOOT, TIMEOUT_MS, mUsersInfo, in testGetUserInfo_halDidNotReply()
317 mUserHalService.getInitialUserInfo(COLD_BOOT, TIMEOUT_MS, mUsersInfo, in testGetUserInfo_secondCallFailWhilePending()
319 mUserHalService.getInitialUserInfo(COLD_BOOT, TIMEOUT_MS, mUsersInfo, in testGetUserInfo_secondCallFailWhilePending()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java69 private static final int TIMEOUT_MS = 1000; field in HearingAidServiceTest
102 HearingAidStateMachine.sConnectTimeoutMs = TIMEOUT_MS; // 1s in setUp()
349 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
387 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices()
391 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices()
422 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAnotherPair_disconnectCurrentPair()
424 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAnotherPair_disconnectCurrentPair()
441 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTED, in testConnectAnotherPair_disconnectCurrentPair()
443 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTED, in testConnectAnotherPair_disconnectCurrentPair()
450 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_DISCONNECTING, in testConnectAnotherPair_disconnectCurrentPair()
[all …]
DHearingAidStateMachineTest.java55 private static final int TIMEOUT_MS = 1000; field in HearingAidStateMachineTest
130 verify(mHearingAidService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject()
153 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPriorityAccept()
172 verify(mHearingAidService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPriorityAccept()
196 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout()
240 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java55 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
DTelephonyConnectionServiceTest.java88 private static final long TIMEOUT_MS = 100; field in TelephonyConnectionServiceTest
906 waitForHandlerAction(handler, TIMEOUT_MS); in testSuppServiceNotification()
915 waitForHandlerAction(handler, TIMEOUT_MS); in testSuppServiceNotification()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java61 private static final int TIMEOUT_MS = 1000; // 1s field in HidDeviceTest
292 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testRegistration()
301 verifyCallback(TIMEOUT_MS, CALLBACK_APP_UNREGISTERED, mCallbackQueue); in testRegistration()
326 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testSendReport()
363 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testReplyReport()
398 verifyCallback(TIMEOUT_MS, CALLBACK_APP_REGISTERED, mCallbackQueue); in testReportError()
433 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectSuccess()
441 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess()
456 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTING, in testOutgoingConnectDisconnectSuccess()
464 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectDisconnectSuccess()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java69 private static final int TIMEOUT_MS = 1000; // 1s field in A2dpServiceTest
104 A2dpStateMachine.sConnectTimeoutMs = TIMEOUT_MS; // 1s in setUp()
379 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
410 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectSuccess()
422 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess()
434 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTING, in testOutgoingConnectDisconnectSuccess()
446 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectDisconnectSuccess()
477 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTING, in testMaxConnectDevices()
489 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices()
626 verifyAudioStateIntent(TIMEOUT_MS, mTestDevice, BluetoothA2dp.STATE_NOT_PLAYING, in testProcessAudioStateChangedCodecConfigChangedEvents()
[all …]
DA2dpStateMachineTest.java58 private static final int TIMEOUT_MS = 1000; // 1s field in A2dpStateMachineTest
151 verify(mA2dpService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject()
174 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingPriorityAccept()
194 verify(mA2dpService, timeout(TIMEOUT_MS).times(3)).sendBroadcast(intentArgument2.capture(), in testIncomingPriorityAccept()
221 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testOutgoingTimeout()
260 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingTimeout()
343 verify(mA2dpService, timeout(TIMEOUT_MS).times(2)).sendBroadcast(intentArgument2.capture(), in testProcessCodecConfigEventCase()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java51 private static final long TIMEOUT_MS = 500; field in BlockingUserLifecycleListenerTest
137 await(latch, TIMEOUT_MS); in testForSpecificEvents_receivedExtraEvents()
164 await(latch, TIMEOUT_MS); in testForSpecificEvents_filterByUser()
192 await(latch, TIMEOUT_MS); in testForSpecificEvents_filterByUserDuplicatedEventTypes()
223 await(latch, TIMEOUT_MS); in testForSpecificEvents_filterByPreviousUser()
255 await(latch, TIMEOUT_MS); in testForSpecificEvents_filterByPreviousAndTargetUsers()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DHandlerUtilsTest.kt27 const val TIMEOUT_MS = 200 in <lambda>() constant
38 handlerThread.waitForIdle(TIMEOUT_MS) in <lambda>()
57 handlerThread.waitForIdle(TIMEOUT_MS) in <lambda>()
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpManagerTest.java39 private static final int TIMEOUT_MS = 1000; field in MtpManagerTest
78 SystemClock.sleep(TIMEOUT_MS); in testCancelEvent()
80 assertTrue(future.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testCancelEvent()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DInetDiagMessage.java54 private static final int TIMEOUT_MS = 500; field in InetDiagMessage
120 NetlinkSocket.sendMessage(fd, msg, 0, msg.length, TIMEOUT_MS); in lookupUidByFamily()
121 ByteBuffer response = NetlinkSocket.recvMessage(fd, DEFAULT_RECV_BUFSIZE, TIMEOUT_MS); in lookupUidByFamily()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserHelper.java50 private static final int TIMEOUT_MS = CarProperties.user_hal_timeout().orElse(5_000) + 500; field in UserHelper
153 userSwitchResultFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in switchUser()
169 userCreationResult = future.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in getUserInfo()
/packages/apps/Dialer/java/com/android/incallui/legacyblocking/
DBlockedNumberContentObserver.java41 public static final int TIMEOUT_MS = 5000; field in BlockedNumberContentObserver
100 handler.postDelayed(timeoutRunnable, TIMEOUT_MS); in register()
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java50 private static final long TIMEOUT_MS = 5000; field in AppBlockingPolicyProxy
88 mHandler.postDelayed(mTimeoutRunnable, TIMEOUT_MS); in connect()
/packages/apps/Settings/src/com/android/settings/development/
DDSULoader.java74 private static final int TIMEOUT_MS = 10 * 1000; field in DSULoader
94 connection.setReadTimeout(TIMEOUT_MS); in readAll()
95 connection.setConnectTimeout(TIMEOUT_MS); in readAll()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionTest.java44 private static final int TIMEOUT_MS = 500; field in IkeSessionTest
126 assertTrue(cntLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testConstructFromDifferentThreads()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java64 static final int TIMEOUT_MS = 20000; field in BluetoothPeripheralHandover
181 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_TIMEOUT), TIMEOUT_MS); in start() local
474 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_TIMEOUT), TIMEOUT_MS); in handleIntent() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java69 private static final long TIMEOUT_MS = 10_000; field in CarUserNoticeServiceTest
223 JavaMockitoHelper.await(latch, TIMEOUT_MS); in assertLatchCalled()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java106 private static final int TIMEOUT_MS = 500; field in ApfTest
955 assertTrue(mGotApfProgram.block(TIMEOUT_MS)); in getApfProgram()
960 assertFalse(mGotApfProgram.block(TIMEOUT_MS)); in assertNoProgramUpdate()