mirror of
https://github.com/bylaws/libadrenotools
synced 2024-11-21 14:29:15 -07:00
Stub functions not present on android Q
This commit is contained in:
parent
db24bb4750
commit
9d047fb117
2 changed files with 10 additions and 5 deletions
|
@ -99,7 +99,6 @@ struct IQtiMapper : public IBase {
|
|||
};
|
||||
|
||||
} // namespace V3_0
|
||||
#ifdef SHIM_MODE
|
||||
namespace V2_0 {
|
||||
|
||||
struct IQtiMapper : public IBase {
|
||||
|
@ -183,5 +182,4 @@ struct IQtiMapper : public IBase {
|
|||
};
|
||||
|
||||
} // namespace V2_0
|
||||
#endif
|
||||
} // namespace vendor::qti::hardware::display::mapper
|
||||
|
|
|
@ -36,9 +36,6 @@
|
|||
#include <log/log.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
#include <utils/misc.h>
|
||||
|
||||
#define SHIM_MODE 1
|
||||
|
||||
#include "ext/common.h"
|
||||
#include "ext/gr_utils.h"
|
||||
#include "ext/mapper.h"
|
||||
|
@ -47,6 +44,16 @@
|
|||
using namespace android::hardware;
|
||||
using namespace android;
|
||||
|
||||
// These two functions are used by the blob and aren't present on Q so weakly stub them
|
||||
extern "C" uint64_t __attribute__((weak)) atrace_get_enabled_tags() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
namespace android::hardware::details {
|
||||
void __attribute__((weak)) return_status::onValueRetrieval() const {}
|
||||
}
|
||||
|
||||
bool IBase::isRemote() const {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue