/frameworks/av/media/libaaudio/src/utility/ |
D | AudioClock.h | 82 static int sleepForNanos(int64_t nanoseconds, clockid_t clockId = CLOCK_MONOTONIC) { 83 if (nanoseconds > 0) { 85 time.tv_sec = nanoseconds / AAUDIO_NANOS_PER_SECOND; 87 time.tv_nsec = nanoseconds - (time.tv_sec * AAUDIO_NANOS_PER_SECOND);
|
D | AAudioUtilities.h | 252 Timestamp(int64_t position, int64_t nanoseconds) in Timestamp() argument 254 , mNanoseconds(nanoseconds) {} in Timestamp()
|
/frameworks/native/services/surfaceflinger/ |
D | RegionSamplingThread.h | 49 std::chrono::nanoseconds mSamplingOffset; 55 std::chrono::nanoseconds mSamplingPeriod; 59 std::chrono::nanoseconds mSamplingTimerTimeout; 121 std::chrono::nanoseconds lastSampleTime GUARDED_BY(mThreadControlMutex);
|
D | RegionSamplingThread.cpp | 61 return std::to_string(std::chrono::duration_cast<std::chrono::nanoseconds>(t).count()); in toNsString() 85 mSamplingOffset = std::chrono::nanoseconds(samplingOffsetNsRaw); in EnvironmentTimingTunables() 86 mSamplingPeriod = std::chrono::nanoseconds(samplingPeriodNsRaw); in EnvironmentTimingTunables() 87 mSamplingTimerTimeout = std::chrono::nanoseconds(samplingTimerTimeoutNsRaw); in EnvironmentTimingTunables() 93 std::chrono::nanoseconds targetSamplingOffset) in SamplingOffsetCallback() 154 const std::chrono::nanoseconds mTargetSamplingOffset; 239 auto now = std::chrono::nanoseconds(systemTime(SYSTEM_TIME_MONOTONIC)); in doSample() 251 if (std::chrono::nanoseconds(stats.vsyncTime) - now < timeForRegionSampling) { in doSample()
|
/frameworks/native/libs/vr/libpdx/ |
D | encoder_performance_test.cpp | 105 using SerializeTestSignature = std::chrono::nanoseconds(MessageWriter* writer, 111 using DeserializeTestSignature = std::chrono::nanoseconds( 118 std::chrono::nanoseconds SerializeTestRunner(MessageWriter* writer, in SerializeTestRunner() 135 std::chrono::nanoseconds DeserializeTestRunner( in DeserializeTestRunner() 157 std::chrono::nanoseconds SerializeBaseTest(MessageWriter* writer, in SerializeBaseTest() 176 std::chrono::nanoseconds DeserializeBaseTest( in DeserializeBaseTest() 229 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddSerializationTest() 241 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddDeserializationTest() 259 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddTest() 264 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddTest()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | SchedulerUtils.h | 37 static constexpr std::chrono::nanoseconds OBSOLETE_TIME_EPSILON_NS = 1200ms; 44 static constexpr std::chrono::nanoseconds LOW_ACTIVITY_EPSILON_NS = 250ms;
|
D | LayerInfo.h | 134 static constexpr std::chrono::nanoseconds HISTORY_TIME = 1s;
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioExampleUtils.h | 85 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec() argument 86 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec() 88 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec()
|
D | AAudioSimplePlayer.h | 40 int64_t nanoseconds; member 345 CLOCK_MONOTONIC, ×tamp->position, ×tamp->nanoseconds); in SimplePlayerDataCallbackProc()
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | clock_ns.h | 38 static inline double NsToSec(int64_t nanoseconds) { in NsToSec() argument 39 return nanoseconds / static_cast<double>(kNanosPerSecond); in NsToSec()
|
/frameworks/av/media/libaaudio/examples/write_sine/src/ |
D | write_sine_callback.cpp | 196 || ((timestamp->nanoseconds < (timestamp - 1)->nanoseconds)))); in testOpenPlayClose() 200 (long long) timestamp->nanoseconds, in testOpenPlayClose()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DispSyncSourceTest.cpp | 53 static constexpr std::chrono::nanoseconds mPhaseOffset = 6ms; 54 static constexpr std::chrono::nanoseconds mOffsetThresholdForNextVsync = 16ms;
|
/frameworks/rs/script_api/ |
D | rs_time.spec | 98 summary: System uptime in nanoseconds 100 Returns the current system clock (uptime) in nanoseconds.
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerClient.h | 129 void runVSyncAndWait(std::chrono::nanoseconds maxWait = 100ms); 130 void runVSyncAfter(std::chrono::nanoseconds wait); 135 void waitUntilFrame(int targetFrame, std::chrono::nanoseconds maxWait = 100ms) const;
|
D | FakeComposerClient.cpp | 99 void wakeAfter(std::chrono::nanoseconds waitTime) { in wakeAfter() 521 void FakeComposerClient::runVSyncAfter(std::chrono::nanoseconds wait) { in runVSyncAfter() 558 void FakeComposerClient::runVSyncAndWait(std::chrono::nanoseconds maxWait) { in runVSyncAndWait() 568 void FakeComposerClient::waitUntilFrame(int targetFrame, std::chrono::nanoseconds maxWait) const { in waitUntilFrame()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_AlarmManagerService.cpp | 353 …ManagerService_set(JNIEnv*, jobject, jlong nativeData, jint type, jlong seconds, jlong nanoseconds) in android_server_AlarmManagerService_set() argument 358 ts.tv_nsec = nanoseconds; in android_server_AlarmManagerService_set() 365 static_cast<long long>(nanoseconds), strerror(errno)); in android_server_AlarmManagerService_set()
|
/frameworks/rs/script_api/include/ |
D | rs_time.rsh | 115 * rsUptimeNanos: System uptime in nanoseconds 117 * Returns the current system clock (uptime) in nanoseconds. 121 * Returns: Uptime in nanoseconds.
|
/frameworks/av/media/libwatchdog/ |
D | Watchdog.cpp | 45 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(timeout); in Watchdog()
|
/frameworks/av/media/libaaudio/src/binding/ |
D | IAAudioService.cpp | 244 int64_t nanoseconds = 0; in onTransact() local 387 status = data.readInt64(&nanoseconds); in onTransact() 392 result = registerAudioThread(streamHandle, tid, nanoseconds); in onTransact()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamTrack.cpp | 490 int64_t nanoseconds = 0; in getTimestamp() local 492 &nanoseconds, &extendedTimestamp); in getTimestamp() 496 *timeNanoseconds = nanoseconds; in getTimestamp()
|
/frameworks/av/services/audioflinger/ |
D | TrackBase.h | 339 using Timeout = std::optional<std::chrono::nanoseconds>; 342 void setPeerTimeout(std::chrono::nanoseconds timeout);
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_presentation_time.txt | 48 * nanoseconds. 78 nanoseconds, but the exact meaning of the time depends on the native
|
/frameworks/av/media/libaaudio/tests/ |
D | test_timestamps.cpp | 243 int64_t nanoseconds; in testTimeStamps() local 244 result = AAudioStream_getTimestamp(aaudioStream, CLOCK_MONOTONIC, &position, &nanoseconds); in testTimeStamps()
|
/frameworks/native/libs/binder/tests/ |
D | binderThroughputTest.cpp | 226 … uint64_t cur_time = uint64_t(chrono::duration_cast<chrono::nanoseconds>(end - start).count()); in worker_fx() 298 …er_sec = double(iterations * workers) / (chrono::duration_cast<chrono::nanoseconds>(end - start).c… in run_main()
|
/frameworks/hardware/interfaces/cameraservice/device/2.0/ |
D | ICameraDeviceCallback.hal | 42 * @param timestamp corresponding to the start (in nanoseconds)
|