Lines Matching defs:SurfaceFlinger

75 #include "SurfaceFlinger.h"
113 int64_t SurfaceFlinger::vsyncPhaseOffsetNs;
114 int64_t SurfaceFlinger::sfVsyncPhaseOffsetNs;
115 bool SurfaceFlinger::useContextPriority;
116 int64_t SurfaceFlinger::dispSyncPresentTimeOffset;
117 bool SurfaceFlinger::useHwcForRgbToYuv;
118 uint64_t SurfaceFlinger::maxVirtualDisplaySize;
119 bool SurfaceFlinger::hasSyncFramework;
120 bool SurfaceFlinger::useVrFlinger;
121 int64_t SurfaceFlinger::maxFrameBufferAcquiredBuffers;
122 bool SurfaceFlinger::hasWideColorDisplay;
124 SurfaceFlinger::SurfaceFlinger()
163 ALOGI("SurfaceFlinger is starting");
229 void SurfaceFlinger::onFirstRef()
234 SurfaceFlinger::~SurfaceFlinger()
241 void SurfaceFlinger::binderDied(const wp<IBinder>& /* who */)
260 sp<ISurfaceComposerClient> SurfaceFlinger::createConnection() {
264 sp<ISurfaceComposerClient> SurfaceFlinger::createScopedConnection(
277 sp<IBinder> SurfaceFlinger::createDisplay(const String8& displayName,
281 sp<SurfaceFlinger> flinger;
289 explicit DisplayToken(const sp<SurfaceFlinger>& flinger)
304 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) {
323 void SurfaceFlinger::createBuiltinDisplayLocked(DisplayDevice::DisplayType type) {
334 sp<IBinder> SurfaceFlinger::getBuiltInDisplay(int32_t id) {
342 void SurfaceFlinger::bootFinished()
373 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) {
529 void SurfaceFlinger::init() {
530 ALOGI( "SurfaceFlinger's main thread ready to run. "
567 // the lock because on creation, it will call back into SurfaceFlinger to
627 void SurfaceFlinger::startBootAnim() {
637 size_t SurfaceFlinger::getMaxTextureSize() const {
641 size_t SurfaceFlinger::getMaxViewportDims() const {
647 bool SurfaceFlinger::authenticateSurfaceTexture(
653 bool SurfaceFlinger::authenticateSurfaceTextureLocked(
659 status_t SurfaceFlinger::getSupportedFrameTimestamps(
678 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
781 status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */,
794 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
808 void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) {
828 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& display, int mode) {
830 SurfaceFlinger& mFlinger;
834 MessageSetActiveConfig(SurfaceFlinger& flinger, const sp<IBinder>& disp,
862 status_t SurfaceFlinger::getDisplayColorModes(const sp<IBinder>& display,
891 android_color_mode_t SurfaceFlinger::getActiveColorMode(const sp<IBinder>& display) {
899 void SurfaceFlinger::setActiveColorModeInternal(const sp<DisplayDevice>& hw,
921 status_t SurfaceFlinger::setActiveColorMode(const sp<IBinder>& display,
924 SurfaceFlinger& mFlinger;
928 MessageSetActiveColorMode(SurfaceFlinger& flinger, const sp<IBinder>& disp,
958 status_t SurfaceFlinger::clearAnimationFrameStats() {
964 status_t SurfaceFlinger::getAnimationFrameStats(FrameStats* outStats) const {
970 status_t SurfaceFlinger::getHdrCapabilities(const sp<IBinder>& display,
991 status_t SurfaceFlinger::enableVSyncInjections(bool enable) {
1013 status_t SurfaceFlinger::injectVSync(nsecs_t when) {
1019 ALOGV("Injecting VSync inside SurfaceFlinger");
1027 sp<IDisplayEventConnection> SurfaceFlinger::createDisplayEventConnection(
1038 void SurfaceFlinger::waitForEvent() {
1042 void SurfaceFlinger::signalTransaction() {
1046 void SurfaceFlinger::signalLayerUpdate() {
1050 void SurfaceFlinger::signalRefresh() {
1054 status_t SurfaceFlinger::postMessageAsync(const sp<MessageBase>& msg,
1059 status_t SurfaceFlinger::postMessageSync(const sp<MessageBase>& msg,
1068 void SurfaceFlinger::run() {
1074 void SurfaceFlinger::enableHardwareVsync() {
1078 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
1084 void SurfaceFlinger::resyncToHardwareVsync(bool makeAvailable) {
1103 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
1109 void SurfaceFlinger::disableHardwareVsync(bool makeUnavailable) {
1112 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, false);
1122 void SurfaceFlinger::resyncWithRateLimit() {
1134 void SurfaceFlinger::onVSyncReceived(HWComposer* composer, int32_t type,
1158 void SurfaceFlinger::getCompositorTiming(CompositorTiming* compositorTiming) {
1163 void SurfaceFlinger::createDefaultDisplayDevice() {
1200 void SurfaceFlinger::onHotplugReceived(HWComposer* composer, int32_t disp, bool connected) {
1231 void SurfaceFlinger::onInvalidateReceived(HWComposer* composer) {
1245 void SurfaceFlinger::setVsyncEnabled(int disp, int enabled) {
1251 void SurfaceFlinger::clearHwcLayers(const LayerVector& layers) {
1258 void SurfaceFlinger::resetHwcLocked() {
1277 void SurfaceFlinger::updateVrFlinger() {
1331 void SurfaceFlinger::onMessageReceived(int32_t what) {
1369 bool SurfaceFlinger::handleMessageTransaction() {
1378 bool SurfaceFlinger::handleMessageInvalidate() {
1383 void SurfaceFlinger::handleMessageRefresh() {
1407 void SurfaceFlinger::doDebugFlashRegions()
1451 void SurfaceFlinger::preComposition(nsecs_t refreshStartTime)
1468 void SurfaceFlinger::updateCompositorTiming(
1496 void SurfaceFlinger::setCompositorTimingSnapped(nsecs_t vsyncPhase,
1527 void SurfaceFlinger::postComposition(nsecs_t refreshStartTime)
1629 void SurfaceFlinger::rebuildLayerStacks() {
1684 android_color_mode SurfaceFlinger::pickColorMode(android_dataspace dataSpace) {
1707 android_dataspace SurfaceFlinger::bestTargetDataSpace(android_dataspace a, android_dataspace b) {
1715 void SurfaceFlinger::setUpHWComposer() {
1828 void SurfaceFlinger::doComposition() {
1850 void SurfaceFlinger::postFramebuffer()
1894 void SurfaceFlinger::handleTransaction(uint32_t transactionFlags)
1923 void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
2125 // drawing state. However, SurfaceFlinger's own transaction has not
2204 void SurfaceFlinger::updateCursorAsync()
2218 void SurfaceFlinger::commitTransaction()
2243 void SurfaceFlinger::computeVisibleRegions(uint32_t layerStack,
2375 void SurfaceFlinger::invalidateLayerStack(uint32_t layerStack,
2385 bool SurfaceFlinger::handlePageFlip()
2439 void SurfaceFlinger::invalidateHwcGeometry()
2445 void SurfaceFlinger::doDisplayComposition(
2495 bool SurfaceFlinger::doComposeSurfaces(
2643 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& displayDevice, const Region& region) const {
2649 status_t SurfaceFlinger::addClientLayer(const sp<Client>& client,
2682 status_t SurfaceFlinger::removeLayer(const sp<Layer>& layer, bool topLevelOnly) {
2727 uint32_t SurfaceFlinger::peekTransactionFlags() {
2731 uint32_t SurfaceFlinger::getTransactionFlags(uint32_t flags) {
2735 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags) {
2743 void SurfaceFlinger::setTransactionState(
2831 uint32_t SurfaceFlinger::setDisplayStateLocked(const DisplayState& s)
2881 uint32_t SurfaceFlinger::setClientStateLocked(
3001 status_t SurfaceFlinger::createLayer(
3052 String8 SurfaceFlinger::getUniqueLayerName(const String8& name)
3076 status_t SurfaceFlinger::createNormalLayer(const sp<Client>& client,
3102 status_t SurfaceFlinger::createDimLayer(const sp<Client>& client,
3112 status_t SurfaceFlinger::onLayerRemoved(const sp<Client>& client, const sp<IBinder>& handle)
3126 status_t SurfaceFlinger::onLayerDestroyed(const wp<Layer>& layer)
3141 void SurfaceFlinger::onInitializeDisplays() {
3168 void SurfaceFlinger::initializeDisplays() {
3170 SurfaceFlinger* flinger;
3172 explicit MessageScreenInitialized(SurfaceFlinger* flinger) : flinger(flinger) { }
3182 void SurfaceFlinger::setPowerModeInternal(const sp<DisplayDevice>& hw,
3249 void SurfaceFlinger::setPowerMode(const sp<IBinder>& display, int mode) {
3251 SurfaceFlinger& mFlinger;
3255 MessageSetPowerMode(SurfaceFlinger& flinger,
3278 status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
3288 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
3297 "SurfaceFlinger appears to be unresponsive (%s [%d]), "
3366 void SurfaceFlinger::listLayersLocked(const Vector<String16>& /* args */,
3374 void SurfaceFlinger::dumpStatsLocked(const Vector<String16>& args, size_t& index,
3398 void SurfaceFlinger::clearStatsLocked(const Vector<String16>& args, size_t& index,
3418 void SurfaceFlinger::logFrameStats() {
3426 void SurfaceFlinger::appendSfConfigString(String8& result) const
3443 void SurfaceFlinger::dumpStaticScreenStats(String8& result) const
3460 void SurfaceFlinger::recordBufferingStats(const char* layerName,
3478 void SurfaceFlinger::dumpFrameEventsLocked(String8& result) {
3488 void SurfaceFlinger::dumpBufferingStats(String8& result) const {
3522 void SurfaceFlinger::dumpWideColorInfo(String8& result) const {
3547 void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
3628 * Dump SurfaceFlinger global state
3632 result.append("SurfaceFlinger global state:\n");
3716 SurfaceFlinger::getLayerSortedByZForHwcDisplay(int id) {
3733 bool SurfaceFlinger::startDdmConnection()
3751 status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
3767 ALOGE("Permission Denial: can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
3800 status_t SurfaceFlinger::onTransact(
3816 "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
3931 case 1019: { // Modify SurfaceFlinger's phase offset
3958 void SurfaceFlinger::repaintEverything() {
4080 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display,
4119 SurfaceFlinger* flinger;
4130 MessageCaptureScreen(SurfaceFlinger* flinger,
4180 void SurfaceFlinger::renderScreenImplLocked(
4251 status_t SurfaceFlinger::captureScreenImplLocked(
4415 void SurfaceFlinger::checkScreenshot(size_t w, size_t s, size_t h, void const* vaddr,
4447 void SurfaceFlinger::State::traverseInZOrder(const LayerVector::Visitor& visitor) const {
4451 void SurfaceFlinger::State::traverseInReverseZOrder(const LayerVector::Visitor& visitor) const {