Lines Matching refs:timeout
358 * @param timeout to wait for download to finish
361 public boolean startDownloadAndWait(String targetUrl, long timeout) {
371 if ((System.currentTimeMillis() - startTime) > timeout) {
373 " within " + timeout);
431 * @param timeout in milliseconds
434 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) {
437 if ((System.currentTimeMillis() - startTime) > timeout) {
480 * Wait for a given wifi state to occur within a given timeout.
482 * @param timeout for the state to be set in milliseconds.
483 * @return true if the state was achieved within the timeout, false otherwise.
485 public boolean waitForWifiState(int expectedState, long timeout) {
490 if ((System.currentTimeMillis() - startTime) > timeout) {
596 Log.v(LOG_TAG, "wait for scan results timeout");