Home
last modified time | relevance | path

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

1234

/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/extras/ext4_utils/
Dwipe.c38 u64 range[2]; in wipe_block_device() local
46 range[0] = 0; in wipe_block_device()
47 range[1] = len; in wipe_block_device()
48 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
50 range[0] = 0; in wipe_block_device()
51 range[1] = len; in wipe_block_device()
52 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
/system/update_engine/common/
Dmulti_range_http_fetcher.cc73 Range range = ranges_[current_index_]; in StartTransfer() local
74 LOG(INFO) << "starting transfer of range " << range.ToString(); in StartTransfer()
77 base_fetcher_->SetOffset(range.offset()); in StartTransfer()
78 if (range.HasLength()) in StartTransfer()
79 base_fetcher_->SetLength(range.length()); in StartTransfer()
83 delegate_->SeekToOffset(range.offset()); in StartTransfer()
96 Range range = ranges_[current_index_]; in ReceivedBytes() local
97 if (range.HasLength()) { in ReceivedBytes()
99 range.length() - bytes_received_this_range_); in ReceivedBytes()
106 if (range.HasLength() && bytes_received_this_range_ >= range.length()) { in ReceivedBytes()
[all …]
/system/core/libunwindstack/tests/
DMemoryRangeTest.cpp37 MemoryRange range(memory, 9001, 9001 + src.size()); in TEST() local
40 ASSERT_TRUE(range.Read(0, dst.data(), src.size())); in TEST()
52 MemoryRange range(memory, 1000, 2024); in TEST() local
55 ASSERT_TRUE(range.Read(1020, dst.data(), 4)); in TEST()
61 ASSERT_FALSE(range.Read(1020, dst.data(), 5)); in TEST()
62 ASSERT_FALSE(range.Read(1024, dst.data(), 1)); in TEST()
63 ASSERT_FALSE(range.Read(1024, dst.data(), 1024)); in TEST()
66 ASSERT_TRUE(range.Read(1020, dst.data(), 4)); in TEST()
/system/netd/server/
DUidRanges.cpp108 for (const auto &range : mRanges) { in toString() local
109 if (range.length() == 0) { in toString()
110 StringAppendF(&s, "<BAD: %u-%u> ", range.getStart(), range.getStop()); in toString()
111 } else if (range.length() == 1) { in toString()
112 StringAppendF(&s, "%u ", range.getStart()); in toString()
114 StringAppendF(&s, "%u-%u ", range.getStart(), range.getStop()); in toString()
/system/core/libmemunreachable/
DLeakFolding.cpp43 leak_scc->size += node->ptr->range.size(); in ComputeDAG()
75 heap_walker_.ForEachAllocation([&](const Range& range, HeapWalker::AllocationInfo& allocation) { in FoldLeaks() argument
77 auto it = leak_map_.emplace(std::piecewise_construct, std::forward_as_tuple(range), in FoldLeaks()
78 std::forward_as_tuple(range, allocator_)); in FoldLeaks()
87 heap_walker_.ForEachPtrInRange(leak.range, in FoldLeaks()
117 leak_bytes += leak.range.size(); in Leaked()
123 leaked.emplace_back(Leak{leak.range, leak.scc->cuumulative_count - 1, in Leaked()
124 leak.scc->cuumulative_size - leak.range.size()}); in Leaked()
DHeapWalker.h78 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.h36 const Range range; member
79 const Range range; member
83 LeakInfo(const Range& range, Allocator<LeakInfo> allocator) in LeakInfo()
84 : node(this, allocator), range(range), scc(nullptr) {} in LeakInfo()
DHeapWalker.cpp37 Range range{begin, end}; in Allocation() local
38 auto inserted = allocations_.insert(std::pair<Range, AllocationInfo>(range, AllocationInfo{})); in Allocation()
42 allocation_bytes_ += range.size(); in Allocation()
46 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()
/system/vold/
DTrimTask.cpp125 struct fstrim_range range; in run() local
126 memset(&range, 0, sizeof(range)); in run()
127 range.len = ULLONG_MAX; in run()
130 if (ioctl(fd, (mFlags & Flags::kDeepTrim) ? FIDTRIM : FITRIM, &range)) { in run()
135 LOG(INFO) << "Trimmed " << range.len << " bytes on " << path in run()
137 notifyResult(path, range.len, delta); in run()
Dsecdiscard.cpp115 uint64_t range[2]; in secdiscard_path() local
116 range[0] = fiemap->fm_extents[i].fe_physical; in secdiscard_path()
117 range[1] = fiemap->fm_extents[i].fe_length; in secdiscard_path()
118 if (ioctl(fs_fd.get(), BLKSECDISCARD, range) == -1) { in secdiscard_path()
120 if (!overwrite_with_zeros(fs_fd.get(), range[0], range[1])) return false; 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/libvintf/
DKernelConfigTypedValue.cpp79 KernelConfigRangeValue range; in matchValue() local
80 return parseRange(s, &range) && range == mRangeValue; in matchValue()
DHalManifest.cpp98 auto range = mHals.equal_range(name); in getHals() local
99 for (auto it = range.first; it != range.second; ++it) { in getHals()
106 auto range = mHals.equal_range(name); in getHals() local
107 for (auto it = range.first; it != range.second; ++it) { in getHals()
314 for (const auto &range : mat.framework.mSepolicy.sepolicyVersions()) { in checkCompatibility() local
315 if (range.supportedBy(device.mSepolicyVersion)) { in checkCompatibility()
380 auto range = getXmlFiles(xmlFileName); in getXmlFilePath() local
381 for (auto it = range.first; it != range.second; ++it) { in getXmlFilePath()
DCompatibilityMatrix.cpp51 auto range = getXmlFiles(xmlFileName); in getXmlSchemaPath() local
52 for (auto it = range.first; it != range.second; ++it) { in getXmlSchemaPath()
/system/sepolicy/prebuilts/api/26.0/
Dnonplat_sepolicy.cil1960range 0x890b 0x890d)) 0x8911 0x8914 0x8916 0x8918 0x891a ((range 0x891c 0x8920)) ((range 0x8922 0x…
1961 …b0c 0x8b0e 0x8b10 ((range 0x8b14 0x8b1d)) 0x8b20 0x8b22 0x8b24 0x8b26 0x8b28 ((range 0x8b2a 0x8b2c…
2065 (allowx domain domain (ioctl tcp_socket (((range 0x5401 0x5403)) 0x540b ((range 0x540e 0x5411)) ((r…
2066 (allowx domain domain (ioctl udp_socket (((range 0x5401 0x5403)) 0x540b ((range 0x540e 0x5411)) ((r…
2067 (allowx domain domain (ioctl rawip_socket (((range 0x5401 0x5403)) 0x540b ((range 0x540e 0x5411)) (…
2068 (allowx domain domain (ioctl tcp_socket (((range 0x8906 0x8907)) 0x8910 ((range 0x8912 0x8913)) 0x8…
2069 (allowx domain domain (ioctl udp_socket (((range 0x8906 0x8907)) 0x8910 ((range 0x8912 0x8913)) 0x8…
2070 (allowx domain domain (ioctl rawip_socket (((range 0x8906 0x8907)) 0x8910 ((range 0x8912 0x8913)) 0…
2071 (allowx domain domain (ioctl tcp_socket (0x8b01 0x8b05 0x8b07 0x8b09 0x8b0b 0x8b0d 0x8b0f ((range 0…
2072 (allowx domain domain (ioctl udp_socket (0x8b01 0x8b05 0x8b07 0x8b09 0x8b0b 0x8b0d 0x8b0f ((range 0…
[all …]
/system/extras/simpleperf/scripts/
Dpprof_proto_generator.py65 for i in range(len(p.sample_type)):
69 for i in range(len(p.sample)):
73 for i in range(len(p.mapping)):
77 for i in range(len(p.location)):
80 for i in range(len(p.function)):
84 for i in range(len(p.string_table)):
93 for i in range(len(p.comment)):
106 for i in range(len(sample.location_id)):
109 for i in range(len(sample.value)):
111 for i in range(len(sample.label)):
[all …]
/system/libhwbinder/vts/performance/
DBenchmark_binder.cpp77 data_vec.resize(state.range(0)); in BM_sendVec_binder()
78 for (int i = 0; i < state.range(0); i++) { in BM_sendVec_binder()
/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/tests/bootloader/
Dhaltest.py34 for slot in range(num_slots):
68 for i in range(num_slots):
90 for i in range(num_slots):
/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/sepolicy/private/
Dusers1 user u roles { r } level s0 range s0 - mls_systemhigh;
/system/sepolicy/reqd_mask/
Dusers1 user u roles { r } level s0 range s0 - mls_systemhigh;

1234