Searched defs:mapping (Results 1 - 4 of 4) sorted by relevance

/system/netd/tests/benchmarks/
H A Ddns_benchmark.cpp80 const auto& mapping = getMappings()[ofs]; local
82 if (getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result)) {
/system/core/bootstat/
H A Dbootstat.cpp100 // A mapping from boot reason string, as read from the ro.boot.bootreason
102 // the boot_reason metric may refer to this mapping to discern the histogram
131 auto mapping = kBootReasonMap.find(boot_reason); local
132 if (mapping != kBootReasonMap.end()) {
133 return mapping->second;
306 // This case handles long options which have no single-character mapping.
/system/extras/librank/
H A Dlibrank.c128 struct mapping_info *mapping; local
138 2 * library->mappings_size * sizeof(struct mapping*));
146 mapping = calloc(1, sizeof(*mapping));
147 if (!mapping) {
148 fprintf(stderr, "Couldn't allocate space for mapping struct: %s\n", strerror(errno));
151 mapping->proc = proc;
152 pm_memusage_zero(&mapping->usage);
154 library->mappings[library->mappings_count++] = mapping;
156 return mapping;
[all...]
/system/netd/tests/
H A Dnetd_test.cpp241 auto& mapping = mappings[ofs];
243 int rv = getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result);
247 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6)
248 << "result='" << result_str << "', ip4='" << mapping.ip4
249 << "', ip6='" << mapping.ip6;
331 const Mapping& mapping = mappings[0]; local
335 const hostent* result = gethostbyname(mapping.host.c_str());
337 [this, &mapping](size_t total, auto& d) {
338 return total + GetNumQueriesForType(*d, ns_type::ns_t_a, mapping
[all...]

Completed in 152 milliseconds