Lines Matching refs:displayToken
461 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument
464 ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay()
466 ALOGE("destroyDisplay: Invalid display token %p", displayToken.get()); in destroyDisplay()
795 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken, in getDisplayConfigs() argument
797 if (!displayToken || !configs) { in getDisplayConfigs()
803 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayConfigs()
916 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& displayToken) { in getActiveConfig() argument
917 const auto display = getDisplayDevice(displayToken); in getActiveConfig()
919 ALOGE("getActiveConfig: Invalid display token %p", displayToken.get()); in getActiveConfig()
956 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& displayToken, int mode) { in setActiveConfig() argument
962 return setAllowedDisplayConfigs(displayToken, allowedConfig); in setActiveConfig()
1050 status_t SurfaceFlinger::getDisplayColorModes(const sp<IBinder>& displayToken, in getDisplayColorModes() argument
1052 if (!displayToken || !outColorModes) { in getDisplayColorModes()
1061 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayColorModes()
1085 status_t SurfaceFlinger::getDisplayNativePrimaries(const sp<IBinder>& displayToken, in getDisplayNativePrimaries() argument
1087 if (!displayToken) { in getDisplayNativePrimaries()
1092 if (getInternalDisplayToken() != displayToken) { in getDisplayNativePrimaries()
1100 ColorMode SurfaceFlinger::getActiveColorMode(const sp<IBinder>& displayToken) { in getActiveColorMode() argument
1101 if (const auto display = getDisplayDevice(displayToken)) { in getActiveColorMode()
1107 status_t SurfaceFlinger::setActiveColorMode(const sp<IBinder>& displayToken, ColorMode mode) { in setActiveColorMode() argument
1110 getDisplayColorModes(displayToken, &modes); in setActiveColorMode()
1114 decodeColorMode(mode).c_str(), mode, displayToken.get()); in setActiveColorMode()
1117 const auto display = getDisplayDevice(displayToken); in setActiveColorMode()
1120 decodeColorMode(mode).c_str(), mode, displayToken.get()); in setActiveColorMode()
1145 status_t SurfaceFlinger::getHdrCapabilities(const sp<IBinder>& displayToken, in getHdrCapabilities() argument
1149 const auto display = getDisplayDeviceLocked(displayToken); in getHdrCapabilities()
1151 ALOGE("getHdrCapabilities: Invalid display token %p", displayToken.get()); in getHdrCapabilities()
1167 status_t SurfaceFlinger::getDisplayedContentSamplingAttributes(const sp<IBinder>& displayToken, in getDisplayedContentSamplingAttributes() argument
1174 const auto display = getDisplayDevice(displayToken); in getDisplayedContentSamplingAttributes()
1183 status_t SurfaceFlinger::setDisplayContentSamplingEnabled(const sp<IBinder>& displayToken, in setDisplayContentSamplingEnabled() argument
1186 const auto display = getDisplayDevice(displayToken); in setDisplayContentSamplingEnabled()
1196 status_t SurfaceFlinger::getDisplayedContentSample(const sp<IBinder>& displayToken, in getDisplayedContentSample() argument
1199 const auto display = getDisplayDevice(displayToken); in getDisplayedContentSample()
1201 ALOGE("getDisplayContentSample: Bad display token: %p", displayToken.get()); in getDisplayedContentSample()
1217 status_t SurfaceFlinger::isWideColorDisplay(const sp<IBinder>& displayToken, in isWideColorDisplay() argument
1219 if (!displayToken || !outIsWideColorDisplay) { in isWideColorDisplay()
1223 const auto display = getDisplayDeviceLocked(displayToken); in isWideColorDisplay()
1328 status_t SurfaceFlinger::getDisplayBrightnessSupport(const sp<IBinder>& displayToken, in getDisplayBrightnessSupport() argument
1330 if (!displayToken || !outSupport) { in getDisplayBrightnessSupport()
1333 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayBrightnessSupport()
1342 status_t SurfaceFlinger::setDisplayBrightness(const sp<IBinder>& displayToken, in setDisplayBrightness() argument
1344 if (!displayToken) { in setDisplayBrightness()
1347 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in setDisplayBrightness()
2565 const wp<IBinder>& displayToken, const std::optional<DisplayId>& displayId, in setupNewDisplayDeviceInternal() argument
2568 DisplayDeviceCreationArgs creationArgs(this, displayToken, displayId); in setupNewDisplayDeviceInternal()
2675 const wp<IBinder>& displayToken = curr.keyAt(j); in processDisplayChangesLocked() local
2683 if (const auto display = getDisplayDeviceLocked(displayToken)) { in processDisplayChangesLocked()
2686 mDisplays.erase(displayToken); in processDisplayChangesLocked()
2693 if (const auto display = getDisplayDeviceLocked(displayToken)) { in processDisplayChangesLocked()
2766 const wp<IBinder>& displayToken = curr.keyAt(i); in processDisplayChangesLocked() local
2768 mDisplays.emplace(displayToken, in processDisplayChangesLocked()
2769 setupNewDisplayDeviceInternal(displayToken, displayId, state, in processDisplayChangesLocked()
4489 void SurfaceFlinger::setPowerMode(const sp<IBinder>& displayToken, int mode) { in setPowerMode() argument
4491 const auto display = getDisplayDevice(displayToken); in setPowerMode()
4494 displayToken.get()); in setPowerMode()
5494 const auto displayToken = getInternalDisplayToken(); in onTransact() local
5495 status_t result = setAllowedDisplayConfigs(displayToken, {n}); in onTransact()
5531 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& displayToken, in captureScreen() argument
5541 if (!displayToken) return BAD_VALUE; in captureScreen()
5549 display = getDisplayDeviceLocked(displayToken); in captureScreen()
5582 const sp<IBinder> displayToken = getPhysicalDisplayTokenLocked(DisplayId{displayOrLayerStack}); in getDisplayByIdOrLayerStack() local
5583 if (displayToken) { in getDisplayByIdOrLayerStack()
5584 return getDisplayDeviceLocked(displayToken); in getDisplayByIdOrLayerStack()
6076 status_t SurfaceFlinger::setAllowedDisplayConfigs(const sp<IBinder>& displayToken, in setAllowedDisplayConfigs() argument
6080 if (!displayToken || allowedConfigs.empty()) { in setAllowedDisplayConfigs()
6090 const auto display = getDisplayDeviceLocked(displayToken); in setAllowedDisplayConfigs()
6093 displayToken.get()); in setAllowedDisplayConfigs()
6104 status_t SurfaceFlinger::getAllowedDisplayConfigs(const sp<IBinder>& displayToken, in getAllowedDisplayConfigs() argument
6108 if (!displayToken || !outAllowedConfigs) { in getAllowedDisplayConfigs()
6114 const auto display = getDisplayDeviceLocked(displayToken); in getAllowedDisplayConfigs()