/external/dbus/bus/ |
dir-watch-kqueue.c | 2 /* dir-watch-kqueue.c OS specific directory change notification for message bus 33 #include <dbus/dbus-watch.h> 36 #include "dir-watch.h" 43 static DBusWatch *watch = NULL; variable 47 _kqueue_watch_callback (DBusWatch *watch, unsigned int condition, void *data) 49 return dbus_watch_handle (watch, condition); 53 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) 75 if (watch != NULL) 77 _dbus_loop_remove_watch (loop, watch, _kqueue_watch_callback, NULL); 78 _dbus_watch_unref (watch); [all...] |
main.c | 26 #include <dbus/dbus-watch.h> 146 handle_reload_watch (DBusWatch *watch, 172 reload_watch_callback (DBusWatch *watch, 176 return dbus_watch_handle (watch, condition); 183 DBusWatch *watch; local 199 watch = _dbus_watch_new (reload_pipe[RELOAD_READ_END], 203 if (watch == NULL) 205 _dbus_warn ("Unable to create reload watch: %s\n", 211 if (!_dbus_loop_add_watch (loop, watch, reload_watch_callback, 214 _dbus_warn ("Unable to add reload watch to main loop: %s\n" [all...] |
connection.c | 235 _dbus_assert_not_reached ("setting watch functions to NULL failed"); 290 connection_watch_callback (DBusWatch *watch, 296 * watch handler is fixed. 302 return dbus_watch_handle (watch, condition); 306 add_connection_watch (DBusWatch *watch, 312 watch, connection_watch_callback, connection, 317 remove_connection_watch (DBusWatch *watch, 323 watch, connection_watch_callback, connection); local 670 _dbus_assert_not_reached ("setting watch functions to NULL failed"); [all...] |
/external/chromium/base/ |
object_watcher.cc | 13 struct ObjectWatcher::Watch : public Task { 49 Watch* watch = new Watch; local 50 watch->watcher = this; 51 watch->object = object; 52 watch->origin_loop = MessageLoop::current(); 53 watch->delegate = delegate; 54 watch->did_signal = false; 60 if (!RegisterWaitForSingleObject(&watch->wait_object, object, DoneWaiting 121 Watch* watch = static_cast<Watch*>(param); local [all...] |
directory_watcher_inotify.cc | 39 typedef int Watch; // Watch descriptor used by AddWatch and RemoveWatch. 40 static const Watch kInvalidWatch = -1; 42 // Watch |path| for changes. |watcher| will be notified on each change. 44 Watch AddWatch(const FilePath& path, DirectoryWatcherImpl* watcher); 46 // Remove |watch|. Returns true on success. 47 bool RemoveWatch(Watch watch, DirectoryWatcherImpl* watcher); 61 base::hash_map<Watch, WatcherSet> watchers_; 63 // For each watch we also want to know the path it's watching 296 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), local 418 InotifyReader::Watch watch = local [all...] |
/external/dbus/dbus/ |
dbus-server-socket.c | 51 DBusWatch *watch; /**< File descriptor watch. */ member in struct:DBusServerSocket 62 if (socket_server->watch) 64 _dbus_watch_unref (socket_server->watch); 65 socket_server->watch = NULL; 146 socket_handle_watch (DBusWatch *watch, 155 _dbus_assert (watch == socket_server->watch); 164 listen_fd = dbus_watch_get_fd (watch); 205 if (socket_server->watch) 250 DBusWatch *watch; local [all...] |
dbus-watch.c | 2 /* dbus-watch.c DBusWatch implementation 25 #include "dbus-watch.h" 43 unsigned int flags; /**< Conditions to watch. */ 45 DBusWatchHandler handler; /**< Watch handler. */ 46 void *handler_data; /**< Watch handler data. */ 47 DBusFreeFunction free_handler_data_function; /**< Free the watch handler data. */ 59 * @param flags the conditions to watch for on the descriptor. 74 DBusWatch *watch; local 80 watch = dbus_new0 (DBusWatch, 1); 81 if (watch == NULL [all...] |
dbus-mainloop.c | 83 DBusWatch *watch; member in struct:__anon3369 84 /* last watch handle failed due to OOM */ 101 watch_callback_new (DBusWatch *watch, 112 cb->watch = watch; 263 DBusWatch *watch, 270 wcb = watch_callback_new (watch, function, data, free_data_func); 286 DBusWatch *watch, 299 WATCH_CALLBACK (this)->watch == watch & [all...] |
/external/dnsmasq/src/ |
dbus.c | 59 struct watch { struct 60 DBusWatch *watch; member in struct:watch 61 struct watch *next; 65 static dbus_bool_t add_watch(DBusWatch *watch, void *data) 67 struct watch *w; 70 if (w->watch == watch) 73 if (!(w = whine_malloc(sizeof(struct watch)))) 76 w->watch = watch; [all...] |
/external/bluetooth/bluez/gdbus/ |
mainloop.c | 50 DBusWatch *watch; member in struct:watch_info 106 dbus_watch_handle(info->watch, flags); 127 static dbus_bool_t add_watch(DBusWatch *watch, void *data) 136 if (!dbus_watch_get_enabled(watch)) 141 fd = dbus_watch_get_unix_fd(watch); 144 info->watch = watch; 147 dbus_watch_set_data(watch, info, watch_info_free); 149 flags = dbus_watch_get_flags(watch); 161 static void remove_watch(DBusWatch *watch, void *data [all...] |
/external/bluetooth/glib/glib/ |
giounix.c | 125 GIOUnixWatch *watch = (GIOUnixWatch *)source; local 126 GIOCondition buffer_condition = g_io_channel_get_buffer_condition (watch->channel); 130 /* Only return TRUE here if _all_ bits in watch->condition will be set 132 return ((watch->condition & buffer_condition) == watch->condition); 138 GIOUnixWatch *watch = (GIOUnixWatch *)source; local 139 GIOCondition buffer_condition = g_io_channel_get_buffer_condition (watch->channel); 140 GIOCondition poll_condition = watch->pollfd.revents; 142 return ((poll_condition | buffer_condition) & watch->condition); 152 GIOUnixWatch *watch = (GIOUnixWatch *)source local 170 GIOUnixWatch *watch = (GIOUnixWatch *)source; local 343 GIOUnixWatch *watch; local [all...] |
/external/bluetooth/bluez/audio/ |
gateway.c | 63 guint watch; /* Disconnect watch */ member in struct:hf_agent 507 agent->watch = g_dbus_add_disconnect_watch(conn, name, 541 g_dbus_remove_watch(device->conn, gw->agent->watch);
|
telephony-ofono.c | 52 guint watch; member in struct:voice_call 760 g_dbus_remove_watch(connection, vc->watch); 871 vc_new->watch = g_dbus_add_signal_watch(connection,
|
/external/bluetooth/bluez/network/ |
connection.c | 74 guint watch; /* Disconnect watch */ member in struct:network_conn 166 if (nc->watch) { 167 g_dbus_remove_watch(connection, nc->watch); 168 nc->watch = 0; 186 if (nc->watch) { 187 g_dbus_remove_watch(connection, nc->watch); 188 nc->watch = 0; 426 nc->watch = g_dbus_add_disconnect_watch(conn,
|
server.c | 63 guint watch; /* BNEP socket watch */ member in struct:network_session 83 guint watch_id; /* Client service watch */ 350 if (session->watch) 351 g_source_remove(session->watch); 451 na->setup->watch = g_io_add_watch_full(chan, G_PRIORITY_DEFAULT,
|
/external/bluetooth/bluez/serial/ |
proxy.c | 90 guint watch; /* Application watch */ member in struct:serial_proxy 1018 if (proxy->watch > 0) 1019 g_dbus_remove_watch(adapter->conn, proxy->watch); 1039 proxy->watch = 0; 1075 proxy->watch = g_dbus_add_disconnect_watch(conn, proxy->owner,
|
/frameworks/base/core/jni/ |
android_server_BluetoothEventLoop.cpp | 432 dbus_bool_t dbusAddWatch(DBusWatch *watch, void *data) { 435 if (dbus_watch_get_enabled(watch)) { 436 // note that we can't just send the watch and inspect it later 438 // to by our eventloop and remove this watch.. reading the add first 439 // and then inspecting the recently deceased watch would be bad. 443 int fd = dbus_watch_get_fd(watch); 446 unsigned int flags = dbus_watch_get_flags(watch); 449 write(nat->controlFdW, &watch, sizeof(DBusWatch*)); 454 void dbusRemoveWatch(DBusWatch *watch, void *data) { 460 int fd = dbus_watch_get_fd(watch); 476 DBusWatch *watch; local [all...] |
/external/bluetooth/bluez/src/ |
device.c | 75 disconnect_watch watch; member in struct:btd_disconnect_data 820 if (data->watch) 822 data->watch(device, device->temporary, 1011 disconnect_watch watch, void *user_data, 1019 data->watch = watch; [all...] |
/prebuilt/common/ant/ |
ant.jar | |