/external/dbus/dbus/ |
dbus-watch.c | 2 /* dbus-watch.c DBusWatch implementation 26 #include "dbus-watch.h" 44 unsigned int flags; /**< Conditions to watch. */ 46 DBusWatchHandler handler; /**< Watch handler. */ 47 void *handler_data; /**< Watch handler data. */ 48 DBusFreeFunction free_handler_data_function; /**< Free the watch handler data. */ 56 _dbus_watch_get_enabled (DBusWatch *watch) 58 return watch->enabled; 66 * @param flags the conditions to watch for on the descriptor. 81 DBusWatch *watch; local [all...] |
dbus-watch.h | 2 /* dbus-watch.h DBusWatch internal interfaces 40 /** function to run when the watch is handled */ 41 typedef dbus_bool_t (* DBusWatchHandler) (DBusWatch *watch, 51 DBusWatch* _dbus_watch_ref (DBusWatch *watch); 52 void _dbus_watch_unref (DBusWatch *watch); 53 void _dbus_watch_invalidate (DBusWatch *watch); 54 void _dbus_watch_sanitize_condition (DBusWatch *watch, 56 void _dbus_watch_set_handler (DBusWatch *watch, 71 DBusWatch *watch); 73 DBusWatch *watch); [all...] |
dbus-server-socket.c | 55 DBusWatch **watch; /**< File descriptor watch. */ member in struct:DBusServerSocket 69 if (socket_server->watch[i]) 71 _dbus_watch_unref (socket_server->watch[i]); 72 socket_server->watch[i] = NULL; 76 dbus_free (socket_server->watch); 160 socket_handle_watch (DBusWatch *watch, 177 if (socket_server->watch[i] == watch) 190 listen_fd = dbus_watch_get_socket (watch); 303 DBusWatch *watch; local [all...] |
dbus-mainloop.h | 33 typedef dbus_bool_t (* DBusWatchFunction) (DBusWatch *watch, 43 DBusWatch *watch, 48 DBusWatch *watch,
|
dbus-connection-internal.h | 60 DBusWatch *watch); 62 DBusWatch *watch); 64 DBusWatch *watch, 66 dbus_bool_t _dbus_connection_handle_watch (DBusWatch *watch,
|
dbus-server-protected.h | 31 #include <dbus/dbus-watch.h> 97 DBusWatch *watch); 99 DBusWatch *watch); 101 DBusWatch *watch,
|
dbus-connection.h | 42 /* documented in dbus-watch.c */ 62 DBUS_WATCH_ERROR = 1 << 2, /**< As in POLLERR (can't watch for 67 DBUS_WATCH_HANGUP = 1 << 3 /**< As in POLLHUP (can't watch for 85 /** Called when libdbus needs a new watch to be monitored by the main 87 * watch. Set by dbus_connection_set_watch_functions() or 90 typedef dbus_bool_t (* DBusAddWatchFunction) (DBusWatch *watch, 96 typedef void (* DBusWatchToggledFunction) (DBusWatch *watch, 98 /** Called when libdbus no longer needs a watch to be monitored by the 102 typedef void (* DBusRemoveWatchFunction) (DBusWatch *watch, 106 * watch. Set by dbus_connection_set_timeout_functions() o [all...] |
dbus-mainloop.c | 84 DBusWatch *watch; member in struct:__anon6553 85 /* last watch handle failed due to OOM */ 102 watch_callback_new (DBusWatch *watch, 113 cb->watch = watch; 264 DBusWatch *watch, 271 wcb = watch_callback_new (watch, function, data, free_data_func); 287 DBusWatch *watch, 300 WATCH_CALLBACK (this)->watch == watch & [all...] |
dbus-spawn.h | 30 #include <dbus/dbus-watch.h>
|
/external/chromium/base/win/ |
object_watcher.cc | 14 struct ObjectWatcher::Watch : public Task { 50 Watch* watch = new Watch; local 51 watch->watcher = this; 52 watch->object = object; 53 watch->origin_loop = MessageLoop::current(); 54 watch->delegate = delegate; 55 watch->did_signal = false; 61 if (!RegisterWaitForSingleObject(&watch->wait_object, object, DoneWaiting 122 Watch* watch = static_cast<Watch*>(param); local [all...] |
/external/dbus/bus/ |
dir-watch-kqueue.c | 2 /* dir-watch-kqueue.c OS specific directory change notification for message bus 37 #include <dbus/dbus-watch.h> 41 #include "dir-watch.h" 49 static DBusWatch *watch = NULL; variable 53 _kqueue_watch_callback (DBusWatch *watch, unsigned int condition, void *data) 55 return dbus_watch_handle (watch, condition); 59 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) 81 if (watch != NULL) 83 _dbus_loop_remove_watch (loop, watch, _kqueue_watch_callback, NULL); 84 _dbus_watch_unref (watch); [all...] |
dir-watch-inotify.c | 2 /* dir-watch-inotify.c OS specific directory change notification for message bus 37 #include <dbus/dbus-watch.h> 38 #include "dir-watch.h" 49 static DBusWatch *watch = NULL; variable 53 _inotify_watch_callback (DBusWatch *watch, unsigned int condition, void *data) 55 return dbus_watch_handle (watch, condition); 154 /* FIXME - less lame error handling for failing to add a watch; we may need to sleep. */ 176 * watch. (In reality though, the whole OOM handling in dbus is stupid 209 if (watch != NULL) 211 _dbus_loop_remove_watch (loop, watch, _inotify_watch_callback, NULL) [all...] |
main.c | 28 #include <dbus/dbus-watch.h> 167 handle_reload_watch (DBusWatch *watch, 204 reload_watch_callback (DBusWatch *watch, 208 return dbus_watch_handle (watch, condition); 215 DBusWatch *watch; local 228 watch = _dbus_watch_new (reload_pipe[RELOAD_READ_END], 232 if (watch == NULL) 234 _dbus_warn ("Unable to create reload watch: %s\n", 240 if (!_dbus_loop_add_watch (loop, watch, reload_watch_callback, 243 _dbus_warn ("Unable to add reload watch to main loop: %s\n" [all...] |
/frameworks/native/opengl/tests/gralloc/ |
gralloc.cpp | 65 StopWatch watch("memset"); 71 StopWatch watch("memcpy baseline"); 77 StopWatch watch("memcpy from gralloc"); 83 StopWatch watch("memcpy into gralloc"); 90 StopWatch watch("lamecpy baseline"); 96 StopWatch watch("lamecpy from gralloc"); 102 StopWatch watch("lamecpy into gralloc");
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
dbus_common.c | 59 DBusWatch *watch, eloop_event_type type) 66 dbus_watch_handle(watch, DBUS_WATCH_READABLE); 68 dbus_watch_handle(watch, DBUS_WATCH_WRITABLE); 70 dbus_watch_handle(watch, DBUS_WATCH_ERROR); 99 static dbus_bool_t add_watch(DBusWatch *watch, void *data) 105 if (!dbus_watch_get_enabled(watch)) 108 flags = dbus_watch_get_flags(watch); 109 fd = dbus_watch_get_unix_fd(watch); 112 priv, watch); 116 priv, watch); [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
time_util.cpp | 77 NamedStopWatch* watch = FindPtrOrNull(watches, watch_name); local 78 if (!watch) { 79 watch = new NamedStopWatch(watch_name); 80 watches[watch_name] = watch; 82 return watch;
|
time_util.h | 58 explicit ScopedTimer(NamedStopWatch* watch) 59 : mWatch(watch) { mWatch->Start(); }
|
/frameworks/base/media/mca/filterpacks/native/base/ |
time_util.cpp | 75 NamedStopWatch* watch = FindPtrOrNull(watches, watch_name); local 76 if (!watch) { 77 watch = new NamedStopWatch(watch_name); 78 watches[watch_name] = watch; 80 return watch;
|
time_util.h | 58 explicit ScopedTimer(NamedStopWatch* watch) 59 : mWatch(watch) { mWatch->Start(); }
|
/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/dbus/test/ |
test-utils.c | 12 connection_watch_callback (DBusWatch *watch, 16 return dbus_watch_handle (watch, condition); 20 add_watch (DBusWatch *watch, 26 watch, 32 remove_watch (DBusWatch *watch, 38 watch, connection_watch_callback, cd); 180 _dbus_assert_not_reached ("setting watch functions to NULL failed"); 229 server_watch_callback (DBusWatch *watch, 235 * watch handler is fixed. 238 return dbus_watch_handle (watch, condition) [all...] |
/external/kernel-headers/original/linux/ |
inotify.h | 19 __s32 wd; /* watch descriptor */ 20 __u32 mask; /* watch mask */ 26 /* the following are legal, implemented events that user-space can watch for */ 40 /* the following are legal events. they are sent as needed to any watch */ 50 #define IN_ONLYDIR 0x01000000 /* only watch the path if it is a directory */ 52 #define IN_MASK_ADD 0x20000000 /* add to the mask of an already existing watch */ 72 * struct inotify_watch - represents a watch request on a specific inode 76 * ih, inode, and wd are never written to once the watch is created. 88 __s32 wd; /* watch descriptor */ 89 __u32 mask; /* event mask for this watch */ [all...] |
/external/wpa_supplicant_6/wpa_supplicant/ |
ctrl_iface_dbus.c | 43 DBusWatch *watch, eloop_event_type type) 50 dbus_watch_handle(watch, DBUS_WATCH_READABLE); 52 dbus_watch_handle(watch, DBUS_WATCH_WRITABLE); 54 dbus_watch_handle(watch, DBUS_WATCH_ERROR); 86 DBusWatch *watch) 91 if (!dbus_watch_get_enabled(watch)) 94 flags = dbus_watch_get_flags(watch); 95 fd = dbus_watch_get_unix_fd(watch); 98 iface, watch); 102 iface, watch); [all...] |
/external/chromium/base/files/ |
file_path_watcher_linux.cc | 44 typedef int Watch; // Watch descriptor used by AddWatch and RemoveWatch. 45 static const Watch kInvalidWatch = -1; 47 // Watch directory |path| for changes. |watcher| will be notified on each 49 Watch AddWatch(const FilePath& path, FilePathWatcherImpl* watcher); 51 // Remove |watch|. Returns true on success. 52 bool RemoveWatch(Watch watch, FilePathWatcherImpl* watcher); 66 base::hash_map<Watch, WatcherSet> watchers_; 91 // Called for each event coming from the watch. |fired_watch| identifies th 257 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), local [all...] |
/external/webkit/LayoutTests/fast/dom/Geolocation/script-tests/ |
timeout-clear-watch.js | 1 description("Tests that when a watch times out and is cleared from the error callback, there is no crash. This a regression test for https://bugs.webkit.org/show_bug.cgi?id=32111.");
|