Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 58) sorted by relevance

123

/system/extras/perfprofd/quipper/
Daddress_mapper.cc26 MappedRange range; in MapWithID() local
27 range.real_addr = real_addr; in MapWithID()
28 range.size = size; in MapWithID()
29 range.id = id; in MapWithID()
30 range.offset_base = offset_base; in MapWithID()
53 if (!iter->Intersects(range)) in MapWithID()
58 if (!old_range_found && iter->Covers(range) && iter->size > range.size) { in MapWithID()
67 const MappedRange& range = mappings_to_delete.front(); in MapWithID() local
68 CHECK(Unmap(range)); in MapWithID()
77 uint64_t gap_before = range.real_addr - old_range.real_addr; in MapWithID()
[all …]
Daddress_mapper.h89 inline bool Intersects(const MappedRange& range) const { in Intersects()
90 return (real_addr <= range.real_addr + range.size - 1) && in Intersects()
91 (real_addr + size - 1 >= range.real_addr); in Intersects()
95 inline bool Covers(const MappedRange& range) const { in Covers()
96 return (real_addr <= range.real_addr) && in Covers()
97 (real_addr + size - 1 >= range.real_addr + range.size - 1); in Covers()
102 inline bool Contains(const MappedRange& range) const { in Contains()
103 return (real_addr < range.real_addr) && in Contains()
104 (real_addr + size - 1 > range.real_addr + range.size - 1); in Contains()
118 bool Unmap(const MappedRange& range);
/system/update_engine/common/
Dmulti_range_http_fetcher.cc72 Range range = ranges_[current_index_]; in StartTransfer() local
73 LOG(INFO) << "starting transfer of range " << range.ToString(); in StartTransfer()
76 base_fetcher_->SetOffset(range.offset()); in StartTransfer()
77 if (range.HasLength()) in StartTransfer()
78 base_fetcher_->SetLength(range.length()); in StartTransfer()
82 delegate_->SeekToOffset(range.offset()); in StartTransfer()
95 Range range = ranges_[current_index_]; in ReceivedBytes() local
96 if (range.HasLength()) { in ReceivedBytes()
98 range.length() - bytes_received_this_range_); in ReceivedBytes()
105 if (range.HasLength() && bytes_received_this_range_ >= range.length()) { in ReceivedBytes()
[all …]
/system/extras/ext4_utils/
Dwipe.c37 u64 range[2]; in wipe_block_device() local
45 range[0] = 0; in wipe_block_device()
46 range[1] = len; in wipe_block_device()
47 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
49 range[0] = 0; in wipe_block_device()
50 range[1] = len; in wipe_block_device()
51 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
/system/netd/server/
DUidRanges.cpp81 [](const android::net::UidRange& range) { in UidRanges() argument
82 return Range(range.getStart(), range.getStop()); in UidRanges()
100 for (Range range : mRanges) { in toString() local
101 if (range.first != range.second) { in toString()
102 StringAppendF(&s, "%u-%u ", range.first, range.second); in toString()
104 StringAppendF(&s, "%u ", range.first); in toString()
DRouteController.cpp778 for (const UidRanges::Range& range : uidRanges.getRanges()) { in modifyRejectNonSecureNetworkRule() local
782 range.first, range.second)) { in modifyRejectNonSecureNetworkRule()
798 for (const UidRanges::Range& range : uidRanges.getRanges()) { in modifyVirtualNetwork() local
799 if (int ret = modifyVpnUidRangeRule(table, range.first, range.second, secure, add)) { in modifyVirtualNetwork()
802 if (int ret = modifyExplicitNetworkRule(netId, table, PERMISSION_NONE, range.first, in modifyVirtualNetwork()
803 range.second, add)) { in modifyVirtualNetwork()
806 if (int ret = modifyOutputInterfaceRules(interface, table, PERMISSION_NONE, range.first, in modifyVirtualNetwork()
807 range.second, add)) { in modifyVirtualNetwork()
/system/core/libmemunreachable/
DLeakFolding.cpp41 leak_scc->size += node->ptr->range.size(); in ComputeDAG()
77 [&](const Range& range, HeapWalker::AllocationInfo& allocation) { in FoldLeaks() argument
80 std::forward_as_tuple(range), in FoldLeaks()
81 std::forward_as_tuple(range, allocator_)); in FoldLeaks()
90 heap_walker_.ForEachPtrInRange(leak.range, in FoldLeaks()
120 leak_bytes += leak.range.size(); in Leaked()
126 leaked.emplace_back(Leak{leak.range, in Leaked()
128 leak.scc->cuumulative_size - leak.range.size()}); in Leaked()
DHeapWalker.h77 void ForEachPtrInRange(const Range& range, F&& f);
89 bool WordContainsAllocationPtr(uintptr_t ptr, Range* range, AllocationInfo** info);
107 inline void HeapWalker::ForEachPtrInRange(const Range& range, F&& f) { in ForEachPtrInRange() argument
108 uintptr_t begin = (range.begin + (sizeof(uintptr_t) - 1)) & ~(sizeof(uintptr_t) - 1); in ForEachPtrInRange()
112 for (uintptr_t i = begin; i < range.end; i += sizeof(uintptr_t)) { in ForEachPtrInRange()
124 const Range& range = it.first; in ForEachAllocation() local
126 f(range, allocation); in ForEachAllocation()
DLeakFolding.h31 const Range range; member
69 const Range range; member
73 LeakInfo(const Range& range, Allocator<LeakInfo> allocator) in LeakInfo()
74 : node(this, allocator), range(range), in LeakInfo()
DHeapWalker.cpp35 Range range{begin, end}; in Allocation() local
36 auto inserted = allocations_.insert(std::pair<Range, AllocationInfo>(range, AllocationInfo{})); in Allocation()
40 allocation_bytes_ += range.size(); in Allocation()
44 if (overlap != range) { in Allocation()
55 bool HeapWalker::WordContainsAllocationPtr(uintptr_t word_ptr, Range* range, AllocationInfo** info)… in WordContainsAllocationPtr() argument
65 *range = it->first; in WordContainsAllocationPtr()
76 Range range = to_do.back(); in RecurseRoot() local
79 ForEachPtrInRange(range, [&](Range& ref_range, AllocationInfo* ref_info) { in RecurseRoot()
DMemUnreachable.cpp161 ssize_t num_backtrace_frames = malloc_backtrace(reinterpret_cast<void*>(it.range.begin), in GetUnreachableMemory()
173 similar_leak->similar_size += it.range.size(); in GetUnreachableMemory()
176 similar_leak->total_size += it.range.size(); in GetUnreachableMemory()
182 leak->begin = it.range.begin; in GetUnreachableMemory()
183 leak->size = it.range.size(); in GetUnreachableMemory()
187 memcpy(leak->contents, reinterpret_cast<void*>(it.range.begin), in GetUnreachableMemory()
/system/vold/
DTrimTask.cpp126 struct fstrim_range range; in run() local
127 memset(&range, 0, sizeof(range)); in run()
128 range.len = ULLONG_MAX; in run()
131 if (ioctl(fd, (mFlags & Flags::kDeepTrim) ? FIDTRIM : FITRIM, &range)) { in run()
136 LOG(INFO) << "Trimmed " << range.len << " bytes on " << path in run()
138 notifyResult(path, range.len, delta); in run()
Dsecdiscard.cpp113 uint64_t range[2]; in secdiscard_path() local
114 range[0] = fiemap->fm_extents[i].fe_physical; in secdiscard_path()
115 range[1] = fiemap->fm_extents[i].fe_length; in secdiscard_path()
116 if (ioctl(fs_fd.get(), BLKSECDISCARD, range) == -1) { in secdiscard_path()
/system/extras/tests/storage/
Dwipe_blkdev.c53 u64 range[2]; in wipe_block_device() local
57 range[0] = 0; in wipe_block_device()
58 range[1] = len; in wipe_block_device()
65 ret = ioctl(fd, req, &range); in wipe_block_device()
/system/extras/libpagemap/
Dpm_process.c112 uint64_t *range; in pm_process_pagemap_range() local
128 range = malloc(numpages * sizeof(uint64_t)); in pm_process_pagemap_range()
129 if (!range) in pm_process_pagemap_range()
135 free(range); in pm_process_pagemap_range()
138 error = read(proc->pagemap_fd, (char*)range, numpages * sizeof(uint64_t)); in pm_process_pagemap_range()
142 free(range); in pm_process_pagemap_range()
147 free(range); in pm_process_pagemap_range()
151 *range_out = range; in pm_process_pagemap_range()
/system/netd/tests/
Dbinder_test.cpp235 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, in ipRuleExistsForRange() argument
243 range.getStart(), range.getStop(), action.c_str()); in ipRuleExistsForRange()
253 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, in ipRuleExistsForRange() argument
255 bool existsIp4 = ipRuleExistsForRange(priority, range, action, IP_RULE_V4); in ipRuleExistsForRange()
256 bool existsIp6 = ipRuleExistsForRange(priority, range, action, IP_RULE_V6); in ipRuleExistsForRange()
277 for (auto const& range : uidRanges) { in TEST_F() local
278 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibit")); in TEST_F()
285 for (auto const& range : uidRanges) { in TEST_F() local
286 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibit")); in TEST_F()
/system/webservd/libwebserv/
Drequest.cc137 auto range = in GetHeader() local
139 while (range.first != range.second) { in GetHeader()
140 data.push_back(range.first->second); in GetHeader()
141 ++range.first; in GetHeader()
/system/update_engine/
Dtest_http_server.cc122 string &range = terms[1]; in ParseRequest() local
123 LOG(INFO) << "range attribute: " << range; in ParseRequest()
124 CHECK(base::StartsWith(range, "bytes=", base::CompareCase::SENSITIVE) && in ParseRequest()
125 range.find('-') != string::npos); in ParseRequest()
126 request->start_offset = atoll(range.c_str() + strlen("bytes=")); in ParseRequest()
128 if (range.find('-') < range.length() - 1) in ParseRequest()
129 request->end_offset = atoll(range.c_str() + range.find('-') + 1) + 1; in ParseRequest()
/system/extras/simpleperf/runtest/
Druntest.py339 for i in range(len(lines)):
384 for i in range(len(line)):
400 for i in range(len(vertical_columns)):
440 for i in range(len(test.symbol_overhead_requirements)):
445 for i in range(len(matched)):
462 for i in range(len(test.symbol_children_overhead_requirements)):
471 for i in range(len(matched)):
482 for i in range(len(test.symbol_relation_requirements)):
491 for i in range(len(matched)):
/system/extras/perfprofd/
Dperf_profile.proto29 // [start, end] represents the range of addresses, end->to represents the
30 // taken branch that ends the range.
32 // Start instruction address of a range.
59 // Map from a range triplet (start, end, to) to count.
/system/update_engine/payload_consumer/
Dfile_descriptor.cc99 uint64_t range[2] = {start, length}; in BlkIoctl()
100 *result = ioctl(fd_, request, range); in BlkIoctl()
/system/sepolicy/
Dusers1 user u roles { r } level s0 range s0 - mls_systemhigh;
/system/extras/simpleperf/
Dreport.py101 for i in range(len(line)):
115 for i in range(len(vertical_columns)):
207 for i in range(len(node.call_stack)):
228 for i in range(len(lines)):
/system/media/camera/docs/
Dmetadata_template.mako169 % if prop.range is not None:
170 <range>${prop.range | x}</range>
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dtest_channel.py53 string.digits) for _ in range(DEVICE_NAME_LENGTH))
57 range(DEVICE_ADDRESS_LENGTH))

123