Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/
DDisplayEventReceiver.cpp35 DisplayEventReceiver::DisplayEventReceiver(ISurfaceComposer::VsyncSource vsyncSource, in DisplayEventReceiver() function in android::DisplayEventReceiver
47 DisplayEventReceiver::~DisplayEventReceiver() { in ~DisplayEventReceiver()
50 status_t DisplayEventReceiver::initCheck() const { in initCheck()
56 int DisplayEventReceiver::getFd() const { in getFd()
63 status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { in setVsyncRate()
74 status_t DisplayEventReceiver::requestNextVsync() { in requestNextVsync()
83 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, in getEvents()
85 return DisplayEventReceiver::getEvents(mDataChannel.get(), events, count); in getEvents()
88 ssize_t DisplayEventReceiver::getEvents(gui::BitTube* dataChannel, in getEvents()
94 ssize_t DisplayEventReceiver::sendEvents(gui::BitTube* dataChannel, in sendEvents()
DAndroid.bp51 "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/Scheduler/
DEventThread.cpp69 std::string toString(const DisplayEventReceiver::Event& event) { in toString()
71 case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: in toString()
75 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in toString()
79 case DisplayEventReceiver::DISPLAY_EVENT_CONFIG_CHANGED: in toString()
88 DisplayEventReceiver::Event makeHotplug(PhysicalDisplayId displayId, nsecs_t timestamp, in makeHotplug()
90 DisplayEventReceiver::Event event; in makeHotplug()
91 event.header = {DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, displayId, timestamp}; in makeHotplug()
96 DisplayEventReceiver::Event makeVSync(PhysicalDisplayId displayId, nsecs_t timestamp, in makeVSync()
98 DisplayEventReceiver::Event event; in makeVSync()
99 event.header = {DisplayEventReceiver::DISPLAY_EVENT_VSYNC, displayId, timestamp}; in makeVSync()
[all …]
DEventThread.h76 virtual status_t postEvent(const DisplayEventReceiver::Event& event);
166 bool shouldConsumeEvent(const DisplayEventReceiver::Event& event,
168 void dispatchEvent(const DisplayEventReceiver::Event& event,
189 std::deque<DisplayEventReceiver::Event> mPendingEvents GUARDED_BY(mMutex);
DMessageQueue.cpp164 DisplayEventReceiver::Event buffer[8]; in eventReceiver()
165 while ((n = DisplayEventReceiver::getEvents(&mEventTube, buffer, 8)) > 0) { in eventReceiver()
167 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in eventReceiver()
/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.java38 public abstract class DisplayEventReceiver { class
81 private static native long nativeInit(WeakReference<DisplayEventReceiver> receiver, in nativeInit()
93 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() method in DisplayEventReceiver
105 public DisplayEventReceiver(Looper looper, int vsyncSource, int configChanged) { in DisplayEventReceiver() method in DisplayEventReceiver
111 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;
910 private final class FrameDisplayEventReceiver extends DisplayEventReceiver
/frameworks/base/libs/androidfw/
DDisplayEventDispatcher.cpp121 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in processPendingEvents()
126 const DisplayEventReceiver::Event& ev = buf[i]; in processPendingEvents()
128 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in processPendingEvents()
136 case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: in processPendingEvents()
139 case DisplayEventReceiver::DISPLAY_EVENT_CONFIG_CHANGED: in processPendingEvents()
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp34 ChoreographerSync(DisplayEventReceiver& receiver) : receiver_(receiver) {} in ChoreographerSync()
41 return ev.header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC; in notify()
43 DisplayEventReceiver::Event ev_; in notify()
70 DisplayEventReceiver& receiver_;
75 auto receiver = std::make_unique<DisplayEventReceiver>(); in make()
104 ChoreographerSim(std::unique_ptr<DisplayEventReceiver> receiver) in ChoreographerSim()
131 std::unique_ptr<DisplayEventReceiver> const display_event_receiver_;
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp63 DisplayEventReceiverWrapper(std::unique_ptr<DisplayEventReceiver>&& receiver, in DisplayEventReceiverWrapper()
74 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in latestVsyncEvent()
79 const DisplayEventReceiver::Event& ev = buf[i]; in latestVsyncEvent()
81 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in latestVsyncEvent()
84 case DisplayEventReceiver::DISPLAY_EVENT_CONFIG_CHANGED: in latestVsyncEvent()
97 std::unique_ptr<DisplayEventReceiver> mDisplayEventReceiver;
159 auto receiver = std::make_unique<DisplayEventReceiver>( in initializeDisplayEventReceiver()
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h50 class DisplayEventReceiver {
94 explicit DisplayEventReceiver(
104 ~DisplayEventReceiver();
/frameworks/native/services/displayservice/include/displayservice/
DDisplayEventReceiver.h37 class DisplayEventReceiver : public IDisplayEventReceiver {
45 using FwkReceiver = ::android::DisplayEventReceiver;
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp61 MOCK_METHOD1(postEvent, status_t(const DisplayEventReceiver::Event& event));
65 AsyncCallRecorderWithCannedReturn<status_t (*)(const DisplayEventReceiver::Event&)>;
182 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_VSYNC, event.header.type) in expectVsyncEventReceivedByConnection()
202 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, event.header.type); in expectHotplugEventReceivedByConnection()
212 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_CONFIG_CHANGED, event.header.type); in expectConfigChangedEventReceivedByConnection()
/frameworks/base/libs/hwui/tests/common/
DTestContext.h64 DisplayEventReceiver mDisplayEventReceiver;
DTestContext.cpp125 DisplayEventReceiver::Event buf[100]; in waitForVsync()
/frameworks/base/libs/androidfw/include/androidfw/
DDisplayEventDispatcher.h38 DisplayEventReceiver mReceiver;
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DSFFakeHwc_test.cpp156 std::unique_ptr<DisplayEventReceiver> mReceiver;
158 std::deque<DisplayEventReceiver::Event> mReceivedDisplayEvents;
198 mReceiver.reset(new DisplayEventReceiver()); in SetUp()
225 DisplayEventReceiver::Event buffer[1]; in processDisplayEvents()
253 ALOGV_IF(event.header.type == DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, in waitForHotplugEvent()
258 if (event.header.type == DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG && in waitForHotplugEvent()
/frameworks/base/libs/input/
DPointerController.h165 DisplayEventReceiver mDisplayEventReceiver;
DPointerController.cpp518 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in handleEvent()
521 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in handleEvent()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp62 DisplayEventReceiver mReceiver;
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java36 import android.view.DisplayEventReceiver;
857 private final class PhysicalDisplayEventReceiver extends DisplayEventReceiver {

12