Home
last modified time | relevance | path

Searched refs:DisplayEventReceiver (Results 1 – 25 of 26) 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.bp37 "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()
84 DisplayEventReceiver::Event makeHotplug(PhysicalDisplayId displayId, nsecs_t timestamp, in makeHotplug()
86 DisplayEventReceiver::Event event; in makeHotplug()
87 event.header = {DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, displayId, timestamp}; in makeHotplug()
92 DisplayEventReceiver::Event makeVSync(PhysicalDisplayId displayId, nsecs_t timestamp, in makeVSync()
94 DisplayEventReceiver::Event event; in makeVSync()
95 event.header = {DisplayEventReceiver::DISPLAY_EVENT_VSYNC, displayId, timestamp}; in makeVSync()
100 DisplayEventReceiver::Event makeConfigChanged(PhysicalDisplayId displayId, int32_t configId) { in makeConfigChanged()
[all …]
DEventThread.h75 virtual status_t postEvent(const DisplayEventReceiver::Event& event);
162 bool shouldConsumeEvent(const DisplayEventReceiver::Event& event,
164 void dispatchEvent(const DisplayEventReceiver::Event& event,
185 std::deque<DisplayEventReceiver::Event> mPendingEvents GUARDED_BY(mMutex);
DMessageQueue.cpp163 DisplayEventReceiver::Event buffer[8]; in eventReceiver()
164 while ((n = DisplayEventReceiver::getEvents(&mEventTube, buffer, 8)) > 0) { in eventReceiver()
166 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
67 private static native long nativeInit(WeakReference<DisplayEventReceiver> receiver, in nativeInit()
79 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() method in DisplayEventReceiver
89 public DisplayEventReceiver(Looper looper, int vsyncSource) { in DisplayEventReceiver() method in DisplayEventReceiver
95 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;
906 private final class FrameDisplayEventReceiver extends DisplayEventReceiver
/frameworks/base/libs/androidfw/
DDisplayEventDispatcher.cpp120 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in processPendingEvents()
125 const DisplayEventReceiver::Event& ev = buf[i]; in processPendingEvents()
127 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in processPendingEvents()
135 case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: in processPendingEvents()
138 case DisplayEventReceiver::DISPLAY_EVENT_CONFIG_CHANGED: in processPendingEvents()
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h50 class DisplayEventReceiver {
93 explicit DisplayEventReceiver(
101 ~DisplayEventReceiver();
/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/services/displayservice/include/displayservice/
DDisplayEventReceiver.h37 class DisplayEventReceiver : public IDisplayEventReceiver {
45 using FwkReceiver = ::android::DisplayEventReceiver;
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp60 MOCK_METHOD1(postEvent, status_t(const DisplayEventReceiver::Event& event));
64 AsyncCallRecorderWithCannedReturn<status_t (*)(const DisplayEventReceiver::Event&)>;
178 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_VSYNC, event.header.type) in expectVsyncEventReceivedByConnection()
198 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, event.header.type); in expectHotplugEventReceivedByConnection()
208 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.h37 DisplayEventReceiver mReceiver;
/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()
257 if (event.header.type == DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG && in waitForHotplugEvent()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp61 DisplayEventReceiver mReceiver;
/frameworks/base/libs/input/
DPointerController.h150 DisplayEventReceiver mDisplayEventReceiver;
DPointerController.cpp502 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in handleEvent()
505 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in handleEvent()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java36 import android.view.DisplayEventReceiver;
857 private final class PhysicalDisplayEventReceiver extends DisplayEventReceiver {

12