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

/system/extras/ext4_utils/
H A Dwipe.c38 u64 range[2]; local
46 range[0] = 0;
47 range[1] = len;
48 ret = ioctl(fd, BLKSECDISCARD, &range);
50 range[0] = 0;
51 range[1] = len;
52 ret = ioctl(fd, BLKDISCARD, &range);
/system/libvintf/
H A DKernelConfigTypedValue.cpp79 KernelConfigRangeValue range; local
80 return parseRange(s, &range) && range == mRangeValue;
H A DMatrixInstance.cpp36 MatrixInstance::MatrixInstance(FqInstance&& fqInstance, VersionRange&& range, bool optional, argument
39 mRange(std::move(range)),
43 MatrixInstance::MatrixInstance(const FqInstance fqInstance, const VersionRange& range, argument
45 : mFqInstance(fqInstance), mRange(range), mOptional(optional), mIsRegex(isRegex) {}
H A Dparse_string.cpp170 bool parseRange(const std::string &s, KernelConfigRangeValue *range) { argument
175 return parseKernelConfigInt(s.substr(0, pos), &range->first)
176 && parseKernelConfigInt(s.substr(pos + 1), &range->second);
504 // Note that the format is extended to support a range of versions.
505 std::string toFQNameString(const std::string& package, const VersionRange& range, argument
507 return toFQNameString(package, to_string(range), interface, instance);
510 std::string toFQNameString(const VersionRange& range, const std::string& interface, argument
512 return toFQNameString("", range, interface, instance);
/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/core/libmemunreachable/
H A DLeakFolding.h36 const Range range; member in struct:android::LeakFolding::Leak
79 const Range range; member in struct:android::LeakFolding::LeakInfo
83 LeakInfo(const Range& range, Allocator<LeakInfo> allocator) argument
84 : node(this, allocator), range(range), scc(nullptr) {}
H A DHeapWalker.cpp37 Range range{begin, end};
38 auto inserted = allocations_.insert(std::pair<Range, AllocationInfo>(range, AllocationInfo{}));
42 allocation_bytes_ += range.size();
46 if (overlap != range) {
47 MEM_ALOGE("range %p-%p overlaps with existing range %p-%p", reinterpret_cast<void*>(begin),
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.h30 // A range [begin, end)
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) { 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/update_engine/common/
H A Dmulti_range_http_fetcher.cc73 Range range = ranges_[current_index_]; local
74 LOG(INFO) << "starting transfer of range " << range.ToString();
77 base_fetcher_->SetOffset(range.offset());
78 if (range.HasLength())
79 base_fetcher_->SetLength(range.length());
83 delegate_->SeekToOffset(range.offset());
96 Range range = ranges_[current_index_]; local
97 if (range.HasLength()) {
99 range
135 Range range = ranges_[current_index_]; local
[all...]
H A Dutils.cc814 int FuzzInt(int value, unsigned int range) { argument
815 int min = value - range / 2;
816 int max = value + range - range / 2;
907 // we want the enumerations to be in the small contiguous range
/system/vold/
H A Dsecdiscard.cpp115 uint64_t range[2]; local
116 range[0] = fiemap->fm_extents[i].fe_physical;
117 range[1] = fiemap->fm_extents[i].fe_length;
118 if (ioctl(fs_fd.get(), BLKSECDISCARD, range) == -1) {
120 if (!overwrite_with_zeros(fs_fd.get(), range[0], range[1])) return false;
H A DIdleMaint.cpp166 struct fstrim_range range; local
167 memset(&range, 0, sizeof(range));
168 range.len = ULLONG_MAX;
171 if (ioctl(fd, FITRIM, &range)) {
178 LOG(INFO) << "Trimmed " << range.len << " bytes on " << path
180 extras.putLong(String16("bytes"), range.len);
H A DUtils.cpp567 unsigned long long range[2]; local
580 range[0] = 0;
581 range[1] = (unsigned long long) nr_sec * 512;
583 LOG(INFO) << "About to discard " << range[1] << " on " << path;
584 if (ioctl(fd, BLKDISCARD, &range) == 0) {
/system/libvintf/include/vintf/
H A DHalGroup.h58 auto range = mHals.equal_range(name); local
59 for (auto it = range.first; it != range.second; ++it) {
71 auto range = mHals.equal_range(name); local
72 for (auto it = range.first; it != range.second; ++it) {
/system/netd/server/
H A DNFLogListener.cpp82 // range controls maximum bytes to copy
84 Status cfgMode(const SendFn& send, uint16_t nfLogGroup, uint32_t range, uint8_t mode) { argument
100 msg.mode.copy_range = htonl(range);
/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/libvintf/test/
H A DLibVintfTest.cpp67 void addXmlFile(CompatibilityMatrix& cm, std::string name, VersionRange range) { argument
70 f.mVersionRange = range;
81 void set(CompatibilityMatrix &cm, VndkVersionRange &&range, std::set<std::string> &&libs) { argument
82 cm.device.mVndk.mVersionRange = range;
528 "<value type=\"range\">4-20</value>\n");
530 "<value type=\"range\">0-18446744073709551615</value>\n");
532 "<value type=\"range\">0x0-0xffffffffffffffff</value>\n");
628 " <value type=\"range\">3-5</value>\n"
1581 "netutils-wrapper HAL must specify exactly one version x.0, but a range is provided. "
/system/media/camera/docs/
H A Dmetadata_model.py1139 range: A string range, or None.
1184 range: A string with the range of the values of the entry, e.g. '>= 0'
1297 def range(self): member in class:Entry
1395 self._range = kwargs.get('range')
1548 range: A string with the range of the values of the entry, e.g. '>= 0'
1605 props_distinct = ['description', 'units', 'range', 'details',
/system/update_engine/
H A Dtest_http_server.cc124 string &range = terms[1]; local
125 LOG(INFO) << "range attribute: " << range;
126 CHECK(base::StartsWith(range, "bytes=", base::CompareCase::SENSITIVE) &&
127 range.find('-') != string::npos);
128 request->start_offset = atoll(range.c_str() + strlen("bytes="));
130 if (range.find('-') < range.length() - 1)
131 request->end_offset = atoll(range.c_str() + range
[all...]
/system/netd/tests/
H A Dbinder_test.cpp433 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, argument
441 range.getStart(), range.getStop(), action.c_str());
450 static bool ipRuleExistsForRange(const uint32_t priority, const UidRange& range, argument
452 bool existsIp4 = ipRuleExistsForRange(priority, range, action, IP_RULE_V4);
453 bool existsIp6 = ipRuleExistsForRange(priority, range, action, IP_RULE_V6);
517 for (auto const& range : uidRanges) {
518 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibit"));
525 for (auto const& range : uidRanges) {
526 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY, range, "prohibi
[all...]

Completed in 434 milliseconds