/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | SFFakeHwc_test.cpp | 318 TransactionScope ts(*mMockComposer); in TEST_F() local 319 ts.setDisplayLayerStack(display, 0); in TEST_F() 321 ts.setLayer(surfaceControl, INT32_MAX - 2) in TEST_F() 354 TransactionScope ts(*mMockComposer); in TEST_F() local 355 ts.setDisplayLayerStack(display, 0); in TEST_F() 357 ts.setLayer(surfaceControl, INT32_MAX - 2) in TEST_F() 580 TransactionScope ts(*sFakeComposer); in TEST_F() local 581 ts.setPosition(mFGSurfaceControl, 128, 128); in TEST_F() 608 TransactionScope ts(*sFakeComposer); in TEST_F() local 609 ts.setSize(mFGSurfaceControl, 128, 128); in TEST_F() [all …]
|
/frameworks/av/media/libcpustats/ |
D | ThreadCpuUsage.cpp | 64 struct timespec ts; in setEnabled() local 65 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled() 69 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled() 70 (ts.tv_nsec - mPreviousTs.tv_nsec); in setEnabled() 73 mPreviousTs = ts; in setEnabled() 106 struct timespec ts; in sample() local 108 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample() 114 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample() 115 (ts.tv_nsec - mPreviousTs.tv_nsec); in sample() 117 mPreviousTs = ts; in sample() [all …]
|
/frameworks/native/libs/binder/ |
D | BufferedTextOutput.cpp | 98 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); in getThreadState() local 99 if (ts) return ts; in getThreadState() 100 ts = new ThreadState; in getThreadState() 101 thread_store_set( &tls, ts, threadDestructor ); in getThreadState() 102 return ts; in getThreadState() 269 ThreadState* ts = getThreadState(); in getBuffer() local 270 if (ts) { in getBuffer() 271 while (ts->states.size() <= (size_t)mIndex) ts->states.add(nullptr); in getBuffer() 272 BufferState* bs = ts->states[mIndex].get(); in getBuffer() 275 ts->states.editItemAt(mIndex) = new BufferState(mIndex); in getBuffer() [all …]
|
/frameworks/av/media/libnblog/ |
D | Merger.cpp | 66 int64_t ts; member 68 MergeItem(int64_t ts, int index): ts(ts), index(index) {} in MergeItem() 73 return i1.ts > i2.ts || (i1.ts == i2.ts && i1.index > i2.index); in operator >() 112 int64_t ts = AbstractEntry::buildEntry(offsets[index])->timestamp(); in merge() local 113 timestamps.emplace(ts, index); in merge() 143 mThreadPerformanceAnalysis[author][0 /*hash*/].logTsEntry(payload.ts); in processSnapshot() 171 const int64_t ts = it.payload<int64_t>(); in processSnapshot() local 173 data.snapshots.emplace_front(EVENT_UNDERRUN, ts); in processSnapshot() 180 const int64_t ts = it.payload<int64_t>(); in processSnapshot() local 182 data.snapshots.emplace_front(EVENT_UNDERRUN, ts); in processSnapshot()
|
D | Writer.cpp | 100 struct timespec ts; in logTimestamp() local 101 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { in logTimestamp() 102 log(EVENT_TIMESTAMP, &ts, sizeof(ts)); in logTimestamp() 124 data.ts = systemTime(); in logEventHistTs() 125 if (data.ts > 0) { in logEventHistTs() 221 const nsecs_t ts = systemTime(); in logTimestampFormat() local 222 if (ts > 0) { in logTimestampFormat() 223 log(EVENT_FMT_TIMESTAMP, &ts, sizeof(ts)); in logTimestampFormat()
|
D | Reader.cpp | 244 const int64_t ts = it.payload<int64_t>(); in dump() local 245 body.appendFormat("EVENT_OVERRUN,%lld", static_cast<long long>(ts)); in dump() 253 const int64_t ts = it.payload<int64_t>(); in dump() local 254 body.appendFormat("EVENT_UNDERRUN,%lld", static_cast<long long>(ts)); in dump() 297 const int64_t ts = fmtEntry.timestamp(); in handleFormat() local 299 timestamp->appendFormat("[%d.%03d]", (int) (ts / (1000 * 1000 * 1000)), in handleFormat() 300 (int) ((ts / (1000 * 1000)) % 1000)); in handleFormat() 419 int64_t ts; in appendTimestamp() local 420 memcpy(&ts, data, sizeof(ts)); in appendTimestamp() 421 body->appendFormat("[%d.%03d]", (int) (ts / (1000 * 1000 * 1000)), in appendTimestamp() [all …]
|
D | PerformanceAnalysis.cpp | 162 void PerformanceAnalysis::logTsEntry(timestamp ts) { in logTsEntry() argument 166 mBufferPeriod.mPrevTs = ts; in logTsEntry() 172 deltaMs(mBufferPeriod.mPrevTs, ts)); in logTsEntry() 174 const int diffJiffy = deltaJiffy(mBufferPeriod.mPrevTs, ts); in logTsEntry() 206 deltaMs(mHists[0].first, ts) >= kMaxLength.HistTimespanMs) { in logTsEntry() 207 mHists.emplace_front(ts, std::map<int, int>()); in logTsEntry() 217 mBufferPeriod.mPrevTs = ts; in logTsEntry() 236 bool PerformanceAnalysis::detectAndStorePeak(msInterval diff, timestamp ts) { in detectAndStorePeak() argument 276 mPeakTimestamps.emplace_front(ts); in detectAndStorePeak()
|
/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/wilhelm/src/ |
D | locks.cpp | 34 void init_time_spec(timespec* ts, long delta) { in init_time_spec() argument 35 clock_gettime(CLOCK_REALTIME, ts); in init_time_spec() 36 ts->tv_nsec += delta; in init_time_spec() 38 if (ts->tv_nsec >= 1000000000L) { in init_time_spec() 39 ts->tv_sec++; in init_time_spec() 40 ts->tv_nsec -= 1000000000L; in init_time_spec() 55 timespec ts; in object_lock_exclusive_() local 56 memset(&ts, 0, sizeof(timespec)); in object_lock_exclusive_() 58 init_time_spec(&ts, nanoBackoffs[i]); in object_lock_exclusive_() 59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); in object_lock_exclusive_()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 122 JobStatus ts = it.previous(); in maybeStartTrackingJobLocked() local 123 if (ts.getLatestRunTimeElapsed() < job.getLatestRunTimeElapsed()) { in maybeStartTrackingJobLocked() 572 for (JobStatus ts : mTrackedJobs) { in dumpControllerStateLocked() 573 if (!predicate.test(ts)) { in dumpControllerStateLocked() 577 ts.printUniqueId(pw); in dumpControllerStateLocked() 579 UserHandle.formatUid(pw, ts.getSourceUid()); in dumpControllerStateLocked() 581 if (ts.hasTimingDelayConstraint()) { in dumpControllerStateLocked() 582 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked() 587 if (ts.hasDeadlineConstraint()) { in dumpControllerStateLocked() 588 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked() [all …]
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 120 String ts = Long.toString(System.currentTimeMillis()); in downloadFile() local 123 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFile() 137 results.putString("timestamp", ts); in downloadFile() 172 String ts = Long.toString(System.currentTimeMillis()); in uploadFile() local 174 mTestServer, FILE_SIZE, mDeviceId, ts); in uploadFile() 178 ts = Long.toString(System.currentTimeMillis()); in uploadFile() 181 assertTrue(BandwidthTestUtil.postFileToServer(mTestServer, mDeviceId, ts, tmpSaveFile)); in uploadFile() 191 results.putString("timestamp", ts); in uploadFile() 234 String ts = Long.toString(System.currentTimeMillis()); in downloadFileUsingDownloadManager() local 236 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFileUsingDownloadManager() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_AlarmManagerService.cpp | 83 int set(int type, struct timespec *ts); 104 int AlarmImpl::set(int type, struct timespec *ts) in set() argument 111 if (!ts->tv_nsec && !ts->tv_sec) { in set() 112 ts->tv_nsec = 1; in set() 119 memcpy(&spec.it_value, ts, sizeof(spec.it_value)); in set() 356 struct timespec ts; in android_server_AlarmManagerService_set() local 357 ts.tv_sec = seconds; in android_server_AlarmManagerService_set() 358 ts.tv_nsec = nanoseconds; in android_server_AlarmManagerService_set() 360 const int result = impl->set(type, &ts); in android_server_AlarmManagerService_set()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TimeStatsTest.cpp | 123 void setTimeStamp(TimeStamp type, int32_t id, uint64_t frameNumber, nsecs_t ts); 129 nsecs_t ts) { in insertTimeRecord() argument 130 for (size_t i = 0; i < N; i++, ts += 1000000) { in insertTimeRecord() 131 setTimeStamp(sequence[i], id, frameNumber, ts); in insertTimeRecord() 178 void TimeStatsTest::setTimeStamp(TimeStamp type, int32_t id, uint64_t frameNumber, nsecs_t ts) { in setTimeStamp() argument 181 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPostTime(id, frameNumber, genLayerName(id), ts)); in setTimeStamp() 184 ASSERT_NO_FATAL_FAILURE(mTimeStats->setAcquireTime(id, frameNumber, ts)); in setTimeStamp() 188 mTimeStats->setAcquireFence(id, frameNumber, std::make_shared<FenceTime>(ts))); in setTimeStamp() 191 ASSERT_NO_FATAL_FAILURE(mTimeStats->setLatchTime(id, frameNumber, ts)); in setTimeStamp() 194 ASSERT_NO_FATAL_FAILURE(mTimeStats->setDesiredTime(id, frameNumber, ts)); in setTimeStamp() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SystemConditionProviderService.java | 40 protected static String ts(long time) { in ts() method in SystemConditionProviderService 53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now)); in dumpUpcomingTime()
|
D | CountdownConditionProvider.java | 137 ACTION, ts(mTime), mTime - now, span, ts(now))); in onSubscribe() 173 ts(time), time - now, span, ts(now)); in tryParseDescription()
|
D | ScheduleConditionProvider.java | 189 + "nextUserAlarmTime=%s", cal, ts(now), ts(nextUserAlarmTime))); in evaluateSubscriptionLocked() 230 ts(time), formatDuration(time - now), ts(now))); in updateAlarm()
|
/frameworks/base/cmds/incidentd/src/ |
D | incidentd_util.cpp | 117 timespec ts; in Nanotime() local 118 clock_gettime(CLOCK_MONOTONIC, &ts); in Nanotime() 119 return static_cast<uint64_t>(ts.tv_sec * NANOS_PER_SEC + ts.tv_nsec); in Nanotime()
|
/frameworks/av/media/bufferpool/1.0/ |
D | BufferStatus.cpp | 32 struct timespec ts; in getTimestampNow() local 34 clock_gettime(CLOCK_MONOTONIC, &ts); in getTimestampNow() 35 stamp = ts.tv_nsec / 1000; in getTimestampNow() 36 stamp += (ts.tv_sec * 1000000LL); in getTimestampNow()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpstateInternal.cpp | 43 timespec ts; in Nanotime() local 44 clock_gettime(CLOCK_MONOTONIC, &ts); in Nanotime() 45 return static_cast<uint64_t>(ts.tv_sec * NANOS_PER_SEC + ts.tv_nsec); in Nanotime()
|
D | DumpstateUtil.cpp | 56 timespec ts; in waitpid_with_timeout() local 57 ts.tv_sec = MSEC_TO_SEC(timeout_ms); in waitpid_with_timeout() 58 ts.tv_nsec = (timeout_ms % 1000) * 1000000; in waitpid_with_timeout() 59 int ret = TEMP_FAILURE_RETRY(sigtimedwait(&child_mask, nullptr, &ts)); in waitpid_with_timeout()
|
/frameworks/av/media/libnblog/include/media/nblog/ |
D | Events.h | 82 int64_t ts; member 88 int64_t ts; member
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 162 struct timespec ts; in TEST() local 163 ts.tv_sec = 0; in TEST() 164 ts.tv_nsec = 1000000; in TEST() 165 nanosleep (&ts, NULL); in TEST() 237 struct timespec ts; in TEST() local 238 ts.tv_sec = 0; in TEST() 239 ts.tv_nsec = 1000000; in TEST() 240 nanosleep (&ts, NULL); in TEST()
|
/frameworks/av/media/bufferpool/2.0/ |
D | BufferStatus.cpp | 33 struct timespec ts; in getTimestampNow() local 35 clock_gettime(CLOCK_MONOTONIC, &ts); in getTimestampNow() 36 stamp = ts.tv_nsec / 1000; in getTimestampNow() 37 stamp += (ts.tv_sec * 1000000LL); in getTimestampNow()
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrackShared.cpp | 238 const struct timespec *ts; in obtainBuffer() local 244 ts = NULL; in obtainBuffer() 249 ts = requested; in obtainBuffer() 269 ts = &remaining; in obtainBuffer() 273 ts = NULL; in obtainBuffer() 284 mClientInServer ? FUTEX_WAIT_PRIVATE : FUTEX_WAIT, old & ~CBLK_FUTEX_WAKE, ts); in obtainBuffer() 496 const struct timespec *ts; in waitStreamEndDone() local 502 ts = NULL; in waitStreamEndDone() 507 ts = requested; in waitStreamEndDone() 527 ts = &remaining; in waitStreamEndDone() [all …]
|
/frameworks/libs/net/common/hostdevice/com/android/testutils/ |
D | MiscAsserts.kt | 29 fun <T> assertEmpty(ts: Array<T>) = ts.size.let { len -> in <lambda>()
|