/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 136 int timeout = getDiscoverableTimeout(); in setEnabled() local 137 long endTimestamp = System.currentTimeMillis() + timeout * 1000L; in setEnabled() 141 .setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled() 144 Log.d(TAG, "setEnabled(): enabled = " + enable + "timeout = " + timeout); in setEnabled() 146 if (timeout > 0) { in setEnabled() 158 private void updateTimerDisplay(int timeout) { in updateTimerDisplay() argument 162 String textTimeout = formatTimeRemaining(timeout); in updateTimerDisplay() 168 private static String formatTimeRemaining(int timeout) { in formatTimeRemaining() argument 170 int min = timeout / 60; in formatTimeRemaining() 172 int sec = timeout - (min * 60); in formatTimeRemaining() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 136 int timeout = getDiscoverableTimeout(); in setEnabled() local 137 long endTimestamp = System.currentTimeMillis() + timeout * 1000L; in setEnabled() 141 .setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled() 144 Log.d(TAG, "setEnabled(): enabled = " + enable + "timeout = " + timeout); in setEnabled() 146 if (timeout > 0) { in setEnabled() 158 private void updateTimerDisplay(int timeout) { in updateTimerDisplay() argument 162 String textTimeout = formatTimeRemaining(timeout); in updateTimerDisplay() 168 private static String formatTimeRemaining(int timeout) { in formatTimeRemaining() argument 170 int min = timeout / 60; in formatTimeRemaining() 172 int sec = timeout - (min * 60); in formatTimeRemaining() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManagerTest.java | 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() 181 verify(mHeadsetService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in secondHeadsetConnected_setSecondHeadsetActive() [all …]
|
D | PhonePolicyTest.java | 130 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testProcessInitProfilePriorities() 133 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testProcessInitProfilePriorities() 167 verify(mA2dpService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connect(eq(bondedDevice)); in testAdapterOnAutoConnect() 168 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connect(eq(bondedDevice)); in testAdapterOnAutoConnect() 207 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).setConnection( in testDisconnectNoAutoConnect() 222 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 224 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 240 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect() 242 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setDisconnection( in testDisconnectNoAutoConnect() 252 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setDisconnection( in testDisconnectNoAutoConnect() [all …]
|
D | AdapterServiceTest.java | 185 verify(mIBluetoothCallback, timeout(timeoutMs) in verifyStateChange() 203 verify(mMockContext, timeout(GATT_START_TIME_MS).times( in doEnable() 218 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doEnable() 229 verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(2 * invocationNumber + 2)) in doEnable() 249 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable() 264 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable() 333 verify(mMockContext, timeout(GATT_START_TIME_MS).times(1)).startService(any()); in testGattStartTimeout() 341 verify(mMockContext, timeout(AdapterState.BLE_STOP_TIMEOUT_DELAY + CONTEXT_SWITCH_MS) in testGattStartTimeout() 365 verify(mMockContext, timeout(ONE_SECOND_MS).times(5)).startService(any()); in testGattStopTimeout() 378 verify(mMockContext, timeout(ONE_SECOND_MS).times(6)).startService(any()); in testGattStopTimeout() [all …]
|
D | ProfileServiceTest.java | 69 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in setAllProfilesState() 155 timeout(PROFILE_START_MILLIS).times(invocationNumber)).onProfileServiceStateChanged( in testEnableDisableInterleaved() 158 timeout(PROFILE_START_MILLIS).times(invocationNumber)).onProfileServiceStateChanged( in testEnableDisableInterleaved() 183 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testRepeatedEnableDisableSingly() 188 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testRepeatedEnableDisableSingly() 209 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testProfileServiceRegisterUnregister() 214 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testProfileServiceRegisterUnregister()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 164 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testDisconnect() 198 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testControlOnly() 230 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testBrowsingOnly() 281 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay() 284 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay() 300 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause() 303 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause() 319 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop() 322 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop() 338 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testNext() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 355 verify(mObjectsFactory, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).destroyStateMachine( in testUnbondDevice_disconnectBeforeUnbond() 412 verify(mObjectsFactory, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).destroyStateMachine( in testUnbondDevice_disconnectAfterUnbond() 704 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).deactivateVoiceRecognition(); in testVoiceRecognition_SingleHfStopSuccess() 705 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).atResponseCode(device, in testVoiceRecognition_SingleHfStopSuccess() 707 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).disconnectAudio(device); in testVoiceRecognition_SingleHfStopSuccess() 736 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).activateVoiceRecognition(); in testVoiceRecognition_SingleHfInitiatedFailedToActivate() 737 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).atResponseCode(device, in testVoiceRecognition_SingleHfInitiatedFailedToActivate() 768 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).activateVoiceRecognition(); in testVoiceRecognition_SingleHfInitiatedTimeout() 769 verify(mNativeInterface, timeout(START_VR_TIMEOUT_WAIT_MILLIS)).atResponseCode(device, in testVoiceRecognition_SingleHfInitiatedTimeout() 821 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).startVoiceRecognition(device); in testVoiceRecognition_SingleAgInitiatedSuccessNullInput() [all …]
|
D | HeadsetStateMachineTest.java | 173 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).sendBroadcastAsUser( in testStateTransition_DisconnectedToConnecting_Connect() 190 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).sendBroadcastAsUser( in testStateTransition_DisconnectedToConnecting_StackConnected() 207 verify(mHeadsetService, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).sendBroadcastAsUser( in testStateTransition_DisconnectedToConnecting_StackConnecting() 241 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToDisconnected_StackDisconnected() 258 verify(mHeadsetService, timeout(CONNECT_TIMEOUT_TEST_WAIT_MILLIS).times( in testStateTransition_ConnectingToDisconnected_Timeout() 302 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectingToConnected_StackSlcConnected() 324 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_DisconnectingToDisconnected_StackDisconnected() 342 verify(mHeadsetService, timeout(CONNECT_TIMEOUT_TEST_WAIT_MILLIS).times( in testStateTransition_DisconnectingToDisconnected_Timeout() 365 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_DisconnectingToConnected_StackSlcCconnected() 384 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcastAsUser( in testStateTransition_ConnectedToDisconnecting_Disconnect() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachineTest.java | 140 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(MockitoHamcrest in testIncomingPriorityReject() 171 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument1 in testIncomingPriorityAccept() 190 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(2)).sendBroadcast( in testIncomingPriorityAccept() 217 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument1 in testIncomingTimeout() 230 timeout(HeadsetClientStateMachine.CONNECTING_TIMEOUT_MS * 2).times( in testIncomingTimeout() 261 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument in testInBandRingtone() 274 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(2)).sendBroadcast( in testInBandRingtone() 290 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(3)).sendBroadcast( in testInBandRingtone() 303 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(3)).sendBroadcast( in testInBandRingtone() 317 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(3)).sendBroadcast( in testInBandRingtone() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | VideoProviderTest.java | 65 import static org.mockito.Mockito.timeout; 166 verify(mVideoCallCallback, timeout(TEST_TIMEOUT).times(2)) in testCameraChange() 201 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangePermissionFail() 230 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeAppOpsFail() 261 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeAppOpsBelowNMR1Fail() 289 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeUserFail() 316 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeNullNoPermission() 456 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testSessionModifyRequest() 503 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testRequestCameraCapabilities() 542 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)) in testRequestDataUsage() [all …]
|
D | BasicCallTests.java | 30 import static org.mockito.Mockito.timeout; 164 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingCall() 193 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCall() 221 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCallAsAudio() 250 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingInvalidVideoState() 433 verify(mInCallServiceFixtureX.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 435 verify(mInCallServiceFixtureY.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 448 verify(mInCallServiceFixtureX.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 450 verify(mInCallServiceFixtureY.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed() 598 verify(audioManager, timeout(TEST_TIMEOUT)).requestAudioFocusForCall(anyInt(), anyInt()); in testAudioManagerOperations() [all …]
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkApp.java | 52 int timeout = 0; in calculateDurationInMilis() local 56 timeout = 1000 * 60; in calculateDurationInMilis() 59 timeout = 1000 / 10; in calculateDurationInMilis() 63 timeout = 1000; in calculateDurationInMilis() 66 timeout *= duration.timeInterval; in calculateDurationInMilis() 68 return timeout; in calculateDurationInMilis()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiObject2Asserts.java | 45 UiObject2 uiObject, SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition() argument 46 long adjustedTimeout = getAdjustedTimeout(timeout); in assertWaitForCondition() 48 assertTrue(searchCondition + " not true after " + timeout / 1000.0 + " seconds.", result); in assertWaitForCondition() 51 public static long getAdjustedTimeout(long timeout) { in getAdjustedTimeout() argument 52 return timeout in getAdjustedTimeout() 55 (long) (timeout * Constants.EXTRA_TIMEOUT_PERCENT)); in getAdjustedTimeout()
|
D | UiDeviceAsserts.java | 64 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition() argument 65 boolean result = waitForCondition(uiDevice, searchCondition, timeout); in assertWaitForCondition() 66 assertTrue(searchCondition + " not true after " + timeout / 1000.0 + " seconds.", result); in assertWaitForCondition() 82 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in waitForCondition() argument 84 timeout in waitForCondition() 87 (long) (timeout * Constants.EXTRA_TIMEOUT_PERCENT)); in waitForCondition()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpClientTest.java | 30 import static org.mockito.Mockito.timeout; 160 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetEnableIPv6(ifname, false); in makeIpClient() 161 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceClearAddrs(ifname); in makeIpClient() 227 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).onProvisioningFailure(any()); in testInterfaceNotFoundFailsImmediately() 255 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setNeighborDiscoveryOffload(true); in doProvisioningWithDefaultConfiguration() 256 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setFallbackMulticastFilter(false); in doProvisioningWithDefaultConfiguration() 370 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setNeighborDiscoveryOffload(true); in testProvisioningWithInitialConfiguration() 371 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setFallbackMulticastFilter(false); in testProvisioningWithInitialConfiguration() 377 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)) in testProvisioningWithInitialConfiguration() 386 verify(mCb, timeout(TEST_TIMEOUT_MS)).onLinkPropertiesChange(any()); in testProvisioningWithInitialConfiguration() [all …]
|
/packages/services/BuiltInPrintService/jni/lib/ |
D | wprint_msgq.c | 95 status_t msgQSend(msg_q_id msgQ, const char *buffer, unsigned long nbytes, int timeout, in msgQSend() argument 102 if (msgq && (timeout == NO_WAIT) && (priority == MSG_Q_FIFO)) { in msgQSend() 121 status_t msgQReceive(msg_q_id msgQ, char *buffer, unsigned long max_nbytes, int timeout) { in msgQReceive() argument 126 if (msgq && buffer && ((timeout == WAIT_FOREVER) || (timeout == NO_WAIT))) { in msgQReceive() 127 if (timeout == WAIT_FOREVER) { in msgQReceive()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientStateMachineTest.java | 129 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testStateTransitionFromConnectingToDisconnected() 149 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testStateTransitionFromConnectingToConnected() 170 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testStateTransitionFromConnectedWithMasDisconnected() 177 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(4)).sendBroadcast( in testStateTransitionFromConnectedWithMasDisconnected() 197 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testReceiveEmptyEvent() 220 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testSetMessageStatus() 229 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendBroadcast( in setupSdpRecordReceipt()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 76 import static org.mockito.Mockito.timeout; 403 verify(mCb, timeout(TEST_TIMEOUT_MS)).onQuit(); 487 return inOrder.verify(t, timeout(TEST_TIMEOUT_MS)); 489 return verify(t, timeout(TEST_TIMEOUT_MS)); 494 inOrder.verify(mAlarm, timeout(TEST_TIMEOUT_MS)).cancel(eq(listener)); 619 verify(mCb, timeout(TEST_TIMEOUT_MS)).setFallbackMulticastFilter(false); 639 verify(mIpMemoryStore, timeout(TEST_TIMEOUT_MS)) 758 private DhcpPacket getReplyFromDhcpLease(final NetworkAttributes na, boolean timeout) 761 if (timeout) return null; 783 verify(mCb, timeout(TEST_TIMEOUT_MS)).onLinkPropertiesChange(emptyLp); [all …]
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 123 void runUntilStatus(int status, long timeout) throws TimeoutException { in runUntilStatus() argument 126 waitForStatus(status, startMillis, timeout); in runUntilStatus() 133 void waitForStatus(int expected, long afterMillis, long timeout) throws TimeoutException { in waitForStatus() argument 136 final long elapsedTimeout = SystemClock.elapsedRealtime() + timeout; in waitForStatus() 147 if (timeout > MINUTE_IN_MILLIS) { in waitForStatus() 155 if (timeout > MINUTE_IN_MILLIS) { in waitForStatus()
|
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/ |
D | Wait.java | 30 public static void atMost(String message, Condition condition, long timeout) { in atMost() argument 31 atMost(message, condition, timeout, DEFAULT_SLEEP_MS); in atMost() 34 public static void atMost(String message, Condition condition, long timeout, long sleepMillis) { in atMost() argument 35 long endTime = SystemClock.uptimeMillis() + timeout; in atMost()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | InputTaskSchedulerTest.java | 25 import static org.mockito.Mockito.timeout; 125 verify(mDataManager, timeout((int) LISTENER_TIMEOUT_MS).times(1)) in testAddSchedule_past() 143 verify(mRecordingTasks.get(0), timeout((int) LISTENER_TIMEOUT_MS).times(1)).start(); in testAddSchedule_start() 161 verify(mRecordingTasks.get(0), timeout((int) LISTENER_TIMEOUT_MS).times(1)).start(); in testAddSchedule_consecutiveNoStop() 185 verify(mRecordingTasks.get(0), timeout((int) LISTENER_TIMEOUT_MS).times(1)).start(); in testAddSchedule_consecutiveNoFail() 213 verify(mRecordingTasks.get(0), timeout((int) LISTENER_TIMEOUT_MS).times(1)).start(); in testAddSchedule_consecutiveUseLessSession() 250 verify(mRecordingTasks.get(0), timeout((int) LISTENER_TIMEOUT_MS).times(1)).cancel(); in testUpdateSchedule_cancel()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | LatchedConsumer.java | 32 public void assertNotCalled(long timeout, TimeUnit unit) in assertNotCalled() argument 34 assertFalse(latch.await(timeout, unit)); in assertNotCalled() 37 public void assertCalled(long timeout, TimeUnit unit) in assertCalled() argument 39 assertTrue(latch.await(timeout, unit)); in assertCalled()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | Wait.java | 15 public static void atMost(String message, Condition condition, long timeout) { in atMost() argument 16 atMost(message, condition, timeout, DEFAULT_SLEEP_MS); in atMost() 19 public static void atMost(String message, Condition condition, long timeout, long sleepMillis) { in atMost() argument 21 long endTime = startTime + timeout; in atMost()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachineTest.java | 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() 232 verify(mA2dpService, timeout(A2dpStateMachine.sConnectTimeoutMs * 2).times( in testOutgoingTimeout() 260 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingTimeout() 271 verify(mA2dpService, timeout(A2dpStateMachine.sConnectTimeoutMs * 2).times( in testIncomingTimeout() 343 verify(mA2dpService, timeout(TIMEOUT_MS).times(2)).sendBroadcast(intentArgument2.capture(), in testProcessCodecConfigEventCase()
|