/frameworks/native/libs/gui/ |
D | DisplayEventReceiver.cpp | 35 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()
|
D | Android.bp | 51 "DisplayEventReceiver.cpp",
|
/frameworks/native/services/displayservice/ |
D | DisplayEventReceiver.cpp | 47 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()
|
D | DisplayService.cpp | 27 return new DisplayEventReceiver(); in getEventReceiver()
|
D | Android.bp | 22 "DisplayEventReceiver.cpp",
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventThread.cpp | 69 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 …]
|
D | EventThread.h | 76 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);
|
D | MessageQueue.cpp | 164 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/ |
D | vsync.cpp | 25 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/ |
D | DisplayEventReceiver.java | 38 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()
|
D | Choreographer.java | 19 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/ |
D | DisplayEventDispatcher.cpp | 121 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/ |
D | RegionSampling_test.cpp | 34 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/ |
D | RenderThread.cpp | 63 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/ |
D | DisplayEventReceiver.h | 50 class DisplayEventReceiver { 94 explicit DisplayEventReceiver( 104 ~DisplayEventReceiver();
|
/frameworks/native/services/displayservice/include/displayservice/ |
D | DisplayEventReceiver.h | 37 class DisplayEventReceiver : public IDisplayEventReceiver { 45 using FwkReceiver = ::android::DisplayEventReceiver;
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 61 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/ |
D | TestContext.h | 64 DisplayEventReceiver mDisplayEventReceiver;
|
D | TestContext.cpp | 125 DisplayEventReceiver::Event buf[100]; in waitForVsync()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | DisplayEventDispatcher.h | 38 DisplayEventReceiver mReceiver;
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | SFFakeHwc_test.cpp | 156 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/ |
D | PointerController.h | 165 DisplayEventReceiver mDisplayEventReceiver;
|
D | PointerController.cpp | 518 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in handleEvent() 521 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in handleEvent()
|
/frameworks/base/core/jni/ |
D | android_view_DisplayEventReceiver.cpp | 62 DisplayEventReceiver mReceiver;
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 36 import android.view.DisplayEventReceiver; 857 private final class PhysicalDisplayEventReceiver extends DisplayEventReceiver {
|