Skip to content

Commit 0635155

Browse files
Yi JiangAndroid (Google) Code Review
authored andcommitted
Merge "Log snapshot's secure status in SurfaceFlinger dumpsys." into main
2 parents 6675205 + 5e31e7a commit 0635155

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)