/system/extras/perfprofd/quipper/ |
D | address_mapper.cc | 26 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 …]
|
D | address_mapper.h | 89 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/ |
D | wipe.c | 38 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/ |
D | multi_range_http_fetcher.cc | 73 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/ |
D | MemoryRangeTest.cpp | 37 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/ |
D | UidRanges.cpp | 108 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/ |
D | LeakFolding.cpp | 43 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()
|
D | HeapWalker.h | 78 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()
|
D | LeakFolding.h | 36 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()
|
D | HeapWalker.cpp | 37 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/ |
D | TrimTask.cpp | 125 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()
|
D | secdiscard.cpp | 115 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/ |
D | wipe_blkdev.c | 53 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/ |
D | pm_process.c | 112 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/ |
D | KernelConfigTypedValue.cpp | 79 KernelConfigRangeValue range; in matchValue() local 80 return parseRange(s, &range) && range == mRangeValue; in matchValue()
|
D | HalManifest.cpp | 98 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()
|
D | CompatibilityMatrix.cpp | 51 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/ |
D | nonplat_sepolicy.cil | 1960 …range 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/ |
D | pprof_proto_generator.py | 65 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/ |
D | Benchmark_binder.cpp | 77 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/ |
D | test_http_server.cc | 122 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/ |
D | haltest.py | 34 for slot in range(num_slots): 68 for i in range(num_slots): 90 for i in range(num_slots):
|
/system/extras/perfprofd/ |
D | perf_profile.proto | 29 // [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/ |
D | users | 1 user u roles { r } level s0 range s0 - mls_systemhigh;
|
/system/sepolicy/reqd_mask/ |
D | users | 1 user u roles { r } level s0 range s0 - mls_systemhigh;
|