/frameworks/native/libs/gui/tests/ |
D | DisplayEventStructLayout_test.cpp | 26 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 …]
|
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/native/libs/gui/ |
D | DisplayEventReceiver.cpp | 35 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 …]
|
D | DisplayEventDispatcher.cpp | 93 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/ |
D | EventThread.cpp | 83 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 …]
|
D | EventThread.h | 51 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);
|
D | MessageQueue.cpp | 197 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/ |
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 | 31 "DisplayEventReceiver.cpp",
|
/frameworks/native/services/surfaceflinger/tests/vsync/ |
D | vsync.cpp | 29 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/ |
D | DisplayEventReceiver.java | 41 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()
|
D | Choreographer.java | 19 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/ |
D | DisplayManagerServiceTest.java | 53 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/ |
D | DisplayEventDispatcher.h | 22 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; 48 void injectEvent(const DisplayEventReceiver::Event& event); 57 DisplayEventReceiver mReceiver;
|
D | DisplayEventReceiver.h | 50 class DisplayEventReceiver { 113 explicit DisplayEventReceiver( 122 ~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 | 72 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/ |
D | DisplayDeviceInfo.java | 25 import android.view.DisplayEventReceiver; 345 public DisplayEventReceiver.FrameRateOverride[] frameRateOverrides = 346 new DisplayEventReceiver.FrameRateOverride[0]; 492 for (DisplayEventReceiver.FrameRateOverride frameRateOverride : frameRateOverrides) { in toString()
|
D | LogicalDisplay.java | 28 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()
|
D | LocalDisplayAdapter.java | 36 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/ |
D | TestContext.h | 69 DisplayEventReceiver mDisplayEventReceiver;
|
D | TestContext.cpp | 135 DisplayEventReceiver::Event buf[100]; in waitForVsync()
|
/frameworks/base/libs/input/ |
D | PointerControllerContext.cpp | 184 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; in handleVsyncEvents() 187 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { in handleVsyncEvents()
|
/frameworks/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 308 DisplayEventReceiver::Event event; in scheduleLatestConfigRequest() 309 event.header = DisplayEventReceiver::Event::Header{DisplayEventReceiver::DISPLAY_EVENT_NULL, in scheduleLatestConfigRequest()
|