Lines Matching defs:screen

38 // set the output width of screen
112 .append("|dump all screen information in the system\n")
115 .append(" -s {screen id} ")
116 .append("|dump specified screen information\n")
128 dumpInfo.append("The screen or display is invalid, ")
129 .append("you can enter '-s -a' or '-d -a' to get valid screen or display id.");
170 auto screen = abstractScreenController_->GetAbstractScreen(screenId);
171 if (screen == nullptr) {
172 WLOGFE("screen is null");
175 if (SCREEN_ID_INVALID == screen->groupDmsId_ || screen->isScreenGroup_) {
176 GetScreenInfo(screen, oss);
178 if (screen->isScreenGroup_) {
183 oss << "total screen num: " << screenIds.size() << std::endl;
209 for (auto screen : childrenScreen) {
210 GetScreenInfo(screen, oss);
218 auto screen = abstractScreenController_->GetAbstractScreen(screenId);
219 if (screen == nullptr) {
220 WLOGFE("screen is null");
224 const std::string& name = screen->GetScreenName();
227 std::string isGroup = screen->isScreenGroup_ ? "true" : "false";
228 std::string screenType = TransferTypeToString(screen->type_);
229 std::string isMirrored = screen->rSDisplayNodeConfig_.isMirrored ? "true" : "false";
230 NodeId nodeId = (screen->rsDisplayNode_ == nullptr) ? SCREEN_ID_INVALID : screen->rsDisplayNode_->GetId();
235 oss << "DmsId: " << screen->dmsId_ << std::endl;
236 oss << "RsId: " << screen->rsId_ << std::endl;
237 oss << "GroupDmsId: " << screen->groupDmsId_ << std::endl;
238 oss << "ActiveIdx: " << screen->activeIdx_ << std::endl;
239 oss << "VPR: " << screen->virtualPixelRatio_ << std::endl;
240 oss << "Rotation: " << static_cast<uint32_t>(screen->rotation_) << std::endl;
241 oss << "Orientation: " << static_cast<uint32_t>(screen->orientation_) << std::endl;
242 oss << "RequestOrientation: " << static_cast<uint32_t>(screen->screenRequestedOrientation_) << std::endl;
245 oss << "MirrorNodeId: " << screen->rSDisplayNodeConfig_.mirrorNodeId << std::endl;
327 void DisplayDumper::GetScreenInfo(const sptr<AbstractScreen>& screen, std::ostringstream& oss) const
329 if (screen == nullptr) {
330 WLOGFE("screen is null");
334 const std::string& name = screen->GetScreenName();
337 std::string isGroup = screen->isScreenGroup_ ? "true" : "false";
338 std::string screenType = TransferTypeToString(screen->type_);
339 std::string isMirrored = screen->rSDisplayNodeConfig_.isMirrored ? "true" : "false";
340 NodeId nodeId = (screen->rsDisplayNode_ == nullptr) ? SCREEN_ID_INVALID : screen->rsDisplayNode_->GetId();
345 << std::left << std::setw(W_DMS_ID) << screen->dmsId_
346 << std::left << std::setw(W_RS_ID) << screen->rsId_
347 << std::left << std::setw(W_ACTIVE_IDX) << screen->activeIdx_
348 << std::left << std::setw(W_VIR_PIXEL_RATIO) << screen->virtualPixelRatio_
349 << std::left << std::setw(W_SCREEN_ROTATION) << static_cast<uint32_t>(screen->rotation_)
350 << std::left << std::setw(W_ORIENTATION) << static_cast<uint32_t>(screen->orientation_)
351 << std::left << std::setw(W_REQUESTED_ORIENTATION) << static_cast<uint32_t>(screen->screenRequestedOrientation_)
354 << std::left << std::setw(W_MIRROR_NODE_ID) << screen->rSDisplayNodeConfig_.mirrorNodeId