Monado OpenXR Runtime
android_load_class.cpp File Reference

Implementations for loading Java code from a package. More...

#include "android_load_class.hpp"
#include "util/u_logging.h"
#include "wrap/android.content.h"
#include "wrap/android.content.pm.h"
#include "wrap/dalvik.system.h"
#include "jni.h"
#include <dlfcn.h>
Include dependency graph for android_load_class.cpp:

Functions

static std::string xrt::auxiliary::android::getRuntimeSourceDir ()
 Hacky way to retrieve runtime source dir. More...
 
ApplicationInfo xrt::auxiliary::android::getAppInfo (std::string const &packageName, jobject application_context)
 
wrap::java::lang::Class xrt::auxiliary::android::loadClassFromPackage (ApplicationInfo applicationInfo, jobject application_context, const char *clazz_name)
 
wrap::java::lang::Class xrt::auxiliary::android::loadClassFromApk (jobject application_context, const char *apk_path, const char *clazz_name)
 
wrap::java::lang::Class xrt::auxiliary::android::loadClassFromRuntimeApk (jobject application_context, const char *clazz_name)
 
void * android_load_class_from_package (struct _JavaVM *vm, const char *pkgname, void *application_context, const char *classname)
 

Variables

static constexpr char xrt::auxiliary::android::kIntentAction [] = "org.khronos.openxr.OpenXRRuntimeService"
 

Detailed Description

Implementations for loading Java code from a package.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Function Documentation

◆ getRuntimeSourceDir()

static std::string xrt::auxiliary::android::getRuntimeSourceDir ( )
static

Hacky way to retrieve runtime source dir.

References xrt::auxiliary::android::getRuntimeSourceDir().

Referenced by xrt::auxiliary::android::getRuntimeSourceDir().