Home
last modified time | relevance | path

Searched refs:flinger (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_layer_fuzzer.cpp47 LayerCreationArgs createLayerCreationArgs(TestableSurfaceFlinger* flinger, sp<Client> client);
66 LayerCreationArgs LayerFuzzer::createLayerCreationArgs(TestableSurfaceFlinger* flinger, in createLayerCreationArgs() argument
68 flinger->setupScheduler(std::make_unique<android::mock::VsyncController>(), in createLayerCreationArgs()
73 return LayerCreationArgs(flinger->flinger(), client, in createLayerCreationArgs()
79 TestableSurfaceFlinger flinger; in invokeEffectLayer() local
80 sp<Client> client = sp<Client>::make(flinger.flinger()); in invokeEffectLayer()
81 const LayerCreationArgs layerCreationArgs = createLayerCreationArgs(&flinger, client); in invokeEffectLayer()
111 TestableSurfaceFlinger flinger; in invokeBufferStateLayer() local
112 sp<Client> client = sp<Client>::make(flinger.flinger()); in invokeBufferStateLayer()
114 sp<BufferStateLayer>::make(createLayerCreationArgs(&flinger, client)); in invokeBufferStateLayer()
[all …]
Dsurfaceflinger_scheduler_fuzzer.cpp209 TestableSurfaceFlinger flinger; in fuzzLayerHistory() local
210 flinger.setupScheduler(std::make_unique<android::mock::VsyncController>(), in fuzzLayerHistory()
214 flinger.setupTimeStats(std::make_unique<android::mock::TimeStats>()); in fuzzLayerHistory()
217 flinger.setupRenderEngine(std::move(renderEngine)); in fuzzLayerHistory()
218 flinger.setupComposer(std::make_unique<android::Hwc2::mock::Composer>()); in fuzzLayerHistory()
220 scheduler::TestableScheduler* scheduler = flinger.scheduler(); in fuzzLayerHistory()
227 sp<FuzzImplLayer> layer1 = new FuzzImplLayer(flinger.flinger()); in fuzzLayerHistory()
228 sp<FuzzImplLayer> layer2 = new FuzzImplLayer(flinger.flinger()); in fuzzLayerHistory()
312 TestableSurfaceFlinger flinger; in fuzzRefreshRateSelection() local
313 flinger.setupScheduler(std::make_unique<android::mock::VsyncController>(), in fuzzRefreshRateSelection()
[all …]
Dsurfaceflinger_scheduler_fuzzer.h71 FuzzImplLayer(SurfaceFlinger* flinger, std::string name) in FuzzImplLayer() argument
72 : Layer(LayerCreationArgs(flinger, nullptr, std::move(name), 0, {})) {} in FuzzImplLayer()
73 explicit FuzzImplLayer(SurfaceFlinger* flinger) : FuzzImplLayer(flinger, "FuzzLayer") {} in FuzzImplLayer() argument
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerTestUtils.cpp28 sp<Layer> BufferStateLayerFactory::createLayer(TestableSurfaceFlinger& flinger) { in createLayer() argument
30 LayerCreationArgs args(flinger.flinger(), client, "buffer-state-layer", LAYER_FLAGS, in createLayer()
35 sp<Layer> EffectLayerFactory::createLayer(TestableSurfaceFlinger& flinger) { in createLayer() argument
37 LayerCreationArgs args(flinger.flinger(), client, "color-layer", LAYER_FLAGS, LayerMetadata()); in createLayer()
DLayerTestUtils.h41 virtual sp<Layer> createLayer(TestableSurfaceFlinger& flinger) = 0;
52 sp<Layer> createLayer(TestableSurfaceFlinger& flinger) override;
58 sp<Layer> createLayer(TestableSurfaceFlinger& flinger) override;
DTestableSurfaceFlinger.h116 const sp<SurfaceFlinger>& flinger, in createMonitoredProducer() argument
118 return new MonitoredProducer(producer, flinger, layer); in createMonitoredProducer()
182 TestableSurfaceFlinger(sp<SurfaceFlinger> flinger = nullptr) : mFlinger(flinger) { in mFlinger() argument
189 SurfaceFlinger* flinger() { return mFlinger.get(); } in flinger() function
646 void inject(TestableSurfaceFlinger* flinger, Hwc2::mock::Composer* composer) { in inject() argument
666 flinger->mutableHwcDisplayData()[mDisplayId].hwcDisplay = std::move(display); in inject()
707 flinger->mutableHwcPhysicalDisplayIdMap().emplace(mHwcDisplayId, *physicalId); in inject()
709 flinger->mutablePrimaryHwcDisplayId() = mHwcDisplayId; in inject()
713 auto& primaryId = flinger->mutablePrimaryHwcDisplayId(); in inject()
738 FakeDisplayDeviceInjector(TestableSurfaceFlinger& flinger, in FakeDisplayDeviceInjector() argument
[all …]
DFakeDisplayInjector.h39 FakeDisplayInjector(TestableSurfaceFlinger& flinger, Hwc2::mock::PowerAdvisor& powerAdvisor, in FakeDisplayInjector() argument
41 : mFlinger(flinger), mPowerAdvisor(powerAdvisor), mNativeWindow(nativeWindow) {} in FakeDisplayInjector()
DSchedulerTest.cpp155 sp<MockLayer> layer = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F()
174 sp<MockLayer> layer = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F()
224 const sp<MockLayer> layer = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockLayer.h27 MockLayer(SurfaceFlinger* flinger, std::string name) in MockLayer() argument
28 : Layer(LayerCreationArgs(flinger, nullptr, std::move(name), 0, {})) {} in MockLayer()
29 explicit MockLayer(SurfaceFlinger* flinger) : MockLayer(flinger, "TestLayer") {} in MockLayer() argument
/frameworks/native/services/surfaceflinger/
Dmain_surfaceflinger.cpp129 sp<SurfaceFlinger> flinger = surfaceflinger::createSurfaceFlinger(); in main() local
135 flinger->setMinSchedulerPolicy(SCHED_FIFO, newPriority); in main()
148 flinger->init(); in main()
152 sm->addService(String16(SurfaceFlinger::getServiceName()), flinger, false, in main()
156 sp<SurfaceComposerAIDL> composerAIDL = new SurfaceComposerAIDL(flinger); in main()
167 flinger->run(); in main()
DWindowInfosListenerInvoker.cpp41 WindowInfosListenerInvoker::WindowInfosListenerInvoker(SurfaceFlinger& flinger) in WindowInfosListenerInvoker() argument
42 : mFlinger(flinger), in WindowInfosListenerInvoker()
DRegionSamplingThread.h69 explicit RegionSamplingThread(SurfaceFlinger& flinger, const TimingTunables& tunables);
70 explicit RegionSamplingThread(SurfaceFlinger& flinger);
DLayerRenderArea.cpp39 LayerRenderArea::LayerRenderArea(SurfaceFlinger& flinger, sp<Layer> layer, const Rect& crop, in LayerRenderArea() argument
45 mFlinger(flinger), in LayerRenderArea()
DFpsReporter.cpp29 FpsReporter::FpsReporter(frametimeline::FrameTimeline& frameTimeline, SurfaceFlinger& flinger, in FpsReporter() argument
31 : mFrameTimeline(frameTimeline), mFlinger(flinger), mClock(std::move(clock)) { in FpsReporter()
DClient.cpp36 Client::Client(const sp<SurfaceFlinger>& flinger) in Client() argument
37 : mFlinger(flinger) in Client()
DSurfaceFlingerDefaultFactory.cpp88 const sp<IGraphicBufferProducer>& producer, const sp<SurfaceFlinger>& flinger, in createMonitoredProducer() argument
90 return new MonitoredProducer(producer, flinger, layer); in createMonitoredProducer()
DRegionSamplingThread.cpp98 RegionSamplingThread::RegionSamplingThread(SurfaceFlinger& flinger, const TimingTunables& tunables) in RegionSamplingThread() argument
99 : mFlinger(flinger), in RegionSamplingThread()
112 RegionSamplingThread::RegionSamplingThread(SurfaceFlinger& flinger) in RegionSamplingThread() argument
113 : RegionSamplingThread(flinger, in RegionSamplingThread()
DMonitoredProducer.cpp30 const sp<SurfaceFlinger>& flinger, in MonitoredProducer() argument
33 mFlinger(flinger), in MonitoredProducer()
DLayerRenderArea.h35 LayerRenderArea(SurfaceFlinger& flinger, sp<Layer> layer, const Rect& crop, ui::Size reqSize,
DFpsReporter.h36 FpsReporter(frametimeline::FrameTimeline& frameTimeline, SurfaceFlinger& flinger,
/frameworks/native/services/surfaceflinger/Tracing/tools/
DLayerTraceGenerator.cpp188 sp<MockSurfaceFlinger> flinger = new MockSurfaceFlinger(mFactory); in generate() local
189 TestableSurfaceFlinger mFlinger(flinger); in generate()
207 flinger->setLayerTracingFlags(LayerTracing::TRACE_INPUT | LayerTracing::TRACE_BUFFERS); in generate()
208 flinger->startLayerTracing(traceFile.entry(0).elapsed_realtime_nanos()); in generate()
231 LayerCreationArgs args(mFlinger.flinger(), nullptr /* client */, tracingArgs.name, in generate()
277 flinger->stopLayerTracing(outputLayersTracePath); in generate()
Dreadme.md4 surface flinger build that mocks out everything else apart from the
/frameworks/native/services/vr/virtual_touchpad/idc/
Dvr-virtual-touchpad-1.idc21 # Have input flinger treat injected scroll events like a G1 ball
29 # This will indicate to input flinger than it should link this input device
/frameworks/native/services/surfaceflinger/Tracing/
DLayerTracing.cpp32 LayerTracing::LayerTracing(SurfaceFlinger& flinger) : mFlinger(flinger) { in LayerTracing() argument
DLayerTracing.h43 LayerTracing(SurfaceFlinger& flinger);

123