Lines Matching refs:displayToken
468 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument
471 ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay()
473 ALOGE("destroyDisplay: Invalid display token %p", displayToken.get()); in destroyDisplay()
768 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken, in getDisplayConfigs() argument
770 if (!displayToken || !configs) { in getDisplayConfigs()
776 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayConfigs()
890 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& displayToken) { in getActiveConfig() argument
891 const auto display = getDisplayDevice(displayToken); in getActiveConfig()
893 ALOGE("getActiveConfig: Invalid display token %p", displayToken.get()); in getActiveConfig()
933 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& displayToken, int mode) { in setActiveConfig() argument
939 return setAllowedDisplayConfigs(displayToken, allowedConfig); in setActiveConfig()
1035 status_t SurfaceFlinger::getDisplayColorModes(const sp<IBinder>& displayToken, in getDisplayColorModes() argument
1037 if (!displayToken || !outColorModes) { in getDisplayColorModes()
1046 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayColorModes()
1070 status_t SurfaceFlinger::getDisplayNativePrimaries(const sp<IBinder>& displayToken, in getDisplayNativePrimaries() argument
1072 if (!displayToken) { in getDisplayNativePrimaries()
1077 if (getInternalDisplayToken() != displayToken) { in getDisplayNativePrimaries()
1085 ColorMode SurfaceFlinger::getActiveColorMode(const sp<IBinder>& displayToken) { in getActiveColorMode() argument
1086 if (const auto display = getDisplayDevice(displayToken)) { in getActiveColorMode()
1092 status_t SurfaceFlinger::setActiveColorMode(const sp<IBinder>& displayToken, ColorMode mode) { in setActiveColorMode() argument
1095 getDisplayColorModes(displayToken, &modes); in setActiveColorMode()
1099 decodeColorMode(mode).c_str(), mode, displayToken.get()); in setActiveColorMode()
1102 const auto display = getDisplayDevice(displayToken); in setActiveColorMode()
1105 decodeColorMode(mode).c_str(), mode, displayToken.get()); in setActiveColorMode()
1130 status_t SurfaceFlinger::getHdrCapabilities(const sp<IBinder>& displayToken, in getHdrCapabilities() argument
1134 const auto display = getDisplayDeviceLocked(displayToken); in getHdrCapabilities()
1136 ALOGE("getHdrCapabilities: Invalid display token %p", displayToken.get()); in getHdrCapabilities()
1152 status_t SurfaceFlinger::getDisplayedContentSamplingAttributes(const sp<IBinder>& displayToken, in getDisplayedContentSamplingAttributes() argument
1159 const auto display = getDisplayDevice(displayToken); in getDisplayedContentSamplingAttributes()
1168 status_t SurfaceFlinger::setDisplayContentSamplingEnabled(const sp<IBinder>& displayToken, in setDisplayContentSamplingEnabled() argument
1171 const auto display = getDisplayDevice(displayToken); in setDisplayContentSamplingEnabled()
1181 status_t SurfaceFlinger::getDisplayedContentSample(const sp<IBinder>& displayToken, in getDisplayedContentSample() argument
1184 const auto display = getDisplayDevice(displayToken); in getDisplayedContentSample()
1186 ALOGE("getDisplayContentSample: Bad display token: %p", displayToken.get()); in getDisplayedContentSample()
1202 status_t SurfaceFlinger::isWideColorDisplay(const sp<IBinder>& displayToken, in isWideColorDisplay() argument
1204 if (!displayToken || !outIsWideColorDisplay) { in isWideColorDisplay()
1208 const auto display = getDisplayDeviceLocked(displayToken); in isWideColorDisplay()
1317 status_t SurfaceFlinger::getDisplayBrightnessSupport(const sp<IBinder>& displayToken, in getDisplayBrightnessSupport() argument
1319 if (!displayToken || !outSupport) { in getDisplayBrightnessSupport()
1322 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayBrightnessSupport()
1331 status_t SurfaceFlinger::setDisplayBrightness(const sp<IBinder>& displayToken, in setDisplayBrightness() argument
1333 if (!displayToken) { in setDisplayBrightness()
1336 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in setDisplayBrightness()
2601 const wp<IBinder>& displayToken, const std::optional<DisplayId>& displayId, in setupNewDisplayDeviceInternal() argument
2604 DisplayDeviceCreationArgs creationArgs(this, displayToken, displayId); in setupNewDisplayDeviceInternal()
2711 const wp<IBinder>& displayToken = curr.keyAt(j); in processDisplayChangesLocked() local
2719 if (const auto display = getDisplayDeviceLocked(displayToken)) { in processDisplayChangesLocked()
2722 mDisplays.erase(displayToken); in processDisplayChangesLocked()
2729 if (const auto display = getDisplayDeviceLocked(displayToken)) { in processDisplayChangesLocked()
2802 const wp<IBinder>& displayToken = curr.keyAt(i); in processDisplayChangesLocked() local
2804 mDisplays.emplace(displayToken, in processDisplayChangesLocked()
2805 setupNewDisplayDeviceInternal(displayToken, displayId, state, in processDisplayChangesLocked()
4592 void SurfaceFlinger::setPowerMode(const sp<IBinder>& displayToken, int mode) { in setPowerMode() argument
4594 const auto display = getDisplayDevice(displayToken); in setPowerMode()
4597 displayToken.get()); in setPowerMode()
5615 const auto displayToken = getInternalDisplayToken(); in onTransact() local
5616 status_t result = setAllowedDisplayConfigs(displayToken, {n}); in onTransact()
5652 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& displayToken, in captureScreen() argument
5662 if (!displayToken) return BAD_VALUE; in captureScreen()
5670 display = getDisplayDeviceLocked(displayToken); in captureScreen()
5703 const sp<IBinder> displayToken = getPhysicalDisplayTokenLocked(DisplayId{displayOrLayerStack}); in getDisplayByIdOrLayerStack() local
5704 if (displayToken) { in getDisplayByIdOrLayerStack()
5705 return getDisplayDeviceLocked(displayToken); in getDisplayByIdOrLayerStack()
6215 status_t SurfaceFlinger::setAllowedDisplayConfigs(const sp<IBinder>& displayToken, in setAllowedDisplayConfigs() argument
6219 if (!displayToken || allowedConfigs.empty()) { in setAllowedDisplayConfigs()
6229 const auto display = getDisplayDeviceLocked(displayToken); in setAllowedDisplayConfigs()
6232 displayToken.get()); in setAllowedDisplayConfigs()
6244 status_t SurfaceFlinger::getAllowedDisplayConfigs(const sp<IBinder>& displayToken, in getAllowedDisplayConfigs() argument
6248 if (!displayToken || !outAllowedConfigs) { in getAllowedDisplayConfigs()
6254 const auto display = getDisplayDeviceLocked(displayToken); in getAllowedDisplayConfigs()