Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 211) sorted by relevance

123456789

/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java125 for (int timeout : ALL_TIMEOUTS) { in init()
126 mClientMap.put(timeout, new ArrayList<ClientInfo>()); in init()
127 mPingedClientMap.put(timeout, new SparseArray<ClientInfo>()); in init()
128 mClientCheckInProgress.put(timeout, false); in init()
152 for (int timeout : ALL_TIMEOUTS) { in dump()
153 ArrayList<ClientInfo> clients = mClientMap.get(timeout); in dump()
154 String timeoutStr = timeoutToString(timeout); in dump()
180 public void registerClient(ICarWatchdogServiceCallback client, int timeout) { in registerClient() argument
181 ArrayList<ClientInfo> clients = mClientMap.get(timeout); in registerClient()
199 ClientInfo clientInfo = new ClientInfo(client, pid, userId, timeout); in registerClient()
[all …]
/packages/services/Car/watchdog/server/src/
DWatchdogProcessService.cpp47 std::chrono::nanoseconds timeoutToDurationNs(const TimeoutLength& timeout) { in timeoutToDurationNs() argument
48 switch (timeout) { in timeoutToDurationNs()
85 for (const auto& timeout : kTimeouts) { in WatchdogProcessService() local
86 mClients.insert(std::make_pair(timeout, std::vector<ClientInfo>())); in WatchdogProcessService()
87 mPingedClients.insert(std::make_pair(timeout, PingedClientMap())); in WatchdogProcessService()
92 TimeoutLength timeout) { in registerClient() argument
94 return registerClientLocked(client, timeout, ClientType::Regular); in registerClient()
212 for (const auto& timeout : kTimeouts) { in notifyPowerCycleChange() local
213 startHealthCheckingLocked(timeout); in notifyPowerCycleChange()
260 for (const auto& timeout : kTimeouts) { in dump() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDiscoverableEnabler.java136 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/
DBluetoothDiscoverableEnabler.java136 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/
DActiveDeviceManagerTest.java118 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 …]
DPhonePolicyTest.java129 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testProcessInitProfilePriorities()
132 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()
208 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).setConnection( in testDisconnectNoAutoConnect()
223 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect()
225 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect()
241 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setConnection( in testDisconnectNoAutoConnect()
243 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setDisconnection( in testDisconnectNoAutoConnect()
253 verify(mDatabaseManager, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).setDisconnection( in testDisconnectNoAutoConnect()
[all …]
DAdapterServiceTest.java188 verify(mIBluetoothCallback, timeout(timeoutMs) in verifyStateChange()
206 verify(mMockContext, timeout(GATT_START_TIME_MS).times( in doEnable()
221 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doEnable()
232 verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(2 * invocationNumber + 2)) in doEnable()
252 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable()
267 verify(mMockContext, timeout(ONE_SECOND_MS).times( in doDisable()
336 verify(mMockContext, timeout(GATT_START_TIME_MS).times(1)).startService(any()); in testGattStartTimeout()
344 verify(mMockContext, timeout(AdapterState.BLE_STOP_TIMEOUT_DELAY + CONTEXT_SWITCH_MS) in testGattStartTimeout()
368 verify(mMockContext, timeout(ONE_SECOND_MS).times(5)).startService(any()); in testGattStopTimeout()
381 verify(mMockContext, timeout(ONE_SECOND_MS).times(6)).startService(any()); in testGattStopTimeout()
[all …]
DProfileServiceTest.java68 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in setAllProfilesState()
152 timeout(PROFILE_START_MILLIS).times(invocationNumber)).onProfileServiceStateChanged( in testEnableDisableInterleaved()
155 timeout(PROFILE_START_MILLIS).times(invocationNumber)).onProfileServiceStateChanged( in testEnableDisableInterleaved()
180 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testRepeatedEnableDisableSingly()
185 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testRepeatedEnableDisableSingly()
206 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testProfileServiceRegisterUnregister()
211 verify(mMockAdapterService, timeout(PROFILE_START_MILLIS).times( in testProfileServiceRegisterUnregister()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DCarWatchdogClient.java41 public boolean onCheckHealthStatus(int sessionId, int timeout) {
82 int timeout; in parseCommand() local
87 timeout = CarWatchdogManager.TIMEOUT_CRITICAL; in parseCommand()
90 timeout = CarWatchdogManager.TIMEOUT_MODERATE; in parseCommand()
93 timeout = CarWatchdogManager.TIMEOUT_NORMAL; in parseCommand()
124 return new ClientConfig(timeout, inactiveMainAfterInSec, notRespondAfterInSec, verbose); in parseCommand()
135 mClientConfig.timeout); in registerAndGo()
145 Thread.sleep(getTimeForInactiveMain(mClientConfig.timeout)); in registerAndGo()
154 private long getTimeForInactiveMain(int timeout) { in getTimeForInactiveMain() argument
155 switch (timeout) { in getTimeForInactiveMain()
[all …]
/packages/modules/NetworkStack/tests/lib/src/com/android/testutils/
DTestableNetworkStatsProvider.kt51 fun expectOnRequestStatsUpdate(token: Int, timeout: Long = defaultTimeoutMs) { in expectOnRequestStatsUpdate()
52 assertEquals(CallbackType.OnRequestStatsUpdate(token), history.poll(timeout)) in expectOnRequestStatsUpdate()
55 fun expectOnSetLimit(iface: String?, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
56 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
59 fun expectOnSetAlert(quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetAlert()
60 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(timeout)) in expectOnSetAlert()
63 fun pollForNextCallback(timeout: Long = defaultTimeoutMs) = in pollForNextCallback()
64 history.poll(timeout) ?: fail("Did not receive callback after ${timeout}ms") in pollForNextCallback()
67 timeout: Long = defaultTimeoutMs, in pollForNextCallback()
70 return pollForNextCallback(timeout).also { assertTrue(it is T && predicate(it)) } as T in <lambda>()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java160 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testDisconnect()
194 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testControlOnly()
226 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(numBroadcastsSent)).sendBroadcast( in testBrowsingOnly()
277 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay()
280 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPlay()
296 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause()
299 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testPause()
315 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop()
318 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testStop()
334 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)).sendPassThroughCommandNative( in testNext()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java173 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 …]
DHeadsetServiceAndStateMachineTest.java356 verify(mObjectsFactory, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).destroyStateMachine( in testUnbondDevice_disconnectBeforeUnbond()
414 verify(mObjectsFactory, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).destroyStateMachine( in testUnbondDevice_disconnectAfterUnbond()
706 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).deactivateVoiceRecognition(); in testVoiceRecognition_SingleHfStopSuccess()
707 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).atResponseCode(device, in testVoiceRecognition_SingleHfStopSuccess()
709 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).disconnectAudio(device); in testVoiceRecognition_SingleHfStopSuccess()
738 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).activateVoiceRecognition(); in testVoiceRecognition_SingleHfInitiatedFailedToActivate()
739 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).atResponseCode(device, in testVoiceRecognition_SingleHfInitiatedFailedToActivate()
770 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).activateVoiceRecognition(); in testVoiceRecognition_SingleHfInitiatedTimeout()
771 verify(mNativeInterface, timeout(START_VR_TIMEOUT_WAIT_MILLIS)).atResponseCode(device, in testVoiceRecognition_SingleHfInitiatedTimeout()
823 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).startVoiceRecognition(device); in testVoiceRecognition_SingleAgInitiatedSuccessNullInput()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/
DCarWatchdogServiceTest.java31 import static org.mockito.Mockito.timeout;
151 verify(mCarWatchdogDaemon, timeout(MAX_WAIT_TIME_MS)).tellMediatorAlive( in testClientUnderStoppedUser()
155 verify(mCarWatchdogDaemon, timeout(MAX_WAIT_TIME_MS)).tellMediatorAlive( in testClientUnderStoppedUser()
178 verify(mCarWatchdogDaemon, timeout(MAX_WAIT_TIME_MS)).tellMediatorAlive( in testMultipleClients()
183 verify(mCarWatchdogDaemon, timeout(MAX_WAIT_TIME_MS)).tellMediatorAlive( in testMultipleClients()
202 verify(mCarWatchdogDaemon, timeout(MAX_WAIT_TIME_MS)).tellMediatorAlive( in testClientResponse()
218 verify(mCarWatchdogDaemon, timeout(MAX_WAIT_TIME_MS)).tellMediatorAlive( in testClientResponse()
257 public boolean onCheckHealthStatus(int sessionId, int timeout) { in onCheckHealthStatus() argument
294 public boolean onCheckHealthStatus(int sessionId, int timeout) { in onCheckHealthStatus() argument
295 super.onCheckHealthStatus(sessionId, timeout); in onCheckHealthStatus()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java140 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/apps/Stk/src/com/android/stk/
DStkApp.java52 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/
DUiObject2Asserts.java45 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()
DUiDeviceAsserts.java64 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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java65 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 …]
DBasicCallTests.java30 import static org.mockito.Mockito.timeout;
166 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingCall()
195 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCall()
223 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCallAsAudio()
252 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingInvalidVideoState()
438 verify(mInCallServiceFixtureX.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
440 verify(mInCallServiceFixtureY.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
453 verify(mInCallServiceFixtureX.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
455 verify(mInCallServiceFixtureY.getTestDouble(), timeout(TEST_TIMEOUT)) in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
603 verify(audioManager, timeout(TEST_TIMEOUT)).requestAudioFocusForCall(anyInt(), anyInt()); in testAudioManagerOperations()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWait.java19 public static void atMost(String message, Condition condition, long timeout, in atMost() argument
21 atMost(() -> message, condition, timeout, DEFAULT_SLEEP_MS, launcher); in atMost() local
24 public static void atMost(Supplier<String> message, Condition condition, long timeout, in atMost() argument
26 atMost(message, condition, timeout, DEFAULT_SLEEP_MS, launcher); in atMost()
29 public static void atMost(Supplier<String> message, Condition condition, long timeout, in atMost() argument
33 long endTime = startTime + timeout; in atMost()
/packages/services/Car/car-lib/src/android/car/watchdog/
DCarWatchdogManager.java116 public boolean onCheckHealthStatus(int sessionId, @TimeoutLengthEnum int timeout) { in onCheckHealthStatus() argument
150 @NonNull CarWatchdogClientCallback client, @TimeoutLengthEnum int timeout) { in registerClient() argument
163 mService.registerClient(mClientImpl, timeout); in registerClient()
238 private void checkClientStatus(int sessionId, int timeout) { in checkClientStatus() argument
259 boolean checkDone = client.onCheckHealthStatus(sessionId, timeout); in checkClientStatus()
328 public void onCheckHealthStatus(int sessionId, int timeout) { in onCheckHealthStatus() argument
331 manager.checkClientStatus(sessionId, timeout); in onCheckHealthStatus()
/packages/services/BuiltInPrintService/jni/lib/
Dwprint_msgq.c95 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/services/Car/watchdog/testclient/src/
DWatchdogClient.h32 std::string timeout; member
43 timeout(sessionTimeout) {} in id()
46 TimeoutLength timeout; member
53 ndk::ScopedAStatus checkIfAlive(int32_t sessionId, TimeoutLength timeout) override;
73 void registerClient(const std::string& timeout);
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java30 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 …]

123456789