Searched defs:ts (Results 1 - 16 of 16) sorted by relevance

/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Semaphore.c132 struct timespec ts; local
160 ts.tv_sec = 0;
163 ts.tv_nsec = 1000000;
168 ts.tv_nsec = timeout * 1000000;
171 nanosleep(&ts, &left);
H A DM4OSA_Mutex.c134 struct timespec ts; local
167 ts.tv_sec = 0;
170 ts.tv_nsec = 1000000;
175 ts.tv_nsec = timeout * 1000000;
178 nanosleep(&ts, &left);
/frameworks/base/core/tests/coretests/src/android/database/
H A DMatrixCursorTest.java135 NonIterableArrayList(Collection<? extends T> ts) { argument
136 super(ts);
/frameworks/native/libs/utils/
H A DSystemClock.cpp54 struct timespec ts;
75 ts.tv_sec = tv.tv_sec;
76 ts.tv_nsec = tv.tv_usec * 1000;
77 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
119 struct timespec ts; local
121 ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME), &ts);
124 int64_t when = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
H A DBufferedTextOutput.cpp93 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); local
94 if (ts) return ts;
95 ts = new ThreadState;
96 thread_store_set( &tls, ts, threadDestructor );
97 return ts;
264 ThreadState* ts = getThreadState(); local
265 if (ts) {
266 while (ts->states.size() <= (size_t)mIndex) ts
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_AlarmManagerService.cpp70 struct timespec ts; local
71 ts.tv_sec = seconds;
72 ts.tv_nsec = nanoseconds;
74 int result = ioctl(fd, ANDROID_ALARM_SET(type), &ts);
/frameworks/native/include/utils/
H A DCondition.h97 struct timespec ts; local
98 ts.tv_sec = reltime/1000000000;
99 ts.tv_nsec = reltime%1000000000;
100 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts);
102 struct timespec ts;
104 clock_gettime(CLOCK_REALTIME, &ts);
109 ts.tv_sec = t.tv_sec;
110 ts.tv_nsec= t.tv_usec*1000;
112 ts.tv_sec += reltime/1000000000;
113 ts
[all...]
/frameworks/native/libs/cpustats/
H A DThreadCpuUsage.cpp58 struct timespec ts; local
59 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);
63 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL +
64 (ts.tv_nsec - mPreviousTs.tv_nsec);
67 mPreviousTs = ts;
101 struct timespec ts; local
103 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);
109 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL +
110 (ts.tv_nsec - mPreviousTs.tv_nsec);
112 mPreviousTs = ts;
132 struct timespec ts; local
[all...]
/frameworks/av/media/libaah_rtp/
H A Daah_decoder_pump.cpp89 int64_t ts; local
95 if ((meta == NULL) || (!meta->findInt64(kKeyTime, &ts))) {
159 res = renderer_->queueTimedBuffer(pcm_payload, ts);
162 " media PTS %lld. (res = %d)", decoded_amt, ts, res);
165 last_queued_pts_ = ts;
H A Daah_rx_player_substream.cpp191 int64_t ts = 0; local
196 ts = (static_cast<int64_t>(ts_upper) << 32) | ts_lower;
326 meta->setInt64(kKeyTime, ts);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp492 struct timespec ts; local
493 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
494 time_t secs = ts.tv_sec - pContext->mBufferUpdateTime.tv_sec;
495 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec;
/frameworks/av/libvideoeditor/vss/src/
H A DM4VSS3GPP_EditVideo.c104 M4_MediaTime ts,
1066 M4_MediaTime ts; local
1177 * Compute the time in the clip1 base: ts = to - Offset */
1179 ts = pC->ewc.dInputVidCts - pC->pC1->iVoffset;
1185 err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC1, ts, M4OSA_TRUE,
1223 * Compute the time in the clip2 base: ts = to - Offset */
1225 ts = pC->ewc.dInputVidCts - pC->pC2->iVoffset;
1231 err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC2, ts, M4OSA_FALSE,
1311 * Compute the time in the clip base: ts = to - Offset */
1312 ts
3540 M4VSS3GPP_intRenderFrameWithEffect(M4VSS3GPP_InternalEditContext *pC, M4VSS3GPP_ClipContext* pClipCtxt, M4_MediaTime ts, M4OSA_Bool bIsClip1, M4VIFI_ImagePlane *pResizePlane, M4VIFI_ImagePlane *pPlaneNoResize, M4VIFI_ImagePlane *pPlaneOut) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp856 struct timespec ts; local
858 int res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
864 nsecs_t when = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
/frameworks/base/voip/jni/rtp/
H A DAudioGroup.cpp656 timespec ts; local
657 ts.tv_sec = 0;
658 ts.tv_nsec = 100000000;
660 nanosleep(&ts, NULL);
666 nanosleep(&ts, NULL);
/frameworks/av/libvideoeditor/lvpp/
H A DPreviewPlayer.cpp924 TimeSource *ts = (mFlags & AUDIO_AT_EOS) ? &mSystemTimeSource : mTimeSource; local
926 if(ts == NULL) {
936 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs;
945 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
954 ts->getRealTimeUs(),timeUs);
/frameworks/av/media/libstagefright/
H A DAwesomePlayer.cpp1713 TimeSource *ts = local
1720 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs;
1730 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
1744 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;

Completed in 1125 milliseconds