aboutsummaryrefslogtreecommitdiff
path: root/bufferinfo/BufferInfoGetter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bufferinfo/BufferInfoGetter.cpp')
-rw-r--r--bufferinfo/BufferInfoGetter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bufferinfo/BufferInfoGetter.cpp b/bufferinfo/BufferInfoGetter.cpp
index 95c1a23..726b4eb 100644
--- a/bufferinfo/BufferInfoGetter.cpp
+++ b/bufferinfo/BufferInfoGetter.cpp
@@ -18,7 +18,7 @@
#include "BufferInfoGetter.h"
-#if PLATFORM_SDK_VERSION >= 30
+#if __ANDROID_API__ >= 30
#include "BufferInfoMapperMetadata.h"
#endif
@@ -38,7 +38,7 @@ namespace android {
BufferInfoGetter *BufferInfoGetter::GetInstance() {
static std::unique_ptr<BufferInfoGetter> inst;
if (!inst) {
-#if PLATFORM_SDK_VERSION >= 30 && defined(USE_IMAPPER4_METADATA_API)
+#if __ANDROID_API__ >= 30 && defined(USE_IMAPPER4_METADATA_API)
inst.reset(BufferInfoMapperMetadata::CreateInstance());
if (!inst) {
ALOGW(
@@ -68,7 +68,7 @@ std::optional<BufferUniqueId> BufferInfoGetter::GetUniqueId(
}
int LegacyBufferInfoGetter::Init() {
- int ret = hw_get_module(
+ const int ret = hw_get_module(
GRALLOC_HARDWARE_MODULE_ID,
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
reinterpret_cast<const hw_module_t **>(&gralloc_));