Home
last modified time | relevance | path

Searched refs:RedactionInfo (Results 1 – 10 of 10) sorted by relevance

/packages/providers/MediaProvider/jni/
DRedactionInfoTest.cpp38 RedactionInfo info(0, nullptr); in TEST()
54 RedactionInfo info(1, ranges); in TEST()
109 RedactionInfo info = RedactionInfo(2, ranges); in TEST()
161 RedactionInfo info = RedactionInfo(2, ranges); in TEST()
196 RedactionInfo info = RedactionInfo(3, ranges); in TEST()
238 RedactionInfo info = RedactionInfo(4, ranges); in TEST()
261 RedactionInfo info = RedactionInfo(4, ranges); in TEST()
284 RedactionInfo info = RedactionInfo(4, ranges); in TEST()
297 info = RedactionInfo(5, ranges2); in TEST()
313 RedactionInfo info = RedactionInfo(4, ranges); in TEST()
[all …]
DRedactionInfo.cpp81 bool RedactionInfo::hasOverlapWithReadRequest(size_t size, off64_t off) const { in hasOverlapWithReadRequest()
93 void RedactionInfo::processRedactionRanges(int redaction_ranges_num, in processRedactionRanges()
105 int RedactionInfo::size() const { in size()
109 bool RedactionInfo::isRedactionNeeded() const { in isRedactionNeeded()
113 RedactionInfo::RedactionInfo(int redaction_ranges_num, const off64_t* redaction_ranges) { in RedactionInfo() function in mediaprovider::fuse::RedactionInfo
118 unique_ptr<vector<RedactionRange>> RedactionInfo::getOverlappingRedactionRanges(size_t size, in getOverlappingRedactionRanges()
145 void RedactionInfo::getReadRanges(off64_t off, size_t size, std::vector<ReadRange>* out) const { in getReadRanges()
DMediaProviderWrapper.h42 const RedactionInfo* redaction_info) in FileOpenResult()
48 std::unique_ptr<const RedactionInfo> redaction_info;
99 std::unique_ptr<RedactionInfo> GetRedactionInfo(const std::string& path,
DAndroid.bp36 "RedactionInfo.cpp",
92 "RedactionInfo.cpp",
124 "RedactionInfo.cpp",
DMediaProviderWrapper.cpp326 … return std::make_unique<FileOpenResult>(0, uid, 0 /* transforms_uid */, new RedactionInfo()); in OnFileOpen()
351 std::unique_ptr<RedactionInfo> ri; in OnFileOpen()
355 ri = std::make_unique<RedactionInfo>(redaction_ranges.size() / 2, in OnFileOpen()
359 ri = std::make_unique<RedactionInfo>(); in OnFileOpen()
364 new RedactionInfo()); in OnFileOpen()
Dnode-inl.h45 explicit handle(int fd, const RedactionInfo* ri, bool cached, bool passthrough, uid_t uid, in handle()
57 const std::unique_ptr<const RedactionInfo> ri;
Dnode_test.cpp352 handle* h = new handle(-1, new mediaprovider::fuse::RedactionInfo, true /* cached */, in TEST_F()
364 std::unique_ptr<handle> h2(new handle(-1, new mediaprovider::fuse::RedactionInfo, in TEST_F()
DFuseDaemon.cpp74 using mediaprovider::fuse::RedactionInfo;
1159 uid_t transforms_uid, node* node, const RedactionInfo* ri, in create_handle_for_node()
1858 node, new RedactionInfo(), &keep_cache); in pf_create()
/packages/providers/MediaProvider/jni/include/libfuse_jni/
DRedactionInfo.h45 class RedactionInfo {
61 RedactionInfo(int redaction_ranges_num, const off64_t* redaction_ranges);
65 RedactionInfo() = default;
69 ~RedactionInfo() = default;
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java7520 final RedactionInfo redactionInfo;
7523 : new RedactionInfo(new long[0], new long[0]);
7856 private static final class RedactionInfo {
7859 public RedactionInfo(long[] redactionRanges, long[] freeOffsets) {
7994 public static RedactionInfo getRedactionRanges(File file) throws IOException {
8035 return new RedactionInfo(res.toArray(), freeOffsets.toArray());