Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c68 struct addrinfo *aires, hints, *pai; in gaiv4() local
84 memset(&hints, 0, sizeof(hints)); in gaiv4()
85 hints.ai_family = AF_INET; in gaiv4()
86 TEST(getaddrinfo(hostname, 0, &hints, &aires)); in gaiv4()
124 memset(&hints, 0, sizeof(hints)); in gaiv4()
125 hints.ai_family = AF_INET; in gaiv4()
126 hints.ai_flags = AI_CANONNAME; in gaiv4()
127 TEST(getaddrinfo(shortname, 0, &hints, &aires)); in gaiv4()
154 memset(&hints, 0, sizeof(hints)); in gaiv4()
162 hints.ai_family = AF_INET; in gaiv4()
[all …]
/external/freetype/src/autofit/
Dafhints.c242 af_get_segment_index( AF_GlyphHints hints, in af_get_segment_index() argument
246 AF_AxisHints axis = &hints->axis[dimension]; in af_get_segment_index()
247 AF_Point point = hints->points + point_idx; in af_get_segment_index()
287 af_get_edge_index( AF_GlyphHints hints, in af_get_edge_index() argument
291 AF_AxisHints axis = &hints->axis[dimension]; in af_get_edge_index()
304 af_glyph_hints_dump_points( AF_GlyphHints hints, in af_glyph_hints_dump_points() argument
307 AF_Point points = hints->points; in af_glyph_hints_dump_points()
308 AF_Point limit = points + hints->num_points; in af_glyph_hints_dump_points()
309 AF_Point* contour = hints->contours; in af_glyph_hints_dump_points()
310 AF_Point* climit = contour + hints->num_contours; in af_glyph_hints_dump_points()
[all …]
Dafcjk.c73 AF_GlyphHintsRec hints[1]; in af_cjk_metrics_init_widths() local
82 af_glyph_hints_init( hints, face->memory ); in af_cjk_metrics_init_widths()
181 af_glyph_hints_rescale( hints, (AF_StyleMetrics)dummy ); in af_cjk_metrics_init_widths()
183 error = af_glyph_hints_reload( hints, &face->glyph->outline ); in af_cjk_metrics_init_widths()
190 AF_AxisHints axhints = &hints->axis[dim]; in af_cjk_metrics_init_widths()
195 error = af_latin_hints_compute_segments( hints, in af_cjk_metrics_init_widths()
206 af_latin_hints_link_segments( hints, in af_cjk_metrics_init_widths()
276 af_glyph_hints_done( hints ); in af_cjk_metrics_init_widths()
804 af_cjk_hints_compute_segments( AF_GlyphHints hints, in af_cjk_hints_compute_segments() argument
807 AF_AxisHints axis = &hints->axis[dim]; in af_cjk_hints_compute_segments()
[all …]
Dafdummy.c26 af_dummy_hints_init( AF_GlyphHints hints, in af_dummy_hints_init() argument
29 af_glyph_hints_rescale( hints, metrics ); in af_dummy_hints_init()
31 hints->x_scale = metrics->scaler.x_scale; in af_dummy_hints_init()
32 hints->y_scale = metrics->scaler.y_scale; in af_dummy_hints_init()
33 hints->x_delta = metrics->scaler.x_delta; in af_dummy_hints_init()
34 hints->y_delta = metrics->scaler.y_delta; in af_dummy_hints_init()
42 AF_GlyphHints hints, in af_dummy_hints_apply() argument
50 error = af_glyph_hints_reload( hints, outline ); in af_dummy_hints_apply()
52 af_glyph_hints_save( hints, outline ); in af_dummy_hints_apply()
Daflatin2.c51 af_latin2_hints_compute_segments( AF_GlyphHints hints,
55 af_latin2_hints_link_segments( AF_GlyphHints hints,
71 AF_GlyphHintsRec hints[1]; in af_latin2_metrics_init_widths() local
74 af_glyph_hints_init( hints, face->memory ); in af_latin2_metrics_init_widths()
106 af_glyph_hints_rescale( hints, (AF_StyleMetrics)dummy ); in af_latin2_metrics_init_widths()
108 error = af_glyph_hints_reload( hints, &face->glyph->outline ); in af_latin2_metrics_init_widths()
115 AF_AxisHints axhints = &hints->axis[dim]; in af_latin2_metrics_init_widths()
120 error = af_latin2_hints_compute_segments( hints, in af_latin2_metrics_init_widths()
125 af_latin2_hints_link_segments( hints, in af_latin2_metrics_init_widths()
172 af_glyph_hints_done( hints ); in af_latin2_metrics_init_widths()
[all …]
Daflatin.c64 AF_GlyphHintsRec hints[1]; in af_latin_metrics_init_widths() local
73 af_glyph_hints_init( hints, face->memory ); in af_latin_metrics_init_widths()
174 af_glyph_hints_rescale( hints, (AF_StyleMetrics)dummy ); in af_latin_metrics_init_widths()
176 error = af_glyph_hints_reload( hints, &face->glyph->outline ); in af_latin_metrics_init_widths()
183 AF_AxisHints axhints = &hints->axis[dim]; in af_latin_metrics_init_widths()
188 error = af_latin_hints_compute_segments( hints, in af_latin_metrics_init_widths()
199 af_latin_hints_link_segments( hints, in af_latin_metrics_init_widths()
269 af_glyph_hints_done( hints ); in af_latin_metrics_init_widths()
1502 af_latin_hints_compute_segments( AF_GlyphHints hints, in af_latin_hints_compute_segments() argument
1505 AF_LatinMetrics metrics = (AF_LatinMetrics)hints->metrics; in af_latin_hints_compute_segments()
[all …]
Dafmodule.c32 af_glyph_hints_dump_segments( AF_GlyphHints hints,
35 af_glyph_hints_dump_points( AF_GlyphHints hints,
38 af_glyph_hints_dump_edges( AF_GlyphHints hints,
494 AF_GlyphHints hints = _af_debug_hints_rec; in af_autofitter_load_glyph() local
500 if ( hints->memory ) in af_autofitter_load_glyph()
501 af_glyph_hints_done( hints ); in af_autofitter_load_glyph()
503 af_glyph_hints_init( hints, memory ); in af_autofitter_load_glyph()
504 af_loader_init( loader, hints ); in af_autofitter_load_glyph()
513 af_glyph_hints_dump_points( hints, 0 ); in af_autofitter_load_glyph()
514 af_glyph_hints_dump_segments( hints, 0 ); in af_autofitter_load_glyph()
[all …]
/external/freetype/src/pshinter/
Dpshrec.c53 FT_FREE( table->hints ); in ps_hint_table_done()
74 if ( !FT_RENEW_ARRAY( table->hints, old_max, new_max ) ) in ps_hint_table_ensure()
101 hint = table->hints + count - 1; in ps_hint_table_alloc()
549 ps_hint_table_done( &dimension->hints, memory ); in ps_dimension_done()
557 dimension->hints.num_hints = 0; in ps_dimension_init()
681 FT_UInt max = dim->hints.num_hints; in ps_dimension_add_t1stem()
682 PS_Hint hint = dim->hints.hints; in ps_dimension_add_t1stem()
694 error = ps_hint_table_alloc( &dim->hints, memory, &hint ); in ps_dimension_add_t1stem()
804 ps_hints_done( PS_Hints hints ) in ps_hints_done() argument
806 FT_Memory memory = hints->memory; in ps_hints_done()
[all …]
/external/tensorflow/tensorflow/python/ops/linalg/
Dlinear_operator_addition.py152 def _infer_hints_allowing_override(op1, op2, hints): argument
168 hints = hints or _Hints()
170 if hints.is_self_adjoint is None:
173 is_self_adjoint = hints.is_self_adjoint
176 if hints.is_positive_definite is None:
179 is_positive_definite = hints.is_positive_definite
182 if is_positive_definite and hints.is_positive_definite is None:
185 is_non_singular = hints.is_non_singular
261 def _add(self, op1, op2, operator_name, hints): argument
266 def add(self, op1, op2, operator_name, hints=None): argument
[all …]
/external/openssh/openbsd-compat/
Dfake-rfc2553.c124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument
143 if (hints->ai_socktype) in malloc_ai()
144 ai->ai_socktype = hints->ai_socktype; in malloc_ai()
148 if (hints->ai_protocol) in malloc_ai()
149 ai->ai_protocol = hints->ai_protocol; in malloc_ai()
156 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument
166 if (hints && hints->ai_family != AF_UNSPEC && in getaddrinfo()
167 hints->ai_family != AF_INET) in getaddrinfo()
181 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo()
185 *res = malloc_ai(port, addr, hints); in getaddrinfo()
[all …]
/external/freetype/include/freetype/internal/
Dpshints.h139 (*T1_Hints_OpenFunc)( T1_Hints hints );
179 (*T1_Hints_SetStemFunc)( T1_Hints hints,
213 (*T1_Hints_SetStem3Func)( T1_Hints hints,
237 (*T1_Hints_ResetFunc)( T1_Hints hints,
266 (*T1_Hints_CloseFunc)( T1_Hints hints,
305 (*T1_Hints_ApplyFunc)( T1_Hints hints,
344 T1_Hints hints; member
426 (*T2_Hints_OpenFunc)( T2_Hints hints );
466 (*T2_Hints_StemsFunc)( T2_Hints hints,
508 (*T2_Hints_MaskFunc)( T2_Hints hints,
[all …]
/external/libevent/
Devutil.c802 const struct evutil_addrinfo *hints) in evutil_new_addrinfo_() argument
805 EVUTIL_ASSERT(hints); in evutil_new_addrinfo_()
807 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
811 memcpy(&tmp, hints, sizeof(tmp)); in evutil_new_addrinfo_()
836 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_()
837 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_()
876 const struct evutil_addrinfo *hints) in evutil_parse_servname() argument
882 if (!(hints->ai_flags & EVUTIL_AI_NUMERICSERV)) { in evutil_parse_servname()
921 evutil_getaddrinfo_infer_protocols(struct evutil_addrinfo *hints) in evutil_getaddrinfo_infer_protocols() argument
924 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
[all …]
/external/fonttools/Lib/fontTools/subset/
Dcff.py168 hints = self._hints
170 if hints.deletions:
172 for idx in reversed(hints.deletions):
175 if hints.has_hint:
176 assert not hints.deletions or hints.last_hint <= hints.deletions[0]
177 self.program = self.program[hints.last_hint:]
188 if hints.has_hintmask:
260 hints = charString._hints
262 if hints.has_hint or hints.has_hintmask:
265 if hints.status != 2:
[all …]
/external/libevent/test/
Dregress_util.c928 struct evutil_addrinfo hints; in test_evutil_getaddrinfo() local
932 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
933 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
934 hints.ai_socktype = SOCK_STREAM; in test_evutil_getaddrinfo()
935 r = evutil_getaddrinfo("1.2.3.4", "8080", &hints, &ai); in test_evutil_getaddrinfo()
943 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
944 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
945 hints.ai_protocol = IPPROTO_UDP; in test_evutil_getaddrinfo()
946 r = evutil_getaddrinfo("1001:b0b::f00f", "4321", &hints, &ai); in test_evutil_getaddrinfo()
955 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
[all …]
Dregress_dns.c1264 struct evutil_addrinfo hints, *ai = NULL; in test_bufferevent_connect_hostname() local
1265 memset(&hints, 0, sizeof(hints)); in test_bufferevent_connect_hostname()
1266 hints.ai_family = AF_INET; in test_bufferevent_connect_hostname()
1267 hints.ai_socktype = SOCK_STREAM; in test_bufferevent_connect_hostname()
1268 hints.ai_protocol = IPPROTO_TCP; in test_bufferevent_connect_hostname()
1270 "nonesuch.nowhere.example.com", "80", &hints, &ai); in test_bufferevent_connect_hostname()
1352 struct evutil_addrinfo hints, *a; in test_getaddrinfo_async() local
1379 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1380 hints.ai_family = PF_UNSPEC; in test_getaddrinfo_async()
1381 hints.ai_socktype = SOCK_STREAM; in test_getaddrinfo_async()
[all …]
/external/iperf3/src/
Diperf_sctp.c161 struct addrinfo hints, *res; in iperf_sctp_listen() local
168 memset(&hints, 0, sizeof(hints)); in iperf_sctp_listen()
175 hints.ai_family = AF_INET6; in iperf_sctp_listen()
177 hints.ai_family = test->settings->domain; in iperf_sctp_listen()
179 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_listen()
180 hints.ai_flags = AI_PASSIVE; in iperf_sctp_listen()
181 if (getaddrinfo(test->bind_address, portstr, &hints, &res) != 0) { in iperf_sctp_listen()
263 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local
266 memset(&hints, 0, sizeof(hints)); in iperf_sctp_connect()
267 hints.ai_family = test->settings->domain; in iperf_sctp_connect()
[all …]
Dnet.c118 struct addrinfo hints, *local_res, *server_res; in netdial() local
122 memset(&hints, 0, sizeof(hints)); in netdial()
123 hints.ai_family = domain; in netdial()
124 hints.ai_socktype = proto; in netdial()
125 if (getaddrinfo(local, NULL, &hints, &local_res) != 0) in netdial()
129 memset(&hints, 0, sizeof(hints)); in netdial()
130 hints.ai_family = domain; in netdial()
131 hints.ai_socktype = proto; in netdial()
132 if (getaddrinfo(server, NULL, &hints, &server_res) != 0) in netdial()
215 struct addrinfo hints, *res; in netannounce() local
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dns-common.c440 struct addrinfo hints; /* hints for getaddrinfo() */ in get_maddrinfo() local
444 memset(&hints, '\0', sizeof(struct addrinfo)); in get_maddrinfo()
445 hints.ai_family = family; in get_maddrinfo()
446 hints.ai_socktype = SOCK_DGRAM; in get_maddrinfo()
447 hints.ai_protocol = IPPROTO_UDP; in get_maddrinfo()
448 hints.ai_flags |= AI_NUMERICHOST; in get_maddrinfo()
450 err = getaddrinfo(maddr, portnum, &hints, &res); in get_maddrinfo()
515 struct addrinfo hints; /* hints for getaddrinfo() */ in create_source_filter() local
542 memset(&hints, '\0', sizeof(struct addrinfo)); in create_source_filter()
543 hints.ai_family = mainfo_p->ai_family; in create_source_filter()
[all …]
/external/libpcap/
Dnametoaddr.c183 struct addrinfo hints, *res; in pcap_nametoaddrinfo() local
186 memset(&hints, 0, sizeof(hints)); in pcap_nametoaddrinfo()
187 hints.ai_family = PF_UNSPEC; in pcap_nametoaddrinfo()
188 hints.ai_socktype = SOCK_STREAM; /*not really*/ in pcap_nametoaddrinfo()
189 hints.ai_protocol = IPPROTO_TCP; /*not really*/ in pcap_nametoaddrinfo()
190 error = getaddrinfo(name, NULL, &hints, &res); in pcap_nametoaddrinfo()
290 struct addrinfo hints, *res, *ai; in pcap_nametoport() local
303 memset(&hints, 0, sizeof(hints)); in pcap_nametoport()
304 hints.ai_family = PF_UNSPEC; in pcap_nametoport()
305 hints.ai_socktype = SOCK_STREAM; in pcap_nametoport()
[all …]
/external/v8/src/objects/
Djs-list-format-inl.h28 int hints = flags(); in ACCESSORS() local
29 hints = StyleBits::update(hints, style); in ACCESSORS()
30 set_flags(hints); in ACCESSORS()
39 int hints = flags(); in set_type() local
40 hints = TypeBits::update(hints, type); in set_type()
41 set_flags(hints); in set_type()
Djs-relative-time-format-inl.h30 int hints = flags(); in ACCESSORS() local
31 hints = StyleBits::update(hints, style); in ACCESSORS()
32 set_flags(hints); in ACCESSORS()
41 int hints = flags(); in set_numeric() local
42 hints = NumericBits::update(hints, numeric); in set_numeric()
43 set_flags(hints); in set_numeric()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_read_validator_unittest.cpp99 MockDownloadHints hints; in TEST() local
100 validator->SetDownloadHints(&hints); in TEST()
110 EXPECT_EQ(MakeRange(4608, 5120), hints.GetLastRequstedRange()); in TEST()
112 file_avail.SetAvailableRange(hints.GetLastRequstedRange()); in TEST()
113 hints.Reset(); in TEST()
119 EXPECT_EQ(MakeRange(0, 0), hints.GetLastRequstedRange()); in TEST()
129 EXPECT_EQ(validator->GetSize(), hints.GetLastRequstedRange().second); in TEST()
172 MockDownloadHints hints; in TEST() local
174 validator->SetDownloadHints(&hints); in TEST()
210 MockDownloadHints hints; in TEST() local
[all …]
/external/pdfium/fpdfsdk/
Dfpdf_dataavail_embeddertest.cpp58 FX_DOWNLOADHINTS* hints() { return this; } in hints() function in __anondedca7440111::TestAsyncLoader
161 MockDownloadHints hints; in TEST_F() local
162 EXPECT_FALSE(FPDFAvail_IsDocAvail(avail_, &hints)); in TEST_F()
168 MockDownloadHints hints; in TEST_F() local
169 EXPECT_FALSE(FPDFAvail_IsDocAvail(avail_, &hints)); in TEST_F()
175 ASSERT_EQ(PDF_DATA_AVAIL, FPDFAvail_IsDocAvail(avail_, loader.hints())); in TEST_F()
178 ASSERT_EQ(PDF_DATA_AVAIL, FPDFAvail_IsPageAvail(avail_, 1, loader.hints())); in TEST_F()
190 ASSERT_EQ(PDF_DATA_AVAIL, FPDFAvail_IsDocAvail(avail_, loader.hints())); in TEST_F()
202 status = FPDFAvail_IsFormAvail(avail_, loader.hints()); in TEST_F()
211 ASSERT_EQ(PDF_DATA_AVAIL, FPDFAvail_IsDocAvail(avail_, loader.hints())); in TEST_F()
[all …]
/external/curl/tests/server/
Dresolve.c125 struct addrinfo hints; in main() local
127 memset(&hints, 0, sizeof(hints)); in main()
128 hints.ai_family = use_ipv6 ? PF_INET6 : PF_INET; in main()
129 hints.ai_socktype = SOCK_STREAM; in main()
130 hints.ai_flags = AI_CANONNAME; in main()
133 rc = (getaddrinfo)(host, "80", &hints, &ai); in main()
/external/curl/lib/
Dhostip6.c133 struct addrinfo hints; in Curl_getaddrinfo() local
165 memset(&hints, 0, sizeof(hints)); in Curl_getaddrinfo()
166 hints.ai_family = pf; in Curl_getaddrinfo()
167 hints.ai_socktype = conn->socktype; in Curl_getaddrinfo()
177 hints.ai_flags = AI_NUMERICHOST; in Curl_getaddrinfo()
186 error = Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &res); in Curl_getaddrinfo()

12345678910>>...17