Home
last modified time | relevance | path

Searched refs:hnd (Results 1 – 25 of 66) sorted by relevance

123

/external/minigbm/cros_gralloc/
Dcros_gralloc_driver.cc97 struct cros_gralloc_handle *hnd; in allocate() local
127 hnd = new cros_gralloc_handle(); in allocate()
130 hnd->base.version = sizeof(hnd->base); in allocate()
131 hnd->base.numFds = num_planes; in allocate()
132 hnd->base.numInts = handle_data_size - num_planes; in allocate()
135 hnd->fds[plane] = drv_bo_get_plane_fd(bo, plane); in allocate()
136 hnd->strides[plane] = drv_bo_get_plane_stride(bo, plane); in allocate()
137 hnd->offsets[plane] = drv_bo_get_plane_offset(bo, plane); in allocate()
140 hnd->format_modifiers[2 * plane] = static_cast<uint32_t>(mod >> 32); in allocate()
141 hnd->format_modifiers[2 * plane + 1] = static_cast<uint32_t>(mod); in allocate()
[all …]
Dcros_gralloc_helpers.cc49 auto hnd = reinterpret_cast<cros_gralloc_handle_t>(handle); in cros_gralloc_convert_handle() local
50 if (!hnd || hnd->magic != cros_gralloc_magic) in cros_gralloc_convert_handle()
53 return hnd; in cros_gralloc_convert_handle()
/external/curl/lib/
Dcurl_threads.c83 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
85 if(hnd != curl_thread_t_null) { in Curl_thread_destroy()
86 pthread_detach(*hnd); in Curl_thread_destroy()
87 free(hnd); in Curl_thread_destroy()
91 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
93 int ret = (pthread_join(**hnd, NULL) == 0); in Curl_thread_join()
95 free(*hnd); in Curl_thread_join()
96 *hnd = curl_thread_t_null; in Curl_thread_join()
134 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
136 CloseHandle(hnd); in Curl_thread_destroy()
[all …]
/external/drm_hwcomposer/
Dplatformhisi.cpp128 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>( in ImportBuffer() local
130 if (!hnd) in ImportBuffer()
135 if (!(hnd->usage & GRALLOC_USAGE_HW_FB)) in ImportBuffer()
139 int ret = drmPrimeFDToHandle(drm_->fd(), hnd->share_fd, &gem_handle); in ImportBuffer()
141 ALOGE("failed to import prime fd %d ret=%d", hnd->share_fd, ret); in ImportBuffer()
145 int32_t fmt = ConvertHalFormatToDrm(hnd->req_format); in ImportBuffer()
150 modifiers[0] = ConvertGrallocFormatToDrmModifiers(hnd->internal_format, in ImportBuffer()
153 bo->width = hnd->width; in ImportBuffer()
154 bo->height = hnd->height; in ImportBuffer()
155 bo->hal_format = hnd->req_format; in ImportBuffer()
[all …]
/external/curl/docs/examples/
Dhttp2-upload.c51 CURL *hnd; member
175 CURL *hnd; in setup() local
177 hnd = i->hnd = curl_easy_init(); in setup()
191 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
194 curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); in setup()
196 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup()
198 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); in setup()
201 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup()
204 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); in setup()
207 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
[all …]
Dhttp2-download.c145 CURL *hnd; in setup() local
147 hnd = t->easy = curl_easy_init(); in setup()
154 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, t->out); in setup()
157 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
160 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
161 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup()
162 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, t); in setup()
165 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
168 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup()
169 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup()
[all …]
Dhttp2-pushinmemory.c72 static void setup(CURL *hnd) in setup() argument
75 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
78 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
81 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup()
82 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup()
85 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in setup()
87 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, &files[0]); in setup()
90 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
Dhttp2-serverpush.c131 static int setup(CURL *hnd) in setup() argument
139 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
142 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
145 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
146 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup()
149 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
152 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup()
153 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup()
157 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
/external/curl/tests/data/
Dtest140175 CURL *hnd;
82 hnd = curl_easy_init();
83 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
84 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1401");
85 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user");
86 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC);
87 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1);
88 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA");
89 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
90 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);
[all …]
Dtest140273 CURL *hnd;
75 hnd = curl_easy_init();
76 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
77 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1402");
78 curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "foo=bar&baz=quux");
79 curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)16);
80 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
81 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
82 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);
83 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
[all …]
Dtest140670 CURL *hnd;
77 hnd = curl_easy_init();
78 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
79 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, (curl_off_t)38);
80 curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/1406");
81 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L);
82 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
83 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
84 curl_easy_setopt(hnd, CURLOPT_MAIL_FROM, "sender@example.com");
85 curl_easy_setopt(hnd, CURLOPT_MAIL_RCPT, slist1);
[all …]
Dtest140370 CURL *hnd;
72 hnd = curl_easy_init();
73 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
74 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1403?foo=bar&baz=quux");
75 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
76 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
77 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);
78 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
79 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
101 ret = curl_easy_perform(hnd);
[all …]
Dtest140757 CURL *hnd;
59 hnd = curl_easy_init();
60 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
61 curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/1407");
62 curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L);
63 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
64 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
65 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
87 ret = curl_easy_perform(hnd);
89 curl_easy_cleanup(hnd);
[all …]
Dtest142063 CURL *hnd;
65 hnd = curl_easy_init();
66 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
67 curl_easy_setopt(hnd, CURLOPT_URL, "imap://%HOSTIP:%IMAPPORT/1420/;MAILINDEX=1");
68 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
69 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);
70 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
71 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
93 ret = curl_easy_perform(hnd);
95 curl_easy_cleanup(hnd);
[all …]
Dtest140069 CURL *hnd;
71 hnd = curl_easy_init();
72 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
73 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1400");
74 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
75 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
76 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
77 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
99 ret = curl_easy_perform(hnd);
101 curl_easy_cleanup(hnd);
[all …]
Dtest1404110 CURL *hnd;
123 hnd = curl_easy_init();
124 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
125 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1404");
126 mime1 = curl_mime_init(hnd);
131 mime2 = curl_mime_init(hnd);
145 curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1);
146 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
147 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
148 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);
[all …]
Dtest140571 CURL *hnd;
85 hnd = curl_easy_init();
86 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
87 curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405");
88 curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1);
89 curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
90 curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
91 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
92 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
114 ret = curl_easy_perform(hnd);
[all …]
/external/minigbm/cros_gralloc/gralloc0/
Dgralloc0.cc127 auto hnd = cros_gralloc_convert_handle(*handle); in gralloc0_alloc() local
128 *stride = hnd->pixel_stride; in gralloc0_alloc()
256 auto hnd = cros_gralloc_convert_handle(handle); in gralloc0_perform() local
257 if (!hnd) { in gralloc0_perform()
265 *out_stride = hnd->pixel_stride; in gralloc0_perform()
269 *out_format = hnd->droid_format; in gralloc0_perform()
274 *out_width = hnd->width; in gralloc0_perform()
275 *out_height = hnd->height; in gralloc0_perform()
308 auto hnd = cros_gralloc_convert_handle(handle); in gralloc0_lock_async() local
309 if (!hnd) { in gralloc0_lock_async()
[all …]
/external/curl/src/
Dtool_cb_see.c95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence) argument
103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) argument
110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
/external/curl/tests/unit/
Dunit1396.c24 static CURL *hnd; variable
36 if(hnd) in unit_stop()
37 curl_easy_cleanup(hnd); in unit_stop()
82 hnd = curl_easy_init();
83 abort_unless(hnd != NULL, "returned NULL!");
86 char *out = curl_easy_unescape(hnd,
102 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
/external/selinux/policycoreutils/setfiles/
Drestorecon_xattr.c46 struct selabel_handle *hnd = NULL; in main() local
110 hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 2); in main()
111 if (!hnd) { in main()
125 selinux_restorecon_set_sehandle(hnd); in main()
128 if (selabel_digest(hnd, &fc_digest, &fc_digest_len, in main()
132 selabel_close(hnd); in main()
141 selabel_close(hnd); in main()
218 selabel_close(hnd); in main()
/external/selinux/libselinux/utils/
Dselabel_lookup.c38 struct selabel_handle *hnd; in main() local
91 hnd = selabel_open(backend, selabel_option, 2); in main()
92 if (!hnd) { in main()
100 rc = selabel_lookup_raw(hnd, &context, key, type); in main()
103 rc = selabel_lookup(hnd, &context, key, type); in main()
105 selabel_close(hnd); in main()
Dselabel_partial_match.c33 struct selabel_handle *hnd; in main() local
61 hnd = selabel_open(SELABEL_CTX_FILE, selabel_option, 2); in main()
62 if (!hnd) { in main()
68 partial_match = selabel_partial_match(hnd, path); in main()
73 selabel_close(hnd); in main()
Dselabel_lookup_best_match.c60 struct selabel_handle *hnd; in main() local
117 hnd = selabel_open(SELABEL_CTX_FILE, options, 2); in main()
118 if (!hnd) { in main()
126 rc = selabel_lookup_best_match_raw(hnd, &context, path, in main()
129 rc = selabel_lookup_best_match(hnd, &context, path, in main()
132 selabel_close(hnd); in main()
/external/selinux/libselinux/src/
Dmatchpathcon.c68 static __thread struct selabel_handle *hnd; variable
350 hnd = selabel_open(SELABEL_CTX_FILE, options, SELABEL_NOPT); in matchpathcon_init_prefix()
351 return hnd ? 0 : -1; in matchpathcon_init_prefix()
365 if (hnd) { in matchpathcon_fini()
366 selabel_close(hnd); in matchpathcon_fini()
367 hnd = NULL; in matchpathcon_fini()
435 if (!hnd && (matchpathcon_init_prefix(NULL, NULL) < 0)) in matchpathcon()
448 selabel_lookup_raw(hnd, con, path, mode) : in matchpathcon()
449 selabel_lookup(hnd, con, path, mode); in matchpathcon()
464 selabel_stats(hnd); in matchpathcon_checkmatches()
[all …]

123