The open source OpenXR runtime
1// Copyright 2022-2023, Qualcomm Innovation Center, Inc.
2// SPDX-License-Identifier: BSL-1.0
3// Author: Jarvis Huang
4
5#include "android.hardware.display.h"
6
7namespace wrap {
8namespace android::hardware::display {
9DisplayManager::Meta::Meta(bool deferDrop)
10 : MetaBaseDroppable(DisplayManager::getTypeName()),
11 DISPLAY_CATEGORY_PRESENTATION(classRef(),
12 "DISPLAY_CATEGORY_PRESENTATION"),
13 getDisplay(
14 classRef().getMethod("getDisplay", "(I)Landroid/view/Display;")),
15 getDisplays(
16 classRef().getMethod("getDisplays", "()[Landroid/view/Display;")),
17 getDisplays1(classRef().getMethod(
18 "getDisplays", "(Ljava/lang/String;)[Landroid/view/Display;")) {
19 if (!deferDrop) {
20 MetaBaseDroppable::dropClassRef();
21 }
22}
23DeviceProductInfo::Meta::Meta()
24 : MetaBaseDroppable(DeviceProductInfo::getTypeName()),
25 getName(classRef().getMethod("getName", "()Ljava/lang/String;")) {
26 MetaBaseDroppable::dropClassRef();
27}
28} // namespace android::hardware::display
29} // namespace wrap