Home
last modified time | relevance | path

Searched refs:enumerator (Results 1 – 25 of 222) sorted by relevance

123456789

/third_party/glib/gio/
Dgfileenumerator.c80 static void g_file_enumerator_real_next_files_async (GFileEnumerator *enumerator,
86 static GList * g_file_enumerator_real_next_files_finish (GFileEnumerator *enumerator,
89 static void g_file_enumerator_real_close_async (GFileEnumerator *enumerator,
94 static gboolean g_file_enumerator_real_close_finish (GFileEnumerator *enumerator,
104 GFileEnumerator *enumerator; in g_file_enumerator_set_property() local
106 enumerator = G_FILE_ENUMERATOR (object); in g_file_enumerator_set_property()
110 enumerator->priv->container = g_value_dup_object (value); in g_file_enumerator_set_property()
121 GFileEnumerator *enumerator; in g_file_enumerator_dispose() local
123 enumerator = G_FILE_ENUMERATOR (object); in g_file_enumerator_dispose()
125 if (enumerator->priv->container) { in g_file_enumerator_dispose()
[all …]
Dgsocketaddressenumerator.c48 …oid g_socket_address_enumerator_real_next_async (GSocketAddressEnumerator *enumerator,
52 …SocketAddress *g_socket_address_enumerator_real_next_finish (GSocketAddressEnumerator *enumerator,
57 g_socket_address_enumerator_init (GSocketAddressEnumerator *enumerator) in g_socket_address_enumerator_init() argument
93 g_socket_address_enumerator_next (GSocketAddressEnumerator *enumerator, in g_socket_address_enumerator_next() argument
99 g_return_val_if_fail (G_IS_SOCKET_ADDRESS_ENUMERATOR (enumerator), NULL); in g_socket_address_enumerator_next()
101 klass = G_SOCKET_ADDRESS_ENUMERATOR_GET_CLASS (enumerator); in g_socket_address_enumerator_next()
103 return (* klass->next) (enumerator, cancellable, error); in g_socket_address_enumerator_next()
111 g_socket_address_enumerator_real_next_async (GSocketAddressEnumerator *enumerator, in g_socket_address_enumerator_real_next_async() argument
120 task = g_task_new (enumerator, NULL, callback, user_data); in g_socket_address_enumerator_real_next_async()
123 address = g_socket_address_enumerator_next (enumerator, cancellable, &error); in g_socket_address_enumerator_real_next_async()
[all …]
Dgfileenumerator.h61 GFileInfo * (* next_file) (GFileEnumerator *enumerator,
64 gboolean (* close_fn) (GFileEnumerator *enumerator,
68 void (* next_files_async) (GFileEnumerator *enumerator,
74 GList * (* next_files_finish) (GFileEnumerator *enumerator,
77 void (* close_async) (GFileEnumerator *enumerator,
82 gboolean (* close_finish) (GFileEnumerator *enumerator,
101 GFileInfo *g_file_enumerator_next_file (GFileEnumerator *enumerator,
105 gboolean g_file_enumerator_close (GFileEnumerator *enumerator,
109 void g_file_enumerator_next_files_async (GFileEnumerator *enumerator,
116 GList * g_file_enumerator_next_files_finish (GFileEnumerator *enumerator,
[all …]
Dgsocketaddressenumerator.h67 GSocketAddress * (* next) (GSocketAddressEnumerator *enumerator,
71 void (* next_async) (GSocketAddressEnumerator *enumerator,
75 GSocketAddress * (* next_finish) (GSocketAddressEnumerator *enumerator,
84 GSocketAddress *g_socket_address_enumerator_next (GSocketAddressEnumerator *enumerator,
89 void g_socket_address_enumerator_next_async (GSocketAddressEnumerator *enumerator,
94 GSocketAddress *g_socket_address_enumerator_next_finish (GSocketAddressEnumerator *enumerator,
Dgio-tool-trash.c46 GFileEnumerator *enumerator; in delete_trash_file() local
52 enumerator = g_file_enumerate_children (file, in delete_trash_file()
58 if (enumerator) in delete_trash_file()
60 while ((info = g_file_enumerator_next_file (enumerator, NULL, NULL)) != NULL) in delete_trash_file()
74 g_file_enumerator_close (enumerator, NULL, NULL); in delete_trash_file()
75 g_object_unref (enumerator); in delete_trash_file()
153 GFileEnumerator *enumerator; in trash_list() local
158 enumerator = g_file_enumerate_children (file, in trash_list()
164 if (!enumerator) in trash_list()
171 while ((info = g_file_enumerator_next_file (enumerator, cancellable, &local_error)) != NULL) in trash_list()
[all …]
Dgnetworkmonitorbase.c213 GSocketAddressEnumerator *enumerator; in g_network_monitor_base_can_reach() local
223 enumerator = g_socket_connectable_proxy_enumerate (connectable); in g_network_monitor_base_can_reach()
224 addr = g_socket_address_enumerator_next (enumerator, cancellable, error); in g_network_monitor_base_can_reach()
228 g_object_unref (enumerator); in g_network_monitor_base_can_reach()
235 g_object_unref (enumerator); in g_network_monitor_base_can_reach()
245 g_object_unref (enumerator); in g_network_monitor_base_can_reach()
250 addr = g_socket_address_enumerator_next (enumerator, cancellable, error); in g_network_monitor_base_can_reach()
252 g_object_unref (enumerator); in g_network_monitor_base_can_reach()
267 GSocketAddressEnumerator *enumerator = G_SOCKET_ADDRESS_ENUMERATOR (object); in can_reach_async_got_address() local
273 addr = g_socket_address_enumerator_next_finish (enumerator, result, &error); in can_reach_async_got_address()
[all …]
Dgfilenamecompleter.c52 GFileEnumerator *enumerator; member
149 if (data->enumerator) in load_basenames_data_free()
150 g_object_unref (data->enumerator); in load_basenames_data_free()
180 infos = g_file_enumerator_next_files_finish (data->enumerator, res, NULL); in got_more_files()
230 g_file_enumerator_next_files_async (data->enumerator, in got_more_files()
249 g_file_enumerator_close_async (data->enumerator, 0, NULL, NULL, NULL); in got_more_files()
271 data->enumerator = g_file_enumerate_children_finish (G_FILE (source_object), res, NULL); in got_enum()
273 if (data->enumerator == NULL) in got_enum()
290 g_file_enumerator_next_files_async (data->enumerator, in got_enum()
/third_party/glib/gio/tests/
Dproxy.c202 GSocketAddressEnumerator *enumerator = G_SOCKET_ADDRESS_ENUMERATOR (object); in _proxy_enumerate_cb() local
205 sockaddr = g_socket_address_enumerator_next_finish (enumerator, in _proxy_enumerate_cb()
211 g_socket_address_enumerator_next_async (enumerator, in _proxy_enumerate_cb()
227 run_with_enumerator (gboolean synchronous, GSocketAddressEnumerator *enumerator) in run_with_enumerator() argument
235 while ((sockaddr = g_socket_address_enumerator_next (enumerator, in run_with_enumerator()
250 g_socket_address_enumerator_next_async (enumerator, in run_with_enumerator()
262 GSocketAddressEnumerator *enumerator; in use_enumerator() local
264 enumerator = g_object_new (G_TYPE_PROXY_ADDRESS_ENUMERATOR, in use_enumerator()
269 run_with_enumerator (synchronous, enumerator); in use_enumerator()
271 g_object_unref (enumerator); in use_enumerator()
[all …]
Dnetwork-address.c394 GSocketAddressEnumerator *enumerator; /* owned */ in test_loopback_sync() local
399 enumerator = g_socket_connectable_enumerate (addr); in test_loopback_sync()
402 a = g_socket_address_enumerator_next (enumerator, NULL, &error); in test_loopback_sync()
408 a = g_socket_address_enumerator_next (enumerator, NULL, &error); in test_loopback_sync()
414 g_assert_null (g_socket_address_enumerator_next (enumerator, NULL, &error)); in test_loopback_sync()
417 g_object_unref (enumerator); in test_loopback_sync()
425 GSocketAddressEnumerator *enumerator; /* owned */ in test_localhost_sync() local
442 enumerator = g_socket_connectable_enumerate (addr); in test_localhost_sync()
445 a = g_socket_address_enumerator_next (enumerator, NULL, &error); in test_localhost_sync()
451 a = g_socket_address_enumerator_next (enumerator, NULL, &error); in test_localhost_sync()
[all …]
Dresolver.c532 do_sync_connectable (GSocketAddressEnumerator *enumerator) in do_sync_connectable() argument
537 while ((sockaddr = g_socket_address_enumerator_next (enumerator, cancellable, &error))) in do_sync_connectable()
540 g_object_unref (enumerator); in do_sync_connectable()
544 static void do_async_connectable (GSocketAddressEnumerator *enumerator);
549 GSocketAddressEnumerator *enumerator = G_SOCKET_ADDRESS_ENUMERATOR (source); in got_next_async() local
553 sockaddr = g_socket_address_enumerator_next_finish (enumerator, result, &error); in got_next_async()
557 do_async_connectable (enumerator); in got_next_async()
560 g_object_unref (enumerator); in got_next_async()
566 do_async_connectable (GSocketAddressEnumerator *enumerator) in do_async_connectable() argument
568 g_socket_address_enumerator_next_async (enumerator, cancellable, in do_async_connectable()
[all …]
Dlive-g-file.c594 GFileEnumerator *enumerator; in traverse_recurse_dirs() local
604 enumerator = in traverse_recurse_dirs()
608 g_assert_nonnull (enumerator); in traverse_recurse_dirs()
611 g_assert_true (g_file_enumerator_get_container (enumerator) == parent); in traverse_recurse_dirs()
614 info = g_file_enumerator_next_file (enumerator, NULL, &error); in traverse_recurse_dirs()
617 descend = g_file_enumerator_get_child (enumerator, info); in traverse_recurse_dirs()
647 info = g_file_enumerator_next_file (enumerator, NULL, &error); in traverse_recurse_dirs()
652 res = g_file_enumerator_close (enumerator, NULL, &error); in traverse_recurse_dirs()
655 g_assert_true (g_file_enumerator_is_closed (enumerator)); in traverse_recurse_dirs()
657 g_object_unref (enumerator); in traverse_recurse_dirs()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/wasapi/
Dgstwasapidevice.c39 gst_wasapi_device_provider_device_added (GstMMDeviceEnumerator * enumerator,
42 gst_wasapi_device_provider_device_removed (GstMMDeviceEnumerator * enumerator,
46 enumerator, EDataFlow flow, ERole role, LPCWSTR device_id,
70 self->enumerator = gst_mm_device_enumerator_new (); in gst_wasapi_device_provider_init()
81 if (!self->enumerator) { in gst_wasapi_device_provider_start()
91 if (!gst_mm_device_enumerator_set_notification_callback (self->enumerator, in gst_wasapi_device_provider_start()
116 if (self->enumerator) { in gst_wasapi_device_provider_stop()
117 gst_mm_device_enumerator_set_notification_callback (self->enumerator, in gst_wasapi_device_provider_stop()
127 gst_clear_object (&self->enumerator); in gst_wasapi_device_provider_finalize()
138 if (!gst_wasapi_util_get_devices (self->enumerator, TRUE, &devices)) in gst_wasapi_device_provider_probe()
[all …]
Dgstmmdeviceenumerator.cpp43 CreateInstance (GstMMDeviceEnumerator * enumerator, in CreateInstance() argument
54 g_weak_ref_set (&self->enumerator_, enumerator); in CreateInstance()
312 IMMDeviceEnumerator *enumerator = nullptr; in gst_mm_device_enumerator_thread_func() local
325 nullptr, CLSCTX_ALL, IID_PPV_ARGS (&enumerator)); in gst_mm_device_enumerator_thread_func()
331 self->handle = enumerator; in gst_mm_device_enumerator_thread_func()
372 gst_mm_device_enumerator_get_handle (GstMMDeviceEnumerator * enumerator) in gst_mm_device_enumerator_get_handle() argument
374 g_return_val_if_fail (GST_IS_MM_DEVICE_ENUMERATOR (enumerator), nullptr); in gst_mm_device_enumerator_get_handle()
376 return enumerator->handle; in gst_mm_device_enumerator_get_handle()
443 enumerator, GstMMNotificationClientCallbacks * callbacks, in gst_mm_device_enumerator_set_notification_callback()
449 g_return_val_if_fail (GST_IS_MM_DEVICE_ENUMERATOR (enumerator), FALSE); in gst_mm_device_enumerator_set_notification_callback()
[all …]
Dgstmmdeviceenumerator.h34 HRESULT (*device_state_changed) (GstMMDeviceEnumerator * enumerator,
39 HRESULT (*device_added) (GstMMDeviceEnumerator * enumerator,
61 IMMDeviceEnumerator * gst_mm_device_enumerator_get_handle (GstMMDeviceEnumerator * enumerator);
63 gboolean gst_mm_device_enumerator_set_notification_callback (GstMMDeviceEnumerator * enumerator,
/third_party/typescript/tests/baselines/reference/
DinfinitelyExpandingTypes5.types16 >from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
19 function from<T>(enumerator: Enumerator<T>): Query<T>;
20 >from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
21 >enumerator : Enumerator<T>
24 >from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
/third_party/libusb/libusb/os/
Dlinux_udev.c267 struct udev_enumerate *enumerator; in linux_udev_scan_devices() local
275 enumerator = udev_enumerate_new(udev_ctx); in linux_udev_scan_devices()
276 if (NULL == enumerator) { in linux_udev_scan_devices()
281 udev_enumerate_add_match_subsystem(enumerator, "usb"); in linux_udev_scan_devices()
282 udev_enumerate_add_match_property(enumerator, "DEVTYPE", "usb_device"); in linux_udev_scan_devices()
283 udev_enumerate_scan_devices(enumerator); in linux_udev_scan_devices()
284 devices = udev_enumerate_get_list_entry(enumerator); in linux_udev_scan_devices()
303 udev_enumerate_unref(enumerator); in linux_udev_scan_devices()
/third_party/libsoup/libsoup/
Dsoup-request-file.c167 GFileEnumerator *enumerator; in soup_request_file_send() local
169 enumerator = g_file_enumerate_children (file->priv->gfile, in soup_request_file_send()
174 if (enumerator) { in soup_request_file_send()
175 stream = soup_directory_input_stream_new (enumerator, in soup_request_file_send()
177 g_object_unref (enumerator); in soup_request_file_send()
208 GFileEnumerator *enumerator; in on_enumerate_children_ready() local
211 enumerator = g_file_enumerate_children_finish (G_FILE (source), result, &error); in on_enumerate_children_ready()
212 if (enumerator == NULL) { in on_enumerate_children_ready()
217 stream = soup_directory_input_stream_new (enumerator, in on_enumerate_children_ready()
219 g_object_unref (enumerator); in on_enumerate_children_ready()
Dsoup-directory-input-stream.c116 info = g_file_enumerator_next_file (stream->enumerator, cancellable, &err); in soup_directory_input_stream_read_next_file()
189 result = g_file_enumerator_close (stream->enumerator, in soup_directory_input_stream_close()
192 g_object_unref (stream->enumerator); in soup_directory_input_stream_close()
193 stream->enumerator = NULL; in soup_directory_input_stream_close()
253 soup_directory_input_stream_new (GFileEnumerator *enumerator, in soup_directory_input_stream_new() argument
258 g_return_val_if_fail (G_IS_FILE_ENUMERATOR (enumerator), NULL); in soup_directory_input_stream_new()
263 SOUP_DIRECTORY_INPUT_STREAM (stream)->enumerator = g_object_ref (enumerator); in soup_directory_input_stream_new()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11videoprocessor.cpp53 ID3D11VideoProcessorEnumerator *enumerator; member
105 &self->enumerator); in gst_d3d11_video_processor_new()
109 hr = self->enumerator->QueryInterface (IID_PPV_ARGS (&self->enumerator1)); in gst_d3d11_video_processor_new()
115 hr = self->enumerator->GetVideoProcessorCaps (&self->processor_caps); in gst_d3d11_video_processor_new()
119 hr = self->video_device->CreateVideoProcessor (self->enumerator, 0, in gst_d3d11_video_processor_new()
168 GST_D3D11_CLEAR_COM (processor->enumerator); in gst_d3d11_video_processor_free()
184 hr = self->enumerator->CheckVideoProcessorFormat (format, &flag); in gst_d3d11_video_processor_supports_format()
438 processor->enumerator, desc, view); in gst_d3d11_video_processor_create_input_view()
450 processor->video_device, processor->enumerator); in gst_d3d11_video_processor_get_input_view()
466 (resource, processor->enumerator, desc, view); in gst_d3d11_video_processor_create_output_view()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs292 var enumerator = map.GetEnumerator(); in IDictionary_GetEnumerator()
298 Assert.IsTrue(enumerator.MoveNext()); in IDictionary_GetEnumerator()
299 Assert.AreEqual("x", enumerator.Key); in IDictionary_GetEnumerator()
300 Assert.AreEqual("y", enumerator.Value); in IDictionary_GetEnumerator()
301 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Current); in IDictionary_GetEnumerator()
302 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Entry); in IDictionary_GetEnumerator()
303 Assert.IsFalse(enumerator.MoveNext()); in IDictionary_GetEnumerator()
305 enumerator.Reset(); in IDictionary_GetEnumerator()
307 Assert.IsTrue(enumerator.MoveNext()); in IDictionary_GetEnumerator()
308 Assert.AreEqual("x", enumerator.Key); // Assume the rest are okay in IDictionary_GetEnumerator()
/third_party/grpc/src/objective-c/RxLibrary/
DGRXImmediateWriter.m36 - (instancetype)initWithEnumerator:(NSEnumerator *)enumerator error:(NSError *)errorOrNil {
38 _enumerator = enumerator;
47 + (instancetype)writerWithEnumerator:(NSEnumerator *)enumerator error:(NSError *)errorOrNil {
48 return [[self alloc] initWithEnumerator:enumerator error:errorOrNil];
51 + (GRXWriter *)writerWithEnumerator:(NSEnumerator *)enumerator {
52 return [self writerWithEnumerator:enumerator error:nil];
/third_party/flutter/skia/third_party/externals/icu/source/common/
Ducnvsel.cpp603 ucnvsel_close_selector_iterator(UEnumeration *enumerator) { in ucnvsel_close_selector_iterator() argument
604 uprv_free(((Enumerator*)(enumerator->context))->index); in ucnvsel_close_selector_iterator()
605 uprv_free(enumerator->context); in ucnvsel_close_selector_iterator()
606 uprv_free(enumerator); in ucnvsel_close_selector_iterator()
611 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) { in ucnvsel_count_encodings() argument
616 return ((Enumerator*)(enumerator->context))->length; in ucnvsel_count_encodings()
620 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator, in ucnvsel_next_encoding() argument
628 int16_t cur = ((Enumerator*)(enumerator->context))->cur; in ucnvsel_next_encoding()
631 if (cur >= ((Enumerator*)(enumerator->context))->length) { in ucnvsel_next_encoding()
634 sel = ((Enumerator*)(enumerator->context))->sel; in ucnvsel_next_encoding()
[all …]
/third_party/node/deps/icu-small/source/common/
Ducnvsel.cpp603 ucnvsel_close_selector_iterator(UEnumeration *enumerator) { in ucnvsel_close_selector_iterator() argument
604 uprv_free(((Enumerator*)(enumerator->context))->index); in ucnvsel_close_selector_iterator()
605 uprv_free(enumerator->context); in ucnvsel_close_selector_iterator()
606 uprv_free(enumerator); in ucnvsel_close_selector_iterator()
611 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) { in ucnvsel_count_encodings() argument
616 return ((Enumerator*)(enumerator->context))->length; in ucnvsel_count_encodings()
620 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator, in ucnvsel_next_encoding() argument
628 int16_t cur = ((Enumerator*)(enumerator->context))->cur; in ucnvsel_next_encoding()
631 if (cur >= ((Enumerator*)(enumerator->context))->length) { in ucnvsel_next_encoding()
634 sel = ((Enumerator*)(enumerator->context))->sel; in ucnvsel_next_encoding()
[all …]
/third_party/icu/icu4c/source/common/
Ducnvsel.cpp603 ucnvsel_close_selector_iterator(UEnumeration *enumerator) { in ucnvsel_close_selector_iterator() argument
604 uprv_free(((Enumerator*)(enumerator->context))->index); in ucnvsel_close_selector_iterator()
605 uprv_free(enumerator->context); in ucnvsel_close_selector_iterator()
606 uprv_free(enumerator); in ucnvsel_close_selector_iterator()
611 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) { in ucnvsel_count_encodings() argument
616 return ((Enumerator*)(enumerator->context))->length; in ucnvsel_count_encodings()
620 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator, in ucnvsel_next_encoding() argument
628 int16_t cur = ((Enumerator*)(enumerator->context))->cur; in ucnvsel_next_encoding()
631 if (cur >= ((Enumerator*)(enumerator->context))->length) { in ucnvsel_next_encoding()
634 sel = ((Enumerator*)(enumerator->context))->sel; in ucnvsel_next_encoding()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Ducnvsel.cpp603 ucnvsel_close_selector_iterator(UEnumeration *enumerator) { in ucnvsel_close_selector_iterator() argument
604 uprv_free(((Enumerator*)(enumerator->context))->index); in ucnvsel_close_selector_iterator()
605 uprv_free(enumerator->context); in ucnvsel_close_selector_iterator()
606 uprv_free(enumerator); in ucnvsel_close_selector_iterator()
611 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) { in ucnvsel_count_encodings() argument
616 return ((Enumerator*)(enumerator->context))->length; in ucnvsel_count_encodings()
620 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator, in ucnvsel_next_encoding() argument
628 int16_t cur = ((Enumerator*)(enumerator->context))->cur; in ucnvsel_next_encoding()
631 if (cur >= ((Enumerator*)(enumerator->context))->length) { in ucnvsel_next_encoding()
634 sel = ((Enumerator*)(enumerator->context))->sel; in ucnvsel_next_encoding()
[all …]

123456789