/frameworks/base/tests/testables/src/android/testing/ |
D | PollingCheck.java | 33 public PollingCheck(long timeout) { in PollingCheck() argument 34 mTimeout = timeout; in PollingCheck() 44 long timeout = mTimeout; in run() local 45 while (timeout > 0) { in run() 56 timeout -= TIME_SLICE; in run() 62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument 64 while (timeout > 0) { in check() 70 timeout -= TIME_SLICE; in check() 85 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument 86 new PollingCheck(timeout) { in waitFor() argument
|
D | AndroidTestingRunner.java | 75 long timeout = this.getTimeout(method.getAnnotation(Test.class)); in withPotentialTimeout() local 76 if (timeout <= 0L && mTimeout > 0L) { in withPotentialTimeout() 77 timeout = mTimeout; in withPotentialTimeout() 80 return timeout <= 0L ? next : new FailOnTimeout(next, timeout); in withPotentialTimeout() 84 return annotation == null ? 0L : annotation.timeout(); in getTimeout()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | CellularNetworkValidatorTest.java | 116 int timeout = 1000; in testValidateSuccess() local 117 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateSuccess() 129 int timeout = 100; in testValidateTimeout() local 130 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateTimeout() 134 moveTimeForward(timeout); in testValidateTimeout() 143 int timeout = 100; in testValidateFailure() local 144 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateFailure() 154 int timeout = 100; in testNetworkAvailableNotValidated() local 155 mValidatorUT.validate(subId, timeout, true, mCallback); in testNetworkAvailableNotValidated() 162 moveTimeForward(timeout); in testNetworkAvailableNotValidated() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | Configurator.java | 79 public Configurator setWaitForIdleTimeout(long timeout) { in setWaitForIdleTimeout() argument 80 mWaitForIdleTimeout = timeout; in setWaitForIdleTimeout() 115 public Configurator setWaitForSelectorTimeout(long timeout) { in setWaitForSelectorTimeout() argument 116 mWaitForSelector = timeout; in setWaitForSelectorTimeout() 149 public Configurator setScrollAcknowledgmentTimeout(long timeout) { in setScrollAcknowledgmentTimeout() argument 150 mScrollEventWaitTimeout = timeout; in setScrollAcknowledgmentTimeout() 183 public Configurator setActionAcknowledgmentTimeout(long timeout) { in setActionAcknowledgmentTimeout() argument 184 mWaitForActionAcknowledgment = timeout; in setActionAcknowledgmentTimeout()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | PollingCheck.java | 43 public PollingCheck(long timeout) { in PollingCheck() argument 44 mTimeout = timeout; in PollingCheck() 57 long timeout = mTimeout; in run() local 58 while (timeout > 0) { in run() 69 timeout -= TIME_SLICE; in run() 95 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument 96 new PollingCheck(timeout) { in waitFor() argument
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDeviceConnection.java | 241 int index, @Nullable byte[] buffer, int length, int timeout) { in controlTransfer() argument 242 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer() 266 @Nullable byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument 269 buffer, offset, length, timeout); in controlTransfer() 293 byte[] buffer, int length, int timeout) { in bulkTransfer() argument 294 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer() 313 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument 319 return native_bulk_request(endpoint.getAddress(), buffer, offset, length, timeout); in bulkTransfer() 393 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait() argument 394 timeout = Preconditions.checkArgumentNonnegative(timeout, "timeout"); in requestWait() [all …]
|
/frameworks/av/media/utils/tests/ |
D | timecheck_tests.cpp | 37 (bool timeout, float elapsedMs) { in TEST() argument 38 timeoutRegistered = timeout; in TEST() 48 TEST(timecheck_tests, timeout) { in TEST() argument 56 (bool timeout, float elapsedMs) { in TEST() argument 57 timeoutRegistered = timeout; in TEST() 83 (bool timeout, float elapsedMs) { argument 84 timeoutRegistered = timeout;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | ThermalManagerServiceTest.java | 32 import static org.mockito.Mockito.timeout; 230 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 232 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 234 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 236 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 241 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 244 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 247 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 252 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 274 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/ |
D | AlarmQueueTest.java | 32 import static org.mockito.Mockito.timeout; 131 inOrder.verify(mAlarmManager, timeout(1000).times(1)) 149 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact( 152 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact( 155 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact( 167 inOrder.verify(mAlarmManager, timeout(1000).times(1)) 173 inOrder.verify(mAlarmManager, timeout(1000).times(1)) 192 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact( 197 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact( 201 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact( [all …]
|
/frameworks/base/libs/hwui/platform/android/thread/ |
D | ThreadBase.h | 59 int timeout = -1; in waitForWork() local 61 timeout = ns2ms(nextWakeup - WorkQueue::clock::now()); in waitForWork() 62 if (timeout < 0) timeout = 0; in waitForWork() 64 int result = mLooper->pollOnce(timeout); in waitForWork()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 178 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 192 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 207 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 227 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 251 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 278 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 288 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 342 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 381 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) 413 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS) [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | PrefetchControllerTest.java | 40 import static org.mockito.Mockito.timeout; 282 inOrder.verify(mAlarmManager, timeout(DEFAULT_WAIT_MS).times(1)) in testConstantsUpdating_ThresholdChangesAlarms() 288 inOrder.verify(mAlarmManager, timeout(DEFAULT_WAIT_MS).times(1)) in testConstantsUpdating_ThresholdChangesAlarms() 304 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintNotSatisfiedWhenLaunchLate() 319 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenLaunchSoon() 321 verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)).onControllerStateChanged(any()); in testConstraintSatisfiedWhenLaunchSoon() 341 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop() 343 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop() 351 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop() 359 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop() [all …]
|
/frameworks/base/libs/hwui/platform/host/thread/ |
D | ThreadBase.h | 51 int timeout = nextWakeup - WorkQueue::clock::now(); in waitForWork() local 52 if (timeout < 0) timeout = 0; in waitForWork() 53 duration = std::chrono::nanoseconds(timeout); in waitForWork()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | VerifyCredentialResponse.java | 59 final int timeout = source.readInt(); 63 return new VerifyCredentialResponse(responseCode, timeout, gatekeeperHAT, 109 public static VerifyCredentialResponse fromTimeout(int timeout) { in fromTimeout() argument 111 timeout, in fromTimeout() 127 private VerifyCredentialResponse(@ResponseCode int responseCode, int timeout, in VerifyCredentialResponse() argument 130 mTimeout = timeout; in VerifyCredentialResponse()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 157 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 165 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 176 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 184 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 195 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument 203 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() 220 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument 224 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange() 418 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument 425 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection() [all …]
|
/frameworks/native/services/inputflinger/docs/ |
D | anr.md | 7 1. An event was sent to a connection, and the response was not received within a certain timeout. 25 …timeout time. To calculate the timeout time of a specific event, simply add the `window.dispatchin… 27 …timeout time. Therefore, entries sent prior to the timeout change would need to follow the previou… 29 …lication is being debugged, the ActivityManager may want to increase the timeout time for a window… 33 …te entries are allowed because there may be two events with an identical timeout time. This is unl… 35 …ycle, InputDispatcher checks `AnrTracker` for the nearest timeout value. If the nearest timeout va… 59 To keep track of this timeout, when this situation is detected initially, `mInputTargetWaitTimeoutT… 67 ## Extending the timeout based on the response from policy ## 69 …timeout, InputDispatcher marks the connection as "responsive" by setting `inputPublisherBlocked = … 71 If the policy wants to abort dispatch, it returns a timeout value of 0. In this case, InputDispatch…
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeInputDispatcherPolicy.cpp | 88 std::chrono::nanoseconds timeout, in assertNotifyNoFocusedWindowAnrWasCalled() argument 94 application = getAnrTokenLockedInterruptible(timeout, mAnrApplications, lock)); in assertNotifyNoFocusedWindowAnrWasCalled() 99 std::chrono::nanoseconds timeout, const sp<gui::WindowInfoHandle>& window) { in assertNotifyWindowUnresponsiveWasCalled() argument 101 assertNotifyWindowUnresponsiveWasCalled(timeout, window->getToken(), in assertNotifyWindowUnresponsiveWasCalled() 106 std::chrono::nanoseconds timeout, const sp<IBinder>& expectedToken, in assertNotifyWindowUnresponsiveWasCalled() argument 111 ASSERT_NO_FATAL_FAILURE(result = getAnrTokenLockedInterruptible(timeout, mAnrWindows, lock)); in assertNotifyWindowUnresponsiveWasCalled() 117 std::chrono::nanoseconds timeout) { in getUnresponsiveWindowToken() argument 120 AnrResult result = getAnrTokenLockedInterruptible(timeout, mAnrWindows, lock); in getUnresponsiveWindowToken() 179 if (mPointerCaptureChangedCondition.wait_for(lock, 100ms) != std::cv_status::timeout) { in assertSetPointerCaptureNotCalled() 206 void FakeInputDispatcherPolicy::setInterceptKeyTimeout(std::chrono::milliseconds timeout) { in setInterceptKeyTimeout() argument [all …]
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/ |
D | futex_test.cc | 28 extern "C" int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) 36 struct timespec timeout; in TEST() local 37 timeout.tv_sec = 0; in TEST() 38 timeout.tv_nsec = 1000000; // 1ms in TEST() 39 ASSERT_EQ(__futex_wait(futex, 0, &timeout), -ETIMEDOUT); in TEST()
|
/frameworks/proto_logging/stats/atoms/power/ |
D | power_extension_atoms.proto | 69 // timeout successful 71 // timeout but user initiates screen immediately 73 // cancel the timeout because of client api call 75 // cancel the timeout because of user interaction 77 // cancel the timeout because of power button is triggered 79 // cancel the timeout because of client disconnected 81 // cancel the timeout because of other than above outcomes 128 // Duration between override timeout and default timeout 142 // screen interactive off by timeout
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | ISipSession.aidl | 116 void makeCall(in SipProfile callee, String sessionDescription, int timeout); in makeCall() argument 127 void answerCall(String sessionDescription, int timeout); in answerCall() argument 147 void changeCall(String sessionDescription, int timeout); in changeCall() argument
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | CompanionDeviceDiscoveryService.java | 108 private final Runnable mTimeoutRunnable = this::timeout; 225 private void stopDiscoveryAndFinish(boolean timeout) { in stopDiscoveryAndFinish() argument 226 Slog.d(TAG, "stopDiscoveryAndFinish(" + timeout + ")"); in stopDiscoveryAndFinish() 259 if (timeout) { in stopDiscoveryAndFinish() 393 long timeout = SystemProperties.getLong(SYS_PROP_DEBUG_TIMEOUT, -1); in scheduleTimeout() local 394 if (timeout <= 0) { in scheduleTimeout() 396 timeout = TIMEOUT_DEFAULT; in scheduleTimeout() 398 timeout = min(timeout, TIMEOUT_MAX); // should be <= 1 min (TIMEOUT_MAX) in scheduleTimeout() 399 timeout = max(timeout, TIMEOUT_MIN); // should be >= 1 sec (TIMEOUT_MIN) in scheduleTimeout() 402 Handler.getMain().postDelayed(mTimeoutRunnable, timeout); in scheduleTimeout() [all …]
|
/frameworks/base/core/java/org/apache/http/params/ |
D | HttpConnectionParams.java | 83 public static void setSoTimeout(final HttpParams params, int timeout) { in setSoTimeout() argument 87 params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, timeout); in setSoTimeout() 187 public static void setConnectionTimeout(final HttpParams params, int timeout) { in setConnectionTimeout() argument 192 (CoreConnectionPNames.CONNECTION_TIMEOUT, timeout); in setConnectionTimeout()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 100 import static org.mockito.Mockito.timeout; 474 final long timeout = 1_000; // ms in testTogglingBackgroundRestrictInternal() local 491 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_BACKGROUND_RESTRICTED); in testTogglingBackgroundRestrictInternal() 507 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_BACKGROUND_RESTRICTED); in testTogglingBackgroundRestrictInternal() 530 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_ADAPTIVE_BUCKET); in testTogglingBackgroundRestrictInternal() 543 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_BACKGROUND_RESTRICTED); in testTogglingBackgroundRestrictInternal() 556 verify(mInjector.getAppStandbyInternal(), timeout(timeout).times(1)).restrictApp( in testTogglingBackgroundRestrictInternal() 570 final long timeout = 1_000; // ms in testTogglingStandbyBucket() local 588 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_ADAPTIVE_BUCKET); in testTogglingStandbyBucket() 601 listener.verify(timeout, testUid, testPkgName, RESTRICTION_LEVEL_RESTRICTED_BUCKET); in testTogglingStandbyBucket() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayController.kt | 145 val timeout = accessibilityManager.getRecommendedTimeoutMillis( in <lambda>() constant 151 val timeExpirationMillis = systemClock.currentTimeMillis() + timeout in <lambda>() 163 updateTimeout(currentDisplayInfo, timeout) in <lambda>() 181 showNewView(newDisplayInfo, timeout) in <lambda>() 206 showNewView(newDisplayInfo, timeout) in <lambda>() 209 private fun showNewView(newDisplayInfo: DisplayInfo, timeout: Int) { in <lambda>() 213 updateTimeout(newDisplayInfo, timeout) in <lambda>() 246 private fun updateTimeout(displayInfo: DisplayInfo, timeout: Int) { in <lambda>() 251 timeout.toLong() in <lambda>() 366 val timeout = newViewToDisplay.timeExpirationMillis - systemClock.currentTimeMillis() in <lambda>() constant [all …]
|
/frameworks/av/media/module/libwatchdog/ |
D | Watchdog.cpp | 30 Watchdog::Watchdog(::std::chrono::steady_clock::duration timeout) { in Watchdog() argument 45 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(timeout); in Watchdog() 46 LOG_ALWAYS_FATAL_IF(timeout.count() <= 0, "Duration must be positive"); in Watchdog()
|