/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/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/tools/preload2/src/com/android/preload/ |
D | ClientUtils.java | 59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { in findClient() argument 60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout); in findClient() 79 public Client[] findAllClients(IDevice device, int timeout) { in findAllClients() argument 83 WaitForClients wfc = new WaitForClients(device, timeout); in findAllClients() 92 private long timeout; field in ClientUtils.WaitForClient 95 public WaitForClient(IDevice device, String processName, int processPid, long timeout) { in WaitForClient() argument 99 this.timeout = timeout; in WaitForClient() 114 wait(timeout); in get() 180 private long timeout; field in ClientUtils.WaitForClients 182 public WaitForClients(IDevice device, long timeout) { in WaitForClients() argument [all …]
|
D | DeviceUtils.java | 65 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { in doShell() argument 66 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); in doShell() 72 public static String doShellReturnString(IDevice device, String cmdline, long timeout, in doShellReturnString() argument 75 doShell(device, cmdline, rec, timeout, unit); in doShellReturnString() 83 long timeout, TimeUnit unit) { in doShell() argument 85 device.executeShellCommand(cmdline, receiver, timeout, unit); in doShell() 101 public static IDevice findDevice(String serial, int timeout) { in findDevice() argument 102 WaitForDevice wfd = new WaitForDevice(serial, timeout); in findDevice() 109 public static IDevice[] findDevices(int timeout) { in findDevices() argument 110 WaitForDevice wfd = new WaitForDevice(null, timeout); in findDevices() [all …]
|
/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/services/tests/servicestests/src/com/android/server/power/ |
D | ThermalManagerServiceTest.java | 26 import static org.mockito.Mockito.timeout; 167 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 169 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 171 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 173 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 178 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 181 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 184 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 189 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp() 211 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDeviceConnection.java | 184 int index, byte[] buffer, int length, int timeout) { in controlTransfer() argument 185 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer() 209 byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument 212 buffer, offset, length, timeout); in controlTransfer() 236 byte[] buffer, int length, int timeout) { in bulkTransfer() argument 237 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer() 256 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument 262 return native_bulk_request(endpoint.getAddress(), buffer, offset, length, timeout); in bulkTransfer() 336 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait() argument 337 timeout = Preconditions.checkArgumentNonnegative(timeout, "timeout"); in requestWait() [all …]
|
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/ |
D | Hprof.java | 48 public static File doHprof(Client client, int timeout) { in doHprof() argument 49 GetHprof gh = new GetHprof(client, timeout); in doHprof() 118 private long timeout; field in Hprof.GetHprof 121 public GetHprof(Client client, long timeout) { in GetHprof() argument 123 this.timeout = timeout; in GetHprof() 132 wait(timeout); in get() 206 private int timeout; field in Hprof 208 public Hprof(int timeout) { in Hprof() argument 209 this.timeout = timeout; in Hprof() 214 File hprofLocalFile = Hprof.doHprof(client, timeout); in getClassData()
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | PeriodicAdvertisingManager.java | 92 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument 94 registerSync(scanResult, skip, timeout, callback, null); in registerSync() 116 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument 135 if (timeout < TIMEOUT_MIN || timeout > TIMEOUT_MAX) { in registerSync() 146 skip, timeout, in registerSync() 159 gatt.registerSync(scanResult, skip, timeout, wrapped); in registerSync() 203 int advertisingSid, int skip, int timeout, int status) { in wrap() 209 timeout, in wrap()
|
/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 28 import static org.mockito.Mockito.timeout; 97 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in testResolveService() 102 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testResolveService() 124 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService() 125 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService() 148 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService() 152 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService() 159 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService() 167 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService() 175 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService() [all …]
|
/frameworks/base/libs/hwui/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/core/java/com/android/internal/widget/ |
D | VerifyCredentialResponse.java | 80 public VerifyCredentialResponse(int timeout) { in VerifyCredentialResponse() argument 81 mTimeout = timeout; in VerifyCredentialResponse() 86 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { in VerifyCredentialResponse() argument 88 mTimeout = timeout; in VerifyCredentialResponse() 124 private void setTimeout(int timeout) { in setTimeout() argument 125 mTimeout = timeout; in setTimeout()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 153 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 161 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 172 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 180 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 191 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument 199 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() 216 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument 220 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange() 414 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument 421 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection() [all …]
|
/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/startop/scripts/app_startup/ |
D | run_app_with_prefetch | 30 -t, --timeout <sec> how many seconds to timeout in between each app run (default 10) 44 timeout=10 82 -t|--timeout) 83 timeout="$2" 322 verbose_print "Running with timeout $timeout" 325 total_time="$(timeout $timeout $DIR/launch_application "$package" "$activity")"
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 20 import static org.mockito.Mockito.timeout; 200 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback() 206 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback() 220 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback() 222 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback() 237 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback() 239 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
|
/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/accessibility/java/com/android/server/accessibility/ |
D | GestureUtils.java | 23 int timeout, int distance) { in eventsWithinTimeAndDistanceSlop() argument 24 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop() 38 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { in isTimedOut() argument 40 return (deltaTime >= timeout); in isTimedOut()
|
/frameworks/rs/tests/lldb/tests/harness/ |
D | util_android.py | 60 def adb(self, args, async=False, device=True, timeout=None): argument 93 if timeout is None: 104 timeout) 115 def adb_retry(self, args, max_num_attempts, timeout): argument 143 if timeout is None or timeout <= 0: 150 output = self.adb(args, False, True, timeout) 233 def shell(self, cmd, async=False, timeout=None): argument 248 return self.adb('shell "{0}"'.format(cmd), async, True, timeout) 679 def _execute_command_remote(command, timeout): argument 710 return_code, output = channel.get(True, timeout)
|
/frameworks/base/core/java/android/app/ |
D | WaitResult.java | 67 public boolean timeout; field in WaitResult 83 dest.writeInt(timeout ? 1 : 0); in writeToParcel() 104 timeout = source.readInt() != 0; in WaitResult() 113 pw.println(prefix + " timeout=" + timeout); in dump()
|
/frameworks/base/startop/iorap/tests/src/com/google/android/startop/iorap/ |
D | IIorapIntegrationTest.kt | 24 import org.mockito.Mockito.timeout in <lambda>() 73 inOrder.verify(taskListener, timeout(100)) in <lambda>() 75 inOrder.verify(taskListener, timeout(100)) in <lambda>() 77 inOrder.verify(taskListener, timeout(100)) in <lambda>()
|
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/ |
D | buffer_hub_queue_client.h | 162 pdx::Status<std::shared_ptr<BufferHubBase>> Dequeue(int timeout, 166 bool WaitForBuffers(int timeout); 359 int timeout, size_t* slot, pdx::LocalHandle* release_fence); 379 int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta, 443 int timeout, size_t* slot, Meta* meta, pdx::LocalHandle* acquire_fence) { in Dequeue() argument 444 return Dequeue(timeout, slot, meta, sizeof(*meta), acquire_fence); in Dequeue() 447 int timeout, size_t* slot, pdx::LocalHandle* acquire_fence) { in Dequeue() argument 448 return Dequeue(timeout, slot, nullptr, 0, acquire_fence); in Dequeue() 452 int timeout, size_t* slot, void* meta, size_t user_metadata_size, 455 int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta,
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_buffer_queue.cpp | 54 int DvrWriteBufferQueue::Dequeue(int timeout, DvrWriteBuffer* write_buffer, in Dequeue() argument 59 if (const int ret = GainBuffer(timeout, &buffer, &meta, &fence_fd)) in Dequeue() 70 int DvrWriteBufferQueue::GainBuffer(int timeout, in GainBuffer() argument 85 producer_queue_->Dequeue(timeout, &slot, out_meta, &release_fence); in GainBuffer() 292 int dvrWriteBufferQueueGainBuffer(DvrWriteBufferQueue* write_queue, int timeout, in dvrWriteBufferQueueGainBuffer() argument 299 return write_queue->GainBuffer(timeout, out_write_buffer, out_meta, in dvrWriteBufferQueueGainBuffer() 341 int DvrReadBufferQueue::AcquireBuffer(int timeout, in AcquireBuffer() argument 348 consumer_queue_->Dequeue(timeout, &slot, out_meta, &acquire_fence); in AcquireBuffer() 491 int dvrReadBufferQueueDequeue(DvrReadBufferQueue* read_queue, int timeout, in dvrReadBufferQueueDequeue() argument 500 return read_queue->Dequeue(timeout, read_buffer, out_fence_fd, out_meta, in dvrReadBufferQueueDequeue() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/ |
D | RadioTunerTest.java | 26 import static org.mockito.Mockito.timeout; 156 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); in openTuner() 199 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); in testSetAndGetConfiguration() 221 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); in testSetBadConfiguration() 259 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testStep() 265 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testStep() 277 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testStepLoop() 294 verify(mCallback, timeout(kTuneCallbackTimeoutMs)) in testTuneAndGetPI() 321 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testLateCancel() 382 verify(mCallback, timeout(kFullScanTimeoutMs)).onBackgroundScanComplete(); in testTuneFromProgramList() [all …]
|