Lines Matching refs:Looper

6 #define LOG_TAG "Looper"
17 #include <utils/Looper.h>
58 // --- Looper ---
69 Looper::Looper(bool allowNonCallbacks) :
102 Looper::~Looper() {
108 void Looper::initTLSKey() {
113 void Looper::threadDestructor(void *st) {
114 Looper* const self = static_cast<Looper*>(st);
120 void Looper::setForThread(const sp<Looper>& looper) {
121 sp<Looper> old = getForThread(); // also has side-effect of initializing TLS
134 sp<Looper> Looper::getForThread() {
138 return (Looper*)pthread_getspecific(gTLSKey);
141 sp<Looper> Looper::prepare(int opts) {
143 sp<Looper> looper = Looper::getForThread();
145 looper = new Looper(allowNonCallbacks);
146 Looper::setForThread(looper);
149 ALOGW("Looper already prepared for this thread with a different value for the "
155 bool Looper::getAllowNonCallbacks() const {
159 int Looper::pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
195 int Looper::pollInner(int timeoutMillis) {
342 int Looper::pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
368 void Looper::wake() {
385 void Looper::awoken() {
397 void Looper::pushResponse(int events, const Request& request) {
404 int Looper::addFd(int fd, int ident, int events, ALooper_callbackFunc callback, void* data) {
408 int Looper::addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) {
466 int Looper::removeFd(int fd) {
489 void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) {
494 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
500 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
519 // Optimization: If the Looper is currently sending a message, then we can skip
520 // the call to wake() because the next thing the Looper will do after processing
522 // not even matter whether this code is running on the Looper thread.
534 void Looper::removeMessages(const sp<MessageHandler>& handler) {
551 void Looper::removeMessages(const sp<MessageHandler>& handler, int what) {
569 bool Looper::isIdling() const {