/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/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 | 104 struct timespec ts; in logTimestamp() local 105 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) { in logTimestamp() 106 log(EVENT_TIMESTAMP, &ts, sizeof(ts)); in logTimestamp() 128 data.ts = systemTime(); in logEventHistTs() 129 if (data.ts > 0) { in logEventHistTs() 225 const nsecs_t ts = systemTime(); in logTimestampFormat() local 226 if (ts > 0) { in logTimestampFormat() 227 log(EVENT_FMT_TIMESTAMP, &ts, sizeof(ts)); in logTimestampFormat()
|
D | Reader.cpp | 253 const int64_t ts = it.payload<int64_t>(); in dump() local 254 body.appendFormat("EVENT_OVERRUN,%lld", static_cast<long long>(ts)); in dump() 262 const int64_t ts = it.payload<int64_t>(); in dump() local 263 body.appendFormat("EVENT_UNDERRUN,%lld", static_cast<long long>(ts)); in dump() 306 const int64_t ts = fmtEntry.timestamp(); in handleFormat() local 308 timestamp->appendFormat("[%d.%03d]", (int) (ts / (1000 * 1000 * 1000)), in handleFormat() 309 (int) ((ts / (1000 * 1000)) % 1000)); in handleFormat() 428 int64_t ts; in appendTimestamp() local 429 memcpy(&ts, data, sizeof(ts)); in appendTimestamp() 430 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/native/libs/binder/tests/ |
D | binderRecordedTransactionTest.cpp | 33 timespec ts = {1232456, 567890}; in TEST() local 35 auto transaction = RecordedTransaction::fromDetails(interfaceName, 1, 42, ts, d, r, 0); in TEST() 51 EXPECT_EQ(retrievedTransaction->getTimestamp().tv_sec, ts.tv_sec); in TEST() 52 EXPECT_EQ(retrievedTransaction->getTimestamp().tv_nsec, ts.tv_nsec); in TEST() 70 timespec ts = {1232456, 567890}; in TEST() local 71 auto transaction = RecordedTransaction::fromDetails(interfaceName, 1, 42, ts, d, r, 0); in TEST() 106 timespec ts = {1232456, 567890}; in TEST() local 107 auto transaction = RecordedTransaction::fromDetails(interfaceName, 1, 42, ts, d, r, 0); in TEST() 125 EXPECT_EQ(retrievedTransaction->getTimestamp().tv_sec, ts.tv_sec); in TEST() 126 EXPECT_EQ(retrievedTransaction->getTimestamp().tv_nsec, ts.tv_nsec); in TEST()
|
/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/base/apex/jobscheduler/service/jni/ |
D | com_android_server_alarm_AlarmManagerService.cpp | 83 int set(int type, struct timespec *ts); 102 int AlarmImpl::set(int type, struct timespec *ts) in set() argument 109 if (!ts->tv_nsec && !ts->tv_sec) { in set() 110 ts->tv_nsec = 1; in set() 117 memcpy(&spec.it_value, ts, sizeof(spec.it_value)); in set() 265 struct timespec ts; in android_server_alarm_AlarmManagerService_set() local 266 ts.tv_sec = seconds; in android_server_alarm_AlarmManagerService_set() 267 ts.tv_nsec = nanoseconds; in android_server_alarm_AlarmManagerService_set() 269 const int result = impl->set(type, &ts); in android_server_alarm_AlarmManagerService_set()
|
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/ |
D | IkeTrafficSelectorUtils.java | 64 public static PersistableBundle toPersistableBundle(@NonNull IkeTrafficSelector ts) { in toPersistableBundle() argument 67 result.putInt(START_PORT_KEY, ts.startPort); in toPersistableBundle() 68 result.putInt(END_PORT_KEY, ts.endPort); in toPersistableBundle() 69 result.putString(START_ADDRESS_KEY, ts.startingAddress.getHostAddress()); in toPersistableBundle() 70 result.putString(END_ADDRESS_KEY, ts.endingAddress.getHostAddress()); in toPersistableBundle()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | BatteryController.java | 194 final JobStatus ts = mTrackedTasks.valueAt(i); in maybeReportNewChargingStateLocked() local 195 if (ts.hasChargingConstraint()) { in maybeReportNewChargingStateLocked() 196 if (hasTopExemptionLocked(ts) in maybeReportNewChargingStateLocked() 197 && ts.getEffectivePriority() >= JobInfo.PRIORITY_DEFAULT) { in maybeReportNewChargingStateLocked() 204 if (ts.setChargingConstraintSatisfied(nowElapsed, powerConnected)) { in maybeReportNewChargingStateLocked() 205 mChangedJobs.add(ts); in maybeReportNewChargingStateLocked() 207 } else if (ts.setChargingConstraintSatisfied(nowElapsed, stablePower)) { in maybeReportNewChargingStateLocked() 208 mChangedJobs.add(ts); in maybeReportNewChargingStateLocked() 211 if (ts.hasBatteryNotLowConstraint() in maybeReportNewChargingStateLocked() 212 && ts.setBatteryNotLowConstraintSatisfied(nowElapsed, batteryNotLow)) { in maybeReportNewChargingStateLocked() [all …]
|
D | TimeController.java | 436 for (JobStatus ts : mTrackedJobs) { in dumpControllerStateLocked() 437 if (!predicate.test(ts)) { in dumpControllerStateLocked() 441 ts.printUniqueId(pw); in dumpControllerStateLocked() 443 UserHandle.formatUid(pw, ts.getSourceUid()); in dumpControllerStateLocked() 445 if (ts.hasTimingDelayConstraint()) { in dumpControllerStateLocked() 446 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked() 451 if (ts.hasDeadlineConstraint()) { in dumpControllerStateLocked() 452 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked() 473 for (JobStatus ts : mTrackedJobs) { in dumpControllerStateLocked() 474 if (!predicate.test(ts)) { in dumpControllerStateLocked() [all …]
|
/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/cmds/incidentd/src/ |
D | incidentd_util.cpp | 165 timespec ts; in Nanotime() local 166 clock_gettime(CLOCK_MONOTONIC, &ts); in Nanotime() 167 return static_cast<uint64_t>(ts.tv_sec * NANOS_PER_SEC + ts.tv_nsec); in Nanotime() 207 timespec ts; in waitpid_with_timeout() local 208 ts.tv_sec = timeout_ms / 1000; in waitpid_with_timeout() 209 ts.tv_nsec = (timeout_ms % 1000) * 1000000; in waitpid_with_timeout() 210 int ret = TEMP_FAILURE_RETRY(sigtimedwait(&child_mask, nullptr, &ts)); in waitpid_with_timeout()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 121 String ts = Long.toString(System.currentTimeMillis()); in downloadFile() local 124 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFile() 138 results.putString("timestamp", ts); in downloadFile() 173 String ts = Long.toString(System.currentTimeMillis()); in uploadFile() local 175 mTestServer, FILE_SIZE, mDeviceId, ts); in uploadFile() 179 ts = Long.toString(System.currentTimeMillis()); in uploadFile() 182 assertTrue(BandwidthTestUtil.postFileToServer(mTestServer, mDeviceId, ts, tmpSaveFile)); in uploadFile() 192 results.putString("timestamp", ts); in uploadFile() 235 String ts = Long.toString(System.currentTimeMillis()); in downloadFileUsingDownloadManager() local 237 mTestServer, FILE_SIZE, mDeviceId, ts); in downloadFileUsingDownloadManager() [all …]
|
/frameworks/av/media/libstagefright/httplive/fuzzer/corpus/ |
D | index5 | 8 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 11 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 14 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts
|
D | index6 | 7 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 9 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence2.ts 11 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence3.ts
|
D | index1 | 8 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence0.ts 11 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 13 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence2.ts
|
D | index3 | 7 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 10 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence2.ts 12 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence3.ts
|
D | index4 | 9 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence0.ts 11 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 14 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence2.ts
|
D | prog_index | 11 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 14 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 16 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts
|
D | hls | 5 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence1.ts 7 https://non.existentsite.com/test-doesnt-dereference-these-paths/fileSequence2.ts
|
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/ |
D | IkeTrafficSelectorUtilsTest.java | 49 private static void verifyPersistableBundleEncodeDecodeIsLossless(IkeTrafficSelector ts) { in verifyPersistableBundleEncodeDecodeIsLossless() argument 50 final PersistableBundle bundle = IkeTrafficSelectorUtils.toPersistableBundle(ts); in verifyPersistableBundleEncodeDecodeIsLossless() 52 assertEquals(ts, resultTs); in verifyPersistableBundleEncodeDecodeIsLossless()
|
/frameworks/native/libs/binder/ |
D | BufferedTextOutput.cpp | 252 thread_local ThreadState ts; in getBuffer() local 253 while (ts.states.size() <= (size_t)mIndex) ts.states.add(nullptr); in getBuffer() 254 BufferState* bs = ts.states[mIndex].get(); in getBuffer() 257 ts.states.editItemAt(mIndex) = sp<BufferState>::make(mIndex); in getBuffer() 258 bs = ts.states[mIndex].get(); in getBuffer()
|
/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()
|
/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()
|