Skip to content

Commit 5e31e7a

Browse files
author
Yi Jiang
committed
Log snapshot's secure status in SurfaceFlinger dumpsys.
Change-Id: Iab5a7ea94b7c2de503c5ec3fa63cd64cde071397 Test: locally verified the logs Flag: EXEMPT log only update Bug: 372558540
1 parent efccd08 commit 5e31e7a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

services/surfaceflinger/FrontEnd/LayerSnapshot.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,11 @@ std::ostream& operator<<(std::ostream& out, const LayerSnapshot& obj) {
305305
out << rootId << ",";
306306
}
307307
}
308-
out << "] " << obj.name << "\n " << (obj.isVisible ? "visible" : "invisible")
308+
out << "] ";
309+
if (obj.isSecure) {
310+
out << "(Secure) ";
311+
}
312+
out << obj.name << "\n " << (obj.isVisible ? "visible" : "invisible")
309313
<< " reason=" << obj.getIsVisibleReason();
310314

311315
if (!obj.geomLayerBounds.isEmpty()) {

0 commit comments

Comments
 (0)