shims: add libshim_stagefright_foundation from exynos9820-common
Change-Id: I523f549bf014dd77cde8b323822c3309b0280872
diff --git a/shim/libstagefright/Android.mk b/shim/libstagefright/Android.mk
new file mode 100644
index 0000000..7ea25db
--- /dev/null
+++ b/shim/libstagefright/Android.mk
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2020 The Android Open-Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/shim/libstagefright/foundation/Android.mk b/shim/libstagefright/foundation/Android.mk
new file mode 100644
index 0000000..94af052
--- /dev/null
+++ b/shim/libstagefright/foundation/Android.mk
@@ -0,0 +1,27 @@
+# Copyright (C) 2020 The LineageOS Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+### STAGEFRIGHT
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := MediaDefs.cpp
+LOCAL_SHARED_LIBRARIES := libstagefright_foundation
+LOCAL_MODULE := libshim_stagefright_foundation
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_VENDOR_MODULE := true
+
+include $(BUILD_SHARED_LIBRARY)
diff --git a/shim/libstagefright/foundation/MediaDefs.cpp b/shim/libstagefright/foundation/MediaDefs.cpp
new file mode 100644
index 0000000..5d9a530
--- /dev/null
+++ b/shim/libstagefright/foundation/MediaDefs.cpp
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2020 LineageOS Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace android {
+ const char *MEDIA_MIMETYPE_AUDIO_IMA = "audio/x-ima";
+} // namespece android