Home
last modified time | relevance | path

Searched refs:Looper (Results 1 – 9 of 9) sorted by relevance

/system/core/libutils/
DLooper.cpp62 Looper::Looper(bool allowNonCallbacks) in Looper() function in android::Looper
77 Looper::~Looper() { in ~Looper()
80 void Looper::initTLSKey() { in initTLSKey()
85 void Looper::threadDestructor(void *st) { in threadDestructor()
86 Looper* const self = static_cast<Looper*>(st); in threadDestructor()
92 void Looper::setForThread(const sp<Looper>& looper) { in setForThread()
93 sp<Looper> old = getForThread(); // also has side-effect of initializing TLS in setForThread()
106 sp<Looper> Looper::getForThread() { in getForThread()
110 return (Looper*)pthread_getspecific(gTLSKey); in getForThread()
113 sp<Looper> Looper::prepare(int opts) { in prepare()
[all …]
DLooper_test.cpp81 sp<Looper> mLooper;
84 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake()
110 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback()
157 sp<Looper> mLooper;
160 mLooper = new Looper(true); in SetUp()
176 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
189 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
203 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
214 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
222 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
[all …]
DAndroid.bp160 "Looper.cpp",
/system/hwservicemanager/
Dservice.cpp41 using android::Looper;
67 static sp<HwBinderCallback> setupTo(const sp<Looper>& looper) { in setupTo()
78 Looper::POLL_CALLBACK, in setupTo()
79 Looper::EVENT_INPUT, in setupTo()
96 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo()
117 Looper::POLL_CALLBACK, in setupTo()
118 Looper::EVENT_INPUT, in setupTo()
171 sp<Looper> looper = Looper::prepare(0 /* opts */); in main()
/system/core/libutils/include/utils/
DLooper.h140 class Looper : public RefBase {
142 virtual ~Looper();
233 Looper(bool allowNonCallbacks);
407 static sp<Looper> prepare(int opts);
415 static void setForThread(const sp<Looper>& looper);
421 static sp<Looper> getForThread();
/system/connectivity/wificond/
Dlooper_backed_event_loop.cpp73 looper_ = android::Looper::prepare(Looper::PREPARE_ALLOW_NON_CALLBACKS); in LooperBackedEventLoop()
99 event = Looper::EVENT_INPUT; in WatchFileDescriptor()
101 event = Looper::EVENT_OUTPUT; in WatchFileDescriptor()
Dlooper_backed_event_loop.h62 sp<android::Looper> looper_;
/system/incremental_delivery/libdataloader/
DDataLoaderConnector.cpp257 struct IncFsLooper : public android::Looper {
258 IncFsLooper() : Looper(/*allowNonCallbacks=*/false) {} in IncFsLooper()
262 static android::Looper& pendingReadsLooper() { in pendingReadsLooper()
267 static android::Looper& logLooper() { in logLooper()
762 pendingReadsLooper().addFd(control->pendingReads(), android::Looper::POLL_CALLBACK, in DataLoaderService_OnStart()
763 android::Looper::EVENT_INPUT, &onPendingReadsLooperEvent, in DataLoaderService_OnStart()
769 logLooper().addFd(control->logs(), android::Looper::POLL_CALLBACK, in DataLoaderService_OnStart()
770 android::Looper::EVENT_INPUT, &onLogLooperEvent, in DataLoaderService_OnStart()
/system/tools/aidl/tests/
Daidl_test_service.cpp54 using android::Looper;
520 sp<Looper> looper(Looper::prepare(0 /* opts */)); in Run()
530 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in Run()