Home
last modified time | relevance | path

Searched refs:timeNs (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTimeReceiver.java48 public void addTimeForTypeToQueue(String type, long timeNs) { in addTimeForTypeToQueue() argument
52 if (timeNs < 0) { in addTimeForTypeToQueue()
54 "time is negative/non-existant (" + timeNs + ") when adding time to queue"); in addTimeForTypeToQueue()
56 mQueue.add(new ReceivedMessage(type, timeNs)); in addTimeForTypeToQueue()
63 public void sendTime(String type, long timeNs) throws RemoteException { in createReceiveTimeExtraBinder()
64 addTimeForTypeToQueue(type, timeNs); in createReceiveTimeExtraBinder()
/frameworks/av/services/audioflinger/
DTrackMetrics.h121 const int64_t timeNs = systemTime(); in logVolume() local
125 mLastVolumeChangeTimeNs = mStartVolumeTimeNs = timeNs; in logVolume()
129 mVolume * (timeNs - mLastVolumeChangeTimeNs)) / (timeNs - mStartVolumeTimeNs); in logVolume()
131 mLastVolumeChangeTimeNs = timeNs; in logVolume()
DPatchPanel.cpp654 if (recordFT.timeNs > 0 && playFT.timeNs > 0) { in getLatencyMs()
656 const int64_t timeDiffNs = recordFT.timeNs - playFT.timeNs; in getLatencyMs()
DTrackBase.h199 int64_t timeNs; member
DThreads.cpp1845 const int64_t timeNs = systemTime(SYSTEM_TIME_BOOTTIME); in sendStatistics() local
1846 const int64_t sinceNs = timeNs - mLastRecordedTimeNs; // ok if mLastRecordedTimeNs = 0 in sendStatistics()
1852 mLastRecordedTimeNs = timeNs; in sendStatistics()
4250 const int64_t timeNs = mTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL]; in getTimestamp_l() local
4251 timestamp.mTime.tv_sec = timeNs / NANOS_PER_SECOND; in getTimestamp_l()
4252 timestamp.mTime.tv_nsec = timeNs - (timestamp.mTime.tv_sec * NANOS_PER_SECOND); in getTimestamp_l()
/frameworks/base/core/jni/
Dcom_android_internal_os_KernelCpuTotalBpfMapReader.cpp29 for (const auto &timeNs : vec) { in KernelCpuTotalBpfMapReader_readInternal() local
30 allTimes.push_back(timeNs / 1000000); in KernelCpuTotalBpfMapReader_readInternal()
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DITimeReceiverCallback.aidl20 void sendTime(String type, long timeNs); in sendTime() argument
/frameworks/av/services/mediametrics/
DAudioPowerUsage.cpp328 const int64_t timeNs = item->getTimestamp(); in checkVoiceVolume() local
329 const int64_t durationNs = timeNs - mDeviceTimeNs; in checkVoiceVolume()
332 mVoiceVolume * double(timeNs - mVolumeTimeNs)) / (double)durationNs; in checkVoiceVolume()
333 mVolumeTimeNs = timeNs; in checkVoiceVolume()
DMediaMetricsService.h72 static nsecs_t roundTime(nsecs_t timeNs);
DMediaMetricsService.cpp65 nsecs_t MediaMetricsService::roundTime(nsecs_t timeNs) in roundTime() argument
67 return (timeNs + NANOS_PER_SECOND / 2) / NANOS_PER_SECOND * NANOS_PER_SECOND; in roundTime()
/frameworks/base/media/java/android/media/
DMediaMetrics.java357 public Item(String key, int pid, int uid, long timeNs, int capacity) { in Item() argument
385 .putLong(timeNs); in Item()
545 public Item setTimestamp(long timeNs) { in setTimestamp() argument
546 mBuffer.putLong(mTimeNsOffset, timeNs); // time location in byte string. in setTimestamp()
DMediaCodec.java3657 int index, boolean render, boolean updatePTS, long timeNs); in releaseOutputBuffer() argument
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.h81 const mkvparser::CuePoint::TrackPosition *find(long long timeNs) const;
DMatroskaExtractor.cpp194 long long timeNs) const { in find()
202 if (timeNs <= cp->GetTime(mExtractor->mSegment)) { in find()
214 if (cueTimeNs <= timeNs) { in find()
226 if (cp->GetTime(mExtractor->mSegment) > timeNs) { in find()
/frameworks/av/media/libstagefright/
DAudioSource.cpp363 int64_t timeUs, position, timeNs; in dataCallback() local
369 ts.getBestTimestamp(&position, &timeNs, ExtendedTimestamp::TIMEBASE_MONOTONIC, in dataCallback()
372 timeUs = timeNs / 1000 - in dataCallback()
/frameworks/base/services/core/jni/gnss/
DGnssMeasurementCallback.cpp246 SET(TimeNanos, clock.timeNs); in setClockFields_V1_0()