/system/extras/ext4_utils/ |
H A D | wipe.c | 38 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 D | KernelConfigTypedValue.cpp | 79 KernelConfigRangeValue range; local 80 return parseRange(s, &range) && range == mRangeValue;
|
H A D | MatrixInstance.cpp | 36 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 D | parse_string.cpp | 170 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 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/core/libmemunreachable/ |
H A D | LeakFolding.h | 36 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 D | HeapWalker.cpp | 37 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 D | HeapWalker.h | 30 // 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 D | multi_range_http_fetcher.cc | 73 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 D | utils.cc | 814 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 D | secdiscard.cpp | 115 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 D | IdleMaint.cpp | 166 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 D | Utils.cpp | 567 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 D | HalGroup.h | 58 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 D | NFLogListener.cpp | 82 // 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 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/libvintf/test/ |
H A D | LibVintfTest.cpp | 67 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 D | metadata_model.py | 1139 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 D | test_http_server.cc | 124 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 D | binder_test.cpp | 433 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...] |