Lines Matching refs:mode_string
146 auto mode_string = color_mode_map_[mode][intent][kSdrType]; in SetColorModeWithRenderIntent() local
147 DisplayError error = display_intf_->SetColorMode(mode_string); in SetColorModeWithRenderIntent()
149 DLOGE("failed for mode = %d intent = %d name = %s", mode, intent, mode_string.c_str()); in SetColorModeWithRenderIntent()
158 mode_string.c_str()); in SetColorModeWithRenderIntent()
194 std::string mode_string = preferred_mode_[current_color_mode_][curr_dynamic_range_]; in ApplyCurrentColorModeWithRenderIntent() local
195 if (mode_string.empty()) { in ApplyCurrentColorModeWithRenderIntent()
196 mode_string = color_mode_map_[current_color_mode_][current_render_intent_][curr_dynamic_range_]; in ApplyCurrentColorModeWithRenderIntent()
197 if (mode_string.empty() && hdr_present) { in ApplyCurrentColorModeWithRenderIntent()
199 mode_string = color_mode_map_[current_color_mode_][RenderIntent::COLORIMETRIC][kHdrType]; in ApplyCurrentColorModeWithRenderIntent()
201 if (mode_string.empty() && in ApplyCurrentColorModeWithRenderIntent()
206 mode_string = color_mode_map_[current_color_mode_][current_render_intent_][kSdrType]; in ApplyCurrentColorModeWithRenderIntent()
209 if (mode_string.empty() && in ApplyCurrentColorModeWithRenderIntent()
212 mode_string = color_mode_map_[current_color_mode_][current_render_intent_][kHdrType]; in ApplyCurrentColorModeWithRenderIntent()
217 auto error = SetPreferredColorModeInternal(mode_string, false, NULL, NULL); in ApplyCurrentColorModeWithRenderIntent()
222 current_color_mode_, current_render_intent_, curr_dynamic_range_, mode_string.c_str()); in ApplyCurrentColorModeWithRenderIntent()
238 HWC2::Error HWCColorMode::SetPreferredColorModeInternal(const std::string &mode_string, in SetPreferredColorModeInternal() argument
248 error = display_intf_->GetColorModeAttr(mode_string, &attr); in SetPreferredColorModeInternal()
250 DLOGE("Failed to get mode attributes for mode %s", mode_string.c_str()); in SetPreferredColorModeInternal()
266 mode_string.c_str(), color_gamut_string.c_str(), dynamic_range_string.c_str()); in SetPreferredColorModeInternal()
291 DLOGI("Applying mode: %s", mode_string.c_str()); in SetPreferredColorModeInternal()
292 error = display_intf_->SetColorMode(mode_string); in SetPreferredColorModeInternal()
294 DLOGE("Failed to apply mode: %s", mode_string.c_str()); in SetPreferredColorModeInternal()
302 HWC2::Error HWCColorMode::SetColorModeFromClientApi(std::string mode_string) { in SetColorModeFromClientApi() argument
306 auto error = SetPreferredColorModeInternal(mode_string, true, &mode, &range); in SetColorModeFromClientApi()
308 preferred_mode_[mode][range] = mode_string; in SetColorModeFromClientApi()
310 mode_string.c_str(), mode, range); in SetColorModeFromClientApi()
358 std::string &mode_string = color_modes.at(i); in PopulateColorModes() local
359 DLOGV_IF(kTagClient, "Color Mode[%d] = %s", i, mode_string.c_str()); in PopulateColorModes()
361 error = display_intf_->GetColorModeAttr(mode_string, &attr); in PopulateColorModes()
380 DLOGW("Invalid render intent %d for mode %s", int_render_intent, mode_string.c_str()); in PopulateColorModes()
389 color_mode_map_[ColorMode::NATIVE][render_intent][kSdrType] = mode_string; in PopulateColorModes()
393 color_mode_map_[ColorMode::SRGB][render_intent][kSdrType] = mode_string; in PopulateColorModes()
397 color_mode_map_[ColorMode::DISPLAY_P3][render_intent][kSdrType] = mode_string; in PopulateColorModes()
401 color_mode_map_[ColorMode::DISPLAY_P3][render_intent][kHdrType] = mode_string; in PopulateColorModes()
404 [kHdrType] = mode_string; in PopulateColorModes()
406 [kHdrType] = mode_string; in PopulateColorModes()
411 [kHdrType] = mode_string; in PopulateColorModes()
414 [kHdrType] = mode_string; in PopulateColorModes()
417 [kSdrType] = mode_string; in PopulateColorModes()
422 if (mode_string.find("hal_native") != std::string::npos) { in PopulateColorModes()
424 [kSdrType] = mode_string; in PopulateColorModes()