/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TestableSurfaceFlinger.h | 183 mFlinger->mCompositionEngine->setRenderEngine(std::move(renderEngine)); in setupRenderEngine() 187 mFlinger->mCompositionEngine->setHwComposer( in setupComposer() 203 memcpy(&mFlinger->mInternalDisplayPrimaries, &primaries, sizeof(ui::DisplayPrimaries)); in setInternalDisplayPrimaries() 218 auto outputLayer = layer->findOutputLayerForDisplay(mFlinger->getDefaultDisplayDevice()); in setLayerCompositionType() 234 return mFlinger->createDisplay(displayName, secure); in createDisplay() 238 return mFlinger->destroyDisplay(displayToken); in destroyDisplay() 241 auto resetDisplayState() { return mFlinger->resetDisplayState(); } in resetDisplayState() 248 return mFlinger->setupNewDisplayDeviceInternal(displayToken, displayId, state, dispSurface, in setupNewDisplayDeviceInternal() 253 Mutex::Autolock _l(mFlinger->mStateLock); in handleTransactionLocked() 254 return mFlinger->handleTransactionLocked(transactionFlags); in handleTransactionLocked() [all …]
|
D | DisplayTransactionTest.cpp | 124 TestableSurfaceFlinger mFlinger; member in android::__anon968546880111::DisplayTransactionTest 152 mFlinger.mutableHasWideColorDisplay() = false; in DisplayTransactionTest() 153 mFlinger.mutableUseColorManagement() = false; in DisplayTransactionTest() 154 mFlinger.mutableDisplayColorSetting() = DisplayColorSetting::UNMANAGED; in DisplayTransactionTest() 157 mFlinger.mutableUseHwcVirtualDisplays() = true; in DisplayTransactionTest() 159 mFlinger.setCreateBufferQueueFunction([](auto, auto, auto) { in DisplayTransactionTest() 163 mFlinger.setCreateNativeWindowSurface([](auto) { in DisplayTransactionTest() 169 mFlinger.mutableEventQueue().reset(mMessageQueue); in DisplayTransactionTest() 170 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in DisplayTransactionTest() 171 mFlinger.mutableInterceptor().reset(mSurfaceInterceptor); in DisplayTransactionTest() [all …]
|
D | CompositionTest.cpp | 95 mFlinger.mutableEventQueue().reset(mMessageQueue); in CompositionTest() 107 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in CompositionTest() 122 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer() 129 mFlinger.mutableRefreshRateConfigs() = in setupScheduler() 133 mFlinger.mutableRefreshRateStats() = in setupScheduler() 134 std::make_unique<scheduler::RefreshRateStats>(*mFlinger.mutableRefreshRateConfigs(), in setupScheduler() 135 *mFlinger.mutableTimeStats(), in setupScheduler() 138 mScheduler = new TestableScheduler(*mFlinger.mutableRefreshRateConfigs()); in setupScheduler() 144 mFlinger.mutableSfConnectionHandle() = std::move(connectionHandle); in setupScheduler() 146 mFlinger.mutableScheduler().reset(mScheduler); in setupScheduler() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | RefreshRateOverlay.cpp | 26 : mFlinger(flinger), mClient(new Client(&mFlinger)) { in RefreshRateOverlay() 32 mFlinger.createLayer(String8("RefreshRateOverlay"), mClient, 0, 0, in createLayer() 40 Mutex::Autolock _l(mFlinger.mStateLock); in createLayer() 45 ssize_t idx = mFlinger.mCurrentState.layersSortedByZ.indexOf(mLayer); in createLayer() 47 mFlinger.mCurrentState.layersSortedByZ.removeAt(idx); in createLayer() 48 mFlinger.mCurrentState.layersSortedByZ.add(mLayer); in createLayer() 57 mFlinger.mTransactionFlags.fetch_or(eTransactionMask); in changeRefreshRate()
|
D | BufferQueueLayer.cpp | 146 return mQueueItems[0].mTimestamp <= mFlinger->getExpectedPresentTime(); in framePresentTimeIsCurrent() 200 nsecs_t expectedPresentTime = mFlinger->getExpectedPresentTime(); in getFrameNumber() 247 mFlinger->setTransactionFlags(eTraversalNeeded); in latchSidebandStream() 279 nsecs_t expectedPresentTime = mFlinger->getExpectedPresentTime(); in updateTexImage() 309 mFlinger->signalLayerUpdate(); in updateTexImage() 317 mFlinger->mTimeStats->removeTimeRecord(layerID, mQueueItems[0].mFrameNumber); in updateTexImage() 331 mFlinger->mTimeStats->onDestroy(layerID); in updateTexImage() 353 mFlinger->mTimeStats->removeTimeRecord(layerID, mQueueItems[0].mFrameNumber); in updateTexImage() 358 mFlinger->mTimeStats->setAcquireFence(layerID, currentFrameNumber, in updateTexImage() 360 mFlinger->mTimeStats->setLatchTime(layerID, currentFrameNumber, latchTime); in updateTexImage() [all …]
|
D | BufferStateLayer.cpp | 59 auto& engine(mFlinger->getRenderEngine()); in ~BufferStateLayer() 98 mFlinger->getTransactionCompletedThread().addPresentedCallbackHandles( in releasePendingBuffer() 229 mFlinger->mTimeStats->setPostTime(getSequence(), getFrameNumber(), getName().c_str(), postTime); in setBuffer() 232 if (mFlinger->mUseSmart90ForVideo) { in setBuffer() 234 mFlinger->mScheduler->addLayerPresentTimeAndHDR(mSchedulerLayerHandle, presentTime, in setBuffer() 290 mFlinger->signalLayerUpdate(); in setSidebandStream() 316 mFlinger->getTransactionCompletedThread().registerPendingCallbackHandle(handle); in setTransactionCompletedListeners() 323 mFlinger->getTransactionCompletedThread().addUnpresentedCallbackHandle(handle); in setTransactionCompletedListeners() 387 return mDesiredPresentTime <= mFlinger->getExpectedPresentTime(); in framePresentTimeIsCurrent() 474 mFlinger->setTransactionFlags(eTraversalNeeded); in latchSidebandStream() [all …]
|
D | BufferLayer.cpp | 61 mCompositionLayer{mFlinger->getCompositionEngine().createLayer( in BufferLayer() 72 mFlinger->deleteTextureAsync(mTextureName); in ~BufferLayer() 73 mFlinger->mTimeStats->onDestroy(getSequence()); in ~BufferLayer() 77 if (mFlinger->mForceFullDamage) { in useSurfaceDamage() 103 mFlinger->mScheduler->setLayerVisibility(mSchedulerLayerHandle, visible); in isVisible() 153 mFlinger->mDrawingState.traverseInZOrder([&](Layer* layer) { in prepareClientLayer() 378 mFlinger->mTimeStats->setDesiredTime(layerID, mCurrentFrameNumber, desiredPresentTime); in onPostComposition() 390 mFlinger->mTimeStats->setPresentFence(layerID, mCurrentFrameNumber, presentFence); in onPostComposition() 392 } else if (displayId && mFlinger->getHwComposer().isConnected(*displayId)) { in onPostComposition() 395 const nsecs_t actualPresentTime = mFlinger->getHwComposer().getRefreshTimestamp(*displayId); in onPostComposition() [all …]
|
D | Client.cpp | 37 : mFlinger(flinger) in Client() 80 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createSurface() 89 if (mFlinger->authenticateSurfaceTexture(parent) == false) { in createWithSurfaceParent() 100 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createWithSurfaceParent()
|
D | MonitoredProducer.cpp | 29 mFlinger(flinger), in MonitoredProducer() 38 new LambdaMessage([flinger = mFlinger, asBinder = wp<IBinder>(onAsBinder())]() { in ~MonitoredProducer() 43 mFlinger->postMessageAsync(cleanUpListMessage); in ~MonitoredProducer()
|
D | RefreshRateOverlay.h | 33 SurfaceFlinger& mFlinger; variable
|
D | SurfaceTracing.cpp | 32 : mFlinger(flinger), mSfLock(flinger.mDrawingStateLock) {} in SurfaceTracing() 166 LayersProto layers(mFlinger.dumpDrawingStateProto(mTraceFlags)); in traceLayersLocked()
|
D | Layer.cpp | 75 : mFlinger(args.flinger), in Layer() 123 mSchedulerLayerHandle = mFlinger->mScheduler->registerLayer(mName.c_str(), mWindowType); in Layer() 125 mFlinger->onLayerCreated(); in Layer() 135 mFlinger->onLayerDestroyed(this); in ~Layer() 175 mFlinger->setTransactionFlags(eTraversalNeeded); in removeRelativeZ() 198 mFlinger->markLayerPendingRemovalLocked(this); in removeFromCurrentState() 237 return new Handle(mFlinger, this); in getHandle() 711 mFlinger->setTransactionFlags(eTraversalNeeded); in pushPendingState() 772 mFlinger->setTransactionFlags(eTraversalNeeded); in applyPendingStates() 1082 LayerCreationArgs(mFlinger.get(), nullptr, name, 0, 0, flags, LayerMetadata())); in setBackgroundColor() [all …]
|
D | RegionSamplingThread.cpp | 167 : mFlinger(flinger), in RegionSamplingThread() 360 const auto device = mFlinger.getDefaultDisplayDevice(); in captureSample() 447 mFlinger.traverseLayersInDisplay(device, filterVisitor); in captureSample() 461 mFlinger.captureScreenCommon(renderArea, traverseLayers, buffer, false, ignored); in captureSample()
|
D | Client.h | 70 sp<SurfaceFlinger> mFlinger; variable
|
D | Layer.h | 715 sp<SurfaceFlinger> mFlinger; 721 sp<SurfaceFlinger> mFlinger; variable 727 mFlinger->onHandleDestroyed(mLayer); in ~LayerCleaner() 732 : mFlinger(flinger), mLayer(layer) {} in LayerCleaner()
|
D | SurfaceTracing.h | 95 const SurfaceFlinger& mFlinger; variable
|
D | DisplayDevice.cpp | 57 : mFlinger(args.flinger), in DisplayDevice() 61 mCompositionDisplay{mFlinger->getCompositionEngine().createDisplay( in DisplayDevice()
|
D | RegionSamplingThread.h | 107 SurfaceFlinger& mFlinger; variable
|
D | MonitoredProducer.h | 79 sp<SurfaceFlinger> mFlinger; variable
|
D | ColorLayer.cpp | 46 mCompositionLayer{mFlinger->getCompositionEngine().createLayer( in ColorLayer()
|
D | SurfaceInterceptor.h | 175 SurfaceFlinger* const mFlinger; variable
|
D | DisplayDevice.h | 168 const sp<SurfaceFlinger> mFlinger;
|
D | SurfaceInterceptor.cpp | 40 : mFlinger(flinger) in SurfaceInterceptor() 372 if (mFlinger->authenticateSurfaceTextureLocked(gbp)) { in addSurfaceChangesLocked()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | MessageQueue.cpp | 71 mQueue.mFlinger->onMessageReceived(message.what); in handleMessage() 75 mQueue.mFlinger->onMessageReceived(message.what); in handleMessage() 83 mFlinger = flinger; in init()
|
D | MessageQueue.h | 116 sp<SurfaceFlinger> mFlinger; variable
|