Home
last modified time | relevance | path

Searched refs:DisplayEventReceiver (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/libs/gui/
DDisplayEventReceiver.cpp35 DisplayEventReceiver::DisplayEventReceiver(ISurfaceComposer::VsyncSource vsyncSource) { in DisplayEventReceiver() function in android::DisplayEventReceiver
46 DisplayEventReceiver::~DisplayEventReceiver() { in ~DisplayEventReceiver()
49 status_t DisplayEventReceiver::initCheck() const { in initCheck()
55 int DisplayEventReceiver::getFd() const { in getFd()
62 status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { in setVsyncRate()
73 status_t DisplayEventReceiver::requestNextVsync() { in requestNextVsync()
82 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, in getEvents()
84 return DisplayEventReceiver::getEvents(mDataChannel.get(), events, count); in getEvents()
87 ssize_t DisplayEventReceiver::getEvents(gui::BitTube* dataChannel, in getEvents()
93 ssize_t DisplayEventReceiver::sendEvents(gui::BitTube* dataChannel, in sendEvents()
DAndroid.bp99 "DisplayEventReceiver.cpp",
/frameworks/native/services/displayservice/
DDisplayEventReceiver.cpp47 DisplayEventReceiver::AttachedEvent::AttachedEvent(const sp<IEventCallback> &callback) in AttachedEvent()
57 DisplayEventReceiver::AttachedEvent::~AttachedEvent() { in ~AttachedEvent()
63 bool DisplayEventReceiver::AttachedEvent::detach() { in detach()
71 bool DisplayEventReceiver::AttachedEvent::valid() const { in valid()
75 DisplayEventReceiver::FwkReceiver &DisplayEventReceiver::AttachedEvent::receiver() { in receiver()
79 int DisplayEventReceiver::AttachedEvent::handleEvent(int fd, int events, void* /* data */) { in handleEvent()
130 Return<Status> DisplayEventReceiver::init(const sp<IEventCallback>& callback) { in init()
142 Return<Status> DisplayEventReceiver::setVsyncRate(int32_t count) { in setVsyncRate()
153 Return<Status> DisplayEventReceiver::requestNextVsync() { in requestNextVsync()
164 Return<Status> DisplayEventReceiver::close() { in close()
DDisplayService.cpp27 return new DisplayEventReceiver(); in getEventReceiver()
DAndroid.bp22 "DisplayEventReceiver.cpp",
/frameworks/native/services/surfaceflinger/tests/vsync/
Dvsync.cpp25 DisplayEventReceiver* q = (DisplayEventReceiver*)data; in receiver()
28 DisplayEventReceiver::Event buffer[1]; in receiver()
34 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in receiver()
52 DisplayEventReceiver myDisplayEvent; in main()
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java37 public abstract class DisplayEventReceiver { class
65 private static native long nativeInit(WeakReference<DisplayEventReceiver> receiver, in nativeInit()
76 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() method in DisplayEventReceiver
86 public DisplayEventReceiver(Looper looper, int vsyncSource) { in DisplayEventReceiver() method in DisplayEventReceiver
92 mReceiverPtr = nativeInit(new WeakReference<DisplayEventReceiver>(this), mMessageQueue, in DisplayEventReceiver()
DChoreographer.java19 import static android.view.DisplayEventReceiver.VSYNC_SOURCE_APP;
20 import static android.view.DisplayEventReceiver.VSYNC_SOURCE_SURFACE_FLINGER;
876 private final class FrameDisplayEventReceiver extends DisplayEventReceiver
/frameworks/native/services/surfaceflinger/
DEventThread.cpp54 event.header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC; in EventThread()
151 mVSyncEvent[0].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC; in onVSyncEvent()
164 DisplayEventReceiver::Event event; in onHotplugReceived()
165 event.header.type = DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG; in onHotplugReceived()
177 DisplayEventReceiver::Event event; in threadMain()
208 std::unique_lock<std::mutex>* lock, DisplayEventReceiver::Event* event) { in waitForEventLocked()
321 mVSyncEvent[0].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC; in waitForEventLocked()
405 status_t EventThread::Connection::postEvent(const DisplayEventReceiver::Event& event) { in postEvent()
406 ssize_t size = DisplayEventReceiver::sendEvents(&mChannel, &event, 1); in postEvent()
DEventThread.h88 virtual status_t postEvent(const DisplayEventReceiver::Event& event);
136 DisplayEventReceiver::Event* event)
157 Vector<DisplayEventReceiver::Event> mPendingEvents GUARDED_BY(mMutex);
158 DisplayEventReceiver::Event mVSyncEvent[DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES] GUARDED_BY(
DMessageQueue.cpp151 DisplayEventReceiver::Event buffer[8]; in eventReceiver()
152 while ((n = DisplayEventReceiver::getEvents(&mEventTube, buffer, 8)) > 0) { in eventReceiver()
154 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in eventReceiver()
/frameworks/base/libs/androidfw/
DDisplayEventDispatcher.cpp119 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in processPendingEvents()
124 const DisplayEventReceiver::Event& ev = buf[i]; in processPendingEvents()
126 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in processPendingEvents()
134 case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: in processPendingEvents()
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h50 class DisplayEventReceiver {
87 DisplayEventReceiver(
95 ~DisplayEventReceiver();
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp59 DisplayEventReceiverWrapper(std::unique_ptr<DisplayEventReceiver>&& receiver) in DisplayEventReceiverWrapper()
68 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in latestVsyncEvent()
73 const DisplayEventReceiver::Event& ev = buf[i]; in latestVsyncEvent()
75 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in latestVsyncEvent()
88 std::unique_ptr<DisplayEventReceiver> mDisplayEventReceiver;
147 auto receiver = std::make_unique<DisplayEventReceiver>(); in initializeDisplayEventReceiver()
/frameworks/native/services/displayservice/include/displayservice/
DDisplayEventReceiver.h37 class DisplayEventReceiver : public IDisplayEventReceiver {
45 using FwkReceiver = ::android::DisplayEventReceiver;
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp54 MOCK_METHOD1(postEvent, status_t(const DisplayEventReceiver::Event& event));
58 AsyncCallRecorderWithCannedReturn<status_t (*)(const DisplayEventReceiver::Event&)>;
157 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_VSYNC, event.header.type) in expectVsyncEventReceivedByConnection()
177 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, event.header.type); in expectHotplugEventReceivedByConnection()
/frameworks/base/libs/androidfw/include/androidfw/
DDisplayEventDispatcher.h37 DisplayEventReceiver mReceiver;
/frameworks/base/libs/hwui/tests/common/
DTestContext.h64 DisplayEventReceiver mDisplayEventReceiver;
DTestContext.cpp123 DisplayEventReceiver::Event buf[100]; in waitForVsync()
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DSFFakeHwc_test.cpp155 std::unique_ptr<DisplayEventReceiver> mReceiver;
157 std::deque<DisplayEventReceiver::Event> mReceivedDisplayEvents;
197 mReceiver.reset(new DisplayEventReceiver()); in SetUp()
224 DisplayEventReceiver::Event buffer[1]; in processDisplayEvents()
252 ALOGV_IF(event.header.type == DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, in waitForHotplugEvent()
256 if (event.header.type == DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG && in waitForHotplugEvent()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp60 DisplayEventReceiver mReceiver;
/frameworks/base/libs/input/
DPointerController.h149 DisplayEventReceiver mDisplayEventReceiver;
DPointerController.cpp497 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in handleEvent()
500 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in handleEvent()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java40 import android.view.DisplayEventReceiver;
726 private final class HotplugDisplayEventReceiver extends DisplayEventReceiver {
/frameworks/base/config/
Dhiddenapi-light-greylist.txt5992 Landroid/view/DisplayEventReceiver;-><init>(Landroid/os/Looper;)V
5993 Landroid/view/DisplayEventReceiver;->dispatchHotplug(JIZ)V
5994 Landroid/view/DisplayEventReceiver;->dispatchVsync(JII)V
5995 Landroid/view/DisplayEventReceiver;->mReceiverPtr:J
5996 Landroid/view/DisplayEventReceiver;->onHotplug(JIZ)V
5997 Landroid/view/DisplayEventReceiver;->onVsync(JII)V
5998 Landroid/view/DisplayEventReceiver;->scheduleVsync()V

12