Searched refs:ReadRange (Results 1 – 4 of 4) sorted by relevance
/packages/providers/MediaProvider/jni/ |
D | RedactionInfoTest.cpp | 32 std::ostream& operator<<(std::ostream& os, const ReadRange& rr) { in operator <<() 42 std::vector<ReadRange> out; in TEST() 59 std::vector<ReadRange> out; in TEST() 62 EXPECT_EQ(ReadRange(0, 1, false), out[0]); in TEST() 63 EXPECT_EQ(ReadRange(1, 9, true), out[1]); in TEST() 64 EXPECT_EQ(ReadRange(10, 990, false), out[2]); in TEST() 69 EXPECT_EQ(ReadRange(0, 1, false), out[0]); // offsets: [0, 1) len = 1 in TEST() 70 EXPECT_EQ(ReadRange(1, 4, true), out[1]); // offsets: [1, 5) len = 4 in TEST() 75 EXPECT_EQ(ReadRange(1, 9, true), out[0]); // offsets: [1, 10) len = 9 in TEST() 76 EXPECT_EQ(ReadRange(10, 1, false), out[1]); // offsets: [10, 11) len = 1 in TEST() [all …]
|
D | RedactionInfo.cpp | 145 void RedactionInfo::getReadRanges(off64_t off, size_t size, std::vector<ReadRange>* out) const { in getReadRanges() 201 out->push_back(ReadRange(sorted_indices[i], read_size, is_redaction)); in getReadRanges()
|
D | FuseDaemon.cpp | 1354 std::vector<ReadRange> ranges; in do_read_with_redaction() 1376 const ReadRange& range = ranges[i]; in do_read_with_redaction()
|
/packages/providers/MediaProvider/jni/include/libfuse_jni/ |
D | RedactionInfo.h | 32 class ReadRange { 34 ReadRange(off64_t s, size_t l, bool r) : start(s), size(l), is_redaction(r) {} in ReadRange() function 40 bool operator==(const ReadRange& rhs) const { 75 void getReadRanges(off64_t off, size_t size, std::vector<ReadRange>* out) const;
|