Home
last modified time | relevance | path

Searched refs:Ringbuffer (Results 1 – 15 of 15) sorted by relevance

/hardware/qcom/sm8150/display/libhistogram/
Dringbuffer.cpp25 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk… in Ringbuffer() function in histogram::Ringbuffer
32 std::unique_ptr<histogram::Ringbuffer> histogram::Ringbuffer::create( in create()
36 …return std::unique_ptr<histogram::Ringbuffer>(new histogram::Ringbuffer(ringbuffer_size, std::move… in create()
39 void histogram::Ringbuffer::update_cumulative(nsecs_t now, in update_cumulative()
60 void histogram::Ringbuffer::insert(drm_msm_hist const& frame) { in insert()
72 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize()
82 histogram::Ringbuffer::Sample histogram::Ringbuffer::collect_cumulative() const { in collect_cumulative()
84 histogram::Ringbuffer::Sample sample { cumulative_frame_count, cumulative_bins }; in collect_cumulative()
89 histogram::Ringbuffer::Sample histogram::Ringbuffer::collect_ringbuffer_all() const { in collect_ringbuffer_all()
94 histogram::Ringbuffer::Sample histogram::Ringbuffer::collect_after( in collect_after()
[all …]
Dringbuffer.h47 class Ringbuffer
50 … static std::unique_ptr<Ringbuffer> create(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);
60 ~Ringbuffer() = default;
63 Ringbuffer(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);
64 Ringbuffer(Ringbuffer const&) = delete;
65 Ringbuffer& operator=(Ringbuffer const&) = delete;
Dringbuffer_test.cpp53 void insertFrameIncrementTimeline(histogram::Ringbuffer &rb, TickingTimeKeeper &tk, in insertFrameIncrementTimeline()
72 std::unique_ptr<histogram::Ringbuffer> createFilledRingbuffer( in createFilledRingbuffer()
74 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TimeKeeperWrapper>(tk)); in createFilledRingbuffer()
99 EXPECT_THAT(histogram::Ringbuffer::create(0, std::make_unique<TickingTimeKeeper>()), in TEST_F()
104 EXPECT_THAT(histogram::Ringbuffer::create(10, nullptr), Eq(nullptr)); in TEST_F()
108 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TickingTimeKeeper>()); in TEST_F()
118 auto rb = histogram::Ringbuffer::create(numInsertions, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F()
148 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F()
164 auto rb = histogram::Ringbuffer::create(3, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F()
186 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TickingTimeKeeper>()); in TEST_F()
[all …]
Dhistogram_collector.h36 class Ringbuffer; variable
78 std::unique_ptr<histogram::Ringbuffer> histogram;
Dhistogram_collector.cpp46 histogram(histogram::Ringbuffer::create( in HistogramCollector()
152 …histogram = histogram::Ringbuffer::create(max_frames, std::make_unique<histogram::DefaultTimeKeepe… in start()
/hardware/qcom/sm7250/display/libhistogram/
Dringbuffer.cpp28 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) in Ringbuffer() function in histogram::Ringbuffer
33 std::unique_ptr<histogram::Ringbuffer> histogram::Ringbuffer::create( in create()
37 return std::unique_ptr<histogram::Ringbuffer>( in create()
38 new histogram::Ringbuffer(ringbuffer_size, std::move(tk))); in create()
41 void histogram::Ringbuffer::update_cumulative(nsecs_t now, uint64_t &count, in update_cumulative()
65 void histogram::Ringbuffer::insert(drm_msm_hist const &frame) { in insert()
83 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize()
93 histogram::Ringbuffer::Sample histogram::Ringbuffer::collect_cumulative() const { in collect_cumulative()
95 histogram::Ringbuffer::Sample sample{cumulative_frame_count, cumulative_bins}; in collect_cumulative()
100 histogram::Ringbuffer::Sample histogram::Ringbuffer::collect_ringbuffer_all() const { in collect_ringbuffer_all()
[all …]
Dringbuffer.h47 class Ringbuffer {
49 static std::unique_ptr<Ringbuffer> create(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);
59 ~Ringbuffer() = default;
62 Ringbuffer(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);
63 Ringbuffer(Ringbuffer const &) = delete;
64 Ringbuffer &operator=(Ringbuffer const &) = delete;
Dringbuffer_test.cpp53 void insertFrameIncrementTimeline(histogram::Ringbuffer &rb, TickingTimeKeeper &tk, in insertFrameIncrementTimeline()
72 std::unique_ptr<histogram::Ringbuffer> createFilledRingbuffer( in createFilledRingbuffer()
74 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TimeKeeperWrapper>(tk)); in createFilledRingbuffer()
99 EXPECT_THAT(histogram::Ringbuffer::create(0, std::make_unique<TickingTimeKeeper>()), Eq(nullptr)); in TEST_F()
103 EXPECT_THAT(histogram::Ringbuffer::create(10, nullptr), Eq(nullptr)); in TEST_F()
107 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TickingTimeKeeper>()); in TEST_F()
117 auto rb = histogram::Ringbuffer::create(numInsertions, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F()
147 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F()
163 auto rb = histogram::Ringbuffer::create(3, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F()
185 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TickingTimeKeeper>()); in TEST_F()
[all …]
Dhistogram_collector.h36 class Ringbuffer; variable
75 std::unique_ptr<histogram::Ringbuffer> histogram;
Dhistogram_collector.cpp46 : histogram(histogram::Ringbuffer::create(implementation_defined_max_frame_ringbuffer, in HistogramCollector()
148 histogram::Ringbuffer::create(max_frames, std::make_unique<histogram::DefaultTimeKeeper>()); in start()
/hardware/interfaces/wifi/aidl/default/
Dringbuffer.cpp26 Ringbuffer::Ringbuffer(size_t maxSize) : size_(0), maxSize_(maxSize) {} in Ringbuffer() function in aidl::android::hardware::wifi::Ringbuffer
28 enum Ringbuffer::AppendStatus Ringbuffer::append(const std::vector<uint8_t>& input) { in append()
50 const std::list<std::vector<uint8_t>>& Ringbuffer::getData() const { in getData()
54 void Ringbuffer::clear() { in clear()
Dringbuffer.h31 class Ringbuffer {
41 explicit Ringbuffer(size_t maxSize);
Dwifi_chip.cpp1165 std::pair<std::string, Ringbuffer>(ring_name, Ringbuffer(kMaxBufferSizeBytes))); in startLoggingToDebugRingBufferInternal()
1459 Ringbuffer::AppendStatus appendstatus; in registerDebugRingBufferCallback()
1469 Ringbuffer& cur_buffer = target->second; in registerDebugRingBufferCallback()
1477 if (appendstatus == Ringbuffer::AppendStatus::FAIL_RING_BUFFER_CORRUPTED) { in registerDebugRingBufferCallback()
1812 Ringbuffer& cur_buffer = item.second; in writeRingbufferFilesInternal()
Dwifi_chip.h286 std::map<std::string, Ringbuffer> ringbuffer_map_;
/hardware/interfaces/wifi/aidl/default/tests/
Dringbuffer_unit_tests.cpp32 Ringbuffer buffer_{maxBufferSize_};