Home
last modified time | relevance | path

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

12

/hardware/google/aemu/base/include/aemu/base/async/
DLooper.h42 class Looper {
61 static Looper* create();
63 virtual ~Looper();
110 Looper* parentLooper() const;
131 Timer(Looper* looper, Callback callback, void* opaque,
134 Looper* mLooper;
185 FdWatch(Looper* looper, int fd, Callback callback, void* opaque);
187 Looper* mLooper;
217 Task(Looper* looper, Callback&& callback);
219 Looper* const mLooper;
[all …]
DDefaultLooper.h33 class DefaultLooper : public Looper {
50 class FdWatch : public Looper::FdWatch {
93 Looper::FdWatch* createFdWatch(int fd,
94 Looper::FdWatch::Callback callback,
101 class Timer : public Looper::Timer {
149 Looper::Timer* createTimer(Looper::Timer::Callback callback,
156 class Task : public Looper::Task {
158 Task(Looper* looper, Looper::Task::Callback&& callback,
DRecurrentTask.h59 RecurrentTask(Looper* looper, in RecurrentTask()
61 Looper::Duration taskIntervalMs) in RecurrentTask()
108 Looper::Duration taskIntervalMs() const { return mTaskIntervalMs; } in taskIntervalMs()
111 static void taskCallback(void* opaqueThis, Looper::Timer* timer) { in taskCallback()
148 Looper* const mLooper;
153 const std::unique_ptr<Looper::Timer> mTimer;
DAsyncSocket.h35 AsyncSocket(Looper* looper, int port);
36 AsyncSocket(Looper* looper, ScopedSocket socket);
59 Looper* mLooper;
62 std::unique_ptr<Looper::FdWatch> mFdWatch;
DScopedSocketWatch.h30 void operator()(android::base::Looper::FdWatch* watch) const;
33 using ScopedSocketWatch = std::unique_ptr<Looper::FdWatch, SocketWatchDeleter>;
DThreadLooper.h33 static Looper* get();
41 static void setLooper(Looper* looper, bool own = false);
DAsyncReader.h57 void reset(void* buffer, size_t buffSize, Looper::FdWatch* watch);
65 Looper::FdWatch* mFdWatch;
DAsyncWriter.h35 Looper::FdWatch* watch);
43 Looper::FdWatch* mFdWatch;
DAsyncSocketServer.h23 class Looper; variable
87 Looper* looper = nullptr);
/hardware/google/aemu/base/include/aemu/base/threads/internal/
DParallelTaskBase.h37 ParallelTaskBase(android::base::Looper* looper,
38 android::base::Looper::Duration checkTimeoutMs,
67 android::base::Looper::Timer* timer);
69 void tryWaitTillJoined(android::base::Looper::Timer* timer);
71 android::base::Looper* mLooper;
72 android::base::Looper::Duration mCheckTimeoutMs;
76 std::unique_ptr<android::base::Looper::Timer> mTimer;
DParallelTaskBase.cpp21 ParallelTaskBase::ParallelTaskBase(Looper* looper, in ParallelTaskBase()
22 Looper::Duration checkTimeoutMs, in ParallelTaskBase()
44 Looper::Timer* timer) { in tryWaitTillJoinedStatic()
48 void ParallelTaskBase::tryWaitTillJoined(Looper::Timer* timer) { in tryWaitTillJoined()
/hardware/google/aemu/base/include/aemu/base/threads/
DParallelTask.h105 ParallelTask(android::base::Looper* looper,
108 android::base::Looper::Duration checkTimeoutMs = 1 * 1000,
144 SelfDeletingParallelTask(android::base::Looper* looper, in SelfDeletingParallelTask()
147 android::base::Looper::Duration checkTimeoutMs) in SelfDeletingParallelTask()
173 bool runParallelTask(android::base::Looper* looper,
176 android::base::Looper::Duration checkTimeoutMs = 1 * 1000) {
DAsync.h36 class Looper; variable
44 Looper* getLooper();
/hardware/google/gfxstream/host/gl/gl-host-common/include/host-common/opengl/
DGpuFrameBridge.h19 class Looper; variable
23 class Looper; variable
/hardware/google/aemu/base/include/aemu/base/
DCpuUsage.h28 class Looper; variable
47 void addLooper(int usageArea, Looper* looper);
/hardware/libhardware/modules/sensors/dynamic_sensor/
DConnectionDetector.cpp113 mLooper(new Looper(true /*allowNonCallback*/)), mInotifyFd(-1) { in FileConnectionDetector()
125 if (wd < 0 || !mLooper->addFd(mInotifyFd, POLL_IDENT, Looper::EVENT_INPUT, nullptr, nullptr)) { in FileConnectionDetector()
226 Looper::setForThread(mLooper); in threadLoop()
231 if (ret != Looper::POLL_WAKE && ret != POLL_IDENT) { in threadLoop()
/hardware/google/pixel/thermal/
DThermal.h88 class Looper {
94 Looper() { in Looper() function
97 ~Looper();
117 Looper looper_;
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DWatchdogClient.h35 explicit WatchdogClient(const ::android::sp<::android::Looper>& handlerLooper,
59 ::android::sp<::android::Looper> mHandlerLooper;
/hardware/google/aemu/base/include/aemu/base/testing/
DTestLooper.h51 inline Looper::Duration TestLooper::nowMs(ClockType clockType) { in nowMs()
59 inline Looper::DurationNs TestLooper::nowNs(ClockType clockType) { in nowNs()
/hardware/google/pixel/powerstats/dataproviders/
DDisplayStateResidencyDataProvider.cpp41 mLooper(new ::android::Looper(true)) { in DisplayStateResidencyDataProvider()
58 mLooper->addFd(mFd, 0, ::android::Looper::EVENT_ERROR, nullptr, nullptr); in DisplayStateResidencyDataProvider()
156 if (res >= 0 || res == ::android::Looper::POLL_TIMEOUT) { in pollLoop()
/hardware/google/pixel/thermal/utils/
Dthermal_watcher.h52 : Thread(false), cb_(cb), looper_(new ::android::Looper(true)) {} in ThermalWatcher()
94 ::android::sp<::android::Looper> looper_;
/hardware/google/aemu/base/include/aemu/base/sockets/
DSocketDrainer.h45 SocketDrainer(Looper* looper);
/hardware/google/aemu/host-common/include/host-common/
DAndroidPipe.h27 class Looper; variable
80 static void initThreadingForTest(VmLock* lock, base::Looper* looper);
/hardware/google/gfxstream/host/gl/gl-host-common/opengl/
DGpuFrameBridge_unittest.cpp31 using android::base::Looper;
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/
DRecurrentTimer.cpp41 mLooper = sp<Looper>::make(/*allowNonCallbacks=*/false); in RecurrentTimer()
43 Looper::setForThread(mLooper); in RecurrentTimer()

12