diff options
| author | 2025-02-13 13:03:58 -0800 | |
|---|---|---|
| committer | 2025-02-13 13:03:58 -0800 | |
| commit | 0635155dc0a04b032f7cc400a35435908a86fbe5 (patch) | |
| tree | 7662487b24c56c36bc63828031de2ff02ab4d3f5 | |
| parent | 66752052ee18936c50a02ccf205ff4badc3da9e4 (diff) | |
| parent | 5e31e7a004db6c185a8f01129be6433efd929023 (diff) | |
Merge "Log snapshot's secure status in SurfaceFlinger dumpsys." into main
| -rw-r--r-- | services/surfaceflinger/FrontEnd/LayerSnapshot.cpp | 6 |
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()) { |