/frameworks/native/include/utils/ |
D | Condition.h | 110 struct timespec ts; in waitRelative() local 111 ts.tv_sec = reltime/1000000000; in waitRelative() 112 ts.tv_nsec = reltime%1000000000; in waitRelative() 113 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts); in waitRelative() 115 struct timespec ts; in waitRelative() 117 clock_gettime(CLOCK_REALTIME, &ts); in waitRelative() 122 ts.tv_sec = t.tv_sec; in waitRelative() 123 ts.tv_nsec= t.tv_usec*1000; in waitRelative() 125 ts.tv_sec += reltime/1000000000; in waitRelative() 126 ts.tv_nsec+= reltime%1000000000; in waitRelative() [all …]
|
/frameworks/native/libs/utils/ |
D | SystemClock.cpp | 54 struct timespec ts; in setCurrentTimeMillis() 75 ts.tv_sec = tv.tv_sec; in setCurrentTimeMillis() 76 ts.tv_nsec = tv.tv_usec * 1000; in setCurrentTimeMillis() 77 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts); in setCurrentTimeMillis() 155 struct timespec ts; in elapsedRealtimeNano() local 167 result = clock_gettime(CLOCK_BOOTTIME, &ts); in elapsedRealtimeNano() 169 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano() 187 ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME), &ts); in elapsedRealtimeNano() 190 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
|
D | BufferedTextOutput.cpp | 93 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); in getThreadState() local 94 if (ts) return ts; in getThreadState() 95 ts = new ThreadState; in getThreadState() 96 thread_store_set( &tls, ts, threadDestructor ); in getThreadState() 97 return ts; in getThreadState() 264 ThreadState* ts = getThreadState(); in getBuffer() local 265 if (ts) { in getBuffer() 266 while (ts->states.size() <= (size_t)mIndex) ts->states.add(NULL); in getBuffer() 267 BufferState* bs = ts->states[mIndex].get(); in getBuffer() 270 ts->states.editItemAt(mIndex) = new BufferState(mIndex); in getBuffer() [all …]
|
/frameworks/native/libs/cpustats/ |
D | ThreadCpuUsage.cpp | 58 struct timespec ts; in setEnabled() local 59 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled() 63 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled() 64 (ts.tv_nsec - mPreviousTs.tv_nsec); in setEnabled() 67 mPreviousTs = ts; in setEnabled() 101 struct timespec ts; in sample() local 103 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample() 109 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample() 110 (ts.tv_nsec - mPreviousTs.tv_nsec); in sample() 112 mPreviousTs = ts; in sample() [all …]
|
/frameworks/av/media/libnbaio/ |
D | NBLog.cpp | 135 struct timespec ts; in logTimestamp() local 136 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { in logTimestamp() 137 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp() 141 void NBLog::Writer::logTimestamp(const struct timespec& ts) in logTimestamp() argument 146 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp() 254 void NBLog::LockedWriter::logTimestamp(const struct timespec& ts) in logTimestamp() argument 257 Writer::logTimestamp(ts); in logTimestamp() 320 struct timespec ts; in dump() local 333 memcpy(&ts, ©[i - length - 1], sizeof(struct timespec)); in dump() 334 if (ts.tv_sec > maxSec) { in dump() [all …]
|
D | MonoPipe.cpp | 275 int64_t MonoPipe::offsetTimestampByAudioFrames(int64_t ts, size_t audFrames) in offsetTimestampByAudioFrames() argument 280 if (ts == AudioBufferProvider::kInvalidPTS) in offsetTimestampByAudioFrames() 300 return ts + frame_lt_duration; in offsetTimestampByAudioFrames()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | LaunchpadTabActivity.java | 37 TabHost.TabSpec ts = th.newTabSpec("1"); in onCreate() local 38 ts.setIndicator("One"); in onCreate() 39 ts.setContent(tabIntent); in onCreate() 40 th.addTab(ts); in onCreate()
|
/frameworks/av/libvideoeditor/osal/src/ |
D | M4OSA_Semaphore.c | 132 struct timespec ts; in M4OSA_semaphoreWait() local 160 ts.tv_sec = 0; in M4OSA_semaphoreWait() 163 ts.tv_nsec = 1000000; in M4OSA_semaphoreWait() 168 ts.tv_nsec = timeout * 1000000; in M4OSA_semaphoreWait() 171 nanosleep(&ts, &left); in M4OSA_semaphoreWait()
|
D | M4OSA_Mutex.c | 134 struct timespec ts; in M4OSA_mutexLock() local 167 ts.tv_sec = 0; in M4OSA_mutexLock() 170 ts.tv_nsec = 1000000; in M4OSA_mutexLock() 175 ts.tv_nsec = timeout * 1000000; in M4OSA_mutexLock() 178 nanosleep(&ts, &left); in M4OSA_mutexLock()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 115 String ts = Long.toString(System.currentTimeMillis()); in downloadFile() local 118 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFile() 132 results.putString("timestamp", ts); in downloadFile() 167 String ts = Long.toString(System.currentTimeMillis()); in uploadFile() local 169 mTestServer, FILE_SIZE, mDeviceId, ts); in uploadFile() 173 ts = Long.toString(System.currentTimeMillis()); in uploadFile() 176 assertTrue(BandwidthTestUtil.postFileToServer(mTestServer, mDeviceId, ts, tmpSaveFile)); in uploadFile() 186 results.putString("timestamp", ts); in uploadFile() 229 String ts = Long.toString(System.currentTimeMillis()); in downloadFileUsingDownloadManager() local 231 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFileUsingDownloadManager() [all …]
|
/frameworks/base/services/jni/ |
D | com_android_server_AlarmManagerService.cpp | 70 struct timespec ts; in android_server_AlarmManagerService_set() local 71 ts.tv_sec = seconds; in android_server_AlarmManagerService_set() 72 ts.tv_nsec = nanoseconds; in android_server_AlarmManagerService_set() 74 int result = ioctl(fd, ANDROID_ALARM_SET(type), &ts); in android_server_AlarmManagerService_set()
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
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/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | WebViewEventSender.java | 85 long ts = SystemClock.uptimeMillis(); in mouseDown() local 86 MotionEvent event = MotionEvent.obtain(ts, ts, MotionEvent.ACTION_DOWN, mouseX, mouseY, 0); in mouseDown() 96 long ts = SystemClock.uptimeMillis(); in mouseUp() local 97 MotionEvent event = MotionEvent.obtain(ts, ts, MotionEvent.ACTION_UP, mouseX, mouseY, 0); in mouseUp()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | MatrixCursorTest.java | 135 NonIterableArrayList(Collection<? extends T> ts) { in NonIterableArrayList() argument 136 super(ts); in NonIterableArrayList()
|
/frameworks/av/include/media/nbaio/ |
D | NBLog.h | 121 virtual void logTimestamp(const struct timespec& ts); 155 virtual void logTimestamp(const struct timespec& ts);
|
D | MonoPipe.h | 126 int64_t offsetTimestampByAudioFrames(int64_t ts, size_t audFrames);
|
D | NBAIO.h | 214 virtual status_t getNextWriteTimestamp(int64_t *ts) { return INVALID_OPERATION; } in getNextWriteTimestamp() argument
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 475 struct timespec ts; in Visualizer_command() local 476 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in Visualizer_command() 477 time_t secs = ts.tv_sec - pContext->mBufferUpdateTime.tv_sec; in Visualizer_command() 478 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; in Visualizer_command()
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 195 int ts; in setSwitchTextAppearance() local 206 ts = appearance.getDimensionPixelSize(com.android.internal.R.styleable. in setSwitchTextAppearance() 208 if (ts != 0) { in setSwitchTextAppearance() 209 if (ts != mTextPaint.getTextSize()) { in setSwitchTextAppearance() 210 mTextPaint.setTextSize(ts); in setSwitchTextAppearance()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 656 timespec ts; in sendDtmf() local 657 ts.tv_sec = 0; in sendDtmf() 658 ts.tv_nsec = 100000000; in sendDtmf() 660 nanosleep(&ts, NULL); in sendDtmf() 666 nanosleep(&ts, NULL); in sendDtmf()
|
/frameworks/av/libvideoeditor/vss/src/ |
D | M4VSS3GPP_EditVideo.c | 104 M4_MediaTime ts, 1066 M4_MediaTime ts; in M4VSS3GPP_intVPP() local 1179 ts = pC->ewc.dInputVidCts - pC->pC1->iVoffset; in M4VSS3GPP_intVPP() 1185 err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC1, ts, M4OSA_TRUE, in M4VSS3GPP_intVPP() 1225 ts = pC->ewc.dInputVidCts - pC->pC2->iVoffset; in M4VSS3GPP_intVPP() 1231 err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC2, ts, M4OSA_FALSE, in M4VSS3GPP_intVPP() 1312 ts = pC->ewc.dInputVidCts - pC->pC1->iVoffset; in M4VSS3GPP_intVPP() 1331 pC->pC1->pViDecCtxt, &ts, in M4VSS3GPP_intVPP() 1344 pC->pC1->pViDecCtxt, &ts, in M4VSS3GPP_intVPP() 1492 pC->pC1->pViDecCtxt, &ts, in M4VSS3GPP_intVPP() [all …]
|
/frameworks/base/docs/html/ |
D | support.jd | 67 …<a href="http://support.google.com/checkout/sell/bin/static.py?hl=en&page=ts.cs&ts=2472700">Issue …
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 237 TimeStamp ts = new TimeStamp(); in fromByteArray() local 241 ts.year = year >= 96 ? year + 1900 : year + 2000; in fromByteArray() 244 ts.month = month - 1; in fromByteArray() 247 ts.monthDay = day; in fromByteArray() 250 ts.hour = hour; in fromByteArray() 253 ts.minute = minute; in fromByteArray() 256 ts.second = second; in fromByteArray() 257 return ts; in fromByteArray()
|
/frameworks/base/core/jni/ |
D | android_util_Process.cpp | 865 struct timespec ts; in android_os_Process_getElapsedCpuTime() local 867 int res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts); in android_os_Process_getElapsedCpuTime() 873 nsecs_t when = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in android_os_Process_getElapsedCpuTime()
|
/frameworks/av/libvideoeditor/lvpp/ |
D | PreviewPlayer.cpp | 924 TimeSource *ts = (mFlags & AUDIO_AT_EOS) ? &mSystemTimeSource : mTimeSource; in onVideoEvent() local 926 if(ts == NULL) { in onVideoEvent() 936 mTimeSourceDeltaUs = ts->getRealTimeUs() - timeUs; in onVideoEvent() 945 int64_t nowUs = ts->getRealTimeUs() - mTimeSourceDeltaUs; in onVideoEvent() 954 ts->getRealTimeUs(),timeUs); in onVideoEvent()
|