The open source OpenXR runtime
1// Copyright 2020-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Out-of-line implementations for partially-generated wrapper for the
6 * `org.freedesktop.monado.auxiliary` Java package.
7 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
8 * @ingroup aux_android
9 */
10
11#include "org.freedesktop.monado.auxiliary.hpp"
12
13namespace wrap {
14namespace org::freedesktop::monado::auxiliary {
15 MonadoView::Meta::Meta(jni::jclass clazz)
16 : MetaBase(MonadoView::getTypeName(), clazz),
17 attachToWindow(classRef().getStaticMethod(
18 "attachToWindow",
19 "(Landroid/content/Context;JLandroid/view/WindowManager$LayoutParams;)Lorg/freedesktop/monado/"
20 "auxiliary/MonadoView;")),
21 removeFromWindow(
22 classRef().getStaticMethod("removeFromWindow", "(Lorg/freedesktop/monado/auxiliary/MonadoView;)V")),
23 getDisplayMetrics(classRef().getStaticMethod("getDisplayMetrics",
24 "(Landroid/content/Context;)Landroid/util/DisplayMetrics;")),
25 getDisplayRefreshRate(
26 classRef().getStaticMethod("getDisplayRefreshRate", "(Landroid/content/Context;)F")),
27 getSupportedRefreshRates(
28 classRef().getStaticMethod("getSupportedRefreshRates", "(Landroid/content/Context;)[F")),
29 getNativePointer(classRef().getMethod("getNativePointer", "()J")),
30 markAsDiscardedByNative(classRef().getMethod("markAsDiscardedByNative", "()V")),
31 waitGetSurfaceHolder(classRef().getMethod("waitGetSurfaceHolder", "(I)Landroid/view/SurfaceHolder;")),
32 getDisplayModeIdWidth(
33 classRef().getStaticMethod("getDisplayModeIdWidth", "(Landroid/content/Context;II)I")),
34 getDisplayModeIdHeight(
35 classRef().getStaticMethod("getDisplayModeIdHeight", "(Landroid/content/Context;II)I"))
36 {}
37
38 ActivityLifecycleListener::Meta::Meta(jni::jclass clazz)
39 : MetaBase(ActivityLifecycleListener::getTypeName(), clazz), init(classRef().getMethod("<init>", "(J)V")),
40 registerCallback(classRef().getMethod("registerCallback", "(Landroid/app/Activity;)V")),
41 unregisterCallback(classRef().getMethod("unregisterCallback", "(Landroid/app/Activity;)V"))
42 {}
43} // namespace org::freedesktop::monado::auxiliary
44} // namespace wrap