/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 | 29 OringDurationTracker(const ConfigKey& key, const int64_t& id, 32 bool nesting, int64_t currentBucketStartNs, int64_t currentBucketNum, 33 int64_t startTimeNs, int64_t bucketSizeNs, bool conditionSliced, 39 unique_ptr<DurationTracker> clone(const int64_t eventTime) override; 41 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime, 43 void noteStop(const HashableDimensionKey& key, const int64_t eventTime, 45 void noteStopAll(const int64_t eventTime) override; 47 void onSlicedConditionMayChange(bool overallCondition, const int64_t timestamp) override; 48 void onConditionChanged(bool condition, const int64_t timestamp) override; 51 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/av/media/libaaudio/src/client/ |
D | IsochronousClockModel.cpp | 42 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) { in setPositionAndTime() 48 void IsochronousClockModel::start(int64_t nanoTime) { in start() 54 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() 71 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() 76 int64_t framesDelta = framePosition - mMarkerFramePosition; in processTimestamp() 77 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in processTimestamp() 86 int64_t expectedNanosDelta = convertDeltaPositionToTime(framesDelta); in processTimestamp() 156 int64_t driftingTime = mMarkerNanoTime + expectedNanosDelta + kDriftNanos; in processTimestamp() 189 int64_t IsochronousClockModel::convertDeltaPositionToTime(int64_t framesDelta) const { in convertDeltaPositionToTime() 193 int64_t IsochronousClockModel::convertDeltaTimeToPosition(int64_t nanosDelta) const { in convertDeltaTimeToPosition() [all …]
|
D | IsochronousClockModel.h | 37 void start(int64_t nanoTime); 38 void stop(int64_t nanoTime); 50 void processTimestamp(int64_t framePosition, int64_t nanoTime); 57 void setPositionAndTime(int64_t framePosition, int64_t nanoTime); 80 int64_t convertPositionToTime(int64_t framePosition) const; 89 int64_t convertPositionToLatestTime(int64_t framePosition) const; 97 int64_t convertTimeToPosition(int64_t nanoTime) const; 109 int64_t convertLatestTimeToPosition(int64_t nanoTime) const; 115 int64_t convertDeltaPositionToTime(int64_t framesDelta) const; 121 int64_t convertDeltaTimeToPosition(int64_t nanosDelta) const; [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/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.h | 52 void addPastBucket(std::shared_ptr<DimToValMap> bucket, const int64_t& bucketNum); 58 void addPastBucket(const MetricDimensionKey& key, const int64_t& bucketValue, 59 const int64_t& bucketNum); 64 bool detectAnomaly(const int64_t& currBucketNum, const MetricDimensionKey& key, 65 const int64_t& currentBucketValue); 68 void declareAnomaly(const int64_t& timestampNs, int64_t metricId, const MetricDimensionKey& key, 69 int64_t metricValue); 75 void detectAndDeclareAnomaly(const int64_t& timestampNs, const int64_t& currBucketNum, 76 int64_t metricId, const MetricDimensionKey& key, 77 const int64_t& currentBucketValue); [all …]
|
D | AnomalyTracker.cpp | 61 size_t AnomalyTracker::index(int64_t bucketNum) const { in index() 68 void AnomalyTracker::advanceMostRecentBucketTo(const int64_t& bucketNum) { in advanceMostRecentBucketTo() 86 for (int64_t i = mMostRecentBucketNum + 1; i <= bucketNum; i++) { in advanceMostRecentBucketTo() 95 const int64_t& bucketValue, in addPastBucket() 96 const int64_t& bucketNum) { in addPastBucket() 125 const int64_t& bucketNum) { in addPastBucket() 154 const int64_t& bucketValue) { in subtractValueFromSum() 175 int64_t AnomalyTracker::getPastBucketValue(const MetricDimensionKey& key, in getPastBucketValue() 176 const int64_t& bucketNum) const { in getPastBucketValue() 191 int64_t AnomalyTracker::getSumOverPastBuckets(const MetricDimensionKey& key) const { in getSumOverPastBuckets() [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/base/cmds/statsd/src/metrics/ |
D | MetricProducer.h | 76 MetricProducer(const int64_t& metricId, const ConfigKey& key, const int64_t timeBaseNs, in MetricProducer() 106 virtual void notifyAppUpgrade(const int64_t& eventTimeNs, const string& apk, const int uid, in notifyAppUpgrade() 107 const int64_t version) { in notifyAppUpgrade() 120 void notifyAppRemoved(const int64_t& eventTimeNs, const string& apk, const int uid) { in notifyAppRemoved() 131 void onConditionChanged(const bool condition, const int64_t eventTime) { in onConditionChanged() 136 void onSlicedConditionMayChange(bool overallCondition, const int64_t eventTime) { in onSlicedConditionMayChange() 148 void onDumpReport(const int64_t dumpTimeNs, in onDumpReport() 159 void clearPastBuckets(const int64_t dumpTimeNs) { in clearPastBuckets() 187 int64_t getBuckeSizeInNs() const { in getBuckeSizeInNs() 193 void setBucketSize(int64_t bucketSize) { in setBucketSize() [all …]
|
D | ValueMetricProducer.h | 35 int64_t mBucketStartNs; 36 int64_t mBucketEndNs; 41 int64_t mConditionTrueNs; 57 const int pullTagId, const int64_t timeBaseNs, const int64_t startTimeNs, 64 bool pullSuccess, int64_t originalPullTimeNs) override; 67 void notifyAppUpgrade(const int64_t& eventTimeNs, const string& apk, const int uid, in notifyAppUpgrade() 68 const int64_t version) override { in notifyAppUpgrade() 86 void onDumpReportLocked(const int64_t dumpTimeNs, 92 void clearPastBucketsLocked(const int64_t dumpTimeNs) override; 95 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 …]
|
D | MetricsManager.h | 40 MetricsManager(const ConfigKey& configKey, const StatsdConfig& config, const int64_t timeBaseNs, 41 const int64_t currentTimeNs, const sp<UidMap>& uidMap, 58 const int64_t& timestampNs, 62 const int64_t& timestampNs, 65 void notifyAppUpgrade(const int64_t& eventTimeNs, const string& apk, const int uid, 66 const int64_t version); 68 void notifyAppRemoved(const int64_t& eventTimeNs, const string& apk, const int uid); 70 void onUidMapReceived(const int64_t& eventTimeNs); 82 inline bool isInTtl(const int64_t timestampNs) const { in isInTtl() 98 void refreshTtl(const int64_t currentTimestampNs) { in refreshTtl() [all …]
|
/frameworks/base/cmds/statsd/src/ |
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 …]
|
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 …]
|
/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/base/cmds/statsd/src/logd/ |
D | LogEvent.h | 55 int64_t trainVersionCode; 58 std::vector<int64_t> experimentIds; 85 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs); 88 explicit LogEvent(int32_t tagId, int64_t timestampNs); 91 explicit LogEvent(int32_t tagId, int64_t timestampNs, int32_t uid); 96 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, 99 const std::map<int32_t, int64_t>& long_map, 104 explicit LogEvent(const std::string& trainName, int64_t trainVersionCode, bool requiresStaging, 108 explicit LogEvent(int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, 116 inline int64_t GetLogdTimestampNs() const { return mLogdTimestampNs; } in GetLogdTimestampNs() [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/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( 73 int64_t color_space_agnostic_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 …]
|