Home
last modified time | relevance | path

Searched refs:ranges (Results 1 – 12 of 12) sorted by relevance

/system/update_engine/payload_generator/
Dextent_ranges_unittest.cc34 void ExpectRangeEq(const ExtentRanges& ranges, in ExpectRangeEq() argument
42 EXPECT_EQ(blocks, ranges.blocks()) << "line: " << line; in ExpectRangeEq()
44 const ExtentRanges::ExtentSet& result = ranges.extent_set(); in ExpectRangeEq()
54 #define EXPECT_RANGE_EQ(ranges, var) \ argument
56 ExpectRangeEq(ranges, var, arraysize(var), __LINE__); \
125 ExtentRanges ranges; in TEST() local
129 ExpectRangeEq(ranges, expected, 0, __LINE__); in TEST()
131 ranges.SubtractBlock(2); in TEST()
135 ExpectRangeEq(ranges, expected, 0, __LINE__); in TEST()
138 ranges.AddBlock(0); in TEST()
[all …]
Dextent_ranges.h63 void AddRanges(const ExtentRanges& ranges);
64 void SubtractRanges(const ExtentRanges& ranges);
93 const ExtentRanges& ranges);
Dextent_ranges.cc158 void ExtentRanges::AddRanges(const ExtentRanges& ranges) { in AddRanges() argument
159 for (ExtentSet::const_iterator it = ranges.extent_set_.begin(), in AddRanges()
160 e = ranges.extent_set_.end(); in AddRanges()
167 void ExtentRanges::SubtractRanges(const ExtentRanges& ranges) { in SubtractRanges() argument
168 for (ExtentSet::const_iterator it = ranges.extent_set_.begin(), in SubtractRanges()
169 e = ranges.extent_set_.end(); in SubtractRanges()
277 const ExtentRanges& ranges) { in FilterExtentRanges() argument
279 const ExtentRanges::ExtentSet& extent_set = ranges.extent_set(); in FilterExtentRanges()
Dinplace_generator.cc388 ExtentRanges ranges; in AssignBlockForAdjoiningCuts() local
389 ranges.AddRepeatedExtents((*graph)[test_node].aop.op.dst_extents()); in AssignBlockForAdjoiningCuts()
390 ranges.SubtractExtent( in AssignBlockForAdjoiningCuts()
392 ranges.SubtractRepeatedExtents((*graph)[test_node].aop.op.src_extents()); in AssignBlockForAdjoiningCuts()
400 ranges.SubtractExtents(edge_i->second.extents); in AssignBlockForAdjoiningCuts()
404 if (ranges.ContainsBlock(0)) { in AssignBlockForAdjoiningCuts()
407 ranges.SubtractBlock(0); in AssignBlockForAdjoiningCuts()
410 if (ranges.blocks() == 0) in AssignBlockForAdjoiningCuts()
413 if (ranges.blocks() + scratch_blocks_found > blocks_needed) { in AssignBlockForAdjoiningCuts()
416 ranges.GetExtentsForBlockCount(blocks_needed - scratch_blocks_found); in AssignBlockForAdjoiningCuts()
[all …]
Dext2_filesystem.cc322 ExtentRanges ranges; in GetFiles() local
323 ranges.AddExtents(file.extents); in GetFiles()
324 file.extents = ranges.GetExtentsForBlockCount(ranges.blocks()); in GetFiles()
/system/update_engine/common/
Dhttp_fetcher_unittest.cc1125 const vector<pair<off_t, off_t>>& ranges, in MultiTest() argument
1136 for (vector<pair<off_t, off_t>>::const_iterator it = ranges.begin(), in MultiTest()
1137 e = ranges.end(); in MultiTest()
1170 vector<pair<off_t, off_t>> ranges; in TYPED_TEST() local
1171 ranges.push_back(make_pair(0, 25)); in TYPED_TEST()
1172 ranges.push_back(make_pair(99, 17)); in TYPED_TEST()
1176 ranges, in TYPED_TEST()
1190 vector<pair<off_t, off_t>> ranges; in TYPED_TEST() local
1191 ranges.push_back(make_pair(0, 25)); in TYPED_TEST()
1192 ranges.push_back(make_pair(99, 0)); in TYPED_TEST()
[all …]
/system/core/libunwindstack/
DMapInfo.cpp183 MemoryRanges* ranges = new MemoryRanges; in CreateMemory() local
184 ranges->Insert( in CreateMemory()
186 ranges->Insert(new MemoryRange(process_memory, start, end - start, elf_offset)); in CreateMemory()
189 return ranges; in CreateMemory()
/system/netd/server/
DUidRanges.h32 UidRanges(const std::vector<android::net::UidRangeParcel>& ranges);
DUidRanges.cpp114 UidRanges::UidRanges(const std::vector<UidRangeParcel>& ranges) { in UidRanges() argument
115 mRanges = ranges; in UidRanges()
/system/sepolicy/prebuilts/api/29.0/private/
Dgsid.te81 # lp_metadata - LpMetadata blob describing the block ranges on userdata
/system/sepolicy/private/
Dgsid.te81 # lp_metadata - LpMetadata blob describing the block ranges on userdata
/system/extras/simpleperf/
DAndroid.bp426 // It's linked to user's program, to get profile counters and samples for specific code ranges.