Home
last modified time | relevance | path

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

/system/netd/server/
DResolverStats.h53 ssize_t decode(const std::vector<int32_t>& in, ssize_t ofs);
66 size_t ofs = out->size(); in encode() local
67 out->resize(ofs + STATS_COUNT); in encode()
68 int32_t* cur = &(*out)[ofs]; in encode()
79 inline ssize_t ResolverStats::decode(const std::vector<int32_t>& in, ssize_t ofs) { in decode() argument
80 if (ofs < 0 || static_cast<size_t>(ofs) + STATS_COUNT > in.size()) { in decode()
83 const int32_t* cur = &in[ofs]; in decode()
91 return ofs + STATS_COUNT; in decode()
109 ssize_t ofs = 0; in decodeAll() local
111 ofs = s.decode(in, ofs); in decodeAll()
[all …]
/system/netd/tests/
Ddns_responder.cpp206 unsigned ofs = *buffer & 0x3F; in parseField() local
210 if (ofs == 0) { in parseField()
214 if (cur + ofs > buffer_end) { in parseField()
218 name.append(cur, ofs); in parseField()
220 return cur + ofs; in parseField()
Dnetd_test.cpp382 uint32_t ofs = arc4random_uniform(mappings.size()); in RunGetAddrInfoStressTest_Binder() local
383 ASSERT_TRUE(ofs < mappings.size()); in RunGetAddrInfoStressTest_Binder()