Home
last modified time | relevance | path

Searched refs:NANOS_PER_SECOND (Results 1 – 22 of 22) sorted by relevance

/aosp12/frameworks/av/media/libaaudio/tests/
H A Dtest_clock_model.cpp33 #define NANOS_PER_BURST (NANOS_PER_SECOND * HW_FRAMES_PER_BURST / SAMPLE_RATE)
67 double elapsedTimeSeconds = startTimeNanos / (double) NANOS_PER_SECOND; in checkDriftingClock()
70 const double timeDelaySeconds = 10.0 * drand48() * NANOS_PER_BURST / NANOS_PER_SECOND; in checkDriftingClock()
72 const int64_t elapsedTimeNanos = (int64_t)(elapsedTimeSeconds * NANOS_PER_SECOND); in checkDriftingClock()
98 int64_t position = model.convertDeltaTimeToPosition(NANOS_PER_SECOND); in TEST_F()
103 constexpr int64_t kNanosPerBurst = HW_FRAMES_PER_BURST * NANOS_PER_SECOND / SAMPLE_RATE; in TEST_F()
104 position = model.convertDeltaTimeToPosition(NANOS_PER_SECOND + (kNanosPerBurst / 2)); in TEST_F()
108 ASSERT_EQ(NANOS_PER_SECOND, time); in TEST_F()
112 ASSERT_EQ(NANOS_PER_SECOND + (kNanosPerBurst / 2), time); in TEST_F()
H A Dtest_aaudio_monkey.cpp29 #define DEFAULT_TIMEOUT_NANOS (1 * NANOS_PER_SECOND)
/aosp12/frameworks/av/media/libaaudio/examples/utils/
H A DAAudioExampleUtils.h33 #define NANOS_PER_SECOND (NANOS_PER_MILLISECOND * 1000) macro
112 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec()
114 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec()
124 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec;
152 (NANOS_PER_SECOND * deltaFrames / sampleRate); in calculateLatencyMillis()
H A DAAudioSimplePlayer.h229 &currentState, NANOS_PER_SECOND); in waitUntilPaused()
/aosp12/frameworks/av/services/mediametrics/
H A DMediaMetricsService.cpp51 static constexpr nsecs_t kMaxRecordAgeNs = 28 * 3600 * NANOS_PER_SECOND;
68 return (timeNs + NANOS_PER_SECOND / 2) / NANOS_PER_SECOND * NANOS_PER_SECOND; in roundTime()
291 sinceNs = systemTime(SYSTEM_TIME_REALTIME) + sec * NANOS_PER_SECOND; in dump()
293 sinceNs = sec * NANOS_PER_SECOND; in dump()
H A DAudioPowerUsage.cpp144 const int32_t duration_secs = (int32_t)(duration_ns / NANOS_PER_SECOND); in sendItem()
/aosp12/system/media/audio_utils/include/audio_utils/
H A Dclock.h33 #define NANOS_PER_SECOND 1000000000LL macro
40 #define NANOS_PER_MINUTE (NANOS_PER_SECOND * SECONDS_PER_MINUTE)
/aosp12/frameworks/av/media/libaaudio/examples/input_monitor/src/
H A Dinput_monitor_callback.cpp77 .tv_nsec = NANOS_PER_SECOND / displayRateHz }; in main()
113 .tv_nsec = NANOS_PER_SECOND / displayRateHz }; in main()
/aosp12/frameworks/av/media/libaaudio/examples/write_sine/src/
H A Dwrite_sine_callback.cpp119 myData.waker.wait(AAUDIO_OK, NANOS_PER_SECOND); in testOpenPlayClose()
/aosp12/frameworks/base/media/jni/soundpool/
H A DStreamManager.cpp44 static constexpr int64_t kWaitTimeBeforeCloseNs = 9 * NANOS_PER_SECOND;
/aosp12/packages/services/Car/tests/BugReportApp/libs/
H A Dgrpc-context-1.19.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/grpc/ io/ ...
H A Dopencensus-api-0.21.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/opencensus/ io/ ...
/aosp12/frameworks/av/media/utils/
H A DServiceUtilities.cpp428 static constexpr nsecs_t INFO_EXPIRATION_NS = 24 * 60 * 60 * NANOS_PER_SECOND;
/aosp12/frameworks/av/media/libaudioclient/
H A DAudioTrack.cpp81 tv.tv_sec = static_cast<time_t>(ns / NANOS_PER_SECOND); in convertNsToTimespec()
82 tv.tv_nsec = static_cast<int64_t>(ns % NANOS_PER_SECOND); in convertNsToTimespec()
3150 * NANOS_PER_SECOND / mSampleRate; in getTimestamp_l()
3347 deltaPosition * (long long)NANOS_PER_SECOND / deltaTime; in getTimestamp_l()
/aosp12/frameworks/av/services/audioflinger/
H A DAudioFlinger.h471 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;
H A DTracks.cpp2873 newTimeOut.tv_sec = newTimeOutNs / NANOS_PER_SECOND; in obtainBuffer()
2874 newTimeOut.tv_nsec = newTimeOutNs - newTimeOut.tv_sec * NANOS_PER_SECOND; in obtainBuffer()
H A DThreads.cpp4464 timestamp.mTime.tv_sec = timeNs / NANOS_PER_SECOND; in getTimestamp_l()
4465 timestamp.mTime.tv_nsec = timeNs - (timestamp.mTime.tv_sec * NANOS_PER_SECOND); in getTimestamp_l()
10345 *timeNanos = timestamp.tv_sec * NANOS_PER_SECOND + timestamp.tv_nsec; in getExternalPosition()
H A DAudioFlinger.cpp718 audio_utils_get_real_time_ns() - 10 * 60 * NANOS_PER_SECOND); in dump()
/aosp12/hardware/qcom/audio/hal/
H A Daudio_hw.c3642 (current_ns - out->last_fifo_time_ns) * out->config.rate / NANOS_PER_SECOND; in out_write()
3658 long ns = (frames * (int64_t) NANOS_PER_SECOND) / out->config.rate; in out_write()
6226 NANOS_PER_SECOND /* aggregate consecutive identical errors within one second */); in adev_open_input_stream()
/aosp12/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyService.cpp57 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;
/aosp12/packages/apps/Car/DebuggingRestrictionController/libs/
H A Dopencensus-api-0.24.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/opencensus/ io/ ...
/aosp12/art/build/boot/hiddenapi/
H A Dhiddenapi-max-target-o-low-priority.txt2495 Ljava/lang/Daemons;->NANOS_PER_SECOND:I
4274 Ljava/nio/file/attribute/FileTime;->NANOS_PER_SECOND:J
5796 Ljava/time/LocalTime;->NANOS_PER_SECOND:J