Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp26 CHECK_OFFSET(DisplayEventReceiver::Event, vsync, 24); in TEST()
27 CHECK_OFFSET(DisplayEventReceiver::Event, hotplug, 24); in TEST()
28 CHECK_OFFSET(DisplayEventReceiver::Event, modeChange, 24); in TEST()
30 CHECK_OFFSET(DisplayEventReceiver::Event::Header, type, 0); in TEST()
31 CHECK_OFFSET(DisplayEventReceiver::Event::Header, displayId, 8); in TEST()
32 CHECK_OFFSET(DisplayEventReceiver::Event::Header, timestamp, 16); in TEST()
34 CHECK_OFFSET(DisplayEventReceiver::Event::VSync, count, 0); in TEST()
35 CHECK_OFFSET(DisplayEventReceiver::Event::VSync, expectedVSyncTimestamp, 8); in TEST()
36 CHECK_OFFSET(DisplayEventReceiver::Event::VSync, deadlineTimestamp, 16); in TEST()
37 CHECK_OFFSET(DisplayEventReceiver::Event::VSync, frameInterval, 24); in TEST()
[all …]
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/native/libs/gui/
DDisplayEventReceiver.cpp35 DisplayEventReceiver::DisplayEventReceiver( in DisplayEventReceiver() function in android::DisplayEventReceiver
48 DisplayEventReceiver::~DisplayEventReceiver() { in ~DisplayEventReceiver()
51 status_t DisplayEventReceiver::initCheck() const { in initCheck()
57 int DisplayEventReceiver::getFd() const { in getFd()
64 status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { in setVsyncRate()
75 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(Event const* events, size_t count) { in sendEvents()
[all …]
DDisplayEventDispatcher.cpp93 void DisplayEventDispatcher::injectEvent(const DisplayEventReceiver::Event& event) { in injectEvent()
138 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in processPendingEvents()
144 const DisplayEventReceiver::Event& ev = buf[i]; in processPendingEvents()
146 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in processPendingEvents()
157 case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: in processPendingEvents()
160 case DisplayEventReceiver::DISPLAY_EVENT_MODE_CHANGE: in processPendingEvents()
164 case DisplayEventReceiver::DISPLAY_EVENT_NULL: in processPendingEvents()
167 case DisplayEventReceiver::DISPLAY_EVENT_FRAME_RATE_OVERRIDE: in processPendingEvents()
170 case DisplayEventReceiver::DISPLAY_EVENT_FRAME_RATE_OVERRIDE_FLUSH: in processPendingEvents()
/frameworks/native/services/surfaceflinger/Scheduler/
DEventThread.cpp83 std::string toString(const DisplayEventReceiver::Event& event) { in toString()
85 case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: in toString()
89 case DisplayEventReceiver::DISPLAY_EVENT_VSYNC: in toString()
93 case DisplayEventReceiver::DISPLAY_EVENT_MODE_CHANGE: in toString()
101 DisplayEventReceiver::Event makeHotplug(PhysicalDisplayId displayId, nsecs_t timestamp, in makeHotplug()
103 DisplayEventReceiver::Event event; in makeHotplug()
104 event.header = {DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, displayId, timestamp}; in makeHotplug()
109 DisplayEventReceiver::Event makeVSync(PhysicalDisplayId displayId, nsecs_t timestamp, in makeVSync()
112 DisplayEventReceiver::Event event; in makeVSync()
113 event.header = {DisplayEventReceiver::DISPLAY_EVENT_VSYNC, displayId, timestamp}; in makeVSync()
[all …]
DEventThread.h51 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride;
89 virtual status_t postEvent(const DisplayEventReceiver::Event& event);
107 std::vector<DisplayEventReceiver::Event> mPendingEvents;
197 bool shouldConsumeEvent(const DisplayEventReceiver::Event& event,
199 void dispatchEvent(const DisplayEventReceiver::Event& event,
222 std::deque<DisplayEventReceiver::Event> mPendingEvents GUARDED_BY(mMutex);
DMessageQueue.cpp197 DisplayEventReceiver::Event buffer[8]; in injectorCallback()
198 while ((n = DisplayEventReceiver::getEvents(&mInjector.tube, buffer, 8)) > 0) { in injectorCallback()
200 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in injectorCallback()
/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.bp31 "DisplayEventReceiver.cpp",
/frameworks/native/services/surfaceflinger/tests/vsync/
Dvsync.cpp29 DisplayEventReceiver* q = (DisplayEventReceiver*)data; in receiver()
32 DisplayEventReceiver::Event buffer[1]; in receiver()
38 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in receiver()
56 DisplayEventReceiver myDisplayEvent; in main()
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java41 public abstract class DisplayEventReceiver { class
82 private static native long nativeInit(WeakReference<DisplayEventReceiver> receiver, in nativeInit()
94 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() method in DisplayEventReceiver
106 public DisplayEventReceiver(Looper looper, int vsyncSource, int eventRegistration) { in DisplayEventReceiver() method in DisplayEventReceiver
112 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;
190 private DisplayEventReceiver.VsyncEventData mLastVsyncEventData =
191 new DisplayEventReceiver.VsyncEventData();
702 DisplayEventReceiver.VsyncEventData vsyncEventData) { in doFrame()
954 doFrame(System.nanoTime(), 0, new DisplayEventReceiver.VsyncEventData()); in handleMessage()
966 private final class FrameDisplayEventReceiver extends DisplayEventReceiver
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java53 import android.view.DisplayEventReceiver;
631 new DisplayEventReceiver.FrameRateOverride[]{ in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
632 new DisplayEventReceiver.FrameRateOverride(myUid, 30f), in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
638 new DisplayEventReceiver.FrameRateOverride[]{ in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
639 new DisplayEventReceiver.FrameRateOverride(myUid, 30f), in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
640 new DisplayEventReceiver.FrameRateOverride(1234, 30f), in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
645 new DisplayEventReceiver.FrameRateOverride[]{ in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
646 new DisplayEventReceiver.FrameRateOverride(myUid, 20f), in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
647 new DisplayEventReceiver.FrameRateOverride(1234, 30f), in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
648 new DisplayEventReceiver.FrameRateOverride(5678, 30f), in testShouldNotifyChangeWhenDisplayInfoFrameRateOverrideChanged()
[all …]
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h22 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride;
48 void injectEvent(const DisplayEventReceiver::Event& event);
57 DisplayEventReceiver mReceiver;
DDisplayEventReceiver.h50 class DisplayEventReceiver {
113 explicit DisplayEventReceiver(
122 ~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.cpp72 MOCK_METHOD1(postEvent, status_t(const DisplayEventReceiver::Event& event));
76 AsyncCallRecorderWithCannedReturn<status_t (*)(const DisplayEventReceiver::Event&)>;
232 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_VSYNC, event.header.type) in expectVsyncEventReceivedByConnection()
252 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG, event.header.type); in expectHotplugEventReceivedByConnection()
263 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_MODE_CHANGE, event.header.type); in expectConfigChangedEventReceivedByConnection()
275 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_FRAME_RATE_OVERRIDE, event.header.type); in expectUidFrameRateMappingEventReceivedByConnection()
284 EXPECT_EQ(DisplayEventReceiver::DISPLAY_EVENT_FRAME_RATE_OVERRIDE_FLUSH, event.header.type); in expectUidFrameRateMappingEventReceivedByConnection()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java25 import android.view.DisplayEventReceiver;
345 public DisplayEventReceiver.FrameRateOverride[] frameRateOverrides =
346 new DisplayEventReceiver.FrameRateOverride[0];
492 for (DisplayEventReceiver.FrameRateOverride frameRateOverride : frameRateOverrides) { in toString()
DLogicalDisplay.java28 import android.view.DisplayEventReceiver;
170 private DisplayEventReceiver.FrameRateOverride[] mFrameRateOverrides;
243 public DisplayEventReceiver.FrameRateOverride[] getFrameRateOverrides() { in getFrameRateOverrides()
435 for (DisplayEventReceiver.FrameRateOverride frameRateOverride in updateFrameRateOverrides()
443 for (DisplayEventReceiver.FrameRateOverride frameRateOverride in updateFrameRateOverrides()
DLocalDisplayAdapter.java36 import android.view.DisplayEventReceiver;
215 private DisplayEventReceiver.FrameRateOverride[] mFrameRateOverrides =
216 new DisplayEventReceiver.FrameRateOverride[0];
893 DisplayEventReceiver.FrameRateOverride[] overrides) { in onFrameRateOverridesChanged()
913 DisplayEventReceiver.FrameRateOverride[] overrides) { in updateFrameRateOverridesLocked()
1131 DisplayEventReceiver.FrameRateOverride[] overrides);
1135 public static final class ProxyDisplayEventReceiver extends DisplayEventReceiver {
1156 DisplayEventReceiver.FrameRateOverride[] overrides) {
1196 DisplayEventReceiver.FrameRateOverride[] overrides) {
/frameworks/base/libs/hwui/tests/common/
DTestContext.h69 DisplayEventReceiver mDisplayEventReceiver;
DTestContext.cpp135 DisplayEventReceiver::Event buf[100]; in waitForVsync()
/frameworks/base/libs/input/
DPointerControllerContext.cpp184 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in handleVsyncEvents()
187 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in handleVsyncEvents()
/frameworks/native/libs/nativedisplay/
DAChoreographer.cpp308 DisplayEventReceiver::Event event; in scheduleLatestConfigRequest()
309 event.header = DisplayEventReceiver::Event::Header{DisplayEventReceiver::DISPLAY_EVENT_NULL, in scheduleLatestConfigRequest()

12