/frameworks/native/include/utils/ |
H A D | Condition.h | 97 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 D | LaunchpadTabActivity.java | 37 TabHost.TabSpec ts = th.newTabSpec("1"); 38 ts.setIndicator("One"); 39 ts.setContent(tabIntent); 40 th.addTab(ts);
|
/frameworks/native/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); 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 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/native/libs/cpustats/ |
H A D | ThreadCpuUsage.cpp | 58 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 D | WebViewEventSender.java | 85 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 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/av/libvideoeditor/osal/src/ |
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);
|
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);
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
H A D | BandwidthTest.java | 115 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 D | MatrixCursorTest.java | 135 NonIterableArrayList(Collection<? extends T> ts) { argument 136 super(ts);
|
/frameworks/av/include/media/nbaio/ |
H A D | MonoPipe.h | 126 int64_t offsetTimestampByAudioFrames(int64_t ts, size_t audFrames);
|
H A D | NBAIO.h | 206 // 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 D | EventSenderImpl.java | 154 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 D | MonoPipe.cpp | 275 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 D | EffectVisualizer.cpp | 492 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 D | Switch.java | 195 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 D | TextView.java | 2289 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 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/av/libvideoeditor/vss/src/ |
H A D | M4VSS3GPP_EditVideo.c | 104 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 D | BearerData.java | 234 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 D | android_util_Process.cpp | 856 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 D | PreviewPlayer.cpp | 924 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 D | AwesomePlayer.cpp | 1716 TimeSource *ts = local 1723 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs; 1733 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs; 1747 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs;
|