/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | MatrixCursorTest.java | 135 NonIterableArrayList(Collection<? extends T> ts) { argument 136 super(ts);
|
/frameworks/base/libs/cpustats/ |
H A D | ThreadCpuUsage.cpp | 50 struct timespec ts; local 51 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); 55 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + 56 (ts.tv_nsec - mPreviousTs.tv_nsec); 59 mPreviousTs = ts; 85 struct timespec ts; local 87 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); 91 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + 92 (ts.tv_nsec - mPreviousTs.tv_nsec); 94 mPreviousTs = ts; 110 struct timespec ts; local [all...] |
/frameworks/base/libs/utils/ |
H A D | SystemClock.cpp | 54 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 D | BufferedTextOutput.cpp | 93 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/media/libvideoeditor/osal/src/ |
H A D | M4OSA_Semaphore.c | 132 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 D | M4OSA_Mutex.c | 134 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/services/jni/ |
H A D | com_android_server_AlarmManagerService.cpp | 70 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/base/include/utils/ |
H A D | threads.h | 459 struct timespec ts; local 460 ts.tv_sec = reltime/1000000000; 461 ts.tv_nsec = reltime%1000000000; 462 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts); 464 struct timespec ts; 466 clock_gettime(CLOCK_REALTIME, &ts); 471 ts.tv_sec = t.tv_sec; 472 ts.tv_nsec= t.tv_usec*1000; 474 ts.tv_sec += reltime/1000000000; 475 ts [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_Process.cpp | 809 struct timespec ts; local 811 int res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts); 817 nsecs_t when = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
|
/frameworks/base/voip/jni/rtp/ |
H A D | AudioGroup.cpp | 656 timespec ts; local 657 ts.tv_sec = 0; 658 ts.tv_nsec = 100000000; 660 nanosleep(&ts, NULL); 666 nanosleep(&ts, NULL);
|
/frameworks/media/libvideoeditor/lvpp/ |
H A D | PreviewPlayer.cpp | 933 TimeSource *ts = (mFlags & AUDIO_AT_EOS) ? &mSystemTimeSource : mTimeSource; local 935 if(ts == NULL) { 945 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs; 954 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs; 963 ts->getRealTimeUs(),timeUs);
|
H A D | PreviewPlayerBase.cpp | 1445 TimeSource *ts = (mFlags & AUDIO_AT_EOS) ? &mSystemTimeSource : mTimeSource; local 1449 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs; 1459 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs; 1471 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
|
/frameworks/media/libvideoeditor/vss/src/ |
H A D | M4VSS3GPP_EditVideo.c | 102 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; 1187 err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC1, ts, M4OSA_TRUE, 1219 * Compute the time in the clip2 base: ts = to - Offset */ 1221 ts = pC->ewc.dInputVidCts - pC->pC2->iVoffset; 1227 err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC2, ts, M4OSA_FALSE, 1301 * Compute the time in the clip base: ts = to - Offset */ 1302 ts 3509 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/media/libstagefright/ |
H A D | AwesomePlayer.cpp | 1696 TimeSource *ts = local 1703 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs; 1713 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs; 1725 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
|