/third_party/glib/gio/tests/ |
D | network-monitor.c | 116 network_changed_handler (GNetworkMonitor *monitor, in network_changed_handler() argument 126 assert_signals (GNetworkMonitor *monitor, in assert_signals() argument 134 h1 = g_signal_connect (monitor, "notify::network-available", in assert_signals() 137 h2 = g_signal_connect (monitor, "network-changed", in assert_signals() 143 g_signal_handler_disconnect (monitor, h1); in assert_signals() 144 g_signal_handler_disconnect (monitor, h2); in assert_signals() 149 g_assert (g_network_monitor_get_network_available (monitor) == expected_network_available); in assert_signals() 153 GNetworkMonitor *monitor; member 168 reachable = g_network_monitor_can_reach_finish (data->monitor, res, &error); in reach_cb() 187 g_network_monitor_can_reach_async (data->monitor, in test_reach_async() [all …]
|
D | testfilemonitor.c | 79 GFileMonitor *monitor; member 108 get_environment (GFileMonitor *monitor) in get_environment() argument 110 if (g_str_equal (G_OBJECT_TYPE_NAME (monitor), "GInotifyFileMonitor")) in get_environment() 112 if (g_str_equal (G_OBJECT_TYPE_NAME (monitor), "GKqueueFileMonitor")) in get_environment() 291 monitor_changed (GFileMonitor *monitor, in monitor_changed() argument 371 data.monitor = g_file_monitor_file (data.file, G_FILE_MONITOR_WATCH_MOVES, NULL, &error); in test_atomic_replace() 374 g_test_message ("Using GFileMonitor %s", G_OBJECT_TYPE_NAME (data.monitor)); in test_atomic_replace() 376 g_file_monitor_set_rate_limit (data.monitor, 200); in test_atomic_replace() 377 g_signal_connect (data.monitor, "changed", G_CALLBACK (monitor_changed), &data); in test_atomic_replace() 388 get_environment (data.monitor)); in test_atomic_replace() [all …]
|
/third_party/glib/gio/win32/ |
D | gwin32fsmonitorutils.c | 34 g_win32_fs_monitor_handle_event (GWin32FSMonitorPrivate *monitor, in g_win32_fs_monitor_handle_event() argument 55 gboolean success_attribs = GetFileAttributesExW (monitor->wfullpath_with_long_prefix, in g_win32_fs_monitor_handle_event() 59 if (monitor->file_attribs != INVALID_FILE_ATTRIBUTES && in g_win32_fs_monitor_handle_event() 61 attrib_data.dwFileAttributes != monitor->file_attribs) in g_win32_fs_monitor_handle_event() 66 monitor->file_attribs = attrib_data.dwFileAttributes; in g_win32_fs_monitor_handle_event() 91 if (monitor->pfni_prev != NULL && in g_win32_fs_monitor_handle_event() 92 monitor->pfni_prev->Action == FILE_ACTION_RENAMED_OLD_NAME) in g_win32_fs_monitor_handle_event() 108 return g_file_monitor_source_handle_event (monitor->fms, in g_win32_fs_monitor_handle_event() 126 GWin32FSMonitorPrivate *monitor = (GWin32FSMonitorPrivate *) lpOverlapped; in g_win32_fs_monitor_callback() local 128 DWORD notify_filter = monitor->isfile ? in g_win32_fs_monitor_callback() [all …]
|
D | gwin32filemonitor.c | 36 g_win32_file_monitor_start (GLocalFileMonitor *monitor, in g_win32_file_monitor_start() argument 42 GWin32FileMonitor *win32_monitor = G_WIN32_FILE_MONITOR (monitor); in g_win32_file_monitor_start() 61 g_win32_file_monitor_init (GWin32FileMonitor *monitor) in g_win32_file_monitor_init() argument 63 monitor->priv = g_win32_fs_monitor_create (TRUE); in g_win32_file_monitor_init() 65 monitor->priv->self = G_FILE_MONITOR (monitor); in g_win32_file_monitor_init() 71 GWin32FileMonitor *monitor; in g_win32_file_monitor_finalize() local 73 monitor = G_WIN32_FILE_MONITOR (object); in g_win32_file_monitor_finalize() 75 g_win32_fs_monitor_finalize (monitor->priv); in g_win32_file_monitor_finalize() 81 g_win32_file_monitor_cancel (GFileMonitor* monitor) in g_win32_file_monitor_cancel() argument 85 file_monitor = G_WIN32_FILE_MONITOR (monitor); in g_win32_file_monitor_cancel()
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstdevicemonitor.c | 132 static guint gst_device_monitor_add_filter_unlocked (GstDeviceMonitor * monitor, 137 GstDeviceMonitor * monitor); 141 GstDeviceMonitor * monitor); 177 GstDeviceMonitor *monitor = GST_DEVICE_MONITOR (object); in gst_device_monitor_get_property() local 182 gst_device_monitor_get_show_all_devices (monitor)); in gst_device_monitor_get_property() 194 GstDeviceMonitor *monitor = GST_DEVICE_MONITOR (object); in gst_device_monitor_set_property() local 198 gst_device_monitor_set_show_all_devices (monitor, in gst_device_monitor_set_property() 227 is_provider_hidden (GstDeviceMonitor * monitor, GList * hidden, in is_provider_hidden() argument 232 if (monitor->priv->show_all) in is_provider_hidden() 262 GstDeviceMonitor * monitor) in bus_sync_message() argument [all …]
|
D | gstdevicemonitor.h | 85 GstBus * gst_device_monitor_get_bus (GstDeviceMonitor * monitor); 88 GList * gst_device_monitor_get_devices (GstDeviceMonitor * monitor); 92 gboolean gst_device_monitor_start (GstDeviceMonitor * monitor); 95 void gst_device_monitor_stop (GstDeviceMonitor * monitor); 99 guint gst_device_monitor_add_filter (GstDeviceMonitor * monitor, 103 gboolean gst_device_monitor_remove_filter (GstDeviceMonitor * monitor, 106 gchar ** gst_device_monitor_get_providers (GstDeviceMonitor * monitor); 109 void gst_device_monitor_set_show_all_devices (GstDeviceMonitor * monitor, gboolean show_all); 112 gboolean gst_device_monitor_get_show_all_devices (GstDeviceMonitor * monitor);
|
/third_party/flutter/glfw/src/ |
D | wl_monitor.c | 52 struct _GLFWmonitor *monitor = data; in geometry() local 54 monitor->wl.x = x; in geometry() 55 monitor->wl.y = y; in geometry() 56 monitor->widthMM = physicalWidth; in geometry() 57 monitor->heightMM = physicalHeight; in geometry() 67 struct _GLFWmonitor *monitor = data; in mode() local 75 if (monitor->wl.modesCount + 1 >= monitor->wl.modesSize) in mode() 77 int size = monitor->wl.modesSize * 2; in mode() 79 realloc(monitor->wl.modes, in mode() 81 monitor->wl.modes = modes; in mode() [all …]
|
D | monitor.c | 63 static GLFWbool refreshVideoModes(_GLFWmonitor* monitor) in refreshVideoModes() argument 68 if (monitor->modes) in refreshVideoModes() 71 modes = _glfwPlatformGetVideoModes(monitor, &modeCount); in refreshVideoModes() 77 free(monitor->modes); in refreshVideoModes() 78 monitor->modes = modes; in refreshVideoModes() 79 monitor->modeCount = modeCount; in refreshVideoModes() 128 if (window->monitor == monitors[i]) in _glfwInputMonitorChange() 136 if (_glfw.callbacks.monitor) in _glfwInputMonitorChange() 137 _glfw.callbacks.monitor((GLFWmonitor*) monitors[i], GLFW_DISCONNECTED); in _glfwInputMonitorChange() 158 if (_glfw.callbacks.monitor) in _glfwInputMonitorChange() [all …]
|
D | win32_monitor.c | 41 _GLFWmonitor* monitor; in createMonitor() local 58 monitor = _glfwAllocMonitor(name, in createMonitor() 66 monitor->win32.modesPruned = GLFW_TRUE; in createMonitor() 68 wcscpy(monitor->win32.adapterName, adapter->DeviceName); in createMonitor() 71 monitor->win32.publicAdapterName, in createMonitor() 72 sizeof(monitor->win32.publicAdapterName), in createMonitor() 77 wcscpy(monitor->win32.displayName, display->DeviceName); in createMonitor() 80 monitor->win32.publicDisplayName, in createMonitor() 81 sizeof(monitor->win32.publicDisplayName), in createMonitor() 85 return monitor; in createMonitor() [all …]
|
D | x11_monitor.c | 100 GLFWbool _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) in _glfwSetVideoModeX11() argument 112 best = _glfwChooseVideoMode(monitor, desired); in _glfwSetVideoModeX11() 113 _glfwPlatformGetVideoMode(monitor, ¤t); in _glfwSetVideoModeX11() 118 ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); in _glfwSetVideoModeX11() 119 oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); in _glfwSetVideoModeX11() 137 if (monitor->x11.oldMode == None) in _glfwSetVideoModeX11() 138 monitor->x11.oldMode = ci->mode; in _glfwSetVideoModeX11() 141 sr, monitor->x11.crtc, in _glfwSetVideoModeX11() 167 void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor) in _glfwRestoreVideoModeX11() argument 174 if (monitor->x11.oldMode == None) in _glfwRestoreVideoModeX11() [all …]
|
D | cocoa_monitor.m | 167 GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired) 176 best = _glfwChooseVideoMode(monitor, desired); 177 _glfwPlatformGetVideoMode(monitor, ¤t); 181 CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); 183 modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); 202 if (monitor->ns.previousMode == NULL) 203 monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); 206 CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); 225 void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor) 227 if (monitor->ns.previousMode) [all …]
|
D | mir_monitor.c | 81 void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) in _glfwPlatformGetMonitorPos() argument 84 *xpos = monitor->mir.x; in _glfwPlatformGetMonitorPos() 86 *ypos = monitor->mir.y; in _glfwPlatformGetMonitorPos() 122 GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) in _glfwPlatformGetVideoModes() argument 132 if (out->output_id != monitor->mir.output_id) in _glfwPlatformGetVideoModes() 154 void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) in _glfwPlatformGetVideoMode() argument 156 *mode = monitor->modes[monitor->mir.cur_mode]; in _glfwPlatformGetVideoMode() 159 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument 165 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument 178 _GLFWmonitor* monitor = (_GLFWmonitor*) handle; in glfwGetMirMonitor() local [all …]
|
/third_party/glib/gio/ |
D | gnetworkmonitorbase.c | 60 static void queue_network_changed (GNetworkMonitorBase *monitor); 78 g_network_monitor_base_init (GNetworkMonitorBase *monitor) in g_network_monitor_base_init() argument 80 monitor->priv = g_network_monitor_base_get_instance_private (monitor); in g_network_monitor_base_init() 81 monitor->priv->networks = g_hash_table_new_full (inet_address_mask_hash, in g_network_monitor_base_init() 84 monitor->priv->context = g_main_context_get_thread_default (); in g_network_monitor_base_init() 85 if (monitor->priv->context) in g_network_monitor_base_init() 86 g_main_context_ref (monitor->priv->context); in g_network_monitor_base_init() 88 monitor->priv->initializing = TRUE; in g_network_monitor_base_init() 94 GNetworkMonitorBase *monitor = G_NETWORK_MONITOR_BASE (object); in g_network_monitor_base_constructed() local 96 if (G_OBJECT_TYPE (monitor) == G_TYPE_NETWORK_MONITOR_BASE) in g_network_monitor_base_constructed() [all …]
|
D | gunixvolumemonitor.c | 55 static void update_volumes (GUnixVolumeMonitor *monitor); 56 static void update_mounts (GUnixVolumeMonitor *monitor); 68 GUnixVolumeMonitor *monitor; in g_unix_volume_monitor_finalize() local 70 monitor = G_UNIX_VOLUME_MONITOR (object); in g_unix_volume_monitor_finalize() 72 g_signal_handlers_disconnect_by_func (monitor->mount_monitor, mountpoints_changed, monitor); in g_unix_volume_monitor_finalize() 73 g_signal_handlers_disconnect_by_func (monitor->mount_monitor, mounts_changed, monitor); in g_unix_volume_monitor_finalize() 75 g_object_unref (monitor->mount_monitor); in g_unix_volume_monitor_finalize() 77 g_list_free_full (monitor->last_mountpoints, (GDestroyNotify) g_unix_mount_point_free); in g_unix_volume_monitor_finalize() 78 g_list_free_full (monitor->last_mounts, (GDestroyNotify) g_unix_mount_free); in g_unix_volume_monitor_finalize() 80 g_list_free_full (monitor->volumes, g_object_unref); in g_unix_volume_monitor_finalize() [all …]
|
D | gfilemonitor.c | 120 GFileMonitor *monitor = G_FILE_MONITOR (object); in g_file_monitor_dispose() local 123 g_file_monitor_cancel (monitor); in g_file_monitor_dispose() 129 g_file_monitor_init (GFileMonitor *monitor) in g_file_monitor_init() argument 131 monitor->priv = g_file_monitor_get_instance_private (monitor); in g_file_monitor_init() 215 g_file_monitor_is_cancelled (GFileMonitor *monitor) in g_file_monitor_is_cancelled() argument 219 g_return_val_if_fail (G_IS_FILE_MONITOR (monitor), FALSE); in g_file_monitor_is_cancelled() 221 res = monitor->priv->cancelled; in g_file_monitor_is_cancelled() 235 g_file_monitor_cancel (GFileMonitor *monitor) in g_file_monitor_cancel() argument 237 g_return_val_if_fail (G_IS_FILE_MONITOR (monitor), FALSE); in g_file_monitor_cancel() 239 if (!monitor->priv->cancelled) in g_file_monitor_cancel() [all …]
|
D | gnetworkmonitor.c | 123 g_network_monitor_get_network_available (GNetworkMonitor *monitor) in g_network_monitor_get_network_available() argument 127 g_object_get (G_OBJECT (monitor), "network-available", &available, NULL); in g_network_monitor_get_network_available() 143 g_network_monitor_get_network_metered (GNetworkMonitor *monitor) in g_network_monitor_get_network_metered() argument 147 g_object_get (G_OBJECT (monitor), "network-metered", &metered, NULL); in g_network_monitor_get_network_metered() 180 g_network_monitor_get_connectivity (GNetworkMonitor *monitor) in g_network_monitor_get_connectivity() argument 184 g_object_get (G_OBJECT (monitor), "connectivity", &connectivity, NULL); in g_network_monitor_get_connectivity() 219 g_network_monitor_can_reach (GNetworkMonitor *monitor, in g_network_monitor_can_reach() argument 226 iface = G_NETWORK_MONITOR_GET_INTERFACE (monitor); in g_network_monitor_can_reach() 227 return iface->can_reach (monitor, connectable, cancellable, error); in g_network_monitor_can_reach() 231 g_network_monitor_real_can_reach_async (GNetworkMonitor *monitor, in g_network_monitor_real_can_reach_async() argument [all …]
|
D | gunionvolumemonitor.c | 60 GUnionVolumeMonitor *monitor; local 63 monitor = G_UNION_VOLUME_MONITOR (object); 65 while (monitor->monitors != NULL) 67 child_monitor = monitor->monitors->data; 68 g_union_volume_monitor_remove_monitor (monitor, 79 GUnionVolumeMonitor *monitor; in g_union_volume_monitor_dispose() local 83 monitor = G_UNION_VOLUME_MONITOR (object); in g_union_volume_monitor_dispose() 88 for (l = monitor->monitors; l != NULL; l = l->next) in g_union_volume_monitor_dispose() 102 GUnionVolumeMonitor *monitor; in get_mounts() local 107 monitor = G_UNION_VOLUME_MONITOR (volume_monitor); in get_mounts() [all …]
|
D | gnetworkmonitor.h | 50 void (*network_changed) (GNetworkMonitor *monitor, 53 gboolean (*can_reach) (GNetworkMonitor *monitor, 57 void (*can_reach_async) (GNetworkMonitor *monitor, 62 gboolean (*can_reach_finish) (GNetworkMonitor *monitor, 73 gboolean g_network_monitor_get_network_available (GNetworkMonitor *monitor); 76 gboolean g_network_monitor_get_network_metered (GNetworkMonitor *monitor); 79 GNetworkConnectivity g_network_monitor_get_connectivity (GNetworkMonitor *monitor); 82 gboolean g_network_monitor_can_reach (GNetworkMonitor *monitor, 87 void g_network_monitor_can_reach_async (GNetworkMonitor *monitor, 93 gboolean g_network_monitor_can_reach_finish (GNetworkMonitor *monitor,
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_monitor.c | 187 struct iris_monitor_object *monitor = in iris_create_monitor_object() local 189 if (unlikely(!monitor)) in iris_create_monitor_object() 192 monitor->num_active_counters = num_queries; in iris_create_monitor_object() 193 monitor->active_counters = calloc(num_queries, sizeof(int)); in iris_create_monitor_object() 194 if (unlikely(!monitor->active_counters)) in iris_create_monitor_object() 204 monitor->active_counters[i] = in iris_create_monitor_object() 213 monitor->query = query_obj; in iris_create_monitor_object() 214 monitor->result_size = perf_cfg->queries[group].data_size; in iris_create_monitor_object() 215 monitor->result_buffer = calloc(1, monitor->result_size); in iris_create_monitor_object() 216 if (unlikely(!monitor->result_buffer)) in iris_create_monitor_object() [all …]
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_monitor.c | 347 struct crocus_monitor_object *monitor = in crocus_create_monitor_object() local 349 if (unlikely(!monitor)) in crocus_create_monitor_object() 352 monitor->num_active_counters = num_queries; in crocus_create_monitor_object() 353 monitor->active_counters = calloc(num_queries, sizeof(int)); in crocus_create_monitor_object() 354 if (unlikely(!monitor->active_counters)) in crocus_create_monitor_object() 364 monitor->active_counters[i] = in crocus_create_monitor_object() 373 monitor->query = query_obj; in crocus_create_monitor_object() 374 monitor->result_size = perf_cfg->queries[group].data_size; in crocus_create_monitor_object() 375 monitor->result_buffer = calloc(1, monitor->result_size); in crocus_create_monitor_object() 376 if (unlikely(!monitor->result_buffer)) in crocus_create_monitor_object() [all …]
|
/third_party/cJSON/tests/ |
D | readme_examples.c | 60 cJSON *monitor = cJSON_CreateObject(); in create_monitor() local 61 if (monitor == NULL) in create_monitor() 73 cJSON_AddItemToObject(monitor, "name", name); in create_monitor() 80 cJSON_AddItemToObject(monitor, "resolutions", resolutions); in create_monitor() 106 string = cJSON_Print(monitor); in create_monitor() 113 cJSON_Delete(monitor); in create_monitor() 128 cJSON *monitor = cJSON_CreateObject(); in create_monitor_with_helpers() local 130 if (cJSON_AddStringToObject(monitor, "name", "Awesome 4K") == NULL) in create_monitor_with_helpers() 135 resolutions = cJSON_AddArrayToObject(monitor, "resolutions"); in create_monitor_with_helpers() 158 string = cJSON_Print(monitor); in create_monitor_with_helpers() [all …]
|
/third_party/flutter/glfw/docs/ |
D | monitor.dox | 7 This guide introduces the monitor related functions of GLFW. For details on 8 a specific function in this category, see the @ref monitor. There are also 20 A monitor object represents a currently connected monitor and is represented as 26 Each monitor has a current video mode, a list of supported video modes, 28 a gamma ramp. One of the monitors is the primary monitor. 30 The virtual position of a monitor is in 35 To see how GLFW views your monitor setup and its available video modes, run the 41 The primary monitor is returned by @ref glfwGetPrimaryMonitor. It is the user's 42 preferred monitor and is usually the one with global UI elements like task bar 57 The primary monitor is always the first monitor in the returned array, but other [all …]
|
/third_party/gstreamer/gstplugins_bad/tests/check/elements/ |
D | vkdeviceprovider.c | 27 GstDeviceMonitor *monitor = gst_device_monitor_new (); in vulkan_sink_device_provider() local 31 gst_device_monitor_add_filter (monitor, "Video/Sink", caps); in vulkan_sink_device_provider() 34 gst_device_monitor_start (monitor); in vulkan_sink_device_provider() 36 return monitor; in vulkan_sink_device_provider() 41 GstDeviceMonitor *monitor; in GST_START_TEST() local 45 monitor = vulkan_sink_device_provider (); in GST_START_TEST() 46 devices = gst_device_monitor_get_devices (monitor); in GST_START_TEST() 90 gst_device_monitor_stop (monitor); in GST_START_TEST() 91 gst_object_unref (monitor); in GST_START_TEST()
|
/third_party/flutter/glfw/tests/ |
D | gamma.c | 53 GLFWmonitor* monitor = glfwGetWindowMonitor(window); in set_gamma() local 54 if (!monitor) in set_gamma() 55 monitor = glfwGetPrimaryMonitor(); in set_gamma() 59 glfwSetGamma(monitor, gamma_value); in set_gamma() 108 GLFWmonitor* monitor = NULL; in main() local 125 monitor = glfwGetPrimaryMonitor(); in main() 134 if (monitor) in main() 136 const GLFWvidmode* mode = glfwGetVideoMode(monitor); in main() 152 window = glfwCreateWindow(width, height, "Gamma Test", monitor, NULL); in main()
|
D | reopen.c | 72 static GLFWwindow* open_window(int width, int height, GLFWmonitor* monitor) in open_window() argument 79 window = glfwCreateWindow(width, height, "Window Re-opener", monitor, NULL); in open_window() 91 if (monitor) in open_window() 94 glfwGetMonitorName(monitor), in open_window() 128 GLFWmonitor* monitor = NULL; in main() local 134 monitor = monitors[rand() % monitorCount]; in main() 137 if (monitor) in main() 139 const GLFWvidmode* mode = glfwGetVideoMode(monitor); in main() 149 window = open_window(width, height, monitor); in main()
|