/frameworks/av/media/libcpustats/ |
D | ThreadCpuUsage.cpp | 57 struct timespec ts; in setEnabled() local 58 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled() 62 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled() 63 (ts.tv_nsec - mPreviousTs.tv_nsec); in setEnabled() 66 mPreviousTs = ts; in setEnabled() 100 struct timespec ts; in sample() local 102 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample() 108 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample() 109 (ts.tv_nsec - mPreviousTs.tv_nsec); in sample() 111 mPreviousTs = ts; in sample() [all …]
|
/frameworks/testing/support/tests/src/android/support/test/ |
D | MyTestSuiteBuilder.java | 34 TestSuite ts = new TestSuite(); in suite() local 35 ts.addTestSuite(MyAndroidTestCase.class); in suite() 36 ts.addTestSuite(MyInstrumentationTestCase.class); in suite() 37 ts.addTestSuite(MyBundleTestCase.class); in suite() 38 return ts; in suite()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_AlarmManagerService.cpp | 61 virtual int set(int type, struct timespec *ts) = 0; 75 int set(int type, struct timespec *ts); 87 int set(int type, struct timespec *ts); 109 int AlarmImplAlarmDriver::set(int type, struct timespec *ts) in set() argument 111 return ioctl(fds[0], ANDROID_ALARM_SET(type), ts); in set() 116 struct timespec ts; in setTime() local 119 ts.tv_sec = tv->tv_sec; in setTime() 120 ts.tv_nsec = tv->tv_usec * 1000; in setTime() 121 res = ioctl(fds[0], ANDROID_ALARM_SET_RTC, &ts); in setTime() 140 int AlarmImplTimerFd::set(int type, struct timespec *ts) in set() argument [all …]
|
/frameworks/native/libs/binder/ |
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/av/media/libnbaio/ |
D | NBLog.cpp | 136 struct timespec ts; in logTimestamp() local 137 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { in logTimestamp() 138 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp() 142 void NBLog::Writer::logTimestamp(const struct timespec& ts) in logTimestamp() argument 147 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp() 255 void NBLog::LockedWriter::logTimestamp(const struct timespec& ts) in logTimestamp() argument 258 Writer::logTimestamp(ts); in logTimestamp() 321 struct timespec ts; in dump() local 334 memcpy(&ts, ©[i - length - 1], sizeof(struct timespec)); in dump() 335 if (ts.tv_sec > maxSec) { in dump() [all …]
|
D | MonoPipe.cpp | 296 int64_t MonoPipe::offsetTimestampByAudioFrames(int64_t ts, size_t audFrames) in offsetTimestampByAudioFrames() argument 301 if (ts == AudioBufferProvider::kInvalidPTS) in offsetTimestampByAudioFrames() 321 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/testing/support/src/android/support/test/internal/runner/junit3/ |
D | JUnit38ClassRunner.java | 109 TestSuite ts = (TestSuite) test; in makeDescription() local 110 String name = ts.getName() == null ? createSuiteDescription(ts) : ts.getName(); in makeDescription() 112 int n = ts.testCount(); in makeDescription() 114 Description made = makeDescription(ts.testAt(i)); in makeDescription() 144 private static String createSuiteDescription(TestSuite ts) { in createSuiteDescription() argument 145 int count = ts.countTestCases(); in createSuiteDescription() 146 String example = count == 0 ? "" : String.format(" [example: %s]", ts.testAt(0)); in createSuiteDescription()
|
/frameworks/wilhelm/src/ |
D | locks.c | 35 void init_time_spec(timespec* ts, long delta) { in init_time_spec() argument 36 clock_gettime(CLOCK_REALTIME, ts); in init_time_spec() 37 ts->tv_nsec += delta; in init_time_spec() 39 if (ts->tv_nsec >= 1000000000L) { in init_time_spec() 40 ts->tv_sec++; in init_time_spec() 41 ts->tv_nsec -= 1000000000L; in init_time_spec() 56 timespec ts; in object_lock_exclusive_() local 57 memset(&ts, 0, sizeof(timespec)); in object_lock_exclusive_() 59 init_time_spec(&ts, nanoBackoffs[i]); in object_lock_exclusive_() 60 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); in object_lock_exclusive_()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 113 String ts = Long.toString(System.currentTimeMillis()); in downloadFile() local 116 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFile() 130 results.putString("timestamp", ts); in downloadFile() 165 String ts = Long.toString(System.currentTimeMillis()); in uploadFile() local 167 mTestServer, FILE_SIZE, mDeviceId, ts); in uploadFile() 171 ts = Long.toString(System.currentTimeMillis()); in uploadFile() 174 assertTrue(BandwidthTestUtil.postFileToServer(mTestServer, mDeviceId, ts, tmpSaveFile)); in uploadFile() 184 results.putString("timestamp", ts); in uploadFile() 227 String ts = Long.toString(System.currentTimeMillis()); in downloadFileUsingDownloadManager() local 229 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFileUsingDownloadManager() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 96 JobStatus ts = it.previous(); in maybeStartTrackingJob() local 97 if (ts.getLatestRunTimeElapsed() < job.getLatestRunTimeElapsed()) { in maybeStartTrackingJob() 280 for (JobStatus ts : mTrackedJobs) { in dumpControllerState() 281 pw.println(String.valueOf(ts.hashCode()).substring(0, 3) + ".." in dumpControllerState() 282 + ": (" + (ts.hasTimingDelayConstraint() ? ts.getEarliestRunTime() : "N/A") in dumpControllerState() 283 + ", " + (ts.hasDeadlineConstraint() ?ts.getLatestRunTimeElapsed() : "N/A") in dumpControllerState()
|
D | BatteryController.java | 115 for (JobStatus ts : mTrackedTasks) { in maybeReportNewChargingState() 116 boolean previous = ts.chargingConstraintSatisfied.getAndSet(stablePower); in maybeReportNewChargingState()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CountdownConditionProvider.java | 115 ACTION, ts(mTime), mTime - now, span, ts(now))); in onSubscribe() 150 ts(time), time - now, span, ts(now)); in tryParseDescription() 153 private static String ts(long time) { in ts() method in CountdownConditionProvider
|
D | DowntimeConditionProvider.java | 262 action, ts(time), time - now, ts(now))); in updateAlarm() 267 private static String ts(long time) { in ts() method in DowntimeConditionProvider 279 action, ts(schTime), ts(now), now - schTime));
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobStore.java | 141 JobStatus ts = mJobSet.valueAt(i); in containsJobIdForUid() local 142 if (ts.getUid() == uId && ts.getJobId() == jobId) { in containsJobIdForUid() 189 JobStatus ts = it.next(); in getJobsByUser() local 190 if (UserHandle.getUserId(ts.getUid()) == userHandle) { in getJobsByUser() 191 matchingJobs.add(ts); in getJobsByUser() 205 JobStatus ts = it.next(); in getJobsByUid() local 206 if (ts.getUid() == uid) { in getJobsByUid() 207 matchingJobs.add(ts); in getJobsByUid() 221 JobStatus ts = it.next(); in getJobByUidAndJobId() local 222 if (ts.getUid() == uid && ts.getJobId() == jobId) { in getJobByUidAndJobId() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 60 final JobStatus ts = new JobStatus(task, SOME_UID); in testMaybeWriteStatusToDisk() local 61 mTaskStoreUnderTest.add(ts); in testMaybeWriteStatusToDisk() 70 assertTrue("JobStore#contains invalid.", mTaskStoreUnderTest.containsJob(ts)); in testMaybeWriteStatusToDisk() 73 ts.getEarliestRunTime(), loadedTaskStatus.getEarliestRunTime()); in testMaybeWriteStatusToDisk() 75 ts.getLatestRunTimeElapsed(), loadedTaskStatus.getLatestRunTimeElapsed()); in testMaybeWriteStatusToDisk()
|
/frameworks/native/services/surfaceflinger/ |
D | EventThread.cpp | 75 struct itimerspec ts; in sendVsyncHintOnLocked() local 80 ts.it_value.tv_sec = 0; in sendVsyncHintOnLocked() 81 ts.it_value.tv_nsec = vsyncHintOffDelay; in sendVsyncHintOnLocked() 82 ts.it_interval.tv_sec = 0; in sendVsyncHintOnLocked() 83 ts.it_interval.tv_nsec = 0; in sendVsyncHintOnLocked() 84 timer_settime(mTimerId, 0, &ts, NULL); in sendVsyncHintOnLocked()
|
/frameworks/av/media/libmedia/ |
D | AudioTrackShared.cpp | 176 const struct timespec *ts; in obtainBuffer() local 182 ts = NULL; in obtainBuffer() 187 ts = requested; in obtainBuffer() 207 ts = &remaining; in obtainBuffer() 211 ts = NULL; in obtainBuffer() 222 mClientInServer ? FUTEX_WAIT_PRIVATE : FUTEX_WAIT, old & ~CBLK_FUTEX_WAKE, ts); in obtainBuffer() 405 const struct timespec *ts; in waitStreamEndDone() local 411 ts = NULL; in waitStreamEndDone() 416 ts = requested; in waitStreamEndDone() 436 ts = &remaining; in waitStreamEndDone() [all …]
|
/frameworks/av/include/media/nbaio/ |
D | NBLog.h | 129 virtual void logTimestamp(const struct timespec& ts); 163 virtual void logTimestamp(const struct timespec& ts);
|
D | MonoPipe.h | 132 int64_t offsetTimestampByAudioFrames(int64_t ts, size_t audFrames);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | MatrixCursorTest.java | 185 NonIterableArrayList(Collection<? extends T> ts) { in NonIterableArrayList() argument 186 super(ts); in NonIterableArrayList()
|
/frameworks/native/cmds/dumpstate/ |
D | utils.c | 299 struct timespec ts; in nanotime() local 300 clock_gettime(CLOCK_MONOTONIC, &ts); in nanotime() 301 return (int64_t)ts.tv_sec * NANOS_PER_SEC + ts.tv_nsec; in nanotime()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 234 int ts; in setSwitchTextAppearance() local 244 ts = appearance.getDimensionPixelSize(1, 0); in setSwitchTextAppearance() 245 if (ts != 0) { in setSwitchTextAppearance() 246 if (ts != mTextPaint.getTextSize()) { in setSwitchTextAppearance() 247 mTextPaint.setTextSize(ts); in setSwitchTextAppearance()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | RttManager.java | 180 public long ts; field in RttManager.RttResult 233 dest.writeLong(result.ts); in writeToParcel() 266 results[i].ts = in.readLong();
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 96 struct timespec ts; in Visualizer_getDeltaTimeMsFromUpdatedTime() local 97 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in Visualizer_getDeltaTimeMsFromUpdatedTime() 98 time_t secs = ts.tv_sec - pContext->mBufferUpdateTime.tv_sec; in Visualizer_getDeltaTimeMsFromUpdatedTime() 99 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; in Visualizer_getDeltaTimeMsFromUpdatedTime()
|