/frameworks/base/services/core/jni/ |
com_android_server_AlarmManagerService.cpp | 65 virtual int set(int type, struct timespec *ts) = 0; 79 int set(int type, struct timespec *ts); 91 int set(int type, struct timespec *ts); 114 int AlarmImplAlarmDriver::set(int type, struct timespec *ts) 116 return ioctl(fds[0], ANDROID_ALARM_SET(type), ts); 121 struct timespec ts; local 124 ts.tv_sec = tv->tv_sec; 125 ts.tv_nsec = tv->tv_usec * 1000; 126 res = ioctl(fds[0], ANDROID_ALARM_SET_RTC, &ts); 145 int AlarmImplTimerFd::set(int type, struct timespec *ts) 433 struct timespec ts; local [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
JobStoreTest.java | 62 final JobStatus ts = JobStatus.createFromJobInfo(task, SOME_UID, null, -1, null); local 63 mTaskStoreUnderTest.add(ts); 72 assertTrue("JobStore#contains invalid.", mTaskStoreUnderTest.containsJob(ts)); 75 ts.getEarliestRunTime(), loadedTaskStatus.getEarliestRunTime()); 77 ts.getLatestRunTimeElapsed(), loadedTaskStatus.getLatestRunTimeElapsed());
|
/frameworks/native/libs/binder/ |
BufferedTextOutput.cpp | 96 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); local 97 if (ts) return ts; 98 ts = new ThreadState; 99 thread_store_set( &tls, ts, threadDestructor ); 100 return ts; 267 ThreadState* ts = getThreadState(); local 268 if (ts) { 269 while (ts->states.size() <= (size_t)mIndex) ts->states.add(NULL) [all...] |
/frameworks/native/services/surfaceflinger/ |
EventThread.cpp | 81 struct itimerspec ts; local 86 ts.it_value.tv_sec = 0; 87 ts.it_value.tv_nsec = vsyncHintOffDelay; 88 ts.it_interval.tv_sec = 0; 89 ts.it_interval.tv_nsec = 0; 90 timer_settime(mTimerId, 0, &ts, NULL);
|
/hardware/bsp/intel/peripheral/light/mraa/ |
lights.c | 136 struct timespec ts = {0, 0}; local 138 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { 139 return ONE_S_IN_NS * ts.tv_sec + ts.tv_nsec;
|
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/ |
VirtualThermalZone.java | 84 ThermalSensor ts = getThermalSensorList().get(0); local 85 ThermalSensorAttrib sa = mThermalSensorsAttribMap.get(ts.getSensorName()); 115 ThermalSensor ts = list.get(0); local 116 weightedTemp = getWeightedTemp(ts, ts.readSensorTemp()); 122 for (ThermalSensor ts : list) { 123 if (ts != null && ts.getSensorActiveStatus()) { 124 weightedTemp = getWeightedTemp(ts, ts.readSensorTemp()) [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
and_constructor.c | 112 inv_time_t ts; local 147 r = fread(&ts, sizeof(ts), 1, inv_construct.file); 148 inv_build_gyro(gyro, ts); 150 gyro[0], gyro[1], gyro[2], ts); 156 r = fread(&ts, sizeof(ts), 1, inv_construct.file); 158 inv_build_accel(accel, 0, ts); 160 buffer[0], buffer[1], buffer[2], ts); 167 r = fread(&ts, sizeof(ts), 1, inv_construct.file) [all...] |
/hardware/libhardware/modules/camera/ |
Camera.cpp | 448 struct timespec ts; local 454 res = clock_gettime(CLOCK_BOOTTIME, &ts); 456 timestamp = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
|
/hardware/libhardware/modules/usbcamera/ |
Camera.cpp | 455 struct timespec ts; local 461 res = clock_gettime(CLOCK_BOOTTIME, &ts); 463 timestamp = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
|
/hardware/ril/libril/ |
ril_event.cpp | 98 struct timespec ts; local 99 clock_gettime(CLOCK_MONOTONIC, &ts); 100 tv->tv_sec = ts.tv_sec; 101 tv->tv_usec = ts.tv_nsec/1000;
|
/libcore/ojluni/src/main/java/java/sql/ |
Timestamp.java | 395 * @param ts the <code>Timestamp</code> value to compare with 400 public boolean equals(Timestamp ts) { 401 if (super.equals(ts)) { 402 if (nanos == ts.nanos) { 424 * @param ts the <code>Object</code> value to compare with 430 public boolean equals(java.lang.Object ts) { 431 if (ts instanceof Timestamp) { 432 return this.equals((Timestamp)ts); 442 * @param ts the <code>Timestamp</code> value to compare with 446 public boolean before(Timestamp ts) { 513 Timestamp ts = new Timestamp(o.getTime()); local [all...] |
/ndk/sources/cxx-stl/gabi++/tests/ |
dynamic_cast3.cpp | 2413 struct timespec ts; local [all...] |
dynamic_cast5.cpp | 1305 struct timespec ts; local [all...] |
/system/bt/osi/src/ |
wakelock.c | 237 struct timespec ts; local 238 if (clock_gettime(CLOCK_ID, &ts) == -1) { 244 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
|
/system/core/liblog/ |
logger_write.c | 228 struct timespec ts; local 326 clock_gettime(android_log_clockid(), &ts); local 328 /* simulate clock_gettime(CLOCK_REALTIME, &ts); */ 332 ts.tv_sec = tv.tv_sec; 333 ts.tv_nsec = tv.tv_usec * 1000; 342 retval = (*node->write)(log_id, &ts, vec, nr); 351 (void)(*node->write)(log_id, &ts, vec, nr);
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/ |
perf.h | 134 struct timespec ts; local 136 clock_gettime(CLOCK_MONOTONIC, &ts); 137 return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
|
/system/media/audio_utils/ |
echo_reference.c | 333 struct timespec ts = {0, 0}; local 336 clock_gettime(CLOCK_REALTIME, &ts); 339 ts.tv_sec += timeoutMs/1000; 340 ts.tv_nsec += (timeoutMs%1000) * 1000000; 341 if (ts.tv_nsec >= 1000000000) { 342 ts.tv_nsec -= 1000000000; 343 ts.tv_sec += 1; 347 pthread_cond_timedwait_relative_np(&er->cond, &er->lock, &ts); 349 pthread_cond_timedwait(&er->cond, &er->lock, &ts);
|
/system/update_engine/common/ |
utils_unittest.cc | 383 struct timespec ts; local 386 ts = (struct timespec) {.tv_sec = 0, .tv_nsec = 0}; 387 EXPECT_EQ(base::Time::UnixEpoch(), utils::TimeFromStructTimespec(&ts)); 390 ts = (struct timespec) {.tv_sec = 1000 * 1000 * 1000, 396 utils::TimeFromStructTimespec(&ts));
|
/toolchain/binutils/binutils-2.25/gas/config/ |
te-vms.c | 253 struct tm *ts; local 264 ts = localtime (& buff.st_mtime); 267 gmtoff = ts->tm_gmtoff; 272 if (ts->tm_isdst == 1)
|
/bionic/libc/bionic/ |
pthread_mutex.cpp | 616 timespec ts; local 617 timespec_from_ms(ts, ms); 619 absolute_timespec_from_timespec(abs_timeout, ts, CLOCK_MONOTONIC);
|
/device/generic/goldfish/fingerprint/ |
fingerprint.c | 564 struct timespec ts; local 565 clock_gettime(CLOCK_MONOTONIC, &ts); 567 htobe64((uint64_t)ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
|
/device/generic/goldfish/sensors/ |
sensors_qemu.c | 124 struct timespec ts; local 125 clock_gettime(CLOCK_MONOTONIC, &ts); 126 return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera.c | 1712 struct timespec ts; local [all...] |
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera.c | 1712 struct timespec ts; local [all...] |
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
QCameraMjpegDecode.cpp | 683 struct timespec ts; local 684 int rc = clock_gettime(CLOCK_REALTIME, &ts); 688 ts.tv_sec += (ms/1000); 689 ts.tv_nsec += ((ms%1000) * 1000000); 691 ts.tv_nsec += (ms * 1000000); 694 rc = pthread_cond_timedwait(p_cond, p_mutex, &ts);
|