Lines Matching refs:SurfaceFlinger

137 int64_t SurfaceFlinger::vsyncPhaseOffsetNs;
138 int64_t SurfaceFlinger::sfVsyncPhaseOffsetNs;
139 int64_t SurfaceFlinger::dispSyncPresentTimeOffset;
140 bool SurfaceFlinger::useHwcForRgbToYuv;
141 uint64_t SurfaceFlinger::maxVirtualDisplaySize;
142 bool SurfaceFlinger::hasSyncFramework;
143 bool SurfaceFlinger::useVrFlinger;
144 int64_t SurfaceFlinger::maxFrameBufferAcquiredBuffers;
146 bool SurfaceFlinger::hasWideColorDisplay;
212 SurfaceFlinger::SurfaceFlinger(SurfaceFlinger::SkipInitializationTag) in SurfaceFlinger() function in android::SurfaceFlinger
245 SurfaceFlinger::SurfaceFlinger() : SurfaceFlinger(SkipInitialization) { in SurfaceFlinger() function in android::SurfaceFlinger
296 …mPrimaryDispSync.init(SurfaceFlinger::hasSyncFramework, SurfaceFlinger::dispSyncPresentTimeOffset); in SurfaceFlinger()
355 void SurfaceFlinger::onFirstRef() in onFirstRef()
360 SurfaceFlinger::~SurfaceFlinger() in ~SurfaceFlinger()
364 void SurfaceFlinger::binderDied(const wp<IBinder>& /* who */) in binderDied()
383 sp<ISurfaceComposerClient> SurfaceFlinger::createConnection() { in createConnection()
387 sp<ISurfaceComposerClient> SurfaceFlinger::createScopedConnection( in createScopedConnection()
400 sp<IBinder> SurfaceFlinger::createDisplay(const String8& displayName, in createDisplay()
404 sp<SurfaceFlinger> flinger; in createDisplay()
412 explicit DisplayToken(const sp<SurfaceFlinger>& flinger) in createDisplay()
427 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) { in destroyDisplay()
446 sp<IBinder> SurfaceFlinger::getBuiltInDisplay(int32_t id) { in getBuiltInDisplay()
454 void SurfaceFlinger::bootFinished() in bootFinished()
489 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) { in deleteTextureAsync()
637 void SurfaceFlinger::init() { in init()
647 std::make_unique<DispSyncSource>(&mPrimaryDispSync, SurfaceFlinger::vsyncPhaseOffsetNs, in init()
655 SurfaceFlinger::sfVsyncPhaseOffsetNs, true, "sf"); in init()
741 void SurfaceFlinger::readPersistentProperties() { in readPersistentProperties()
755 void SurfaceFlinger::startBootAnim() { in startBootAnim()
765 size_t SurfaceFlinger::getMaxTextureSize() const { in getMaxTextureSize()
769 size_t SurfaceFlinger::getMaxViewportDims() const { in getMaxViewportDims()
775 bool SurfaceFlinger::authenticateSurfaceTexture( in authenticateSurfaceTexture()
781 bool SurfaceFlinger::authenticateSurfaceTextureLocked( in authenticateSurfaceTextureLocked()
787 status_t SurfaceFlinger::getSupportedFrameTimestamps( in getSupportedFrameTimestamps()
808 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display, in getDisplayConfigs()
918 status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */, in getDisplayStats()
931 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) { in getActiveConfig()
945 void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) { in setActiveConfigInternal()
965 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& display, int mode) { in setActiveConfig()
967 SurfaceFlinger& mFlinger; in setActiveConfig()
971 MessageSetActiveConfig(SurfaceFlinger& flinger, const sp<IBinder>& disp, in setActiveConfig()
999 status_t SurfaceFlinger::getDisplayColorModes(const sp<IBinder>& display, in getDisplayColorModes()
1033 ColorMode SurfaceFlinger::getActiveColorMode(const sp<IBinder>& display) { in getActiveColorMode()
1041 void SurfaceFlinger::setActiveColorModeInternal(const sp<DisplayDevice>& hw, in setActiveColorModeInternal()
1071 status_t SurfaceFlinger::setActiveColorMode(const sp<IBinder>& display, in setActiveColorMode()
1074 SurfaceFlinger& mFlinger; in setActiveColorMode()
1078 MessageSetActiveColorMode(SurfaceFlinger& flinger, const sp<IBinder>& disp, in setActiveColorMode()
1109 status_t SurfaceFlinger::clearAnimationFrameStats() { in clearAnimationFrameStats()
1115 status_t SurfaceFlinger::getAnimationFrameStats(FrameStats* outStats) const { in getAnimationFrameStats()
1121 status_t SurfaceFlinger::getHdrCapabilities(const sp<IBinder>& display, in getHdrCapabilities()
1143 status_t SurfaceFlinger::enableVSyncInjections(bool enable) { in enableVSyncInjections()
1173 status_t SurfaceFlinger::injectVSync(nsecs_t when) { in injectVSync()
1187 status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const in getLayerDebugInfo()
1217 sp<IDisplayEventConnection> SurfaceFlinger::createDisplayEventConnection( in createDisplayEventConnection()
1228 void SurfaceFlinger::waitForEvent() { in waitForEvent()
1232 void SurfaceFlinger::signalTransaction() { in signalTransaction()
1236 void SurfaceFlinger::signalLayerUpdate() { in signalLayerUpdate()
1240 void SurfaceFlinger::signalRefresh() { in signalRefresh()
1245 status_t SurfaceFlinger::postMessageAsync(const sp<MessageBase>& msg, in postMessageAsync()
1250 status_t SurfaceFlinger::postMessageSync(const sp<MessageBase>& msg, in postMessageSync()
1259 void SurfaceFlinger::run() { in run()
1265 void SurfaceFlinger::enableHardwareVsync() { in enableHardwareVsync()
1275 void SurfaceFlinger::resyncToHardwareVsync(bool makeAvailable) { in resyncToHardwareVsync()
1300 void SurfaceFlinger::disableHardwareVsync(bool makeUnavailable) { in disableHardwareVsync()
1313 void SurfaceFlinger::resyncWithRateLimit() { in resyncWithRateLimit()
1325 void SurfaceFlinger::onVsyncReceived(int32_t sequenceId, in onVsyncReceived()
1354 void SurfaceFlinger::getCompositorTiming(CompositorTiming* compositorTiming) { in getCompositorTiming()
1359 void SurfaceFlinger::onHotplugReceived(int32_t sequenceId, hwc2_display_t display, in onHotplugReceived()
1385 void SurfaceFlinger::onRefreshReceived(int sequenceId, in onRefreshReceived()
1394 void SurfaceFlinger::setVsyncEnabled(int disp, int enabled) { in setVsyncEnabled()
1402 void SurfaceFlinger::resetDisplayState() { in resetDisplayState()
1413 void SurfaceFlinger::updateVrFlinger() { in updateVrFlinger()
1474 void SurfaceFlinger::onMessageReceived(int32_t what) { in onMessageReceived()
1514 bool SurfaceFlinger::handleMessageTransaction() { in handleMessageTransaction()
1523 bool SurfaceFlinger::handleMessageInvalidate() { in handleMessageInvalidate()
1528 void SurfaceFlinger::handleMessageRefresh() { in handleMessageRefresh()
1557 void SurfaceFlinger::doDebugFlashRegions() in doDebugFlashRegions()
1603 void SurfaceFlinger::doTracing(const char* where) { in doTracing()
1611 void SurfaceFlinger::logLayerStats() { in logLayerStats()
1630 void SurfaceFlinger::preComposition(nsecs_t refreshStartTime) in preComposition()
1647 void SurfaceFlinger::updateCompositorTiming( in updateCompositorTiming()
1675 void SurfaceFlinger::setCompositorTimingSnapped(nsecs_t vsyncPhase, in setCompositorTimingSnapped()
1706 void SurfaceFlinger::postComposition(nsecs_t refreshStartTime) in postComposition()
1814 void SurfaceFlinger::rebuildLayerStacks() { in rebuildLayerStacks()
1889 Dataspace SurfaceFlinger::getBestDataspace( in getBestDataspace()
1922 void SurfaceFlinger::pickColorMode(const sp<DisplayDevice>& displayDevice, in pickColorMode()
1959 void SurfaceFlinger::setUpHWComposer() { in setUpHWComposer()
2078 void SurfaceFlinger::doComposition() { in doComposition()
2099 void SurfaceFlinger::postFramebuffer() in postFramebuffer()
2165 void SurfaceFlinger::handleTransaction(uint32_t transactionFlags) in handleTransaction()
2195 DisplayDevice::DisplayType SurfaceFlinger::determineDisplayType(hwc2_display_t display, in determineDisplayType()
2221 void SurfaceFlinger::processDisplayHotplugEventsLocked() { in processDisplayHotplugEventsLocked()
2265 sp<DisplayDevice> SurfaceFlinger::setupNewDisplayDeviceInternal( in setupNewDisplayDeviceInternal()
2350 void SurfaceFlinger::processDisplayChangesLocked() { in processDisplayChangesLocked()
2487 void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags) in handleTransactionLocked()
2620 void SurfaceFlinger::updateCursorAsync() in updateCursorAsync()
2634 void SurfaceFlinger::commitTransaction() in commitTransaction()
2662 void SurfaceFlinger::computeVisibleRegions(const sp<const DisplayDevice>& displayDevice, in computeVisibleRegions()
2799 void SurfaceFlinger::invalidateLayerStack(const sp<const Layer>& layer, const Region& dirty) { in invalidateLayerStack()
2808 bool SurfaceFlinger::handlePageFlip() in handlePageFlip()
2862 void SurfaceFlinger::invalidateHwcGeometry() in invalidateHwcGeometry()
2868 void SurfaceFlinger::doDisplayComposition( in doDisplayComposition()
2889 bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& displayDevice) in doComposeSurfaces()
3048 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& displayDevice, const Region& regio… in drawWormhole()
3054 status_t SurfaceFlinger::addClientLayer(const sp<Client>& client, in addClientLayer()
3096 status_t SurfaceFlinger::removeLayer(const sp<Layer>& layer, bool topLevelOnly) { in removeLayer()
3101 status_t SurfaceFlinger::removeLayerLocked(const Mutex&, const sp<Layer>& layer, in removeLayerLocked()
3150 uint32_t SurfaceFlinger::peekTransactionFlags() { in peekTransactionFlags()
3154 uint32_t SurfaceFlinger::getTransactionFlags(uint32_t flags) { in getTransactionFlags()
3158 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags) { in setTransactionFlags()
3162 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags, in setTransactionFlags()
3172 bool SurfaceFlinger::containsAnyInvalidClientState(const Vector<ComposerState>& states) { in containsAnyInvalidClientState()
3194 void SurfaceFlinger::setTransactionState( in setTransactionState()
3280 uint32_t SurfaceFlinger::setDisplayStateLocked(const DisplayState& s) in setDisplayStateLocked()
3330 uint32_t SurfaceFlinger::setClientStateLocked(const ComposerState& composerState) { in setClientStateLocked()
3491 void SurfaceFlinger::setDestroyStateLocked(const ComposerState& composerState) { in setDestroyStateLocked()
3510 status_t SurfaceFlinger::createLayer( in createLayer()
3569 String8 SurfaceFlinger::getUniqueLayerName(const String8& name) in getUniqueLayerName()
3593 status_t SurfaceFlinger::createBufferLayer(const sp<Client>& client, in createBufferLayer()
3620 status_t SurfaceFlinger::createColorLayer(const sp<Client>& client, in createColorLayer()
3629 status_t SurfaceFlinger::onLayerRemoved(const sp<Client>& client, const sp<IBinder>& handle) in onLayerRemoved()
3643 status_t SurfaceFlinger::onLayerDestroyed(const wp<Layer>& layer) in onLayerDestroyed()
3658 void SurfaceFlinger::onInitializeDisplays() { in onInitializeDisplays()
3686 void SurfaceFlinger::initializeDisplays() { in initializeDisplays()
3688 SurfaceFlinger* flinger; in initializeDisplays()
3690 explicit MessageScreenInitialized(SurfaceFlinger* flinger) : flinger(flinger) { } in initializeDisplays()
3700 void SurfaceFlinger::setPowerModeInternal(const sp<DisplayDevice>& hw, in setPowerModeInternal()
3789 void SurfaceFlinger::setPowerMode(const sp<IBinder>& display, int mode) { in setPowerMode()
3791 SurfaceFlinger& mFlinger; in setPowerMode()
3795 MessageSetPowerMode(SurfaceFlinger& flinger, in setPowerMode()
3819 status_t SurfaceFlinger::doDump(int fd, const Vector<String16>& args, bool asProto) in doDump()
3948 void SurfaceFlinger::listLayersLocked(const Vector<String16>& /* args */, in listLayersLocked()
3956 void SurfaceFlinger::dumpStatsLocked(const Vector<String16>& args, size_t& index, in dumpStatsLocked()
3980 void SurfaceFlinger::clearStatsLocked(const Vector<String16>& args, size_t& index, in clearStatsLocked()
4000 void SurfaceFlinger::logFrameStats() { in logFrameStats()
4008 void SurfaceFlinger::appendSfConfigString(String8& result) const in appendSfConfigString()
4024 void SurfaceFlinger::dumpStaticScreenStats(String8& result) const in dumpStaticScreenStats()
4041 void SurfaceFlinger::recordBufferingStats(const char* layerName, in recordBufferingStats()
4059 void SurfaceFlinger::dumpFrameEventsLocked(String8& result) { in dumpFrameEventsLocked()
4069 void SurfaceFlinger::dumpBufferingStats(String8& result) const { in dumpBufferingStats()
4103 void SurfaceFlinger::dumpWideColorInfo(String8& result) const { in dumpWideColorInfo()
4130 LayersProto SurfaceFlinger::dumpProtoInfo(LayerVector::StateSet stateSet) const { in dumpProtoInfo()
4142 LayersProto SurfaceFlinger::dumpVisibleLayersProtoInfo(int32_t hwcId) const { in dumpVisibleLayersProtoInfo()
4165 void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index, in dumpAllLocked()
4343 SurfaceFlinger::getLayerSortedByZForHwcDisplay(int id) { in getLayerSortedByZForHwcDisplay()
4360 bool SurfaceFlinger::startDdmConnection() in startDdmConnection()
4378 void SurfaceFlinger::updateColorMatrixLocked() { in updateColorMatrixLocked()
4402 status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) { in CheckTransactCodeCredentials()
4464 status_t SurfaceFlinger::onTransact( in onTransact()
4690 void SurfaceFlinger::repaintEverything() { in repaintEverything()
4708 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, in captureScreen()
4722 auto traverseLayers = std::bind(std::mem_fn(&SurfaceFlinger::traverseLayersInDisplay), this, in captureScreen()
4727 status_t SurfaceFlinger::captureLayers(const sp<IBinder>& layerHandleBinder, in captureLayers()
4734 LayerRenderArea(SurfaceFlinger* flinger, const sp<Layer>& layer, const Rect crop, in captureLayers()
4793 SurfaceFlinger* mFlinger; in captureLayers()
4841 status_t SurfaceFlinger::captureScreenCommon(RenderArea& renderArea, in captureScreenCommon()
4916 void SurfaceFlinger::renderScreenImplLocked(const RenderArea& renderArea, in renderScreenImplLocked()
5030 status_t SurfaceFlinger::captureScreenImplLocked(const RenderArea& renderArea, in captureScreenImplLocked()
5088 void SurfaceFlinger::checkScreenshot(size_t w, size_t s, size_t h, void const* vaddr, in checkScreenshot()
5113 void SurfaceFlinger::State::traverseInZOrder(const LayerVector::Visitor& visitor) const { in traverseInZOrder()
5117 void SurfaceFlinger::State::traverseInReverseZOrder(const LayerVector::Visitor& visitor) const { in traverseInReverseZOrder()
5121 void SurfaceFlinger::traverseLayersInDisplay(const sp<const DisplayDevice>& hw, int32_t minLayerZ, in traverseLayersInDisplay()