Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 18 of 18) sorted by relevance

/packages/modules/DnsResolver/
Dsethostent.cpp69 struct hostent *hp, hent; in _hf_gethtbyname2() local
95 info->hp->h_addrtype = af; in _hf_gethtbyname2()
96 info->hp->h_length = 0; in _hf_gethtbyname2()
99 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2()
100 if (hp == NULL) { in _hf_gethtbyname2()
107 if (strcasecmp(hp->h_name, name) != 0) { in _hf_gethtbyname2()
109 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()
116 hent.h_addrtype = hp->h_addrtype; in _hf_gethtbyname2()
117 hent.h_length = hp->h_length; in _hf_gethtbyname2()
119 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2()
[all …]
Dgethnamaddr.cpp107 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep,
108 const std::function<void(struct hostent* hp)>& mapping_param,
110 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep);
130 const HEADER* hp; in getanswer() local
168 hp = &answer->hdr; in getanswer()
169 ancount = ntohs(hp->ancount); in getanswer()
170 qdcount = ntohs(hp->qdcount); in getanswer()
388 int resolv_gethostbyname(const char* name, int af, hostent* hp, char* buf, size_t buflen, in resolv_gethostbyname() argument
391 if (name == nullptr || hp == nullptr) { in resolv_gethostbyname()
411 hp->h_addrtype = af; in resolv_gethostbyname()
[all …]
DDnsProxyListener.cpp195 int extractGetHostByNameAnswers(const hostent* hp, std::vector<std::string>* ip_addrs) { in extractGetHostByNameAnswers() argument
197 if (hp == nullptr) { in extractGetHostByNameAnswers()
200 if (hp->h_addrtype == AF_INET) { in extractGetHostByNameAnswers()
201 in_addr** list = (in_addr**)hp->h_addr_list; in extractGetHostByNameAnswers()
207 } else if (hp->h_addrtype == AF_INET6) { in extractGetHostByNameAnswers()
208 in6_addr** list = (in6_addr**)hp->h_addr_list; in extractGetHostByNameAnswers()
258 auto hp = reinterpret_cast<HEADER*>(msg); in setQueryId() local
259 hp->id = htons(query_id); in setQueryId()
417 bool onlyNonSpecialUseIPv4Addresses(struct hostent* hp) { in onlyNonSpecialUseIPv4Addresses() argument
420 if (hp->h_addrtype != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses()
[all …]
Dres_mkquery.cpp108 HEADER* hp; in res_nmkquery() local
121 hp = (HEADER*) (void*) buf; in res_nmkquery()
122 hp->id = htons(arc4random_uniform(65536)); in res_nmkquery()
123 hp->opcode = op; in res_nmkquery()
124 hp->rd = true; in res_nmkquery()
125 hp->ad = (netcontext_flags & NET_CONTEXT_FLAG_USE_DNS_OVER_TLS) != 0U; in res_nmkquery()
126 hp->rcode = NOERROR; in res_nmkquery()
147 hp->qdcount = htons(1); in res_nmkquery()
164 hp->arcount = htons(1); in res_nmkquery()
185 hp->ancount = htons(1); in res_nmkquery()
[all …]
Dres_query.cpp110 HEADER* hp = (HEADER*) (void*) answer; in res_nquery() local
116 hp->rcode = NOERROR; // default in res_nquery()
171 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
172 LOG(DEBUG) << __func__ << ": rcode = (" << p_rcode(hp->rcode) in res_nquery()
173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
174 << " ar:" << ntohs(hp->arcount); in res_nquery()
176 switch (hp->rcode) { in res_nquery()
212 HEADER* hp = (HEADER*) (void*) answer; in res_nsearch() local
287 if (hp->rcode == SERVFAIL) { in res_nsearch()
Dgetaddrinfo.cpp847 const HEADER* hp; in getanswer() local
878 hp = reinterpret_cast<const HEADER*>(answer.data()); in getanswer()
879 ancount = ntohs(hp->ancount); in getanswer()
880 qdcount = ntohs(hp->qdcount); in getanswer()
1612 HEADER* hp = (HEADER*)(void*)t->answer.data(); in doQuery() local
1614 hp->rcode = NOERROR; // default in doQuery()
1648 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in doQuery()
1650 if (rcode != RCODE_TIMEOUT) rcode = hp->rcode; in doQuery()
1662 LOG(DEBUG) << __func__ << ": rcode=" << hp->rcode << ", ancount=" << ntohs(hp->ancount); in doQuery()
1666 .ancount = ntohs(hp->ancount), in doQuery()
[all …]
Dgethnamaddr.h31 int resolv_gethostbyname(const char* name, int af, hostent* hp, char* buf, size_t buflen,
36 int resolv_gethostbyaddr(const void* addr, socklen_t len, int af, hostent* hp, char* buf,
Dres_send.cpp438 HEADER* hp = (HEADER*)(void*)ans; in res_nsend() local
439 *rcode = hp->rcode; in res_nsend()
507 auto hp = reinterpret_cast<const HEADER*>(buf); in res_nsend() local
510 int selectedServer = (hp->id % usableServersCount) + 1; in res_nsend()
660 const HEADER* hp = (const HEADER*) (const void*) buf; in send_vc() local
849 if (hp->id != anhp->id) { in send_vc()
980 const HEADER* hp = (const HEADER*)(const void*)buf; in ignoreInvalidAnswer() local
982 if (hp->id != anhp->id) { in ignoreInvalidAnswer()
Dhostent.h37 struct hostent* hp; member
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java89 public static int addValueToLogHistogram(long x, SparseIntArray histogram, LogHistParms hp) { in addValueToLogHistogram() argument
90 double logArg = (double) (x - hp.b) / (double) hp.p; in addValueToLogHistogram()
93 bigBucketIndex = (int) (Math.log(logArg) / hp.mLog); in addValueToLogHistogram()
99 } else if (bigBucketIndex >= hp.n) { in addValueToLogHistogram()
100 bigBucketIndex = hp.n - 1; in addValueToLogHistogram()
101 subBucketIndex = hp.s - 1; in addValueToLogHistogram()
103 subBucketIndex = (int) ((x - hp.bb[bigBucketIndex]) / hp.sbw[bigBucketIndex]); in addValueToLogHistogram()
104 if (subBucketIndex >= hp.s) { // probably a rounding error so move to next big bucket in addValueToLogHistogram()
106 if (bigBucketIndex >= hp.n) { in addValueToLogHistogram()
107 bigBucketIndex = hp.n - 1; in addValueToLogHistogram()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp1249 hostent* hp = nullptr; in TEST_F() local
1254 &mNetcontext, &hp, &event); in TEST_F()
1258 EXPECT_TRUE(hp != nullptr); in TEST_F()
1260 EXPECT_EQ(config.expected_addr, ToString(hp)); in TEST_F()
1293 struct hostent* hp = nullptr; in TEST_F() local
1298 &mNetcontext, &hp, &event); in TEST_F()
1299 EXPECT_EQ(nullptr, hp); in TEST_F()
1315 hostent* hp = nullptr; in TEST_F() local
1320 &hp, &event); in TEST_F()
1322 EXPECT_EQ(nullptr, hp); in TEST_F()
[all …]
Dresolv_gold_test.cpp211 hostent* hp = nullptr; in VerifyGetHostByName() local
217 sizeof(tmpbuf), &netcontext, &hp, &event); in VerifyGetHostByName()
219 VerifyAddress(goldtest, hp); in VerifyGetHostByName()
Dresolv_integration_test.cpp2784 auto hp = reinterpret_cast<HEADER*>(buf); in TEST_F() local
2785 EXPECT_EQ(21862U, htons(hp->id)); in TEST_F()
2813 EXPECT_EQ(0x0053U, htons(hp->id)); in TEST_F()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java190 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { in bucketValueAndVerify() argument
191 MetricsUtils.addValueToLogHistogram(value, h, hp); in bucketValueAndVerify()
195 private void bucketValueAndVerify(String prefix, int value, SparseIntArray h, int[] hp, in bucketValueAndVerify() argument
197 MetricsUtils.addValueToLinearHistogram(value, h, hp); in bucketValueAndVerify()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar108 …D�q��u�p���F�R�7F�TJ������y�zIw��f �� �V_{%���S(�Y��p)eU���)�%���Dxܒhp�\��-�֦=�;¦[�n���=�z…
7297 9 �J���?����c�<1K�f�:�^�]A�,T�S �ۊ�3���^hp̽�>ƕ�;�;�z�FM���Rո�A�)�a�D)�a��1V�>�h\����…
8104 …�i��A�`��:�+��z��%6<TG��r��g+)$1 ��֥��\y� �JS��'�����[��ؠ�R�f�hp�F�ݽ)ѶϜ���֛���zҾ�l…
9063 h�ť�H��p"��e��C�T��,��<��W#�/�}vu �b;�c?�i�ON��,�ܜ�]�X?��{U��e}8�$�I�$q�{}*� hp�v���B��r��!��`…
9668 B�#�Kn/T^�hp�7����� 4����[�V*�g9��w�u�2�0�� >@��2�3�NGZ��+�7��Z��bK�]��c�R7�H�g<}�Gz�g�6…
10593 …[����گxk�&�Qo,^)J��B8� ���+���� uE �x��;�v��ۨ�F��^�����h�|��� �A��hp��"i-W7�_^���Wk��3��…
10686 60;@�l��hp�� ��=EM&_�4�UX/A��'h�B�X�)1,
10758 …�mY�>��恝��1���6�9�=���>�B�I�G�k�1 )9gI�� K?�ÀU���A##�p�]F�2��hp�Dž��Oh�J�?^��sYk{}�…
13269 7��=fQjf�{�e;@��$����q_P\hp\ĩ:�%�=�;sR��ZN��5�����R��g��x�˩A;E!vf-����?Z��M2��Ap����ޞ��6…
13662 …h�� CǷ>Y���e���P�.ߘ�J��oPҮ�yr��I<���TI�G�����Z�/!�J�tC �z������?-���hp��v��q�o��RՊN�}��LZ;…
[all …]
/packages/inputmethods/LatinIME/dictionaries/
Dit_wordlist.combined.gz1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...
Dcs_wordlist.combined.gz1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ...
Dde_wordlist.combined.gz