HomeSort by relevance Sort by last modified time
    Searched full:watch (Results 1 - 25 of 362) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/dbus/dbus/
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-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 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-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 83 DBusWatch *watch; member in struct:__anon3202
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/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...]
dir-watch.h 2 /* dir-watch.h Watch directories
29 /* setup a watch on a directory (OS dependent, may be a NOP) */
dir-watch-dnotify.c 2 /* dir-watch-dnotify.c OS specific directory change notification for message bus
32 #include "dir-watch.h"
49 _dbus_warn ("Cannot watch config directory '%s'. Already watching %d directories\n", dir, MAX_DIRS_TO_WATCH);
68 _dbus_verbose ("Added watch on config directory '%s'\n", dir);
85 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
  /external/chromium/base/
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...]
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.h 32 // Any background operations will be ran on |backend_loop|, or inside Watch
37 // Note: on Windows you may got more notifications for non-recursive watch
41 bool Watch(const FilePath& path, Delegate* delegate,
43 return impl_->Watch(path, delegate, backend_loop, recursive);
49 virtual bool Watch(const FilePath& path, Delegate* delegate,
object_watcher.h 59 // Returns true if the watch was started. Otherwise, false is returned.
63 // Stops watching. Does nothing if the watch has already completed. If the
64 // watch is still active, then it is canceled, and the associated delegate is
67 // Returns true if the watch was canceled. Otherwise, false is returned.
83 struct Watch;
84 Watch* watch_;
directory_watcher_win.cc 19 virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate,
34 // ObjectWatcher to watch handle_ for events.
47 bool DirectoryWatcherImpl::Watch(const FilePath& path,
50 DCHECK(path_.value().empty()); // Can only watch one path.
directory_watcher_unittest.cc 161 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
176 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
191 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
205 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
207 // And then let it fall out of scope, clearing its watch.
220 // Verify that modifications to a subdirectory are noticed by recursive watch.
223 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, true));
241 // when creating a file in a subdir even with a non-recursive watch.
247 // by a not-recursive watch.
250 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false))
    [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...]
Android.mk 5 mainloop.c object.c watch.c
  /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/dbus/test/
test-utils.c 11 connection_watch_callback (DBusWatch *watch,
15 return dbus_watch_handle (watch, condition);
19 add_watch (DBusWatch *watch,
25 watch,
31 remove_watch (DBusWatch *watch,
37 watch, connection_watch_callback, cd);
179 _dbus_assert_not_reached ("setting watch functions to NULL failed");
  /frameworks/base/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/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...]
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/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 */
  /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/webkit/LayoutTests/fast/dom/Geolocation/
timeout-clear-watch-expected.txt 1 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.
watch.html 10 <script src="resources/watch.js"></script>
  /hardware/ril/libril/
ril_event.h 18 // Max number of fd's we watch at any one time. Increase if necessary.
41 // Add event to watch list
47 // Remove event from watch list

Completed in 358 milliseconds

1 2 3 4 5 6 7 8 91011>>