SF: Add a RO flag for a new hal api for reporting hdcp level
Bug:285359126
Test: adb shell dumpsys SurfaceFlinger | grep hdcp -- verify flag shows
up default false.
Change-Id: Ibb82906313bd2b851d1681556d945ace373278f3
diff --git a/services/surfaceflinger/FlagManager.cpp b/services/surfaceflinger/FlagManager.cpp
index 5bbdfe9..11a5e0d 100644
--- a/services/surfaceflinger/FlagManager.cpp
+++ b/services/surfaceflinger/FlagManager.cpp
@@ -103,6 +103,7 @@
DUMP_FLAG(late_boot_misc2);
DUMP_FLAG(vrr_config);
DUMP_FLAG(hotplug2);
+ DUMP_FLAG(hdcp_level_hal);
#undef DUMP_FLAG
}
@@ -167,6 +168,7 @@
FLAG_MANAGER_READ_ONLY_FLAG(misc1, "")
FLAG_MANAGER_READ_ONLY_FLAG(vrr_config, "debug.sf.enable_vrr_config")
FLAG_MANAGER_READ_ONLY_FLAG(hotplug2, "")
+FLAG_MANAGER_READ_ONLY_FLAG(hdcp_level_hal, "")
/// Trunk stable server flags ///
FLAG_MANAGER_SERVER_FLAG(late_boot_misc2, "")
diff --git a/services/surfaceflinger/FlagManager.h b/services/surfaceflinger/FlagManager.h
index 9f83b1f..1a68993 100644
--- a/services/surfaceflinger/FlagManager.h
+++ b/services/surfaceflinger/FlagManager.h
@@ -52,6 +52,7 @@
bool misc1() const;
bool vrr_config() const;
bool hotplug2() const;
+ bool hdcp_level_hal() const;
/// Trunk stable server flags ///
bool late_boot_misc2() const;
diff --git a/services/surfaceflinger/surfaceflinger_flags.aconfig b/services/surfaceflinger/surfaceflinger_flags.aconfig
index fec450e..a81f9b8 100644
--- a/services/surfaceflinger/surfaceflinger_flags.aconfig
+++ b/services/surfaceflinger/surfaceflinger_flags.aconfig
@@ -61,3 +61,12 @@
bug: "303460805"
is_fixed_read_only: true
}
+
+flag {
+ name: "hdcp_level_hal"
+ namespace: "core_graphics"
+ description: "Feature flag for adding a HAL API to commuicate hdcp levels"
+ bug: "285359126"
+ is_fixed_read_only: true
+}
+