Home
last modified time | relevance | path

Searched refs:overlapping_rr (Results 1 – 2 of 2) sorted by relevance

/packages/providers/MediaProvider/jni/
DRedactionInfoTest.cpp47 auto overlapping_rr = info.getOverlappingRedactionRanges(/*size*/ 1000, /*off*/ 1000); in TEST() local
48 EXPECT_EQ(0, overlapping_rr->size()); in TEST()
63 auto overlapping_rr = info.getOverlappingRedactionRanges(/*size*/ 1000, /*off*/ 0); in TEST() local
64 EXPECT_EQ(*(createRedactionRangeVector(1, ranges)), *overlapping_rr); in TEST()
66 overlapping_rr = info.getOverlappingRedactionRanges(/*size*/ 5, /*off*/ 0); in TEST()
67 EXPECT_EQ(*(createRedactionRangeVector(1, ranges)), *overlapping_rr); in TEST()
69 overlapping_rr = info.getOverlappingRedactionRanges(/*size*/ 5, /*off*/ 5); in TEST()
70 EXPECT_EQ(*(createRedactionRangeVector(1, ranges)), *overlapping_rr); in TEST()
72 overlapping_rr = info.getOverlappingRedactionRanges(/*size*/ 10, /*off*/ 1); in TEST()
73 EXPECT_EQ(*(createRedactionRangeVector(1, ranges)), *overlapping_rr); in TEST()
[all …]
DFuseDaemon.cpp1090 auto overlapping_rr = h->ri->getOverlappingRedactionRanges(size, off); in do_read_with_redaction() local
1092 if (overlapping_rr->size() <= 0) { in do_read_with_redaction()
1099 int num_bufs = overlapping_rr->size() * 2 + 1; in do_read_with_redaction()
1100 if (overlapping_rr->front().first <= off) { in do_read_with_redaction()
1104 if (overlapping_rr->back().second >= off + size) { in do_read_with_redaction()
1124 overlapping_rr->push_back(RedactionRange(LLONG_MAX, LLONG_MAX - 1)); in do_read_with_redaction()
1128 if (range_contains(overlapping_rr->at(rr_idx), start)) { in do_read_with_redaction()
1132 end = std::min(static_cast<off_t>(off + size - 1), overlapping_rr->at(rr_idx).second); in do_read_with_redaction()
1140 overlapping_rr->at(rr_idx).first - 1); in do_read_with_redaction()