Searched defs:ts (Results 1 - 17 of 17) 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.java185 NonIterableArrayList(Collection<? extends T> ts) { argument
186 super(ts);
/frameworks/base/core/jni/
H A Dandroid_os_SystemClock.cpp52 struct timespec ts; local
71 ts.tv_sec = tv.tv_sec;
72 ts.tv_nsec = tv.tv_usec * 1000;
73 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
H A Dandroid_util_Process.cpp889 struct timespec ts; local
891 int res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
897 nsecs_t when = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
/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/av/include/media/nbaio/
H A DNBAIO.h205 // ts A pointer pointing to the int64_t which will hold the result.
207 // OK Everything went well, *ts holds the time at which the first audio frame of the next
215 virtual status_t getNextWriteTimestamp(int64_t *ts) { return INVALID_OPERATION; } argument
/frameworks/av/media/libcpustats/
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/libnbaio/
H A DMonoPipe.cpp278 int64_t MonoPipe::offsetTimestampByAudioFrames(int64_t ts, size_t audFrames) argument
283 if (ts == AudioBufferProvider::kInvalidPTS)
303 return ts + frame_lt_duration;
H A DNBLog.cpp135 struct timespec ts; local
136 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) {
137 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec));
141 void NBLog::Writer::logTimestamp(const struct timespec& ts) argument
146 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec));
254 void NBLog::LockedWriter::logTimestamp(const struct timespec& ts) argument
257 Writer::logTimestamp(ts);
320 struct timespec ts; local
333 memcpy(&ts, &copy[i - length - 1], sizeof(struct timespec));
334 if (ts
[all...]
/frameworks/native/libs/binder/
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/av/media/libmedia/
H A DAudioTrackShared.cpp169 const struct timespec *ts; local
175 ts = NULL;
180 ts = requested;
200 ts = &remaining;
204 ts = NULL;
215 mClientInServer ? FUTEX_WAIT_PRIVATE : FUTEX_WAIT, old & ~CBLK_FUTEX_WAKE, ts);
398 const struct timespec *ts; local
404 ts = NULL;
409 ts = requested;
429 ts
[all...]
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp95 struct timespec ts; local
96 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
97 time_t secs = ts.tv_sec - pContext->mBufferUpdateTime.tv_sec;
98 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/opt/net/voip/src/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.cpp1858 TimeSource *ts = local
1865 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs;
1875 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
1889 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
2010 int64_t delayUs = nextTimeUs - ts->getRealTimeUs() + mTimeSourceDeltaUs;

Completed in 708 milliseconds