/external/ltp/testcases/realtime/func/pi-tests/ |
test-skeleton.c | 68 #define TIMEOUT 20 77 printf("Inside the timeout handler, killing the TC threads \n"); 111 alarm(TIMEOUT);
|
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
loc_api_rpcgen_clnt.c | 37 /* Default timeout can be changed using clnt_control() */ 38 static struct timeval TIMEOUT = { 25, 0 }; 46 TIMEOUT)); 55 TIMEOUT)); 64 TIMEOUT)); 73 TIMEOUT)); 82 TIMEOUT)); 91 TIMEOUT)); 100 TIMEOUT)); 109 TIMEOUT)); [all...] |
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
loc_api_rpcgen_clnt.c | 37 /* Default timeout can be changed using clnt_control() */ 38 static struct timeval TIMEOUT = { 25, 0 }; 46 TIMEOUT)); 55 TIMEOUT)); 64 TIMEOUT)); 73 TIMEOUT)); 82 TIMEOUT)); 91 TIMEOUT)); 100 TIMEOUT)); 109 TIMEOUT)); [all...] |
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
loc_api_rpcgen_clnt.c | 37 /* Default timeout can be changed using clnt_control() */ 38 static struct timeval TIMEOUT = { 25, 0 }; 46 TIMEOUT)); 55 TIMEOUT)); 64 TIMEOUT)); 73 TIMEOUT)); 82 TIMEOUT)); 91 TIMEOUT)); 100 TIMEOUT)); 109 TIMEOUT)); [all...] |
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
loc_api_rpcgen_clnt.c | 37 /* Default timeout can be changed using clnt_control() */ 38 static struct timeval TIMEOUT = { 25, 0 }; 46 TIMEOUT)); 55 TIMEOUT)); 64 TIMEOUT)); 73 TIMEOUT)); 82 TIMEOUT)); 91 TIMEOUT)); 100 TIMEOUT)); 109 TIMEOUT)); [all...] |
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
loc_api_rpcgen_clnt.c | 37 /* Default timeout can be changed using clnt_control() */ 38 static struct timeval TIMEOUT = { 25, 0 }; 46 TIMEOUT)); 55 TIMEOUT)); 64 TIMEOUT)); 73 TIMEOUT)); 82 TIMEOUT)); 91 TIMEOUT)); 100 TIMEOUT)); 109 TIMEOUT)); [all...] |
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/ |
PackageHelper.java | 29 public final int TIMEOUT = 500; 54 SystemClock.sleep(2 * TIMEOUT);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
18-1.c | 36 #define TIMEOUT 3 73 ts.tv_sec = time(NULL) + TIMEOUT; 106 sleep(TIMEOUT + 3); /* Parent is probably blocking,
|
18-2.c | 12 * at the time mq_timedreceive() called, the timeout will expire. 37 #define TIMEOUT 3 75 ts.tv_sec = time(NULL) - TIMEOUT; 107 sleep(TIMEOUT + 3); /* Parent is probably blocking
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
15-1.c | 11 * called, then the timeout shall expire. 13 * Test by setting the timeout to a time in the past and then sending 35 #define TIMEOUT 5 45 printf("Timeout never happened\n"); 78 * If timeout never happens, set up an alarm that will go off 79 * after TIMEOUT seconds and call a handler to end the test 85 alarm(TIMEOUT); 111 printf("Timeout lasted too long\n");
|
20-1.c | 34 #define TIMEOUT 5 45 printf("Timeout never happened\n"); 74 ts.tv_sec = currsec + TIMEOUT; 78 * If timeout never happens, set up an alarm that will go off 79 * after TIMEOUT+1 seconds and call a handler to end the test 85 alarm(TIMEOUT + 1); 111 printf("Timeout lasted too long\n");
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
2-2.c | 25 #define TIMEOUT (THREAD_NUM * 2) 38 struct timespec timeout; local 55 timeout.tv_sec = curtime.tv_sec + TIMEOUT; 56 timeout.tv_nsec = curtime.tv_usec * 1000; 59 "most %d secs\n", (void *)self, TIMEOUT); 60 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
2-2.c | 25 #define TIMEOUT THREAD_NUM * 2 38 struct timespec timeout; local 55 timeout.tv_sec = curtime.tv_sec + TIMEOUT; 56 timeout.tv_nsec = curtime.tv_usec * 1000; 60 (void *)self, TIMEOUT); 61 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
1-1.c | 12 * shall be terminated when the specified timeout expires. 45 #define TIMEOUT 3 55 struct timespec timeout; local 61 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; 62 timeout.tv_nsec = currsec1.tv_usec * 1000; 64 printf("thread: attempt timed read lock, %d secs\n", TIMEOUT); 65 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); 157 /* we expect rd_thread2 to block and timeout. */ 172 if (time_diff.tv_sec < TIMEOUT) { [all...] |
3-1.c | 12 * shall be terminated when the specified timeout expires. 48 #define TIMEOUT 3 58 struct timespec timeout, ts; local 69 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; 70 timeout.tv_nsec = currsec1.tv_usec * 1000; 72 printf("thread: attempt timed read lock, %d secs\n", TIMEOUT); 73 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); 171 /* we expect rd_thread2 to block and timeout. */ 186 if (time_diff.tv_sec < TIMEOUT) { [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 36 #define TIMEOUT 1 56 abs_timeout.tv_sec = currsec1 + TIMEOUT; 99 /* Ensure that the abs_timeout has passed by _subtracting_ the timeout value of 1 101 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 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...] |
/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/robotests/src/com/android/settings/display/ |
TimeoutPreferenceControllerTest.java | 38 private static final int TIMEOUT = 30; 56 mController.onPreferenceChange(mPreference, Integer.toString(TIMEOUT)); 60 assertThat(mode).isEqualTo(TIMEOUT);
|