/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaClock.h | 39 void setStartingTimeMedia(int64_t startingTimeMediaUs); 45 int64_t anchorTimeMediaUs, 46 int64_t anchorTimeRealUs, 47 int64_t maxTimeMediaUs = INT64_MAX); 49 void updateMaxTimeMedia(int64_t maxTimeMediaUs); 57 int64_t realUs, 58 int64_t *outMediaUs, 62 status_t getRealTimeFor(int64_t targetMediaUs, int64_t *outRealUs) const; 67 void addTimer(const sp<AMessage> ¬ify, int64_t mediaTimeUs, int64_t adjustRealUs = 0); 84 Timer(const sp<AMessage> ¬ify, int64_t mediaTimeUs, int64_t adjustRealUs); [all …]
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | clock_ns.h | 10 constexpr int64_t kNanosPerSecond = 1000000000ll; 26 static inline int64_t GetSystemClockNs() { in GetSystemClockNs() 28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockNs() 32 static inline int64_t GetSystemClockRawNs() { in GetSystemClockRawNs() 34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockRawNs() 38 static inline double NsToSec(int64_t nanoseconds) { in NsToSec() 48 static inline timespec NsToTimespec(int64_t ns) { in NsToTimespec() 64 static inline bool TimestampLT(int64_t a, int64_t b) { in TimestampLT() 65 return static_cast<int64_t>(static_cast<uint64_t>(a) - in TimestampLT() 68 static inline bool TimestampLE(int64_t a, int64_t b) { in TimestampLE() [all …]
|
D | benchmark.h | 30 static inline void Btrace(const char* name, int64_t nanoseconds_monotonic); 33 int64_t nanoseconds_monotonic); 37 static inline void BtraceData(const char* name, int64_t nanoseconds_monotonic, 38 int64_t data); 39 static inline void BtraceData(const char* name, int64_t data); 41 int64_t nanoseconds_monotonic, int64_t data); 42 static inline void BtraceData(FILE* file, const char* name, int64_t data); 44 static inline void Btrace(const char* name, int64_t nanoseconds_monotonic) { in Btrace() 56 int64_t nanoseconds_monotonic) { in Btrace() 64 static inline void BtraceData(const char* name, int64_t nanoseconds_monotonic, in BtraceData() [all …]
|
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/ |
D | ARTPAssembler.h | 48 inline int64_t findRTPTime(const uint32_t& firstRTPTime, const sp<ABuffer>& buffer); 49 inline int64_t MsToRtp(int64_t ms, int64_t clockRate); 50 inline int64_t RtpToMs(int64_t rtp, int64_t clockRate); 51 inline void printNowTimeMs(int64_t start, int64_t now, int64_t play); 52 inline void printRTPTime(int64_t rtp, int64_t play, int64_t exp, bool isExp); 75 int64_t mFirstFailureTimeUs; 80 inline int64_t ARTPAssembler::findRTPTime(const uint32_t& firstRTPTime, const sp<ABuffer>& buffer) { in findRTPTime() 83 int64_t rtpTime = 0; in findRTPTime() 86 int64_t overflowMask = (firstRTPTime & 0x80000000 & ~rtpTime) << 1; in findRTPTime() 90 inline int64_t ARTPAssembler::MsToRtp(int64_t ms, int64_t clockRate) { in MsToRtp() [all …]
|
D | ARTPSource.h | 65 int64_t recvTimeUs, uint32_t senderId, sp<ReceptionReportBlock> rrb); 67 void timeUpdate(int64_t recvTimeUs, uint32_t rtpTime, uint64_t ntpTime); 86 void setJbAlarmTime(int64_t nowTimeUs, int64_t alarmAfterUs); 89 void notifyPktInfo(int32_t bitrate, int64_t nowUs, bool isRegular); 96 int64_t mFirstSysTime; 99 int64_t mSysAnchorTime; 100 int64_t mLastSysAnchorTimeUpdatedUs; 138 int64_t mLastSrUpdateTimeUs; 140 int64_t mLastRrUpdateTimeUs; 145 int64_t mLastJbAlarmTimeUs; [all …]
|
/frameworks/av/media/libaaudio/src/client/ |
D | IsochronousClockModel.cpp | 54 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) { in setPositionAndTime() 60 void IsochronousClockModel::start(int64_t nanoTime) { in start() 69 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() 89 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() 94 int64_t framesDelta = framePosition - mMarkerFramePosition; in processTimestamp() 95 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in processTimestamp() 104 int64_t expectedNanosDelta = convertDeltaPositionToTime(framesDelta); in processTimestamp() 111 int64_t latenessNanos = nanosDelta - expectedNanosDelta; in processTimestamp() 154 int64_t driftingTime = mMarkerNanoTime + expectedNanosDelta + kDriftNanos; in processTimestamp() 207 int64_t IsochronousClockModel::convertDeltaPositionToTime(int64_t framesDelta) const { in convertDeltaPositionToTime() [all …]
|
D | IsochronousClockModel.h | 40 void start(int64_t nanoTime); 41 void stop(int64_t nanoTime); 53 void processTimestamp(int64_t framePosition, int64_t nanoTime); 60 void setPositionAndTime(int64_t framePosition, int64_t nanoTime); 83 int64_t convertPositionToTime(int64_t framePosition) const; 92 int64_t convertPositionToLatestTime(int64_t framePosition) const; 100 int64_t convertTimeToPosition(int64_t nanoTime) const; 112 int64_t convertLatestTimeToPosition(int64_t nanoTime) const; 118 int64_t convertDeltaPositionToTime(int64_t framesDelta) const; 124 int64_t convertDeltaTimeToPosition(int64_t nanosDelta) const; [all …]
|
/frameworks/base/libs/hwui/ |
D | FrameInfo.h | 81 static constexpr int64_t INVALID_VSYNC_ID = -1; 82 static constexpr int64_t UNKNOWN_DEADLINE = std::numeric_limits<int64_t>::max(); 83 static constexpr int64_t UNKNOWN_FRAME_INTERVAL = -1; 86 explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { in UiFrameInfoBuilder() 87 memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); in UiFrameInfoBuilder() 93 set(FrameInfoIndex::FrameDeadline) = std::numeric_limits<int64_t>::max(); in UiFrameInfoBuilder() 97 int64_t vsyncId, int64_t frameDeadline, nsecs_t frameInterval) { in setVsync() 118 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set() 120 int64_t* mBuffer; 125 void importUiThreadInfo(int64_t* info); [all …]
|
D | DeviceInfo.h | 42 static int64_t getVsyncPeriod() { return get()->mVsyncPeriod; } in getVsyncPeriod() 43 static int64_t getCompositorOffset() { return get()->getCompositorOffsetInternal(); } in getCompositorOffset() 44 static int64_t getAppOffset() { return get()->mAppVsyncOffsetNanos; } in getAppOffset() 50 get()->mVsyncPeriod = static_cast<int64_t>(1000000000 / refreshRate); in setRefreshRate() 52 static void setPresentationDeadlineNanos(int64_t deadlineNanos) { in setPresentationDeadlineNanos() 55 static void setAppVsyncOffsetNanos(int64_t offsetNanos) { in setAppVsyncOffsetNanos() 72 void onRefreshRateChanged(int64_t vsyncPeriod); 78 int64_t getCompositorOffsetInternal() const { in getCompositorOffsetInternal() 94 int64_t mVsyncPeriod = 16666666; 96 int64_t mPresentationDeadlineNanos = 17666666; [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/ |
D | NuPlayerRenderer.h | 74 status_t getCurrentPosition(int64_t *mediaUs); 75 int64_t getVideoLateByUs(); 152 static const int64_t kMinPositionUpdateDelayUs; 179 int64_t mAudioFirstAnchorTimeMediaUs; 180 int64_t mAnchorTimeMediaUs; 181 int64_t mAnchorNumFramesWritten; 182 int64_t mVideoLateByUs; 183 int64_t mNextVideoTimeMediaUs; 194 int64_t mPauseDrainAudioAllowedUs; // time when we can drain/deliver audio in pause mode. 202 int64_t mNextAudioClockUpdateTimeUs; [all …]
|
/frameworks/native/libs/ftl/ |
D | cast_test.cpp | 67 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>) - 1) == CastSafety::kSafe); 68 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>)) == CastSafety::kSafe); 69 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>) + 1) == 79 static_assert(cast_safety<uint32_t>(max<int64_t>) == CastSafety::kOverflow); 81 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>) - 1) == CastSafety::kSafe); 82 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>)) == CastSafety::kSafe); 83 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>) + 1) == 93 static_assert(cast_safety<int32_t>(static_cast<int64_t>(min<int32_t>)) == CastSafety::kSafe); 94 static_assert(cast_safety<int32_t>(static_cast<int64_t>(max<int32_t>)) == CastSafety::kSafe); 97 static_assert(cast_safety<int32_t>(max<int64_t>) == CastSafety::kOverflow); [all …]
|
/frameworks/base/native/android/ |
D | performance_hint.cpp | 39 APerformanceHintManager(sp<IHintManager> service, int64_t preferredRateNanos); 44 int64_t initialTargetWorkDurationNanos); 45 int64_t getPreferredRateNanos() const; 52 const int64_t mPreferredRateNanos; 57 APerformanceHintSession(sp<IHintSession> session, int64_t preferredRateNanos, 58 int64_t targetDurationNanos); 62 int updateTargetWorkDuration(int64_t targetDurationNanos); 63 int reportActualWorkDuration(int64_t actualDurationNanos); 70 const int64_t mPreferredRateNanos; 72 int64_t mTargetDurationNanos; [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaClock.cpp | 31 static const int64_t kAnchorFluctuationAllowedUs = 10000LL; 33 MediaClock::Timer::Timer(const sp<AMessage> ¬ify, int64_t mediaTimeUs, int64_t adjustRealUs) in Timer() 79 void MediaClock::setStartingTimeMedia(int64_t startingTimeMediaUs) { in setStartingTimeMedia() 90 int64_t anchorTimeMediaUs, in updateAnchor() 91 int64_t anchorTimeRealUs, in updateAnchor() 92 int64_t maxTimeMediaUs) { in updateAnchor() 99 int64_t nowUs = ALooper::GetNowUs(); in updateAnchor() 100 int64_t nowMediaUs = in updateAnchor() 111 int64_t oldNowMediaUs = in updateAnchor() 124 void MediaClock::updateMaxTimeMedia(int64_t maxTimeMediaUs) { in updateMaxTimeMedia() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_clock_model.cpp | 55 const int64_t startTimeNanos = 500000000; // arbitrary in checkDriftingClock() 58 const int64_t startPositionFrames = HW_FRAMES_PER_BURST; // hardware in checkDriftingClock() 60 const int64_t markerTime = startTimeNanos + NANOS_PER_MILLISECOND in checkDriftingClock() 72 const int64_t elapsedTimeNanos = (int64_t)(elapsedTimeSeconds * NANOS_PER_SECOND); in checkDriftingClock() 73 const int64_t currentTimeNanos = startTimeNanos + elapsedTimeNanos; in checkDriftingClock() 75 const int64_t currentTimeFrames = startPositionFrames + in checkDriftingClock() 76 (int64_t)(hardwareFramesPerSecond * elapsedTimeSeconds); in checkDriftingClock() 77 const int64_t numBursts = currentTimeFrames / HW_FRAMES_PER_BURST; in checkDriftingClock() 78 const int64_t alignedPosition = startPositionFrames + (numBursts * HW_FRAMES_PER_BURST); in checkDriftingClock() 98 int64_t position = model.convertDeltaTimeToPosition(NANOS_PER_SECOND); in TEST_F() [all …]
|
D | test_monotonic_counter.cpp | 43 ASSERT_EQ((int64_t)0x7FFFFFF0, counter.get()); in TEST() 47 ASSERT_EQ((int64_t)0x80000010, counter.get()); in TEST() 50 ASSERT_EQ((int64_t)0x100000000, counter.get()); in TEST() 57 ASSERT_EQ((int64_t)x, counter.get()); in TEST() 60 ASSERT_EQ((int64_t)2400, counter.get()); in TEST() 67 ASSERT_EQ((int64_t)7654, counter.get()); in TEST() 69 ASSERT_EQ((int64_t)9876, counter.get()); in TEST() 76 ASSERT_EQ((int64_t)1000, counter.get()); in TEST() 78 ASSERT_EQ((int64_t)1096, counter.get()); in TEST() 86 ASSERT_EQ((int64_t)1000, counter.get()); in TEST() [all …]
|
/frameworks/av/media/libstagefright/httplive/ |
D | LiveSession.h | 78 int64_t calculateMediaTimeUs(int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq); 92 status_t seekTo(int64_t timeUs, MediaPlayerSeekMode mode); 94 status_t getDuration(int64_t *durationUs) const; 139 static const int64_t kUpSwitchMarkUs; 140 static const int64_t kDownSwitchMarkUs; 141 static const int64_t kUpSwitchMarginUs; 142 static const int64_t kResumeThresholdUs; 151 int64_t mLastFailureUs; 156 int64_t mDurationUs; 166 int64_t mLastDequeuedTimeUs; [all …]
|
D | PlaylistFetcher.h | 38 static const int64_t kMinBufferedDurationUs; 40 static const int64_t kFetcherResumeThreshold; 71 int64_t startTimeUs = -1ll, // starting timestamps 72 int64_t segmentStartTimeUs = -1ll, // starting position within playlist 110 static const int64_t kMaxMonitorDelayUs; 127 int64_t mStartTimeUs; 132 int64_t mSegmentStartTimeUs; 143 int64_t mLastPlaylistFetchTimeUs; 144 int64_t mPlaylistTimeUs; 153 int64_t mNextPTSTimeUs; [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerProperties.h | 32 int64_t vsync_event_phase_offset_ns(int64_t defaultValue); 34 int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue); 38 int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue); 49 int64_t present_time_offset_from_vsync_ns(int64_t defaultValue); 53 int64_t max_virtual_display_dimension(int64_t defaultValue); 62 int64_t default_composition_dataspace( 68 int64_t wcg_composition_dataspace( 74 int64_t color_space_agnostic_dataspace(
|
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/ |
D | GraphicBufferSource.h | 145 status_t setSuspend(bool suspend, int64_t timeUs); 154 status_t setRepeatPreviousFrameDelayUs(int64_t repeatAfterUs); 158 status_t setTimeOffsetUs(int64_t timeOffsetUs); 184 status_t setStartTimeUs(int64_t startTimeUs); 188 status_t setStopTimeUs(int64_t stopTimeUs); 195 status_t getStopTimeOffsetUs(int64_t *stopTimeOffsetUs); 368 int64_t mLastFrameTimestampUs; 377 int64_t mStopTimeUs; 386 int64_t mActionTimeUs; 391 int64_t mLastActionTimeUs; [all …]
|
/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | MediaClockFuzzer.cpp | 39 int64_t startingTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 48 int64_t anchorTimeRealUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 49 int64_t anchorTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 50 int64_t maxTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 56 int64_t maxTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput()
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | AudioPowerUsage.h | 87 bool saveAsItem_l(int32_t device, int64_t duration, int32_t type, double average_vol, 88 int64_t max_volume_duration, double max_volume, 89 int64_t min_volume_duration, double min_volume) 93 bool saveAsItems_l(int32_t device, int64_t duration, int32_t type, double average_vol, 94 int64_t max_volume_duration, double max_volume, 95 int64_t min_volume_duration, double min_volume) 98 const int64_t cur_max_volume_duration_ns, const double cur_max_volume, 99 const int64_t cur_min_volume_duration_ns, const double cur_min_volume, 100 int64_t& f_max_volume_duration_ns, double& f_max_volume, 101 int64_t& f_min_volume_duration_ns, double& f_min_volume); [all …]
|
/frameworks/av/media/libheadtracking/ |
D | ModeSelector.h | 68 int64_t freshnessTimeout = std::numeric_limits<int64_t>::max(); 87 void setScreenToHeadPose(int64_t timestamp, const std::optional<Pose3f>& screenToHead); 94 void setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead); 100 void setScreenStable(int64_t timestamp, bool stable); 105 void calculate(int64_t timestamp); 126 int64_t mScreenToHeadTimestamp; 128 int64_t mWorldToHeadTimestamp; 130 int64_t mScreenStableTimestamp; 138 void calculateActualMode(int64_t timestamp);
|
/frameworks/native/libs/gui/include/gui/ |
D | VsyncEventData.h | 28 static constexpr int64_t kFrameTimelinesLength = 7; 31 int64_t frameInterval; 40 int64_t vsyncId; 44 int64_t deadlineTimestamp; 47 int64_t expectedPresentationTime; 51 int64_t preferredVsyncId() const; 54 int64_t preferredDeadlineTimestamp() const; 57 int64_t preferredExpectedPresentationTime() const;
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicCompositeStream.h | 79 bool* useHeic, bool* useGrid, int64_t* stall, AString* hevcName = nullptr); 96 int64_t timeUs; 102 int64_t timeUs; 134 static const int64_t kNoFrameDropMaxPtsGap = -1000000; 164 int64_t timestamp; 186 bool getNextReadyInputLocked(int64_t *frameNumber /*out*/); 188 int64_t getNextFailingInputLocked(); 190 status_t processInputFrame(int64_t frameNumber, InputFrame &inputFrame); 192 status_t startMuxerForInputFrame(int64_t frameNumber, InputFrame &inputFrame); 193 status_t processAppSegment(int64_t frameNumber, InputFrame &inputFrame); [all …]
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioExampleUtils.h | 31 #define NANOS_PER_MICROSECOND ((int64_t)1000) 110 template <class T = int64_t> 111 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec() 118 int64_t getNanoseconds(clockid_t clockId = CLOCK_MONOTONIC) { 146 template <class T = int64_t> 147 double calculateLatencyMillis(int64_t position1, int64_t nanoseconds1, in calculateLatencyMillis() 148 int64_t position2, int64_t nanoseconds2, in calculateLatencyMillis() 149 int64_t sampleRate) { in calculateLatencyMillis() 150 int64_t deltaFrames = position2 - position1; in calculateLatencyMillis() 151 int64_t deltaTime = in calculateLatencyMillis() [all …]
|