Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 5 of 5) sorted by relevance

/system/netd/resolv/
DResolverStats.h53 ssize_t decode(const std::vector<int32_t>& in, ssize_t ofs);
65 size_t ofs = out->size(); in encode() local
66 out->resize(ofs + STATS_COUNT); in encode()
67 int32_t* cur = &(*out)[ofs]; in encode()
78 inline ssize_t ResolverStats::decode(const std::vector<int32_t>& in, ssize_t ofs) { in decode() argument
79 if (ofs < 0 || static_cast<size_t>(ofs) + STATS_COUNT > in.size()) { in decode()
82 const int32_t* cur = &in[ofs]; in decode()
90 return ofs + STATS_COUNT; in decode()
108 ssize_t ofs = 0; in decodeAll() local
110 ofs = s.decode(in, ofs); in decodeAll()
[all …]
Dresolver_test.cpp246 uint32_t ofs = arc4random_uniform(mappings.size()); in RunGetAddrInfoStressTest_Binder() local
247 auto& mapping = mappings[ofs]; in RunGetAddrInfoStressTest_Binder()
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp89 const uint32_t ofs = arc4random_uniform(getMappings().size()); in benchmark() local
90 const auto& mapping = getMappings()[ofs]; in benchmark()
/system/core/fastboot/
Dfastboot_driver.cpp312 std::ofstream ofs; in UploadInner() local
313 ofs.open(outfile, std::ofstream::out | std::ofstream::binary); in UploadInner()
314 if (ofs.fail()) { in UploadInner()
318 ofs.write(data.data(), data.size()); in UploadInner()
319 if (ofs.fail() || ofs.bad()) { in UploadInner()
323 ofs.close(); in UploadInner()
/system/netd/resolv/dns_responder/
Ddns_responder.cpp220 unsigned ofs = *buffer & 0x3F; in parseField() local
224 if (ofs == 0) { in parseField()
228 if (cur + ofs > buffer_end) { in parseField()
232 name.append(cur, ofs); in parseField()
234 return cur + ofs; in parseField()