Codec2: separate param/paramutils test from other Codec2 unit tests

Parameter tests must not link to codec2 libraries to verify that
the libraries are not required to use Codec2 parameters and utils.

Bug: 64121714
Test: unittest
Change-Id: I6e65363157e9224246924aed51098ccbd0b5a01e
diff --git a/media/libstagefright/codec2/tests/Android.bp b/media/libstagefright/codec2/tests/Android.bp
index 8a18f7d..cf75061 100644
--- a/media/libstagefright/codec2/tests/Android.bp
+++ b/media/libstagefright/codec2/tests/Android.bp
@@ -1,4 +1,35 @@
 cc_test {
+    name: "codec2_param_test",
+
+    tags: [
+        "tests",
+    ],
+
+    srcs: [
+        "C2Param_test.cpp",
+        "vndk/C2UtilTest.cpp",
+    ],
+
+    include_dirs: [
+        "frameworks/av/media/libstagefright/codec2/include",
+        "frameworks/av/media/libstagefright/codec2/vndk/include",
+    ],
+
+    // param tests must not depend on any codec2 libraries as all params should be templated
+    shared_libs: [
+    ],
+
+    static_libs: [
+    ],
+
+    cflags: [
+        "-Werror",
+        "-Wall",
+        "-std=c++14",
+    ],
+}
+
+cc_test {
     name: "codec2_test",
 
     tags: [
@@ -7,9 +38,7 @@
 
     srcs: [
         "vndk/C2BufferTest.cpp",
-        "vndk/C2UtilTest.cpp",
         "C2_test.cpp",
-        "C2Param_test.cpp",
     ],
 
     include_dirs: [