summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Jiang <eejiang@google.com> 2025-02-13 13:03:58 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-13 13:03:58 -0800
commit0635155dc0a04b032f7cc400a35435908a86fbe5 (patch)
tree7662487b24c56c36bc63828031de2ff02ab4d3f5
parent66752052ee18936c50a02ccf205ff4badc3da9e4 (diff)
parent5e31e7a004db6c185a8f01129be6433efd929023 (diff)
Merge "Log snapshot's secure status in SurfaceFlinger dumpsys." into main
-rw-r--r--services/surfaceflinger/FrontEnd/LayerSnapshot.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp b/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp
index 1514340e50..1f0d5d05a9 100644
--- a/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp
+++ b/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp
@@ -305,7 +305,11 @@ std::ostream& operator<<(std::ostream& out, const LayerSnapshot& obj) {
out << rootId << ",";
}
}
- out << "] " << obj.name << "\n " << (obj.isVisible ? "visible" : "invisible")
+ out << "] ";
+ if (obj.isSecure) {
+ out << "(Secure) ";
+ }
+ out << obj.name << "\n " << (obj.isVisible ? "visible" : "invisible")
<< " reason=" << obj.getIsVisibleReason();
if (!obj.geomLayerBounds.isEmpty()) {