/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | DurationTracker.h | 44 int64_t lastStartTime; 46 int64_t lastDuration; 54 int64_t mBucketStartNs; 55 int64_t mBucketEndNs; 56 int64_t mDuration; 61 DurationTracker(const ConfigKey& key, const int64_t& id, const MetricDimensionKey& eventKey, in DurationTracker() 64 int64_t currentBucketStartNs, int64_t currentBucketNum, int64_t startTimeNs, in DurationTracker() 65 int64_t bucketSizeNs, bool conditionSliced, bool fullLink, in DurationTracker() 86 virtual unique_ptr<DurationTracker> clone(const int64_t eventTime) = 0; 89 const int64_t eventTime, const ConditionKey& conditionKey) = 0; [all …]
|
D | MaxDurationTracker.h | 31 MaxDurationTracker(const ConfigKey& key, const int64_t& id, const MetricDimensionKey& eventKey, 34 int64_t currentBucketStartNs, int64_t currentBucketNum, 35 int64_t startTimeNs, int64_t bucketSizeNs, bool conditionSliced, 41 unique_ptr<DurationTracker> clone(const int64_t eventTime) override; 43 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 45 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 47 void noteStopAll(const int64_t eventTime) override; 50 int64_t timestampNs, 53 const int64_t& eventTimeNs, 56 void onSlicedConditionMayChange(bool overallCondition, const int64_t timestamp) override; [all …]
|
D | OringDurationTracker.h | 30 OringDurationTracker(const ConfigKey& key, const int64_t& id, 33 bool nesting, int64_t currentBucketStartNs, int64_t currentBucketNum, 34 int64_t startTimeNs, int64_t bucketSizeNs, bool conditionSliced, 40 unique_ptr<DurationTracker> clone(const int64_t eventTime) override; 42 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 44 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 46 void noteStopAll(const int64_t eventTime) override; 48 void onSlicedConditionMayChange(bool overallCondition, const int64_t timestamp) override; 49 void onConditionChanged(bool condition, const int64_t timestamp) override; 52 const int64_t& eventTimeNs, [all …]
|
/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/libaaudio/src/client/ |
D | IsochronousClockModel.cpp | 43 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) { in setPositionAndTime() 50 void IsochronousClockModel::start(int64_t nanoTime) { in start() 56 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() 71 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() 75 int64_t framesDelta = framePosition - mMarkerFramePosition; in processTimestamp() 76 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in processTimestamp() 85 int64_t expectedNanosDelta = convertDeltaPositionToTime(framesDelta); in processTimestamp() 142 int64_t nanosLate = convertDeltaPositionToTime(mFramesPerBurst); // uses mSampleRate in update() 146 int64_t IsochronousClockModel::convertDeltaPositionToTime(int64_t framesDelta) const { in convertDeltaPositionToTime() 150 int64_t IsochronousClockModel::convertDeltaTimeToPosition(int64_t nanosDelta) const { in convertDeltaTimeToPosition() [all …]
|
D | IsochronousClockModel.h | 36 void start(int64_t nanoTime); 37 void stop(int64_t nanoTime); 49 void processTimestamp(int64_t framePosition, int64_t nanoTime); 56 void setPositionAndTime(int64_t framePosition, int64_t nanoTime); 79 int64_t convertPositionToTime(int64_t framePosition) const; 87 int64_t convertTimeToPosition(int64_t nanoTime) const; 93 int64_t convertDeltaPositionToTime(int64_t framesDelta) const; 99 int64_t convertDeltaTimeToPosition(int64_t nanosDelta) const; 111 int64_t mMarkerFramePosition; 112 int64_t mMarkerNanoTime;
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.h | 54 void addPastBucket(std::shared_ptr<DimToValMap> bucket, const int64_t& bucketNum); 60 void addPastBucket(const MetricDimensionKey& key, const int64_t& bucketValue, 61 const int64_t& bucketNum); 66 bool detectAnomaly(const int64_t& currBucketNum, const MetricDimensionKey& key, 67 const int64_t& currentBucketValue); 70 void declareAnomaly(const int64_t& timestampNs, int64_t metricId, const MetricDimensionKey& key, 71 int64_t metricValue); 77 void detectAndDeclareAnomaly(const int64_t& timestampNs, const int64_t& currBucketNum, 78 int64_t metricId, const MetricDimensionKey& key, 79 const int64_t& currentBucketValue); [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricProducer.h | 78 MetricProducer(const int64_t& metricId, const ConfigKey& key, const int64_t timeBaseNs, in MetricProducer() 108 void notifyAppUpgrade(const int64_t& eventTimeNs, const string& apk, const int uid, in notifyAppUpgrade() 109 const int64_t version) override { in notifyAppUpgrade() 122 void notifyAppRemoved(const int64_t& eventTimeNs, const string& apk, const int uid) override{ in notifyAppRemoved() 127 void onUidMapReceived(const int64_t& eventTimeNs) override{ in onUidMapReceived() 138 void onConditionChanged(const bool condition, const int64_t eventTime) { in onConditionChanged() 143 void onSlicedConditionMayChange(bool overallCondition, const int64_t eventTime) { in onSlicedConditionMayChange() 155 void onDumpReport(const int64_t dumpTimeNs, in onDumpReport() 166 void clearPastBuckets(const int64_t dumpTimeNs) { in clearPastBuckets() 194 int64_t getBuckeSizeInNs() const { in getBuckeSizeInNs() [all …]
|
D | ValueMetricProducer.h | 37 int64_t mBucketStartNs; 38 int64_t mBucketEndNs; 43 int64_t mConditionTrueNs; 59 const int pullTagId, const int64_t timeBaseNs, const int64_t startTimeNs, 66 bool pullSuccess, int64_t originalPullTimeNs) override; 69 void notifyAppUpgrade(const int64_t& eventTimeNs, const string& apk, const int uid, in notifyAppUpgrade() 70 const int64_t version) override { in notifyAppUpgrade() 88 void onDumpReportLocked(const int64_t dumpTimeNs, 94 void clearPastBucketsLocked(const int64_t dumpTimeNs) override; 97 void onActiveStateChangedLocked(const int64_t& eventTimeNs) override; [all …]
|
D | GaugeMetricProducer.h | 37 GaugeAtom(std::shared_ptr<vector<FieldValue>> fields, int64_t elapsedTimeNs) in GaugeAtom() 41 int64_t mElapsedTimestamps; 45 int64_t mBucketStartNs; 46 int64_t mBucketEndNs; 64 const int64_t timeBaseNs, const int64_t startTimeNs, 71 bool pullSuccess, int64_t originalPullTimeNs) override; 74 void notifyAppUpgrade(const int64_t& eventTimeNs, const string& apk, const int uid, in notifyAppUpgrade() 75 const int64_t version) override { in notifyAppUpgrade() 98 void onDumpReportLocked(const int64_t dumpTimeNs, 104 void clearPastBucketsLocked(const int64_t dumpTimeNs) override; [all …]
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.h | 35 int64_t id; 55 std::list<int64_t> data_drop_bytes; 56 std::list<std::pair<int32_t, int64_t>> dump_report_stats; 59 std::map<const int64_t, int> matcher_stats; 64 std::map<const int64_t, int> condition_stats; 69 std::map<const int64_t, int> metric_stats; 75 std::map<const int64_t, int> metric_dimension_in_condition_stats; 79 std::map<const int64_t, int> alert_stats; 82 std::list<std::pair<const int64_t, const int32_t>> annotations; 138 static const int64_t kMinBroadcastPeriodNs = 60 * NS_PER_SEC; [all …]
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
D | NuPlayer2Driver.h | 36 virtual status_t playNextDataSource(int64_t srcId) override; 53 int64_t msec, 55 virtual status_t getCurrentPosition(int64_t *msec) override; 56 virtual status_t getDuration(int64_t *msec) override; 58 virtual status_t notifyAt(int64_t mediaTimeUs) override; 70 void notifySetDataSourceCompleted(int64_t srcId, status_t err); 71 void notifyPrepareCompleted(int64_t srcId, status_t err); 72 void notifyResetComplete(int64_t srcId); 73 void notifySetSurfaceComplete(int64_t srcId); 74 void notifyDuration(int64_t srcId, int64_t durationUs); [all …]
|
D | NuPlayer2Renderer.h | 74 status_t getCurrentPosition(int64_t *mediaUs); 75 int64_t getVideoLateByUs(); 151 static const int64_t kMinPositionUpdateDelayUs; 177 int64_t mAudioFirstAnchorTimeMediaUs; 178 int64_t mAnchorTimeMediaUs; 179 int64_t mAnchorNumFramesWritten; 180 int64_t mVideoLateByUs; 181 int64_t mNextVideoTimeMediaUs; 192 int64_t mPauseDrainAudioAllowedUs; // time when we can drain/deliver audio in pause mode. 200 int64_t mNextAudioClockUpdateTimeUs; [all …]
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEvent.h | 60 int64_t trainVersionCode; 63 std::vector<int64_t> experimentIds; 90 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs); 93 explicit LogEvent(int32_t tagId, int64_t timestampNs); 96 explicit LogEvent(int32_t tagId, int64_t timestampNs, int32_t uid); 101 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, 104 const std::map<int32_t, int64_t>& long_map, 109 explicit LogEvent(const std::string& trainName, int64_t trainVersionCode, bool requiresStaging, 113 explicit LogEvent(int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, 116 explicit LogEvent(int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, [all …]
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 48 const int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL; 61 int64_t bucketStartTimeNs = 10000000000; in TEST() 62 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() 63 int64_t bucketNum = 0; in TEST() 65 int64_t metricId = 1; in TEST() 96 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL; in TEST() 97 int64_t bucketStartTimeNs = 10000000000; in TEST() 98 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() 99 int64_t bucketNum = 0; in TEST() 101 int64_t metricId = 1; in TEST() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerRenderer.h | 72 status_t getCurrentPosition(int64_t *mediaUs); 73 int64_t getVideoLateByUs(); 149 static const int64_t kMinPositionUpdateDelayUs; 176 int64_t mAudioFirstAnchorTimeMediaUs; 177 int64_t mAnchorTimeMediaUs; 178 int64_t mAnchorNumFramesWritten; 179 int64_t mVideoLateByUs; 180 int64_t mNextVideoTimeMediaUs; 191 int64_t mPauseDrainAudioAllowedUs; // time when we can drain/deliver audio in pause mode. 199 int64_t mNextAudioClockUpdateTimeUs; [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 …]
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.h | 45 int64_t TimeUnitToBucketSizeInMillisGuardrailed(int uid, TimeUnit unit); 48 int64_t TimeUnitToBucketSizeInMillis(TimeUnit unit); 51 int64_t getElapsedRealtimeNs(); 54 int64_t getElapsedRealtimeMillis(); 57 int64_t getElapsedRealtimeSec(); 60 int64_t getWallClockNs(); 63 int64_t getWallClockMillis(); 66 int64_t getWallClockSec(); 68 int64_t NanoToMillis(const int64_t nano); 70 int64_t MillisToNano(const int64_t millis); [all …]
|
D | StatsLogProcessor.h | 40 const int64_t timeBaseNs, 43 const vector<int64_t>&)>& sendActivationBroadcast); 48 void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 54 void GetActiveConfigs(const int uid, vector<int64_t>& outActiveConfigs); 56 void onDumpReport(const ConfigKey& key, const int64_t dumpTimeNs, 61 void onDumpReport(const ConfigKey& key, const int64_t dumpTimeNs, 69 const int64_t& timestampNs, 74 const int64_t& timestampNs, 82 void SaveActiveConfigsToDisk(int64_t currentTimeNs); 86 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto); [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); 46 int64_t present_time_offset_from_vsync_ns(int64_t defaultValue); 50 int64_t max_virtual_display_dimension(int64_t defaultValue); 61 int64_t default_composition_dataspace( 67 int64_t wcg_composition_dataspace(
|
/frameworks/base/libs/hwui/ |
D | FrameInfo.h | 72 explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { in UiFrameInfoBuilder() 73 memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); in UiFrameInfoBuilder() 94 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set() 96 int64_t* mBuffer; 101 void importUiThreadInfo(int64_t* info); 117 const int64_t* data() const { return mFrameInfo; } in data() 119 inline int64_t operator[](FrameInfoIndex index) const { return get(index); } 121 inline int64_t operator[](int index) const { 126 inline int64_t duration(FrameInfoIndex start, FrameInfoIndex end) const { in duration() 127 int64_t endtime = get(end); in duration() [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 …]
|