OSDN Git Service

gralloc4: add manifest fragment
authorRoman Stratiienko <r.stratiienko@gmail.com>
Thu, 24 Dec 2020 13:43:06 +0000 (15:43 +0200)
committerRoman Stratiienko <r.stratiienko@gmail.com>
Tue, 29 Dec 2020 10:36:43 +0000 (12:36 +0200)
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Change-Id: I0c84a7fc3d75a836ab061ca24769a997cbafe844

cros_gralloc/gralloc4/Android.bp
cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0.xml [new file with mode: 0644]
cros_gralloc/gralloc4/android.hardware.graphics.mapper@4.0.xml [new file with mode: 0644]

index 48cd2a8..9c7f79c 100644 (file)
@@ -19,6 +19,8 @@ cc_binary {
     vendor: true,
     init_rc: ["android.hardware.graphics.allocator@4.0-service.minigbm.rc"],
 
+    vintf_fragments: ["android.hardware.graphics.allocator@4.0.xml"],
+
     cflags: [
         "-Wall",
         "-Werror",
@@ -53,6 +55,8 @@ cc_library_shared {
     relative_install_path: "hw",
     vendor: true,
 
+    vintf_fragments: ["android.hardware.graphics.mapper@4.0.xml"],
+
     cflags: [
         "-Wall",
         "-Werror",
diff --git a/cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0.xml b/cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0.xml
new file mode 100644 (file)
index 0000000..04695ef
--- /dev/null
@@ -0,0 +1,11 @@
+<manifest version="1.0" type="device">
+    <hal format="hidl">
+        <name>android.hardware.graphics.allocator</name>
+        <transport>hwbinder</transport>
+        <version>4.0</version>
+        <interface>
+            <name>IAllocator</name>
+            <instance>default</instance>
+        </interface>
+    </hal>
+</manifest>
diff --git a/cros_gralloc/gralloc4/android.hardware.graphics.mapper@4.0.xml b/cros_gralloc/gralloc4/android.hardware.graphics.mapper@4.0.xml
new file mode 100644 (file)
index 0000000..3160c77
--- /dev/null
@@ -0,0 +1,11 @@
+<manifest version="1.0" type="device">
+    <hal format="hidl">
+        <name>android.hardware.graphics.mapper</name>
+        <transport arch="32+64">passthrough</transport>
+        <version>4.0</version>
+        <interface>
+            <name>IMapper</name>
+            <instance>default</instance>
+        </interface>
+    </hal>
+</manifest>