/frameworks/native/services/surfaceflinger/fuzzer/ |
D | surfaceflinger_layer_fuzzer.cpp | 47 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 …]
|
D | surfaceflinger_scheduler_fuzzer.cpp | 209 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 …]
|
D | surfaceflinger_scheduler_fuzzer.h | 71 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/ |
D | LayerTestUtils.cpp | 28 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()
|
D | LayerTestUtils.h | 41 virtual sp<Layer> createLayer(TestableSurfaceFlinger& flinger) = 0; 52 sp<Layer> createLayer(TestableSurfaceFlinger& flinger) override; 58 sp<Layer> createLayer(TestableSurfaceFlinger& flinger) override;
|
D | TestableSurfaceFlinger.h | 116 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 …]
|
D | FakeDisplayInjector.h | 39 FakeDisplayInjector(TestableSurfaceFlinger& flinger, Hwc2::mock::PowerAdvisor& powerAdvisor, in FakeDisplayInjector() argument 41 : mFlinger(flinger), mPowerAdvisor(powerAdvisor), mNativeWindow(nativeWindow) {} in FakeDisplayInjector()
|
D | SchedulerTest.cpp | 155 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/ |
D | MockLayer.h | 27 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/ |
D | main_surfaceflinger.cpp | 129 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()
|
D | WindowInfosListenerInvoker.cpp | 41 WindowInfosListenerInvoker::WindowInfosListenerInvoker(SurfaceFlinger& flinger) in WindowInfosListenerInvoker() argument 42 : mFlinger(flinger), in WindowInfosListenerInvoker()
|
D | RegionSamplingThread.h | 69 explicit RegionSamplingThread(SurfaceFlinger& flinger, const TimingTunables& tunables); 70 explicit RegionSamplingThread(SurfaceFlinger& flinger);
|
D | LayerRenderArea.cpp | 39 LayerRenderArea::LayerRenderArea(SurfaceFlinger& flinger, sp<Layer> layer, const Rect& crop, in LayerRenderArea() argument 45 mFlinger(flinger), in LayerRenderArea()
|
D | FpsReporter.cpp | 29 FpsReporter::FpsReporter(frametimeline::FrameTimeline& frameTimeline, SurfaceFlinger& flinger, in FpsReporter() argument 31 : mFrameTimeline(frameTimeline), mFlinger(flinger), mClock(std::move(clock)) { in FpsReporter()
|
D | Client.cpp | 36 Client::Client(const sp<SurfaceFlinger>& flinger) in Client() argument 37 : mFlinger(flinger) in Client()
|
D | SurfaceFlingerDefaultFactory.cpp | 88 const sp<IGraphicBufferProducer>& producer, const sp<SurfaceFlinger>& flinger, in createMonitoredProducer() argument 90 return new MonitoredProducer(producer, flinger, layer); in createMonitoredProducer()
|
D | RegionSamplingThread.cpp | 98 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()
|
D | MonitoredProducer.cpp | 30 const sp<SurfaceFlinger>& flinger, in MonitoredProducer() argument 33 mFlinger(flinger), in MonitoredProducer()
|
D | LayerRenderArea.h | 35 LayerRenderArea(SurfaceFlinger& flinger, sp<Layer> layer, const Rect& crop, ui::Size reqSize,
|
D | FpsReporter.h | 36 FpsReporter(frametimeline::FrameTimeline& frameTimeline, SurfaceFlinger& flinger,
|
/frameworks/native/services/surfaceflinger/Tracing/tools/ |
D | LayerTraceGenerator.cpp | 188 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()
|
D | readme.md | 4 surface flinger build that mocks out everything else apart from the
|
/frameworks/native/services/vr/virtual_touchpad/idc/ |
D | vr-virtual-touchpad-1.idc | 21 # 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/ |
D | LayerTracing.cpp | 32 LayerTracing::LayerTracing(SurfaceFlinger& flinger) : mFlinger(flinger) { in LayerTracing() argument
|
D | LayerTracing.h | 43 LayerTracing(SurfaceFlinger& flinger);
|