Searched defs:range (Results 1 - 18 of 18) sorted by relevance

/system/extras/ext4_utils/
H A Dwipe.c37 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 Dmake_ext4fs.c608 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 DUidRange.h27 * 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 Dwipe_blkdev.c53 u64 range[2]; local
57 range[0] = 0;
58 range[1] = len;
65 ret = ioctl(fd, req, &range);
/system/update_engine/common/
H A Dmulti_range_http_fetcher.cc72 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 Dutils.cc969 int FuzzInt(int value, unsigned int range) { argument
970 int min = value - range / 2;
971 int max = value + range - range / 2;
1062 // we want the enumerations to be in the small contiguous range
/system/core/libmemunreachable/
H A DLeakFolding.h31 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 DHeapWalker.cpp35 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 DHeapWalker.h28 // 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 Daddress_mapper.cc26 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 DTrimTask.cpp126 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 Dsecdiscard.cpp116 uint64_t range[2]; local
117 range[0] = fiemap->fm_extents[i].fe_physical;
118 range[1] = fiemap->fm_extents[i].fe_length;
119 if (ioctl(fs_fd.get(), BLKSECDISCARD, range) == -1) {
121 if (!overwrite_with_zeros(fs_fd.get(), range[0], range[1])) return false;
H A DUtils.cpp521 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 Drequest.cc137 auto range = local
139 while (range.first != range.second) {
140 data.push_back(range.first->second);
141 ++range.first;
/system/extras/libpagemap/
H A Dpm_process.c112 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/media/camera/docs/
H A Dmetadata_model.py1081 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/netd/tests/
H A Dbinder_test.cpp271 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, argument
279 range.getStart(), range.getStop(), action.c_str());
289 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, argument
291 bool existsIp4 = ipRuleExistsForRange(priority, range, action, IP_RULE_V4);
292 bool existsIp6 = ipRuleExistsForRange(priority, range, action, IP_RULE_V6);
313 for (auto const& range : uidRanges) {
314 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibit"));
321 for (auto const& range : uidRanges) {
322 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibi
[all...]
/system/update_engine/
H A Dtest_http_server.cc122 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...]

Completed in 499 milliseconds