/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);
|
H A D | make_ext4fs.c | 608 char *range, *end_token = NULL; local 609 range = strtok_r(block_range, "-", &end_token); 610 if (!range) { 613 start_block = parse_num(range); 614 range = strtok_r(NULL, "-", &end_token); 615 if (!range) { 618 end_block = parse_num(range);
|
/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/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/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...] |
H A D | utils.cc | 946 int FuzzInt(int value, unsigned int range) { argument 947 int min = value - range / 2; 948 int max = value + range - range / 2; 1039 // we want the enumerations to be in the small contiguous range
|
/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.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 | 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);
|
/system/extras/perfprofd/quipper/ |
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/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) {
|
H A D | Utils.cpp | 521 unsigned long long range[2]; local 534 range[0] = 0; 535 range[1] = (unsigned long long) nr_sec * 512; 537 LOG(INFO) << "About to discard " << range[1] << " on " << path; 538 if (ioctl(fd, BLKDISCARD, &range) == 0) {
|
/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/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/media/camera/docs/ |
H A D | metadata_model.py | 1081 range: A string range, or None. 1119 range: A string with the range of the values of the entry, e.g. '>= 0' 1219 def range(self): member in class:Entry 1287 self._range = kwargs.get('range') 1435 range: A string with the range of the values of the entry, e.g. '>= 0' 1491 props_distinct = ['description', 'units', 'range', 'details',
|
/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...] |