/system/extras/ext4_utils/ |
H A D | wipe.c | 37 u64 range[2]; local 45 range[0] = 0; 46 range[1] = len; 47 ret = ioctl(fd, BLKSECDISCARD, &range); 49 range[0] = 0; 50 range[1] = len; 51 ret = ioctl(fd, BLKDISCARD, &range);
|
/system/extras/perfprofd/quipper/ |
H A D | address_mapper.h | 23 // Maps a new address range to quipper space. 25 // collide with the new range in real address space, indicating it has been 85 // Length of unmapped space after this range. 88 // Determines if this range intersects another range in real space. 89 inline bool Intersects(const MappedRange& range) const { 90 return (real_addr <= range.real_addr + range.size - 1) && 91 (real_addr + size - 1 >= range.real_addr); 94 // Determines if this range full [all...] |
H A D | address_mapper.cc | 26 MappedRange range; local 27 range.real_addr = real_addr; 28 range.size = size; 29 range.id = id; 30 range.offset_base = offset_base; 33 LOG(ERROR) << "Must allocate a nonzero-length address range."; 47 // does not result in one range being completely covered by another 53 if (!iter->Intersects(range)) 58 if (!old_range_found && iter->Covers(range) && iter->size > range 67 const MappedRange& range = mappings_to_delete.front(); local 195 Unmap(const MappedRange& range) argument [all...] |
/system/update_engine/common/ |
H A D | multi_range_http_fetcher.cc | 72 Range range = ranges_[current_index_]; local 73 LOG(INFO) << "starting transfer of range " << range.ToString(); 76 base_fetcher_->SetOffset(range.offset()); 77 if (range.HasLength()) 78 base_fetcher_->SetLength(range.length()); 82 delegate_->SeekToOffset(range.offset()); 95 Range range = ranges_[current_index_]; local 96 if (range.HasLength()) { 98 range 134 Range range = ranges_[current_index_]; local [all...] |
/system/netd/server/ |
H A D | UidRanges.cpp | 48 // Found a single UID. The range contains just the one UID. 65 // Not a single uid, not a range. Found some other illegal char. 81 [](const android::net::UidRange& range) { 82 return Range(range.getStart(), range.getStop()); 100 for (Range range : mRanges) { 101 if (range.first != range.second) { 102 StringAppendF(&s, "%u-%u ", range.first, range [all...] |
H A D | RouteController.cpp | 262 // range (inclusive). Otherwise, the rule matches packets from all UIDs. 574 // If this rule does not specify a UID range, then also add a corresponding high-priority rule 778 for (const UidRanges::Range& range : uidRanges.getRanges()) { 782 range.first, range.second)) { 798 for (const UidRanges::Range& range : uidRanges.getRanges()) { 799 if (int ret = modifyVpnUidRangeRule(table, range.first, range.second, secure, add)) { 802 if (int ret = modifyExplicitNetworkRule(netId, table, PERMISSION_NONE, range.first, 803 range [all...] |
/system/core/libmemunreachable/ |
H A D | LeakFolding.h | 31 const Range range; member in struct:LeakFolding::Leak 69 const Range range; member in struct:LeakFolding::LeakInfo 73 LeakInfo(const Range& range, Allocator<LeakInfo> allocator) argument 74 : node(this, allocator), range(range),
|
H A D | HeapWalker.h | 28 // A range [begin, end) 77 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) { argument 108 uintptr_t begin = (range.begin + (sizeof(uintptr_t) - 1)) & ~(sizeof(uintptr_t) - 1); 112 for (uintptr_t i = begin; i < range.end; i += sizeof(uintptr_t)) { 124 const Range& range = it.first; local 126 f(range, allocation);
|
H A D | HeapWalker.cpp | 35 Range range{begin, end}; 36 auto inserted = allocations_.insert(std::pair<Range, AllocationInfo>(range, AllocationInfo{})); 40 allocation_bytes_ += range.size(); 44 if (overlap != range) { 45 ALOGE("range %p-%p overlaps with existing range %p-%p", 55 bool HeapWalker::WordContainsAllocationPtr(uintptr_t word_ptr, Range* range, AllocationInfo** info) { argument 65 *range = it->first; 76 Range range = to_do.back(); local 79 ForEachPtrInRange(range, [ [all...] |
H A D | LeakFolding.cpp | 41 leak_scc->size += node->ptr->range.size(); 77 [&](const Range& range, HeapWalker::AllocationInfo& allocation) { 80 std::forward_as_tuple(range), 81 std::forward_as_tuple(range, allocator_)); 90 heap_walker_.ForEachPtrInRange(leak.range, 120 leak_bytes += leak.range.size(); 126 leaked.emplace_back(Leak{leak.range, 128 leak.scc->cuumulative_size - leak.range.size()});
|
H A D | MemUnreachable.cpp | 161 ssize_t num_backtrace_frames = malloc_backtrace(reinterpret_cast<void*>(it.range.begin), 173 similar_leak->similar_size += it.range.size(); 176 similar_leak->total_size += it.range.size(); 182 leak->begin = it.range.begin; 183 leak->size = it.range.size(); 187 memcpy(leak->contents, reinterpret_cast<void*>(it.range.begin),
|
/system/extras/tests/storage/ |
H A D | wipe_blkdev.c | 53 u64 range[2]; local 57 range[0] = 0; 58 range[1] = len; 65 ret = ioctl(fd, req, &range);
|
/system/vold/ |
H A D | TrimTask.cpp | 126 struct fstrim_range range; local 127 memset(&range, 0, sizeof(range)); 128 range.len = ULLONG_MAX; 131 if (ioctl(fd, (mFlags & Flags::kDeepTrim) ? FIDTRIM : FITRIM, &range)) { 136 LOG(INFO) << "Trimmed " << range.len << " bytes on " << path 138 notifyResult(path, range.len, delta);
|
H A D | secdiscard.cpp | 113 uint64_t range[2]; local 114 range[0] = fiemap->fm_extents[i].fe_physical; 115 range[1] = fiemap->fm_extents[i].fe_length; 116 if (ioctl(fs_fd.get(), BLKSECDISCARD, range) == -1) {
|
/system/connectivity/shill/test-scripts/ |
H A D | veth | 35 --dhcp-range="${base}.2,${base}.254" \
|
/system/extras/libpagemap/ |
H A D | pm_process.c | 112 uint64_t *range; local 128 range = malloc(numpages * sizeof(uint64_t)); 129 if (!range) 135 free(range); 138 error = read(proc->pagemap_fd, (char*)range, numpages * sizeof(uint64_t)); 140 /* EOF, mapping is not in userspace mapping range (probably vectors) */ 142 free(range); 147 free(range); 151 *range_out = range;
|
/system/netd/tests/ |
H A D | binder_test.cpp | 235 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, argument 243 range.getStart(), range.getStop(), action.c_str()); 253 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, argument 255 bool existsIp4 = ipRuleExistsForRange(priority, range, action, IP_RULE_V4); 256 bool existsIp6 = ipRuleExistsForRange(priority, range, action, IP_RULE_V6); 277 for (auto const& range : uidRanges) { 278 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibit")); 285 for (auto const& range : uidRanges) { 286 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibi [all...] |
/system/webservd/libwebserv/ |
H A D | request.cc | 137 auto range = local 139 while (range.first != range.second) { 140 data.push_back(range.first->second); 141 ++range.first;
|
/system/media/camera/docs/ |
H A D | metadata_template.mako | 169 % if prop.range is not None: 170 <range>${prop.range | x}</range>
|
/system/update_engine/payload_consumer/ |
H A D | file_descriptor.cc | 99 uint64_t range[2] = {start, length}; 100 *result = ioctl(fd_, request, range);
|
/system/extras/simpleperf/ |
H A D | report.py | 101 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/netd/server/binder/android/net/ |
H A D | UidRange.h | 27 * C++ implementation of UidRange, a contiguous range of UIDs. 33 UidRange(const UidRange& range) = default; member in class:android::net::UidRange
|
/system/extras/simpleperf/runtest/ |
H A D | runtest.py | 339 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/update_engine/ |
H A D | test_http_server.cc | 122 string &range = terms[1]; local 123 LOG(INFO) << "range attribute: " << range; 124 CHECK(base::StartsWith(range, "bytes=", base::CompareCase::SENSITIVE) && 125 range.find('-') != string::npos); 126 request->start_offset = atoll(range.c_str() + strlen("bytes=")); 128 if (range.find('-') < range.length() - 1) 129 request->end_offset = atoll(range.c_str() + range [all...] |
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
H A D | test_channel.py | 53 string.digits) for _ in range(DEVICE_NAME_LENGTH)) 57 range(DEVICE_ADDRESS_LENGTH))
|