1 /*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "session_manager/include/hidump_controller.h"
17 #include "session_helper.h"
18 #include "wm_single_instance.h"
19
20 namespace OHOS {
21 namespace Rosen {
22 constexpr int STRING_MAX_WIDTH = 21;
23
24 WM_IMPLEMENT_SINGLE_INSTANCE(HidumpController)
25
GetAllSessionDumpDetailedInfo(std::ostringstream& oss, const std::vector<sptr<SceneSession>>& allSession, const std::vector<sptr<SceneSession>>& backgroundSession)26 void HidumpController::GetAllSessionDumpDetailedInfo(std::ostringstream& oss,
27 const std::vector<sptr<SceneSession>>& allSession, const std::vector<sptr<SceneSession>>& backgroundSession)
28 {
29 oss << std::endl
30 << "----------------------------------SessionDetailedInfo"
31 << "-----------------------------------" << std::endl;
32 if ((allSession.size() - backgroundSession.size()) < 0) {
33 oss << std::endl
34 << "sessionList Error" << std::endl;
35 return;
36 }
37 DumpSceneSessionParamList(oss);
38 uint32_t count = 0;
39 for (const auto& session : allSession) {
40 if (session == nullptr) {
41 continue;
42 }
43 if (count >= static_cast<uint32_t>(allSession.size() - backgroundSession.size())) {
44 break;
45 }
46 DumpSceneSessionParam(oss, session);
47 count++;
48 }
49 }
50
DumpSceneSessionParamList(std::ostringstream& oss)51 void HidumpController::DumpSceneSessionParamList(std::ostringstream& oss)
52 {
53 DumpSessionParamList(oss);
54 DumpLayoutRectParamList(oss);
55 DumpLayoutParamList(oss);
56 DumpAbilityParamList(oss);
57 DumpKeyboardParamList(oss);
58 DumpSysconfigParamList(oss);
59 DumpLifeParamList(oss);
60 DumpDisplayParamList(oss);
61 DumpFocusParamList(oss);
62 DumpInputParamList(oss);
63 DumpLakeParamList(oss);
64 DumpCOMParamList(oss);
65 DumpVisibleParamList(oss);
66 }
67
DumpSceneSessionParam(std::ostringstream& oss, sptr<SceneSession> session)68 void HidumpController::DumpSceneSessionParam(std::ostringstream& oss, sptr<SceneSession> session)
69 {
70 std::string sName = session->GetWindowNameAllType();
71 const std::string& windowName = sName.size() <= STRING_MAX_WIDTH ?
72 sName : sName.substr(0, STRING_MAX_WIDTH);
73 oss << "----------------------------------"
74 << windowName << "|"
75 << session->GetPersistentId()
76 << "----------------------------------" << std::endl;
77 sptr<WindowSessionProperty> property = session->GetSessionProperty();
78 if (property == nullptr) {
79 oss << "property is nullptr" << std::endl << std::endl;
80 return;
81 }
82 DumpSessionParam(oss, session, property);
83 DumpLayoutRectParam(oss, session, property);
84 DumpLayoutParam(oss, session, property);
85 DumpAbilityParam(oss, session, property);
86 DumpKeyboardParam(oss, session, property);
87 DumpSysconfigParam(oss, session);
88 DumpLifeParam(oss, session);
89 DumpDisplayParam(oss, session, property);
90 DumpFocusParam(oss, session, property);
91 DumpInputParam(oss, session, property);
92 DumpLakeParam(oss, session);
93 DumpCOMParam(oss, session);
94 DumpVisibleParam(oss, session);
95 oss << std::endl;
96 }
97
DumpSessionParamList(std::ostringstream& oss)98 void HidumpController::DumpSessionParamList(std::ostringstream& oss)
99 {
100 oss << "Session:"
101 << std::endl
102 << "callingPid callingUid isSystem reuse lockedState time type isSystemCalling topmost"
103 << std::endl
104 << "isPrivacyMode isSystemPrivacyMode parentId flag parentPersistentId mode state modeSupportInfo animationFlag"
105 << std::endl
106 << "isFloatingAppType isNonSystemFloating forceHide isNeedUpdateMode "
107 << "meedDefaultAnimationFlag shouldHideNonSecure forceHideState"
108 << std::endl;
109 }
110
DumpSessionParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)111 void HidumpController::DumpSessionParam(
112 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
113 {
114 oss << "Session:"
115 << std::endl
116 << session->GetCallingPid() << "|"
117 << session->GetCallingUid() << "|"
118 << session->IsSystemSession() << "|"
119 << session->sessionInfo_.reuse << "|"
120 << session->sessionInfo_.lockedState << "|"
121 << session->sessionInfo_.time << "|"
122 << static_cast<uint32_t>(property->GetWindowType()) << "|"
123 << property->GetSystemCalling() << "|"
124 << property->IsTopmost() << "|"
125 << std::endl
126 << property->GetPrivacyMode() << "|"
127 << property->GetSystemPrivacyMode() << "|"
128 << property->GetParentId() << "|"
129 << property->GetWindowFlags() << "|"
130 << property->GetParentPersistentId() << "|"
131 << static_cast<uint32_t>(property->GetWindowMode()) << "|"
132 << static_cast<uint32_t>(property->GetWindowState()) << "|"
133 << property->GetModeSupportInfo() << "|"
134 << property->GetAnimationFlag() << "|"
135 << std::endl
136 << property->IsFloatingWindowAppType() << "|"
137 << property->GetHideNonSystemFloatingWindows() << "|"
138 << property->GetForceHide() << "|"
139 << property->GetIsNeedUpdateWindowMode() << "|"
140 << session->IsNeedDefaultAnimation() << "|"
141 << session->shouldHideNonSecureWindows_.load() << "|"
142 << static_cast<uint32_t>(session->GetForceHideState()) << "|"
143 << std::endl;
144 }
145
DumpLayoutRectParamList(std::ostringstream& oss)146 void HidumpController::DumpLayoutRectParamList(std::ostringstream& oss)
147 {
148 oss << "LayoutRect:"
149 << std::endl
150 << "bounds requestRect windowRect"
151 << std::endl
152 << "limits userLimits configLimitsVP"
153 << std::endl
154 << "trans"
155 << std::endl;
156 }
157
DumpLayoutRectParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)158 void HidumpController::DumpLayoutRectParam(
159 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
160 {
161 constexpr int precision = 1;
162 WSRectF bounds = session->GetBounds();
163 Rect requestRect = property->GetRequestRect();
164 Rect windowRect = property->GetWindowRect();
165 WindowLimits limits = property->GetWindowLimits();
166 WindowLimits userLimits = property->GetUserWindowLimits();
167 WindowLimits configLimitsVP = property->GetConfigWindowLimitsVP();
168 Transform trans = property->GetTransform();
169 oss << "LayoutRect:" << std::endl
170 << "[" << std::setprecision(precision) << bounds.posX_ << " "
171 << std::setprecision(precision) << bounds.posY_ << " "
172 << std::setprecision(precision) << bounds.width_ << " "
173 << std::setprecision(precision) << bounds.height_ << "]|"
174 << "[" << requestRect.posX_ << " " << requestRect.posY_ << " "
175 << requestRect.width_ << " " << requestRect.height_ << "]|"
176 << "[" << windowRect.posX_ << windowRect.posY_ << " "
177 << windowRect.width_ << " " << windowRect.height_ << "]|"
178 << std::endl
179 << "[" << limits.maxWidth_ << " " << limits.maxHeight_ << " "
180 << limits.minWidth_ << " " << limits.minHeight_ << " "
181 << std::setprecision(precision) << limits.maxRatio_ << " "
182 << std::setprecision(precision) << limits.minRatio_ << " "
183 << std::setprecision(precision) << limits.vpRatio_ << "]|"
184 << "[" << userLimits.maxWidth_ << " " << userLimits.maxHeight_ << " "
185 << userLimits.minWidth_ << " " << userLimits.minHeight_ << "]|"
186 << std::endl
187 << "[" << configLimitsVP.maxWidth_ << " " << configLimitsVP.maxHeight_ << " "
188 << configLimitsVP.minWidth_ << " " << configLimitsVP.minHeight_ << "]|"
189 << std::endl
190 << "[" << std::setprecision(precision) << trans.pivotX_ << " "
191 << std::setprecision(precision) << trans.pivotY_ << " "
192 << std::setprecision(precision) << trans.scaleX_ << " "
193 << std::setprecision(precision) << trans.scaleY_ << " "
194 << std::setprecision(precision) << trans.scaleZ_ << " "
195 << std::setprecision(precision) << trans.rotationX_ << " "
196 << std::setprecision(precision) << trans.rotationY_ << " "
197 << std::setprecision(precision) << trans.rotationZ_ << " "
198 << std::setprecision(precision) << trans.translateX_ << " "
199 << std::setprecision(precision) << trans.translateY_ << " "
200 << std::setprecision(precision) << trans.translateZ_ << "]|"
201 << std::endl;
202 }
203
DumpLayoutParamList(std::ostringstream& oss)204 void HidumpController::DumpLayoutParamList(std::ostringstream& oss)
205 {
206 oss << "Layout:"
207 << std::endl
208 << "rotation reason zOrder aspectRatio floatingScale isDirty dragEnabled raiseEnabled"
209 << std::endl
210 << "requestedOrientation maximizeMode lastVpr isDecorEnable isLayoutFullScreen "
211 << "isDisplayStatusTemp customDecorHeight isTempShowWhenLocked"
212 << std::endl;
213 }
214
DumpLayoutParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)215 void HidumpController::DumpLayoutParam(
216 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
217 {
218 constexpr int precision = 1;
219 oss << "Layout:"
220 << std::endl
221 << static_cast<uint32_t>(session->GetRotation()) << "|"
222 << static_cast<uint32_t>(session->reason_) << "|"
223 << session->GetZOrder() << "|"
224 << std::setprecision(precision) << session->GetAspectRatio() << "|"
225 << std::setprecision(precision) << session->GetFloatingScale() << "|"
226 << session->IsDirtyWindow() << "|"
227 << property->GetDragEnabled() << "|"
228 << property->GetRaiseEnabled() << "|"
229 << std::endl
230 << static_cast<uint32_t>(property->GetRequestedOrientation()) << "|"
231 << static_cast<uint32_t>(property->GetMaximizeMode()) << "|"
232 << std::setprecision(precision) << property->GetLastLimitsVpr() << "|"
233 << property->IsDecorEnable() << "|"
234 << property->IsLayoutFullScreen() << "|"
235 << session->GetIsDisplayStatusBarTemporarily() << "|"
236 << session->GetCustomDecorHeight() << "|"
237 << session->IsTemporarilyShowWhenLocked() << "|"
238 << std::endl;
239 }
240
DumpAbilityParamList(std::ostringstream& oss)241 void HidumpController::DumpAbilityParamList(std::ostringstream& oss)
242 {
243 oss << "Ability:"
244 << std::endl
245 << "callingBundleName bundleName moduleName abilityName"
246 << std::endl
247 << "errorCode errorReason callerPersistentId callerBundleName callerAbilityName clientIdentityToken"
248 << std::endl
249 << "appIndex resultCode requestCode callState callingTokenId "
250 << "continueState uiAbilityId tokenState accessTokenId callingSessionId"
251 << std::endl;
252 }
253
DumpAbilityParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)254 void HidumpController::DumpAbilityParam(
255 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
256 {
257 oss << "Ability:"
258 << std::endl
259 << session->callingBundleName_ << "|"
260 << session->sessionInfo_.bundleName_ << "|"
261 << session->sessionInfo_.moduleName_ << "|"
262 << session->sessionInfo_.abilityName_ << "|"
263 << std::endl
264 << session->sessionInfo_.errorCode << "|"
265 << session->sessionInfo_.errorReason << "|"
266 << session->sessionInfo_.callerPersistentId_ << "|"
267 << session->sessionInfo_.callerBundleName_ << "|"
268 << session->sessionInfo_.callerAbilityName_ << "|"
269 << session->GetClientIdentityToken() << "|"
270 << std::endl
271 << session->sessionInfo_.appIndex_ << "|"
272 << session->sessionInfo_.resultCode << "|"
273 << session->sessionInfo_.requestCode << "|"
274 << session->sessionInfo_.callState_ << "|"
275 << session->sessionInfo_.callingTokenId_ << "|"
276 << static_cast<uint32_t>(session->sessionInfo_.continueState) << "|"
277 << session->sessionInfo_.uiAbilityId_ << "|"
278 << property->GetTokenState() << "|"
279 << property->GetAccessTokenId() << "|"
280 << property->GetCallingSessionId() << "|"
281 << std::endl;
282 }
283
DumpKeyboardParamList(std::ostringstream& oss)284 void HidumpController::DumpKeyboardParamList(std::ostringstream& oss)
285 {
286 oss << "Keyboard:"
287 << std::endl
288 << "scbKeepKeyboardFlag isSystemInput sessionGravity gravitySizePercent "
289 << "keepKeyboardFlag textFieldPositionY textFieldHeight"
290 << std::endl
291 << "keyboardLayoutParams"
292 << std::endl
293 << "lastSafeRect oriPosYBeforeRaisedByKeyboard_"
294 << std::endl;
295 }
296
DumpKeyboardParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)297 void HidumpController::DumpKeyboardParam(
298 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
299 {
300 constexpr int precision = 1;
301 WSRect lastSafeRect = session->GetLastSafeRect();
302 int32_t oriPosYBeforeRaisedByKeyboard = session->GetOriPosYBeforeRaisedByKeyboard();
303 KeyboardLayoutParams keyboardLayoutParams = property->GetKeyboardLayoutParams();
304 Rect LandscapeKeyboardRect = keyboardLayoutParams.LandscapeKeyboardRect_;
305 Rect PortraitKeyboardRect = keyboardLayoutParams.PortraitKeyboardRect_;
306 Rect LandscapePanelRect = keyboardLayoutParams.LandscapePanelRect_;
307 Rect PortraitPanelRect = keyboardLayoutParams.PortraitPanelRect_;
308 oss << "Keyboard:"
309 << std::endl
310 << session->GetSCBKeepKeyboardFlag() << "|"
311 << session->IsSystemInput() << "|"
312 << static_cast<uint32_t>(property->sessionGravity_) << "|"
313 << property->sessionGravitySizePercent_ << "|"
314 << property->GetKeepKeyboardFlag() << "|"
315 << std::setprecision(precision) << property->GetTextFieldPositionY() << "|"
316 << std::setprecision(precision) << property->GetTextFieldHeight() << "|"
317 << std::endl
318 << "{" << static_cast<uint32_t>(keyboardLayoutParams.gravity_) << "|"
319 << "[" << LandscapeKeyboardRect.posX_ << " "
320 << LandscapeKeyboardRect.posY_ << " "
321 << LandscapeKeyboardRect.width_ << " "
322 << LandscapeKeyboardRect.height_ << "]|"
323 << "[" << PortraitKeyboardRect.posX_ << " "
324 << PortraitKeyboardRect.posY_ << " "
325 << PortraitKeyboardRect.width_ << " "
326 << PortraitKeyboardRect.height_ << "]|"
327 << "[" << LandscapePanelRect.posX_ << " "
328 << LandscapePanelRect.posY_ << " "
329 << LandscapePanelRect.width_ << " "
330 << LandscapePanelRect.height_ << "]|"
331 << "[" << PortraitPanelRect.posX_ << " "
332 << PortraitPanelRect.posY_ << " "
333 << PortraitPanelRect.width_ << " "
334 << PortraitPanelRect.height_ << "]}"
335 << std::endl
336 << "[" << lastSafeRect.posX_ << " "
337 << lastSafeRect.posY_ << " "
338 << lastSafeRect.width_ << " "
339 << lastSafeRect.height_ << "]|"
340 << "[" << oriPosYBeforeRaisedByKeyboard << "]|"
341 << std::endl;
342 }
343
DumpSysconfigParamList(std::ostringstream& oss)344 void HidumpController::DumpSysconfigParamList(std::ostringstream& oss)
345 {
346 oss << "Sysconfig:"
347 << std::endl
348 << "isSystemDecorEnable decorModeSupportInfo isStretchable defaultWindowMode "
349 << "keyboardAnimationConfig maxFloatingWindowSize windowUIType"
350 << std::endl
351 << "miniWidthOfMainWindow miniHeightOfMainWindow miniWidthOfSubWindow miniHeightOfSubWindow backgroundswitch "
352 << "freeMultiWindowEnable freeMultiWindowSupport supportTypeFloatWindow freeMultiWindowConfig_"
353 << std::endl;
354 }
355
DumpSysconfigParam(std::ostringstream& oss, sptr<SceneSession> session)356 void HidumpController::DumpSysconfigParam(std::ostringstream& oss, sptr<SceneSession> session)
357 {
358 SystemSessionConfig systemConfig = session->GetSystemConfig();
359 FreeMultiWindowConfig freeMultiWindowConfig = systemConfig.freeMultiWindowConfig_;
360 oss << "Sysconfig:"
361 << std::endl
362 << systemConfig.isSystemDecorEnable_ << "|"
363 << systemConfig.decorModeSupportInfo_ << "|"
364 << systemConfig.isStretchable_ << "|"
365 << static_cast<uint32_t>(systemConfig.defaultWindowMode_) << "|"
366 << "[" << systemConfig.animationIn_.curveType_ << " "
367 << systemConfig.animationIn_.duration_ << "]|"
368 << "[" << systemConfig.animationOut_.curveType_ << " "
369 << systemConfig.animationOut_.duration_ << "]|"
370 << systemConfig.maxFloatingWindowSize_ << "|"
371 << static_cast<uint8_t>(systemConfig.windowUIType_) << "|"
372 << std::endl
373 << systemConfig.miniWidthOfMainWindow_ << "|"
374 << systemConfig.miniHeightOfMainWindow_ << "|"
375 << systemConfig.miniWidthOfSubWindow_ << "|"
376 << systemConfig.miniHeightOfSubWindow_ << "|"
377 << systemConfig.backgroundswitch << "|"
378 << systemConfig.freeMultiWindowEnable_ << "|"
379 << systemConfig.freeMultiWindowSupport_ << "|"
380 << systemConfig.supportTypeFloatWindow_ << "|"
381 << "[" << freeMultiWindowConfig.isSystemDecorEnable_ << " "
382 << freeMultiWindowConfig.decorModeSupportInfo_ << " "
383 << static_cast<uint32_t>(freeMultiWindowConfig.defaultWindowMode_) << " "
384 << freeMultiWindowConfig.maxMainFloatingWindowNumber_<< "]|"
385 << std::endl;
386 }
387
DumpLifeParamList(std::ostringstream& oss)388 void HidumpController::DumpLifeParamList(std::ostringstream& oss)
389 {
390 oss << "Life: "
391 << "state isActive isSystemActive isVisible uiNodeId showRecent bufferAvailable "
392 << "foregroundInteractiveStatus isAttach isPersistentRecover"
393 << std::endl;
394 }
395
DumpLifeParam(std::ostringstream& oss, sptr<SceneSession> session)396 void HidumpController::DumpLifeParam(std::ostringstream& oss, sptr<SceneSession> session)
397 {
398 oss << "Life: "
399 << static_cast<uint32_t>(session->GetSessionState()) << "|"
400 << session->IsActive() << "|"
401 << session->IsSystemActive() << "|"
402 << session->IsVisible() << "|"
403 << session->GetUINodeId() << "|"
404 << session->GetShowRecent() << "|"
405 << session->GetBufferAvailable() << "|"
406 << session->GetForegroundInteractiveStatus() << "|"
407 << session->GetAttachState() << "|"
408 << session->sessionInfo_.isPersistentRecover_ << "|"
409 << std::endl;
410 }
411
DumpDisplayParamList(std::ostringstream& oss)412 void HidumpController::DumpDisplayParamList(std::ostringstream& oss)
413 {
414 oss << "Display: "
415 << "snapshotScale vpr screenId brightness displayId"
416 << std::endl;
417 }
418
DumpDisplayParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)419 void HidumpController::DumpDisplayParam(
420 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
421 {
422 constexpr int precision = 1;
423 oss << "Display: "
424 << std::setprecision(precision) << session->snapshotScale_ << "|"
425 << std::setprecision(precision) << session->vpr_ << "|"
426 << session->sessionInfo_.screenId_ << "|"
427 << std::setprecision(precision) << property->GetBrightness() << "|"
428 << property->GetDisplayId() << "|"
429 << std::endl;
430 }
431
DumpFocusParamList(std::ostringstream& oss)432 void HidumpController::DumpFocusParamList(std::ostringstream& oss)
433 {
434 oss << "Focus: "
435 << "isFocused blockingFocus focusedOnShow focusable"
436 << std::endl;
437 }
438
DumpFocusParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)439 void HidumpController::DumpFocusParam(
440 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
441 {
442 oss << "Focus: "
443 << session->IsFocused() << "|"
444 << session->GetBlockingFocus() << "|"
445 << session->IsFocusedOnShow() << "|"
446 << property->GetFocusable() << "|"
447 << std::endl;
448 }
449
DumpInputParamList(std::ostringstream& oss)450 void HidumpController::DumpInputParamList(std::ostringstream& oss)
451 {
452 oss << "Input: "
453 << "forceTouchable systemTouchable isSetPointerAreas touchable"
454 << std::endl;
455 }
456
DumpInputParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)457 void HidumpController::DumpInputParam(
458 std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property)
459 {
460 oss << "Input: "
461 << session->forceTouchable_ << "|"
462 << session->systemTouchable_ << "|"
463 << session->sessionInfo_.isSetPointerAreas_ << "|"
464 << property->GetTouchable() << "|"
465 << std::endl;
466 }
467
DumpLakeParamList(std::ostringstream& oss)468 void HidumpController::DumpLakeParamList(std::ostringstream& oss)
469 {
470 oss << "Lake: "
471 << "sessionAffinity collaboratorType"
472 << std::endl;
473 }
474
DumpLakeParam(std::ostringstream& oss, sptr<SceneSession> session)475 void HidumpController::DumpLakeParam(std::ostringstream& oss, sptr<SceneSession> session)
476 {
477 oss << "Lake: "
478 << session->sessionInfo_.sessionAffinity << "|"
479 << session->sessionInfo_.collaboratorType_ << "|"
480 << std::endl;
481 }
482
DumpCOMParamList(std::ostringstream& oss)483 void HidumpController::DumpCOMParamList(std::ostringstream& oss)
484 {
485 oss << "COM: "
486 << "isRSDrawing"
487 << std::endl;
488 }
489
DumpCOMParam(std::ostringstream& oss, sptr<SceneSession> session)490 void HidumpController::DumpCOMParam(std::ostringstream& oss, sptr<SceneSession> session)
491 {
492 oss << "COM: "
493 << session->GetDrawingContentState() << "|"
494 << std::endl;
495 }
496
DumpVisibleParamList(std::ostringstream& oss)497 void HidumpController::DumpVisibleParamList(std::ostringstream& oss)
498 {
499 oss << "Visible: "
500 << "isRSVisible visibilityState"
501 << std::endl;
502 }
503
DumpVisibleParam(std::ostringstream& oss, sptr<SceneSession> session)504 void HidumpController::DumpVisibleParam(std::ostringstream& oss, sptr<SceneSession> session)
505 {
506 oss << "Visible: "
507 << session->GetRSVisible() << "|"
508 << static_cast<uint32_t>(session->GetVisibilityState()) << "|"
509 << std::endl;
510 }
511 }
512 } // namespace OHOS::Rosen
513