sanders: clean-up camera shims
This commit is contained in:
@@ -215,10 +215,7 @@ TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)/releasetools
|
|||||||
# Shim
|
# Shim
|
||||||
TARGET_LD_SHIM_LIBS := \
|
TARGET_LD_SHIM_LIBS := \
|
||||||
/system/vendor/bin/adspd|libshim_adsp.so \
|
/system/vendor/bin/adspd|libshim_adsp.so \
|
||||||
/system/lib/lib_motsensorlistener.so|libsensor.so \
|
/system/vendor/lib64/libmdmcutback.so|libqsap_shim.so
|
||||||
/system/lib/libjustshoot.so|libshims_camera.so \
|
|
||||||
/system/vendor/lib/libguy.so|libshim_camera_hal.so \
|
|
||||||
/system/vendor/lib64/libmdmcutback.so|libqsap_shim.so
|
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
BOARD_HAS_QCOM_WLAN := true
|
BOARD_HAS_QCOM_WLAN := true
|
||||||
|
|||||||
@@ -24,24 +24,6 @@ LOCAL_MODULE := libshim_adsp
|
|||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_SRC_FILES := camera_hal.cpp
|
|
||||||
LOCAL_MODULE := libshim_camera_hal
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_SHARED_LIBRARIES := libgui
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := MediaCodec.cpp
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := libstagefright libmedia
|
|
||||||
|
|
||||||
LOCAL_MODULE := libshims_camera
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_SRC_FILES := libqsap_shim.c
|
LOCAL_SRC_FILES := libqsap_shim.c
|
||||||
LOCAL_SHARED_LIBRARIES := libqsap_sdk liblog
|
LOCAL_SHARED_LIBRARIES := libqsap_sdk liblog
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2016 The CyanogenMod 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* TODO: Actually provide implementations for these function! */
|
|
||||||
|
|
||||||
void _ZNK7android11MediaBuffer8refcountEv() {}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
#include <media/MediaCodecBuffer.h>
|
|
||||||
#include <media/stagefright/foundation/AHandler.h>
|
|
||||||
#include <utils/Vector.h>
|
|
||||||
|
|
||||||
namespace android {
|
|
||||||
|
|
||||||
extern "C" void _ZN7android10MediaCodec12CreateByTypeERKNS_2spINS_7ALooperEEERKNS_7AStringEbPiij(
|
|
||||||
const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid, uid_t uid);
|
|
||||||
|
|
||||||
extern "C" void _ZNK7android10MediaCodec15getInputBuffersEPNS_6VectorINS_2spINS_16MediaCodecBufferEEEEE(Vector<sp<ABuffer> > *buffers);
|
|
||||||
extern "C" void _ZNK7android10MediaCodec16getOutputBuffersEPNS_6VectorINS_2spINS_16MediaCodecBufferEEEEE(Vector<sp<ABuffer> > *buffers);
|
|
||||||
|
|
||||||
extern "C" void _ZN7android10MediaCodec12CreateByTypeERKNS_2spINS_7ALooperEEERKNS_7AStringEbPii(
|
|
||||||
const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid) {
|
|
||||||
_ZN7android10MediaCodec12CreateByTypeERKNS_2spINS_7ALooperEEERKNS_7AStringEbPiij(
|
|
||||||
looper, mime, encoder, err, pid, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C" void _ZNK7android10MediaCodec15getInputBuffersEPNS_6VectorINS_2spINS_7ABufferEEEEE(Vector<sp<ABuffer> > *buffers) {
|
|
||||||
_ZNK7android10MediaCodec15getInputBuffersEPNS_6VectorINS_2spINS_16MediaCodecBufferEEEEE(buffers);
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C" void _ZNK7android10MediaCodec16getOutputBuffersEPNS_6VectorINS_2spINS_7ABufferEEEEE(Vector<sp<ABuffer> > *buffers) {
|
|
||||||
_ZNK7android10MediaCodec16getOutputBuffersEPNS_6VectorINS_2spINS_16MediaCodecBufferEEEEE(buffers);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2016 The CyanogenMod 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
|
||||||
#include <EGL/eglext.h>
|
|
||||||
|
|
||||||
/* TODO: Actually provide implementations for these function! */
|
|
||||||
|
|
||||||
extern "C" void _ZN7android20DisplayEventReceiverC1Ev() {}
|
|
||||||
|
|
||||||
EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name);
|
|
||||||
|
|
||||||
extern "C" void _Z35eglQueryStringImplementationANDROIDPvi(EGLDisplay dpy, EGLint name){
|
|
||||||
eglQueryStringImplementationANDROID(dpy, name);
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2017 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <sensor/Sensor.h>
|
|
||||||
|
|
||||||
extern "C" int ASensor_getHandle(ASensor const* sensor)
|
|
||||||
{
|
|
||||||
return static_cast<android::Sensor const*>(sensor)->getHandle();
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user