Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 3328) sorted by relevance

12345678910>>...134

/external/webrtc/src/modules/audio_processing/utility/
Ddelay_estimator.c62 int WebRtc_FreeBinaryDelayEstimator(BinaryDelayEstimator* handle) { in WebRtc_FreeBinaryDelayEstimator() argument
63 assert(handle != NULL); in WebRtc_FreeBinaryDelayEstimator()
65 if (handle->mean_bit_counts != NULL) { in WebRtc_FreeBinaryDelayEstimator()
66 free(handle->mean_bit_counts); in WebRtc_FreeBinaryDelayEstimator()
67 handle->mean_bit_counts = NULL; in WebRtc_FreeBinaryDelayEstimator()
69 if (handle->bit_counts != NULL) { in WebRtc_FreeBinaryDelayEstimator()
70 free(handle->bit_counts); in WebRtc_FreeBinaryDelayEstimator()
71 handle->bit_counts = NULL; in WebRtc_FreeBinaryDelayEstimator()
73 if (handle->binary_far_history != NULL) { in WebRtc_FreeBinaryDelayEstimator()
74 free(handle->binary_far_history); in WebRtc_FreeBinaryDelayEstimator()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dextent.c162 void ext2fs_extent_free(ext2_extent_handle_t handle) in ext2fs_extent_free() argument
166 if (!handle) in ext2fs_extent_free()
169 if (handle->path) { in ext2fs_extent_free()
170 for (i=1; i <= handle->max_depth; i++) { in ext2fs_extent_free()
171 if (handle->path[i].buf) in ext2fs_extent_free()
172 ext2fs_free_mem(&handle->path[i].buf); in ext2fs_extent_free()
174 ext2fs_free_mem(&handle->path); in ext2fs_extent_free()
176 ext2fs_free_mem(&handle); in ext2fs_extent_free()
189 struct ext2_extent_handle *handle; in ext2fs_extent_open2() local
200 retval = ext2fs_get_mem(sizeof(struct ext2_extent_handle), &handle); in ext2fs_extent_open2()
[all …]
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
Dprcountr.h138 #define PR_INIT_COUNTER_HANDLE(handle,value)\ argument
139 (handle) = (PRCounterHandle)(value)
141 #define PR_INIT_COUNTER_HANDLE(handle,value) argument
174 #define PR_CREATE_COUNTER(handle,qName,rName,description)\ argument
175 (handle) = PR_CreateCounter((qName),(rName),(description))
177 #define PR_CREATE_COUNTER(handle,qName,rName,description) argument
205 #define PR_DESTROY_COUNTER(handle) PR_DestroyCounter((handle)) argument
207 #define PR_DESTROY_COUNTER(handle) argument
212 PRCounterHandle handle
237 #define PR_GET_COUNTER_HANDLE_FROM_NAME(handle,qName,rName)\ argument
[all …]
/external/libpcap/
Dpcap-linux.c356 static void destroy_ring(pcap_t *handle);
357 static int create_ring(pcap_t *handle, int *status);
358 static int prepare_tpacket_socket(pcap_t *handle);
387 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
390 static int iface_get_offload(pcap_t *handle);
394 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
397 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
398 static int reset_kernel_filter(pcap_t *handle);
409 pcap_t *handle; in pcap_create_interface() local
411 handle = pcap_create_common(device, ebuf, sizeof (struct pcap_linux)); in pcap_create_interface()
[all …]
Dpcap-bt-linux.c187 bt_activate(pcap_t* handle) in bt_activate() argument
189 struct pcap_bt *handlep = handle->priv; in bt_activate()
197 if (sscanf(handle->opt.source, BT_IFACE"%d", &dev_id) != 1) in bt_activate()
199 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_activate()
201 handle->opt.source); in bt_activate()
206 handle->bufsize = handle->snapshot+BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header); in bt_activate()
207 handle->offset = BT_CTRL_SIZE; in bt_activate()
208 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR; in bt_activate()
210 handle->read_op = bt_read_linux; in bt_activate()
211 handle->inject_op = bt_inject_linux; in bt_activate()
[all …]
Dpcap-can-linux.c144 can_activate(pcap_t* handle) in can_activate() argument
146 struct pcap_can *handlep = handle->priv; in can_activate()
151 handle->bufsize = 24; in can_activate()
152 handle->offset = 8; in can_activate()
153 handle->linktype = DLT_CAN_SOCKETCAN; in can_activate()
154 handle->read_op = can_read_linux; in can_activate()
155 handle->inject_op = can_inject_linux; in can_activate()
156 handle->setfilter_op = can_setfilter_linux; in can_activate()
157 handle->setdirection_op = can_setdirection_linux; in can_activate()
158 handle->set_datalink_op = NULL; in can_activate()
[all …]
Dpcap-netfilter-linux.c84 static int nfqueue_send_verdict(const pcap_t *handle, u_int16_t group_id, u_int32_t id, u_int32_t v…
87 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux() argument
89 struct pcap_netfilter *handlep = handle->priv; in netfilter_read_linux()
96 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux()
97 if (handle->break_loop) { in netfilter_read_linux()
98 handle->break_loop = 0; in netfilter_read_linux()
104 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't receive packet %d:%s", errno, pcap_strerror(errn… in netfilter_read_linux()
108 buf = handle->buffer; in netfilter_read_linux()
115 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %d) (nlmsg_len: %u)", len, nl… in netfilter_read_linux()
134 if (handle->linktype != DLT_NFLOG) { in netfilter_read_linux()
[all …]
Dpcap-dbus.c54 dbus_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in dbus_read() argument
56 struct pcap_dbus *handlep = handle->priv; in dbus_read()
71 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Connection closed"); in dbus_read()
75 if (handle->break_loop) { in dbus_read()
76 handle->break_loop = 0; in dbus_read()
84 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected"); in dbus_read()
93 if (handle->fcode.bf_insns == NULL || in dbus_read()
94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
106 dbus_write(pcap_t *handle, const void *buf, size_t size) in dbus_write() argument
109 struct pcap_dbus *handlep = handle->priv; in dbus_write()
[all …]
Dpcap-usb-linux.c215 int usb_mmap(pcap_t* handle) in usb_mmap() argument
217 struct pcap_usb_linux *handlep = handle->priv; in usb_mmap()
218 int len = ioctl(handle->fd, MON_IOCQ_RING_SIZE); in usb_mmap()
224 MAP_SHARED, handle->fd, 0); in usb_mmap()
341 usb_activate(pcap_t* handle) in usb_activate() argument
343 struct pcap_usb_linux *handlep = handle->priv; in usb_activate()
347 handle->bufsize = handle->snapshot; in usb_activate()
348 handle->offset = 0; in usb_activate()
349 handle->linktype = DLT_USB_LINUX; in usb_activate()
351 handle->inject_op = usb_inject_linux; in usb_activate()
[all …]
/external/chromium_org/storage/browser/fileapi/
Dfile_system_operation_runner.cc51 OperationHandle handle = BeginOperation(operation, scope.AsWeakPtr()); in CreateFile() local
53 DidFinish(handle, callback, error); in CreateFile()
54 return handle.id; in CreateFile()
56 PrepareForWrite(handle.id, url); in CreateFile()
60 handle, callback)); in CreateFile()
61 return handle.id; in CreateFile()
73 OperationHandle handle = BeginOperation(operation, scope.AsWeakPtr()); in CreateDirectory() local
75 DidFinish(handle, callback, error); in CreateDirectory()
76 return handle.id; in CreateDirectory()
78 PrepareForWrite(handle.id, url); in CreateDirectory()
[all …]
/external/chromium_org/third_party/mesa/src/chromium_gensrc/mesa/
Dglapi_gentable.c107 _glapi_create_table_from_handle(void *handle, const char *symbol_prefix) { in _glapi_create_table_from_handle() argument
121 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
128 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
135 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
142 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
149 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
156 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
163 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
170 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
177 *procp = dlsym(handle, symboln); in _glapi_create_table_from_handle()
[all …]
/external/chromium_org/content/browser/renderer_host/input/
Dtouch_handle_unittest.cc75 virtual void OnHandleDragBegin(const TouchHandle& handle) OVERRIDE { in OnHandleDragBegin() argument
79 virtual void OnHandleDragUpdate(const TouchHandle& handle, in OnHandleDragUpdate() argument
85 virtual void OnHandleDragEnd(const TouchHandle& handle) OVERRIDE { in OnHandleDragEnd() argument
89 virtual void OnHandleTapped(const TouchHandle& handle) OVERRIDE { in OnHandleTapped() argument
106 void Animate(TouchHandle& handle) { in Animate() argument
109 while (handle.Animate(now)) in Animate()
148 TouchHandle handle(this, TOUCH_HANDLE_CENTER); in TEST_F() local
151 handle.SetVisible(true, TouchHandle::ANIMATION_NONE); in TEST_F()
155 handle.SetVisible(false, TouchHandle::ANIMATION_NONE); in TEST_F()
158 handle.SetVisible(true, TouchHandle::ANIMATION_NONE); in TEST_F()
[all …]
/external/chromium_org/third_party/webrtc/modules/audio_processing/utility/
Ddelay_estimator_wrapper.h20 void WebRtc_FreeDelayEstimatorFarend(void* handle);
43 int WebRtc_InitDelayEstimatorFarend(void* handle);
49 void WebRtc_SoftResetDelayEstimatorFarend(void* handle, int delay_shift);
64 int WebRtc_AddFarSpectrumFix(void* handle,
70 int WebRtc_AddFarSpectrumFloat(void* handle,
75 void WebRtc_FreeDelayEstimator(void* handle);
119 int WebRtc_InitDelayEstimator(void* handle);
128 int WebRtc_SoftResetDelayEstimator(void* handle, int delay_shift);
142 int WebRtc_set_history_size(void* handle, int history_size);
147 int WebRtc_history_size(const void* handle);
[all …]
/external/iptables/include/libiptc/
Dlibip6tc.h24 int ip6tc_is_chain(const char *chain, struct xtc_handle *const handle);
33 const char *ip6tc_first_chain(struct xtc_handle *handle);
34 const char *ip6tc_next_chain(struct xtc_handle *handle);
38 struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
49 int ip6tc_builtin(const char *chain, struct xtc_handle *const handle);
54 struct xtc_handle *handle);
64 struct xtc_handle *handle);
70 struct xtc_handle *handle);
[all …]
Dlibiptc.h28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
37 const char *iptc_first_chain(struct xtc_handle *handle);
38 const char *iptc_next_chain(struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
50 struct xtc_handle *handle);
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
58 struct xtc_handle *handle);
68 struct xtc_handle *handle);
74 struct xtc_handle *handle);
[all …]
/external/iproute2/include/libiptc/
Dlibip6tc.h24 int ip6tc_is_chain(const char *chain, const ip6tc_handle_t handle);
33 const char *ip6tc_first_chain(ip6tc_handle_t *handle);
34 const char *ip6tc_next_chain(ip6tc_handle_t *handle);
38 ip6tc_handle_t *handle);
42 ip6tc_handle_t *handle);
46 ip6tc_handle_t *handle);
49 int ip6tc_builtin(const char *chain, const ip6tc_handle_t handle);
54 ip6tc_handle_t *handle);
64 ip6tc_handle_t *handle);
70 ip6tc_handle_t *handle);
[all …]
Dlibiptc.h32 int iptc_is_chain(const char *chain, const iptc_handle_t handle);
41 const char *iptc_first_chain(iptc_handle_t *handle);
42 const char *iptc_next_chain(iptc_handle_t *handle);
46 iptc_handle_t *handle);
50 iptc_handle_t *handle);
54 iptc_handle_t *handle);
57 int iptc_builtin(const char *chain, const iptc_handle_t handle);
62 iptc_handle_t *handle);
72 iptc_handle_t *handle);
78 iptc_handle_t *handle);
[all …]
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
DNewWebSocketChannelImplTest.cpp96 …SocketChannelImpl::create(&m_pageHolder->document(), m_channelClient.get(), String(), 0, handle())) in NewWebSocketChannelImplTest()
125 MockWebSocketHandle* handle() in handle() function in blink::__anone184cc170111::NewWebSocketChannelImplTest
139 … EXPECT_CALL(*handle(), connect(WebURL(KURL(KURL(), "ws://localhost/")), _, _, handleClient())); in connect()
140 EXPECT_CALL(*handle(), flowControl(65536)); in connect()
144 handleClient()->didConnect(handle(), false, WebString("a"), WebString("b")); in connect()
170 … EXPECT_CALL(*handle(), connect(WebURL(KURL(KURL(), "ws://localhost/")), _, _, handleClient())); in TEST_F()
171 EXPECT_CALL(*handle(), flowControl(65536)); in TEST_F()
178 handleClient()->didConnect(handle(), false, WebString("a"), WebString("b")); in TEST_F()
186 EXPECT_CALL(*handle(), send(true, WebSocketHandle::MessageTypeText, MemEq("foo", 3), 3)); in TEST_F()
187 EXPECT_CALL(*handle(), send(true, WebSocketHandle::MessageTypeText, MemEq("bar", 3), 3)); in TEST_F()
[all …]
/external/libxml2/
Dxmlmodule.c24 void *handle; member
28 static int xmlModulePlatformClose(void *handle);
29 static int xmlModulePlatformSymbol(void *handle, const char *name, void **result);
85 module->handle = xmlModulePlatformOpen(name); in xmlModuleOpen()
87 if (module->handle == NULL) { in xmlModuleOpen()
125 rc = xmlModulePlatformSymbol(module->handle, name, symbol); in xmlModuleSymbol()
161 rc = xmlModulePlatformClose(module->handle); in xmlModuleClose()
231 xmlModulePlatformClose(void *handle) in xmlModulePlatformClose() argument
233 return dlclose(handle); in xmlModulePlatformClose()
243 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol) in xmlModulePlatformSymbol() argument
[all …]
/external/chromium_org/third_party/libxml/src/
Dxmlmodule.c24 void *handle; member
28 static int xmlModulePlatformClose(void *handle);
29 static int xmlModulePlatformSymbol(void *handle, const char *name, void **result);
81 module->handle = xmlModulePlatformOpen(name); in xmlModuleOpen()
83 if (module->handle == NULL) { in xmlModuleOpen()
117 rc = xmlModulePlatformSymbol(module->handle, name, symbol); in xmlModuleSymbol()
153 rc = xmlModulePlatformClose(module->handle); in xmlModuleClose()
223 xmlModulePlatformClose(void *handle) in xmlModulePlatformClose() argument
225 return dlclose(handle); in xmlModulePlatformClose()
235 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol) in xmlModulePlatformSymbol() argument
[all …]
/external/chromium_org/media/audio/alsa/
Dalsa_wrapper.cc17 int AlsaWrapper::PcmOpen(snd_pcm_t** handle, const char* name, in PcmOpen() argument
19 return snd_pcm_open(handle, name, stream, mode); in PcmOpen()
38 int AlsaWrapper::PcmClose(snd_pcm_t* handle) { in PcmClose() argument
39 return snd_pcm_close(handle); in PcmClose()
42 int AlsaWrapper::PcmPrepare(snd_pcm_t* handle) { in PcmPrepare() argument
43 return snd_pcm_prepare(handle); in PcmPrepare()
46 int AlsaWrapper::PcmDrop(snd_pcm_t* handle) { in PcmDrop() argument
47 return snd_pcm_drop(handle); in PcmDrop()
50 int AlsaWrapper::PcmDelay(snd_pcm_t* handle, snd_pcm_sframes_t* delay) { in PcmDelay() argument
51 return snd_pcm_delay(handle, delay); in PcmDelay()
[all …]
/external/chromium_org/net/socket/
Dtransport_client_socket_pool_unittest.cc181 ClientSocketHandle handle; in TEST_F() local
182 int rv = handle.Init("a", params_, LOW, callback.callback(), &pool_, in TEST_F()
185 EXPECT_FALSE(handle.is_initialized()); in TEST_F()
186 EXPECT_FALSE(handle.socket()); in TEST_F()
189 EXPECT_TRUE(handle.is_initialized()); in TEST_F()
190 EXPECT_TRUE(handle.socket()); in TEST_F()
191 TestLoadTimingInfoConnectedNotReused(handle); in TEST_F()
200 ClientSocketHandle handle; in TEST_F() local
202 handle.Init("a", params_, priority, callback.callback(), &pool_, in TEST_F()
211 ClientSocketHandle handle; in TEST_F() local
[all …]
Dwebsocket_transport_client_socket_pool.cc43 ClientSocketHandle* handle, in WebSocketTransportConnectJob() argument
54 handle_(handle), in WebSocketTransportConnectJob()
262 ClientSocketHandle* handle) { in UnlockEndpoint() argument
263 DCHECK(handle->is_initialized()); in UnlockEndpoint()
264 DCHECK(handle->socket()); in UnlockEndpoint()
266 if (handle->socket()->GetPeerAddress(&address) == OK) in UnlockEndpoint()
274 ClientSocketHandle* handle, in RequestSocket() argument
284 CHECK(handle); in RequestSocket()
292 casted_params, priority, handle, callback, request_net_log); in RequestSocket()
296 DCHECK_EQ(handle, iterator->handle); in RequestSocket()
[all …]
Dsocks_client_socket_pool_unittest.cc30 void TestLoadTimingInfo(const ClientSocketHandle& handle) { in TestLoadTimingInfo() argument
32 EXPECT_TRUE(handle.GetLoadTimingInfo(false, &load_timing_info)); in TestLoadTimingInfo()
134 ClientSocketHandle handle; in TEST_F() local
135 int rv = handle.Init("a", CreateSOCKSv5Params(), LOW, CompletionCallback(), in TEST_F()
138 EXPECT_TRUE(handle.is_initialized()); in TEST_F()
139 EXPECT_TRUE(handle.socket()); in TEST_F()
140 TestLoadTimingInfo(handle); in TEST_F()
153 ClientSocketHandle handle; in TEST_F() local
155 handle.Init("a", CreateSOCKSv5Params(), priority, in TEST_F()
158 handle.socket()->Disconnect(); in TEST_F()
[all …]
/external/libsepol/src/
Dnode_record.c44 static int node_parse_addr(sepol_handle_t * handle, in node_parse_addr() argument
55 ERR(handle, "could not parse IPv4 address " in node_parse_addr()
68 ERR(handle, "could not parse IPv6 address " in node_parse_addr()
81 ERR(handle, "unsupported protocol %u, could not " in node_parse_addr()
92 static int node_alloc_addr(sepol_handle_t * handle, in node_alloc_addr() argument
116 ERR(handle, "unsupported protocol %u", proto); in node_alloc_addr()
125 ERR(handle, "out of memory"); in node_alloc_addr()
129 ERR(handle, "could not allocate address of protocol %s", in node_alloc_addr()
138 static int node_expand_addr(sepol_handle_t * handle, in node_expand_addr() argument
153 ERR(handle, in node_expand_addr()
[all …]

12345678910>>...134