Searched refs:ts (Results 1 - 24 of 24) sorted by relevance

/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/base/core/tests/coretests/src/android/app/activity/
H A DLaunchpadTabActivity.java37 TabHost.TabSpec ts = th.newTabSpec("1");
38 ts.setIndicator("One");
39 ts.setContent(tabIntent);
40 th.addTab(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);
155 struct timespec ts; local
167 result = clock_gettime(CLOCK_BOOTTIME, &ts);
169 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
187 ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME), &ts);
190 timestamp = seconds_to_nanoseconds(ts
[all...]
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/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/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DWebViewEventSender.java85 long ts = SystemClock.uptimeMillis();
86 MotionEvent event = MotionEvent.obtain(ts, ts, MotionEvent.ACTION_DOWN, mouseX, mouseY, 0);
96 long ts = SystemClock.uptimeMillis();
97 MotionEvent event = MotionEvent.obtain(ts, ts, MotionEvent.ACTION_UP, mouseX, mouseY, 0);
/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/libvideoeditor/osal/src/
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);
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);
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java115 String ts = Long.toString(System.currentTimeMillis());
118 mTestServer, FILE_SIZE, mDeviceId, ts);
132 results.putString("timestamp", ts);
167 String ts = Long.toString(System.currentTimeMillis());
169 mTestServer, FILE_SIZE, mDeviceId, ts);
173 ts = Long.toString(System.currentTimeMillis());
176 assertTrue(BandwidthTestUtil.postFileToServer(mTestServer, mDeviceId, ts, tmpSaveFile));
186 results.putString("timestamp", ts);
229 String ts = Long.toString(System.currentTimeMillis());
231 mTestServer, FILE_SIZE, mDeviceId, ts);
[all...]
/frameworks/base/core/tests/coretests/src/android/database/
H A DMatrixCursorTest.java135 NonIterableArrayList(Collection<? extends T> ts) { argument
136 super(ts);
/frameworks/av/include/media/nbaio/
H A DMonoPipe.h126 int64_t offsetTimestampByAudioFrames(int64_t ts, size_t audFrames);
H A DNBAIO.h206 // ts A pointer pointing to the int64_t which will hold the result.
208 // OK Everything went well, *ts holds the time at which the first audio frame of the next
216 virtual status_t getNextWriteTimestamp(int64_t *ts) { return INVALID_OPERATION; } argument
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DEventSenderImpl.java154 long ts;
188 ts = SystemClock.uptimeMillis();
189 event = MotionEvent.obtain(ts, ts, MotionEvent.ACTION_DOWN, mMousePoint.x(), mMousePoint.y(), 0);
196 ts = SystemClock.uptimeMillis();
197 event = MotionEvent.obtain(ts, ts, MotionEvent.ACTION_UP, mMousePoint.x(), mMousePoint.y(), 0);
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp275 int64_t MonoPipe::offsetTimestampByAudioFrames(int64_t ts, size_t audFrames) argument
280 if (ts == AudioBufferProvider::kInvalidPTS)
300 return ts + frame_lt_duration;
/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/base/core/java/android/widget/
H A DSwitch.java195 int ts;
206 ts = appearance.getDimensionPixelSize(com.android.internal.R.styleable.
208 if (ts != 0) {
209 if (ts != mTextPaint.getTextSize()) {
210 mTextPaint.setTextSize(ts);
H A DTextView.java2289 int ts;
2303 ts = appearance.getDimensionPixelSize(com.android.internal.R.styleable.
2305 if (ts != 0) {
2306 setRawTextSize(ts);
/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/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/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java234 TimeStamp ts = new TimeStamp();
238 ts.year = year >= 96 ? year + 1900 : year + 2000;
241 ts.month = month - 1;
244 ts.monthDay = day;
247 ts.hour = hour;
250 ts.minute = minute;
253 ts.second = second;
254 return ts;
/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/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.cpp1716 TimeSource *ts = local
1723 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs;
1733 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
1747 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;

Completed in 3069 milliseconds