/frameworks/base/core/java/android/util/ |
H A D | NtpTrustedTime.java | 53 private NtpTrustedTime(String server, long timeout) { argument 56 mTimeout = timeout; 71 final long timeout = Settings.Global.getLong( 75 sSingleton = new NtpTrustedTime(server, timeout);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | NetInitiatedActivity.java | 52 private int timeout = -1; field in class:NetInitiatedActivity 98 timeout = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TIMEOUT, default_response_timeout); 100 if (DEBUG) Log.d(TAG, "onCreate() : notificationId: " + notificationId + " timeout: " + timeout + " default_response:" + default_response); 102 mHandler.sendMessageDelayed(mHandler.obtainMessage(GPS_NO_RESPONSE_TIME_OUT), (timeout * 1000));
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
H A D | WorkerPool.h | 52 // false for timeout 53 bool wait(uint64_t timeout = 0);
|
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/ |
H A D | RemoteRenderSession.java | 47 Result render(long timeout, boolean forceMeasure) throws RemoteException; argument
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | service_dispatcher.h | 56 * Same as above with timeout in milliseconds. A negative value means 57 * infinite timeout, while a value of 0 means return immediately if no 60 int ReceiveAndDispatch(int timeout);
|
/frameworks/rs/tests/lldb/ |
H A D | config.py | 106 def timeout(self): member in class:Config
|
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/ |
H A D | RadioTunerTest.java | 52 import static org.mockito.Mockito.timeout; 159 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); 202 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); 224 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); 262 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); 268 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); 280 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); 297 verify(mCallback, timeout(kTuneCallbackTimeoutMs)) 324 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); 385 verify(mCallback, timeout(kFullScanTimeoutM [all...] |
/frameworks/rs/tests/lldb/tests/harness/ |
H A D | util_android.py | 60 def adb(self, args, async=False, device=True, timeout=None): 69 timeout: it specifies the number of seconds to wait for 75 - when both the combination async=True and timeout are 77 - when a timeout <= 0 is specified. 81 specified timeout, a string which is the output (standard out and 93 if timeout is None: 101 'with timeout specified') 104 timeout) 115 def adb_retry(self, args, max_num_attempts, timeout): 119 completion up to 'timeout' second [all...] |
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareUltralight.java | 227 * Set the {@link #transceive} timeout in milliseconds. 229 * <p>The timeout only applies to {@link #transceive} on this object, 232 * <p>Setting a longer timeout may be useful when performing 238 * @param timeout timeout value in milliseconds 240 public void setTimeout(int timeout) { argument 243 TagTechnology.MIFARE_ULTRALIGHT, timeout); 245 throw new IllegalArgumentException("The supplied timeout is not valid"); 253 * Get the current {@link #transceive} timeout in milliseconds. 257 * @return timeout valu [all...] |
/frameworks/base/core/java/android/service/gatekeeper/ |
H A D | GateKeeperResponse.java | 50 private static GateKeeperResponse createRetryResponse(int timeout) { argument 52 response.mTimeout = timeout;
|
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/ |
H A D | RemoteRenderSessionAdapter.java | 83 public Result render(long timeout, boolean forceMeasure) { argument 85 return mDelegate.render(timeout, forceMeasure);
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
H A D | dvr_buffer_queue.h | 91 // @param timeout Specifies the number of milliseconds that the method will 92 // block. Specifying a timeout of -1 causes it to block indefinitely, 93 // while specifying a timeout equal to zero cause it to return immediately, 103 int dvrWriteBufferQueueGainBuffer(DvrWriteBufferQueue* write_queue, int timeout, 174 // @param timeout Specifies the number of milliseconds that the method will 175 // block. Specifying a timeout of -1 causes it to block indefinitely, 176 // while specifying a timeout equal to zero cause it to return immediately, 186 int dvrReadBufferQueueAcquireBuffer(DvrReadBufferQueue* read_queue, int timeout,
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | AsyncCallRecorder.h | 55 // // Wait for one call (with reasonable default timeout), and get the args 69 // However this check uses a really short timeout so as not to block the test 103 // oldest call, waiting for the given timeout if necessary if there are no 106 std::chrono::microseconds timeout = DEFAULT_CALL_EXPECTED_TIMEOUT) 111 mCondition.wait_for(lock, timeout, 124 // Waits using a small default timeout for when a call is not expected to be 129 // Note this function uses a small timeout to not block test execution, and 130 // it is possible the code under test could make the call AFTER the timeout
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | TransferPipe.java | 139 String prefix, String[] args, long timeout) throws IOException, RemoteException { 151 tp.go(out, timeout); 161 String[] args, long timeout) throws IOException, RemoteException { 173 tp.go(out, timeout); 181 public void go(FileDescriptor out, long timeout) throws IOException { argument 185 mEndTime = SystemClock.uptimeMillis() + timeout; 138 go(Caller caller, IInterface iface, FileDescriptor out, String prefix, String[] args, long timeout) argument 160 goDump(IBinder binder, FileDescriptor out, String[] args, long timeout) argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
H A D | BackgroundRestrictionsTest.java | 185 private boolean awaitJobStart(long timeout) throws InterruptedException { argument 186 return waitUntilTrue(timeout, () -> { 193 private boolean awaitJobStop(long timeout) throws InterruptedException { argument 194 return waitUntilTrue(timeout, () -> { 202 private boolean waitUntilTrue(long timeout, Condition condition) throws InterruptedException { argument 203 final long deadLine = SystemClock.uptimeMillis() + timeout;
|
/frameworks/base/tests/net/java/com/android/server/ |
H A D | NsdServiceTest.java | 24 import static org.mockito.Mockito.timeout; 93 verify(mDaemon, timeout(100).times(1)).start(); 100 verify(mDaemon, timeout(mTimeoutMs).times(1)).stop(); 114 verify(mDaemon, timeout(100).times(1)).start(); 136 verify(mDaemon, timeout(mTimeoutMs).times(1)).stop(); 168 verify(mDaemon, timeout(mTimeoutMs).times(n)).execute(argumentsCaptor.capture());
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SipSession.java | 395 * @param timeout the session will be timed out if the call is not 396 * established within {@code timeout} seconds. Default value (defined 397 * by SIP protocol) is used if {@code timeout} is zero or negative. 401 int timeout) { 403 mSession.makeCall(callee, sessionDescription, timeout); 415 * @param timeout the session will be timed out if the call is not 416 * established within {@code timeout} seconds. Default value (defined 417 * by SIP protocol) is used if {@code timeout} is zero or negative. 419 public void answerCall(String sessionDescription, int timeout) { argument 421 mSession.answerCall(sessionDescription, timeout); 400 makeCall(SipProfile callee, String sessionDescription, int timeout) argument 452 changeCall(String sessionDescription, int timeout) argument [all...] |
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/ |
H A D | SliceManagerTest.java | 28 import static org.mockito.Mockito.timeout; 76 verify(mSliceProvider, timeout(2000)).onSlicePinned(eq(uri)); 89 verify(mSliceProvider, timeout(2000)).onSlicePinned(eq(uri)); 92 verify(mSliceProvider, timeout(2000)).onSliceUnpinned(eq(uri)); 105 verify(mSliceProvider, timeout(2000)).onSlicePinned(eq(longerUri)); 138 verify(callback, timeout(2000)).onSliceUpdated(any(Slice.class));
|
/frameworks/native/libs/vr/libbufferhubqueue/ |
H A D | buffer_hub_queue_client.cpp | 148 bool BufferHubQueue::WaitForBuffers(int timeout) { argument 161 count() == 0 ? timeout : 0); 165 "BufferHubQueue::WaitForBuffers: No events before timeout: " 359 Status<std::shared_ptr<BufferHubBuffer>> BufferHubQueue::Dequeue(int timeout, argument 361 ALOGD_IF(TRACE, "BufferHubQueue::Dequeue: count=%zu, timeout=%d", count(), 362 timeout); 367 if (!WaitForBuffers(timeout)) 540 int timeout, size_t* slot, LocalHandle* release_fence) { 542 return Dequeue(timeout, slot, &canonical_meta, release_fence); 546 int timeout, size_ 539 Dequeue( int timeout, size_t* slot, LocalHandle* release_fence) argument 545 Dequeue( int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta, pdx::LocalHandle* release_fence) argument 668 Dequeue( int timeout, size_t* slot, void* meta, size_t user_metadata_size, LocalHandle* acquire_fence) argument 697 Dequeue( int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta, pdx::LocalHandle* acquire_fence) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
H A D | CameraDeviceBinderTest.java | 25 import static org.mockito.Mockito.timeout; 62 // Wait for capture result timeout value: 1500ms 64 // Wait for flush timeout value: 1000ms 66 // Wait for idle timeout value: 2000ms 447 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).times(1)).onResultReceived( 452 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).atLeast(NUM_CALLBACKS_CHECKED)) 467 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).times(1)).onCaptureStarted( 472 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).atLeast(NUM_CALLBACKS_CHECKED)) 499 verify(mMockCb, timeout(WAIT_FOR_IDLE_TIMEOUT_MS).times(1)).onDeviceIdle(); 509 verify(mMockCb, timeout(WAIT_FOR_IDLE_TIMEOUT_M [all...] |
/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 82 * @param timeout network timeout in milliseconds. 86 public boolean requestTime(String host, int timeout, Network network) { argument 99 return requestTime(address, NTP_PORT, timeout, network); 102 public boolean requestTime(InetAddress address, int port, int timeout, Network network) { argument 108 socket.setSoTimeout(timeout); 178 public boolean requestTime(String host, int timeout) { argument
|
/frameworks/support/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/ |
H A D | FlingTests.java | 24 import static org.mockito.Mockito.timeout; 100 verify(listener, timeout(1000)).onAnimationEnd(eq(anim), eq(false), floatThat( 123 verify(listener, timeout(1000)).onAnimationEnd(eq(anim), eq(false), floatThat( 154 verify(listener, timeout(1000)).onAnimationEnd(eq(animHighFriction), eq(false), floatThat( 206 verify(listener, timeout(1000)).onAnimationEnd(eq(animHighThreshold), eq(false), floatThat(
|
/frameworks/support/media-widget/src/androidTest/java/androidx/media/widget/ |
H A D | VideoView2Test.java | 25 import static org.mockito.Mockito.timeout; 129 verify(mockAttachListener, timeout(TIME_OUT)).onViewAttachedToWindow(same(mVideoView)); 190 verify(mockControllerCallback, timeout(TIME_OUT).atLeast(3)).onPlaybackStateChanged( 224 verify(mockViewTypeListener, timeout(TIME_OUT)) 235 verify(mockControllerCallback, timeout(TIME_OUT).atLeast(3)).onPlaybackStateChanged(
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 50 // set a default timeout to 5.5s, since ANR threshold is 5s 162 * @param timeout in milliseconds 166 protected AccessibilityNodeInfo findAccessibilityNodeInfo(long timeout) { argument 170 while (currentMills <= timeout) { 179 if(timeout > 0) { 430 * @param timeout timeout before giving up on waiting for a new window 435 public boolean clickAndWaitForNewWindow(long timeout) throws UiObjectNotFoundException { argument 436 Tracer.trace(timeout); 846 * until the timeout ha 853 waitForExists(long timeout) argument 879 waitUntilGone(long timeout) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | ActivityTestsBase.java | 168 boolean timeout = false; 173 timeout = true; 187 if (timeout) {
|