Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/av/media/libaaudio/src/utility/
DAudioClock.h82 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);
DAAudioUtilities.h252 Timestamp(int64_t position, int64_t nanoseconds) in Timestamp() argument
254 , mNanoseconds(nanoseconds) {} in Timestamp()
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.h49 std::chrono::nanoseconds mSamplingOffset;
55 std::chrono::nanoseconds mSamplingPeriod;
59 std::chrono::nanoseconds mSamplingTimerTimeout;
121 std::chrono::nanoseconds lastSampleTime GUARDED_BY(mThreadControlMutex);
DRegionSamplingThread.cpp61 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/
Dencoder_performance_test.cpp105 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/
DSchedulerUtils.h37 static constexpr std::chrono::nanoseconds OBSOLETE_TIME_EPSILON_NS = 1200ms;
44 static constexpr std::chrono::nanoseconds LOW_ACTIVITY_EPSILON_NS = 250ms;
DLayerInfo.h134 static constexpr std::chrono::nanoseconds HISTORY_TIME = 1s;
/frameworks/av/media/libaaudio/examples/utils/
DAAudioExampleUtils.h85 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()
DAAudioSimplePlayer.h40 int64_t nanoseconds; member
345 CLOCK_MONOTONIC, &timestamp->position, &timestamp->nanoseconds); in SimplePlayerDataCallbackProc()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h38 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/
Dwrite_sine_callback.cpp196 || ((timestamp->nanoseconds < (timestamp - 1)->nanoseconds)))); in testOpenPlayClose()
200 (long long) timestamp->nanoseconds, in testOpenPlayClose()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDispSyncSourceTest.cpp53 static constexpr std::chrono::nanoseconds mPhaseOffset = 6ms;
54 static constexpr std::chrono::nanoseconds mOffsetThresholdForNextVsync = 16ms;
/frameworks/rs/script_api/
Drs_time.spec98 summary: System uptime in nanoseconds
100 Returns the current system clock (uptime) in nanoseconds.
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.h129 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;
DFakeComposerClient.cpp99 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/
Dcom_android_server_AlarmManagerService.cpp353 …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/
Drs_time.rsh115 * rsUptimeNanos: System uptime in nanoseconds
117 * Returns the current system clock (uptime) in nanoseconds.
121 * Returns: Uptime in nanoseconds.
/frameworks/av/media/libwatchdog/
DWatchdog.cpp45 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(timeout); in Watchdog()
/frameworks/av/media/libaaudio/src/binding/
DIAAudioService.cpp244 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/
DAudioStreamTrack.cpp490 int64_t nanoseconds = 0; in getTimestamp() local
492 &nanoseconds, &extendedTimestamp); in getTimestamp()
496 *timeNanoseconds = nanoseconds; in getTimestamp()
/frameworks/av/services/audioflinger/
DTrackBase.h339 using Timeout = std::optional<std::chrono::nanoseconds>;
342 void setPeerTimeout(std::chrono::nanoseconds timeout);
/frameworks/native/opengl/specs/
DEGL_ANDROID_presentation_time.txt48 * nanoseconds.
78 nanoseconds, but the exact meaning of the time depends on the native
/frameworks/av/media/libaaudio/tests/
Dtest_timestamps.cpp243 int64_t nanoseconds; in testTimeStamps() local
244 result = AAudioStream_getTimestamp(aaudioStream, CLOCK_MONOTONIC, &position, &nanoseconds); in testTimeStamps()
/frameworks/native/libs/binder/tests/
DbinderThroughputTest.cpp226 … 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/
DICameraDeviceCallback.hal42 * @param timestamp corresponding to the start (in nanoseconds)

12