/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
6-1.c | 14 * to wait with timedrdlock as long as the specified 'timeout' does not expire (the 15 * time spent in signal handler is longer than the specifed 'timeout'). 57 #define TIMEOUT 5 92 abs_timeout.tv_sec += TIMEOUT; 94 printf("thread: attempt timed read lock, %d seconds\n", TIMEOUT); 137 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); 150 /* wait at most 2*TIMEOUT seconds */ 154 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); 156 if (cnt >= 2 * TIMEOUT) { 175 if (wait_time.tv_sec < TIMEOUT) { [all...] |
6-2.c | 20 * for a period that the specified 'timeout' for pthread_rwlock_timedrdlock() 21 * should have expired (timeout * 2) 48 #define TIMEOUT 2 63 sleep_time_req.tv_sec = TIMEOUT * 2; 68 /* sig_handler will not sleep 2 times more than the timeout for the 99 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; 104 printf("thread: attempt timed read lock, %d seconds\n", TIMEOUT); 150 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); 169 sleep(TIMEOUT); 181 printf("Error: thread timeout in sig_handler\n") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
1-1.c | 12 * unlock the lock, this wait shall be terminate when the specified timeout expires. 38 #define TIMEOUT 3 57 struct timespec timeout; local 64 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; 65 timeout.tv_nsec = currsec1.tv_usec * 1000; 67 printf("thread: attempt timed write lock, %d secs\n", TIMEOUT); 68 rc = pthread_rwlock_timedwrlock(&rwlock, &timeout); 115 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); 153 /* If the shared data is not altered by child after TIMEOUT*2 seconds [all...] |
3-1.c | 12 * unlock the lock, this wait shall be terminate when the specified timeout expires. 40 #define TIMEOUT 3 59 struct timespec timeout, ts; local 74 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; 75 timeout.tv_nsec = currsec1.tv_usec * 1000; 77 printf("thread: attempt timed write lock, %d secs\n", TIMEOUT); 78 rc = pthread_rwlock_timedwrlock(&rwlock, &timeout); 135 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); 173 /* If the shared data is not altered by child after TIMEOUT*2 seconds [all...] |
5-1.c | 9 * Under no circumstances shall the function fail with a timeout if the lock can be 16 * should not fail with timeout 32 #define TIMEOUT 1 63 abs_timeout.tv_sec = currsec1 + TIMEOUT; 107 abs_timeout.tv_sec = currsec1 - TIMEOUT;
|
6-1.c | 14 * to wait with timedrdlock as long as the specified 'timeout' does not expire (the 15 * time spent in signal handler is longer than the specifed 'timeout'). 57 #define TIMEOUT 5 90 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; 93 printf("thread: attempt timed write lock, %d seconds\n", TIMEOUT); 137 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); 150 /* wait at most 2*TIMEOUT seconds */ 154 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); 156 if (cnt >= 2 * TIMEOUT) { 175 if (time_diff.tv_sec < TIMEOUT) { [all...] |
6-2.c | 20 * for a period that the specified 'timeout' for pthread_rwlock_timedwrlock() 21 * should have expired (timeout * 2) 48 #define TIMEOUT 2 63 sleep_time_req.tv_sec = TIMEOUT * 2; 68 /* sig_handler will not sleep 2 times more than the timeout for the 99 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; 104 printf("thread: attempt timed write lock, %d seconds\n", TIMEOUT); 150 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); 169 sleep(TIMEOUT); 181 printf("Error: thread timeout in sig_handler\n") [all...] |
/external/python/cpython3/Lib/test/ |
test_sched.py | 10 TIMEOUT = 10 72 self.assertEqual(q.get(timeout=TIMEOUT), 1) 77 self.assertEqual(q.get(timeout=TIMEOUT), 2) 78 self.assertEqual(q.get(timeout=TIMEOUT), 3) 81 self.assertEqual(q.get(timeout=TIMEOUT), 4) 84 self.assertEqual(q.get(timeout=TIMEOUT), 5 [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
NoPermissionsLaunchSmokeTest.java | 45 private static final long TIMEOUT = 5000; 76 device.wait(Until.hasObject(By.textStartsWith("Allow Contacts")), TIMEOUT); 81 device.wait(Until.hasObject(By.textEndsWith("make and manage phone calls?")), TIMEOUT); 91 grantPhonePermissionButton.clickAndWait(Until.newWindow(), TIMEOUT);
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
SyncSettingsTest.java | 40 private static final int TIMEOUT = 2000; 67 Until.findObject(By.text("Add account")), TIMEOUT);
|
/packages/apps/Settings/tests/unit/src/com/android/settings/core/ |
LifecycleEventHandlingTest.java | 44 private static final long TIMEOUT = 2000; 70 TIMEOUT); 73 assertThat(mDevice.wait(Until.findObject(By.text(footerText)), TIMEOUT))
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
HotseatHelper.java | 34 private static final int TIMEOUT = 3000; 63 UiObject2 appLoaded = mDevice.wait(Until.findObject(By.pkg(appPackage)), TIMEOUT * 2);
|
/tools/test/connectivity/acts/tests/google/bt/car_bt/ |
BtCarMapMceTest.py | 36 TIMEOUT = 2000
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
OnScreenPositionTest.java | 54 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); 94 expectBindInput(stream, Process.myPid(), TIMEOUT); 107 }, TIMEOUT);
|
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
GLReferenceBenchmark.java | 32 private static final int TIMEOUT = 2000000; 45 intent.putExtra(GLActivityIntentKeys.INTENT_EXTRA_TIMEOUT, TIMEOUT);
|
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Net/Phy/MvPhyDxe/ |
MvPhyDxe.c | 50 #define TIMEOUT 500
71 INTN timeout = TIMEOUT;
local 77 while ((Reg & BMCR_RESET) && timeout--) {
191 DEBUG((DEBUG_ERROR," TIMEOUT !\n"));
319 DEBUG((DEBUG_ERROR, "timeout\n"));
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_urllib2net.py | 12 TIMEOUT = 60 # seconds
206 f = urlopen(url, req, TIMEOUT)
214 if isinstance(err[0], socket.timeout):
215 print >>sys.stderr, "<timeout: %s>" % url
224 except socket.timeout:
225 print >>sys.stderr, "<timeout: %s>" % url
244 with test_support.transient_internet(url, timeout=None):
265 u = _urlopen_with_retry(url, timeout=None)
273 u = _urlopen_with_retry(url, timeout=120)
280 with test_support.transient_internet(self.FTP_HOST, timeout=None): [all...] |
test_urllibnet.py | 30 TIMEOUT = 10.0
33 socket.setdefaulttimeout(self.TIMEOUT)
|
/external/autotest/client/site_tests/cellular_SuspendResume/ |
cellular_SuspendResume.py | 24 TIMEOUT = 60 66 # if the timeout period has been hit, it returns false. 67 def mobile_service_available(self, timeout=60): 68 service = self.flim.FindCellularService(timeout) 95 timeout=self.TIMEOUT) 128 def __get_mobile_device(self, timeout=TIMEOUT): 131 timeout = start_time + timeout [all...] |
/external/deqp/scripts/log/ |
log_parser.py | 36 TIMEOUT = 'Timeout' 48 TIMEOUT 148 if statusCode == "Watchdog timeout occurred.": 149 statusCode = StatusCode.TIMEOUT
|
/external/devlib/devlib/trace/ |
ftrace.py | 44 TIMEOUT = 180 163 as_root=True, timeout=TIMEOUT) 204 timeout=TIMEOUT, as_root=True) 212 timeout=TIMEOUT, as_root=True) 218 self.target.pull(self.target_output_file, outfile, timeout=pull_timeout) 227 textfile, timeout=pull_timeout) 303 self.target.execute(command, timeout=TIMEOUT [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
5-2.c | 12 * mq_timedreceive() will block until timeout expires. 35 #define TIMEOUT 3 36 #define THRESHOLD (TIMEOUT - 1) 75 ts.tv_sec = time(NULL) + TIMEOUT; 106 sleep(TIMEOUT + 3); /* Parent is probably blocking
|
8-1.c | 11 * Otherwise, the timeout is based on the system clock (time() function). 33 #define TIMEOUT 3 75 ts.tv_sec = ts.tv_sec + TIMEOUT; 77 ts.tv_sec = time(NULL) + TIMEOUT; 88 if ((newtime - oldtime) < TIMEOUT) { 115 sleep(TIMEOUT + 3); /* Parent is probably blocking
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
12-1.c | 15 * until it blocks for a timeout of 10 seconds. 42 #define TIMEOUT 10 /* seconds mq_timedsend will block */ 90 /* mq_timedsend will block for TIMEOUT seconds when it waits */ 91 ts.tv_sec = time(NULL) + TIMEOUT; 151 while (i < TIMEOUT*1000 && mq_timedsend_errno < 0) {
|
16-1.c | 15 * parent wait for the timeout and return pass when the next message is sent 19 * Otherwise, the timeout is based on the system clock (time() function). 42 #define TIMEOUT 7 88 /* child should block in < TIMEOUT seconds */ 92 ts.tv_sec += TIMEOUT; 94 ts.tv_sec = time(NULL) + TIMEOUT; 101 /* send will fail after timeout occurs */ 150 * Wait for timeout to complete. 152 ts.tv_sec = TIMEOUT;
|