Home | History | Annotate | Download | only in utils

Lines Matching defs:Looper

25 #include <android/looper.h>
40 * Declare a concrete type for the NDK's looper forward declaration.
51 * A looper can be associated with a thread although there is no requirement that it must be.
53 class Looper : public ALooper, public RefBase {
55 virtual ~Looper();
59 * Creates a looper.
61 * If allowNonCallbaks is true, the looper will allow file descriptors to be
65 Looper(bool allowNonCallbacks);
68 * Returns whether this looper instance allows the registration of file descriptors
123 * Adds a new file descriptor to be polled by the looper.
151 * Removes a previously added file descriptor from the looper.
153 * When this method returns, it is safe to close the file descriptor since the looper
169 * Prepares a looper associated with the calling thread, and returns it.
170 * If the thread already has a looper, it is returned. Otherwise, a new
175 static sp<Looper> prepare(int opts);
178 * Sets the given looper to be associated with the calling thread.
179 * If another looper is already associated with the thread, it is replaced.
181 * If "looper" is NULL, removes the currently associated looper.
183 static void setForThread(const sp<Looper>& looper);
186 * Returns the looper associated with the calling thread, or NULL if
189 static sp<Looper> getForThread();