1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747 |
- // Copyright 2014 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- // This file is of the same format as file that generated by
- // base/android/jni_generator/jni_generator.py
- // For
- // com/google/vr/ndk/base/GvrApi
- // Local modification includes:
- // 1. Remove all implementaiton, only keep definition.
- // 2. Use absolute path instead of relative path.
- // 3. Removed all helper functions such as: Create.
- // 4. Removed external functions that don't have implementation in shim file.
- // 5. Changed RectF, Point, and PoseTracker to correct package name.
- // 6. Added function RegisterGvrApiNatives at the end of this file.
- #ifndef com_google_vr_ndk_base_GvrApi_JNI
- #define com_google_vr_ndk_base_GvrApi_JNI
- #include "base/android/jni_android.h"
- // ----------------------------------------------------------------------------
- // Native JNI methods
- // ----------------------------------------------------------------------------
- #include <jni.h>
- #include <atomic>
- #include <type_traits>
- #include "base/android/jni_generator/jni_generator_helper.h"
- #include "base/android/jni_int_wrapper.h"
- // Step 1: forward declarations.
- namespace {
- const char kGvrApiClassPath[] = "com/google/vr/ndk/base/GvrApi";
- // Leaking this jclass as we cannot use LazyInstance from some threads.
- std::atomic<jclass> g_GvrApi_clazz __attribute__((unused)) (nullptr);
- #define GvrApi_clazz(env) \
- base::android::LazyGetClass(env, kGvrApiClassPath, &g_GvrApi_clazz)
- } // namespace
- namespace GvrApi {
- // Step 2: method stubs.
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListCreate(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListDestroy(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewportList);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListGetSize(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewportList);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListGetItem(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewportList,
- jint index,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListSetItem(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewportList,
- jint index,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportCreate(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportDestroy(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetSourceUv(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jobject out);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceUv(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jfloat left,
- jfloat top,
- jfloat right,
- jfloat bottom);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetSourceFov(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jobject out);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceFov(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jfloat left,
- jfloat top,
- jfloat right,
- jfloat bottom);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetTransform(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jfloatArray matrix);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetTransform(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jfloatArray matrix);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportEqual(JNIEnv* env,
- jclass jcaller,
- jlong nativeA,
- jlong nativeB);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetTargetEye(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetTargetEye(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jint eye);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetSourceBufferIndex(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceBufferIndex(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jint index);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetExternalSurfaceId(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetExternalSurfaceId(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jint id);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetExternalSurface(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jlong nativeExternalSurface);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetReprojection(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetReprojection(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jint reprojection);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceLayer(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferViewport,
- jint layerIndex);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecCreate(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecDestroy(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecGetSize(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec,
- jobject size);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetSize(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec,
- jint width,
- jint height);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetColorFormat(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec,
- jint format);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetDepthStencilFormat(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec,
- jint format);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetMultiviewLayers(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec,
- jint numLayers);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecGetSamples(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetSamples(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec,
- jint samples);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceCreateWithListeners(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeGvrContext,
- jobject surfaceListener,
- jobject frameListener,
- jobject handler);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceDestroy(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceGetId(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec);
- JNI_GENERATOR_EXPORT jobject
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceGetSurface(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeBufferSpec);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainCreate(JNIEnv* env,
- jclass jcaller,
- jlong nativeContext,
- jlongArray specs);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainDestroy(JNIEnv* env,
- jclass jcaller,
- jlong nativeContext);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainGetBufferCount(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeSwapChain);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainGetBufferSize(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeSwapChain,
- jint bufferIndex,
- jobject size);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainResizeBuffer(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeSwapChain,
- jint bufferIndex,
- jint width,
- jint height);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainAcquireFrame(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeSwapChain);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameBindBuffer(JNIEnv* env,
- jclass jcaller,
- jlong nativeFrame,
- jint bufferIndex);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeFrameUnbind(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeFrame);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameGetFramebufferObject(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeFrame,
- jint bufferIndex);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameGetBufferSize(JNIEnv* env,
- jclass jcaller,
- jlong nativeFrame,
- jint bufferIndex,
- jobject size);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeFrameSubmit(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeFrame,
- jlong nativeBufferViewportList,
- jfloatArray headSpaceFromStartSpace);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeUsingDynamicLibrary(JNIEnv* env,
- jclass jcaller);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeUsingShimLibrary(JNIEnv* env,
- jclass jcaller);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetApplicationState(JNIEnv* env,
- jclass jcaller,
- jclass classLoader,
- jobject context);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDynamicLibraryLoadingEnabled(
- JNIEnv* env,
- jclass jcaller,
- jboolean enabled);
- JNI_GENERATOR_EXPORT jlong Java_com_google_vr_ndk_base_GvrApi_nativeCreate(
- JNIEnv* env,
- jobject jcaller,
- jclass classLoader,
- jobject context,
- jlong synchronizer,
- jint widthPixels,
- jint heightPixels,
- jfloat xDpi,
- jfloat yDpi,
- jobject optionalPoseTrackingForTesting);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeRequestContextSharing(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jobject eglListener);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeGetError(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeClearError(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jstring
- Java_com_google_vr_ndk_base_GvrApi_nativeGetErrorString(JNIEnv* env,
- jclass jcaller,
- jint errorCode);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeGetUserPrefs(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeUserPrefsGetControllerHandedness(
- JNIEnv* env,
- jclass jcaller,
- jlong nativeUserPrefs);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativePause(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeResume(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeReleaseGvrContext(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeInitializeGl(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeOnSurfaceCreatedReprojectionThread(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeOnSurfaceChangedReprojectionThread(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecommendedBufferViewports(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jlong nativeBufferViewportList);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetScreenBufferViewports(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jlong nativeBufferViewportList);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetMaximumEffectiveRenderTargetSize(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jobject size);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetScreenTargetSize(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jobject size);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeDistortToScreen(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jint textureId,
- jlong nativeBufferViewportList,
- jfloatArray headSpaceFromStartSpace,
- jlong timeNs);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDefaultFramebufferActive(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jobject
- Java_com_google_vr_ndk_base_GvrApi_nativeRenderReprojectionThread(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeOnPauseReprojectionThread(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetHeadSpaceFromStartSpaceRotation(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jfloatArray outRotation,
- jlong timeNs);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetHeadSpaceFromStartSpaceTransform(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jfloatArray outTransform,
- jlong timeNs);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetIgnoreManualPauseResumeTracker(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jboolean shouldIgnore);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativePauseTracking(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jbyteArray
- Java_com_google_vr_ndk_base_GvrApi_nativePauseTrackingGetState(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeResumeTracking(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeResumeTrackingSetState(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jbyteArray trackerStateBytes);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeResetTracking(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeRecenterTracking(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEyeFromHeadMatrix(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jint eye,
- jfloatArray out);
- JNI_GENERATOR_EXPORT jintArray
- Java_com_google_vr_ndk_base_GvrApi_nativeGetWindowBounds(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jfloatArray
- Java_com_google_vr_ndk_base_GvrApi_nativeComputeDistortedPoint(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jint eyeType,
- jfloatArray uvIn);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDefaultViewerProfile(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jstring viewerProfileUri);
- JNI_GENERATOR_EXPORT jstring
- Java_com_google_vr_ndk_base_GvrApi_nativeGetViewerVendor(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jstring
- Java_com_google_vr_ndk_base_GvrApi_nativeGetViewerModel(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeGetViewerType(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeSetAsyncReprojectionEnabled(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jboolean enabled);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeGetAsyncReprojectionEnabled(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeIsFeatureSupported(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jint feature);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeReconnectSensors(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetIdleListener(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jobject idleListener);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeSetViewerParams(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jbyteArray serializedViewerParams);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDisplayMetrics(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jint widthPixels,
- jint heightPixels,
- jfloat xDpi,
- jfloat yDpi);
- JNI_GENERATOR_EXPORT jfloat
- Java_com_google_vr_ndk_base_GvrApi_nativeGetBorderSizeMeters(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetSurfaceSize(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jint surfaceWidthPixels,
- jint surfaceHeightPixels);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeSetLensOffset(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext,
- jfloat x,
- jfloat y,
- jfloat rotation);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeDumpDebugData(JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeUsingVrDisplayService(
- JNIEnv* env,
- jobject jcaller,
- jlong nativeGvrContext);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeCreateEvent(JNIEnv* env, jclass clazz);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeCreateValue(JNIEnv* env, jclass clazz);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeDestroyEvent(
- JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeDestroyValue(
- JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeGetCurrentProperties(
- JNIEnv* env,
- jobject object,
- jlong native_object);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEventFlags(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEventTimestamp(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEventType(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativeGetProperty(JNIEnv* env,
- jclass clazz,
- jlong native_properties,
- jint property_key,
- jlong native_value);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecenterEventFlags(
- JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT void
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecenterEventStartSpaceFromTrackingSpaceTransform(
- JNIEnv* env,
- jclass clazz,
- jlong native_object,
- jfloatArray rotation_out_array);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecenterEventType(
- JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jboolean
- Java_com_google_vr_ndk_base_GvrApi_nativePollEvent(JNIEnv* env,
- jobject object,
- jlong native_object,
- jlong event_out);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsFlags(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jfloat
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsFloat(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT jint
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsInt(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- JNI_GENERATOR_EXPORT void Java_com_google_vr_ndk_base_GvrApi_nativeValueAsMat4f(
- JNIEnv* env,
- jclass clazz,
- jlong native_object,
- jfloatArray mat4_out_array);
- JNI_GENERATOR_EXPORT jlong
- Java_com_google_vr_ndk_base_GvrApi_nativeValueGetFlags(JNIEnv* env,
- jclass clazz,
- jlong native_object);
- // Step 3: RegisterNatives.
- static const JNINativeMethod kMethodsGvrApi[] = {
- {"nativeBufferViewportListCreate",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListCreate)},
- {"nativeBufferViewportListDestroy",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListDestroy)},
- {"nativeBufferViewportListGetSize",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListGetSize)},
- {"nativeBufferViewportListGetItem",
- "("
- "J"
- "I"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListGetItem)},
- {"nativeBufferViewportListSetItem",
- "("
- "J"
- "I"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportListSetItem)},
- {"nativeBufferViewportCreate",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportCreate)},
- {"nativeBufferViewportDestroy",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportDestroy)},
- {"nativeBufferViewportGetSourceUv",
- "("
- "J"
- "Landroid/graphics/RectF;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetSourceUv)},
- {"nativeBufferViewportSetSourceUv",
- "("
- "J"
- "F"
- "F"
- "F"
- "F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceUv)},
- {"nativeBufferViewportGetSourceFov",
- "("
- "J"
- "Landroid/graphics/RectF;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetSourceFov)},
- {"nativeBufferViewportSetSourceFov",
- "("
- "J"
- "F"
- "F"
- "F"
- "F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceFov)},
- {"nativeBufferViewportGetTransform",
- "("
- "J"
- "[F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetTransform)},
- {"nativeBufferViewportSetTransform",
- "("
- "J"
- "[F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetTransform)},
- {"nativeBufferViewportEqual",
- "("
- "J"
- "J"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportEqual)},
- {"nativeBufferViewportGetTargetEye",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetTargetEye)},
- {"nativeBufferViewportSetTargetEye",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetTargetEye)},
- {"nativeBufferViewportGetSourceBufferIndex",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetSourceBufferIndex)},
- {"nativeBufferViewportSetSourceBufferIndex",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceBufferIndex)},
- {"nativeBufferViewportGetExternalSurfaceId",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetExternalSurfaceId)},
- {"nativeBufferViewportSetExternalSurfaceId",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetExternalSurfaceId)},
- {"nativeBufferViewportSetExternalSurface",
- "("
- "J"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetExternalSurface)},
- {"nativeBufferViewportGetReprojection",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportGetReprojection)},
- {"nativeBufferViewportSetReprojection",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetReprojection)},
- {"nativeBufferViewportSetSourceLayer",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferViewportSetSourceLayer)},
- {"nativeBufferSpecCreate",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecCreate)},
- {"nativeBufferSpecDestroy",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecDestroy)},
- {"nativeBufferSpecGetSize",
- "("
- "J"
- "Landroid/graphics/Point;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecGetSize)},
- {"nativeBufferSpecSetSize",
- "("
- "J"
- "I"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetSize)},
- {"nativeBufferSpecSetColorFormat",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetColorFormat)},
- {"nativeBufferSpecSetDepthStencilFormat",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetDepthStencilFormat)},
- {"nativeBufferSpecSetMultiviewLayers",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetMultiviewLayers)},
- {"nativeBufferSpecGetSamples",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecGetSamples)},
- {"nativeBufferSpecSetSamples",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeBufferSpecSetSamples)},
- {"nativeExternalSurfaceCreateWithListeners",
- "("
- "J"
- "Ljava/lang/Runnable;"
- "Ljava/lang/Runnable;"
- "Landroid/os/Handler;"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceCreateWithListeners)},
- {"nativeExternalSurfaceDestroy",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceDestroy)},
- {"nativeExternalSurfaceGetId",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceGetId)},
- {"nativeExternalSurfaceGetSurface",
- "("
- "J"
- ")"
- "Landroid/view/Surface;",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeExternalSurfaceGetSurface)},
- {"nativeSwapChainCreate",
- "("
- "J"
- "[J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainCreate)},
- {"nativeSwapChainDestroy",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainDestroy)},
- {"nativeSwapChainGetBufferCount",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainGetBufferCount)},
- {"nativeSwapChainGetBufferSize",
- "("
- "J"
- "I"
- "Landroid/graphics/Point;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainGetBufferSize)},
- {"nativeSwapChainResizeBuffer",
- "("
- "J"
- "I"
- "I"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainResizeBuffer)},
- {"nativeSwapChainAcquireFrame",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSwapChainAcquireFrame)},
- {"nativeFrameBindBuffer",
- "("
- "J"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameBindBuffer)},
- {"nativeFrameUnbind",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameUnbind)},
- {"nativeFrameGetFramebufferObject",
- "("
- "J"
- "I"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameGetFramebufferObject)},
- {"nativeFrameGetBufferSize",
- "("
- "J"
- "I"
- "Landroid/graphics/Point;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameGetBufferSize)},
- {"nativeFrameSubmit",
- "("
- "J"
- "J"
- "[F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeFrameSubmit)},
- {"nativeUsingDynamicLibrary",
- "("
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeUsingDynamicLibrary)},
- {"nativeUsingShimLibrary",
- "("
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeUsingShimLibrary)},
- {"nativeSetApplicationState",
- "("
- "Ljava/lang/ClassLoader;"
- "Landroid/content/Context;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetApplicationState)},
- {"nativeSetDynamicLibraryLoadingEnabled",
- "("
- "Z"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDynamicLibraryLoadingEnabled)},
- {"nativeCreate",
- "("
- "Ljava/lang/ClassLoader;"
- "Landroid/content/Context;"
- "J"
- "I"
- "I"
- "F"
- "F"
- "Lcom/google/vr/ndk/base/GvrApi$PoseTracker;"
- ")"
- "J",
- reinterpret_cast<void*>(Java_com_google_vr_ndk_base_GvrApi_nativeCreate)},
- {"nativeRequestContextSharing",
- "("
- "J"
- "Lcom/google/vr/cardboard/EglReadyListener;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeRequestContextSharing)},
- {"nativeGetError",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetError)},
- {"nativeClearError",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeClearError)},
- {"nativeGetErrorString",
- "("
- "I"
- ")"
- "Ljava/lang/String;",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetErrorString)},
- {"nativeGetUserPrefs",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetUserPrefs)},
- {"nativeUserPrefsGetControllerHandedness",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeUserPrefsGetControllerHandedness)},
- {"nativePause",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(Java_com_google_vr_ndk_base_GvrApi_nativePause)},
- {"nativeResume",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(Java_com_google_vr_ndk_base_GvrApi_nativeResume)},
- {"nativeReleaseGvrContext",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeReleaseGvrContext)},
- {"nativeInitializeGl",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeInitializeGl)},
- {"nativeOnSurfaceCreatedReprojectionThread",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeOnSurfaceCreatedReprojectionThread)},
- {"nativeOnSurfaceChangedReprojectionThread",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeOnSurfaceChangedReprojectionThread)},
- {"nativeGetRecommendedBufferViewports",
- "("
- "J"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecommendedBufferViewports)},
- {"nativeGetScreenBufferViewports",
- "("
- "J"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetScreenBufferViewports)},
- {"nativeGetMaximumEffectiveRenderTargetSize",
- "("
- "J"
- "Landroid/graphics/Point;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetMaximumEffectiveRenderTargetSize)},
- {"nativeGetScreenTargetSize",
- "("
- "J"
- "Landroid/graphics/Point;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetScreenTargetSize)},
- {"nativeDistortToScreen",
- "("
- "J"
- "I"
- "J"
- "[F"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeDistortToScreen)},
- {"nativeSetDefaultFramebufferActive",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDefaultFramebufferActive)},
- {"nativeRenderReprojectionThread",
- "("
- "J"
- ")"
- "Landroid/graphics/Point;",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeRenderReprojectionThread)},
- {"nativeOnPauseReprojectionThread",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeOnPauseReprojectionThread)},
- {"nativeGetHeadSpaceFromStartSpaceRotation",
- "("
- "J"
- "[F"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetHeadSpaceFromStartSpaceRotation)},
- {"nativeGetHeadSpaceFromStartSpaceTransform",
- "("
- "J"
- "[F"
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetHeadSpaceFromStartSpaceTransform)},
- {"nativeSetIgnoreManualPauseResumeTracker",
- "("
- "J"
- "Z"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetIgnoreManualPauseResumeTracker)},
- {"nativePauseTracking",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativePauseTracking)},
- {"nativePauseTrackingGetState",
- "("
- "J"
- ")"
- "[B",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativePauseTrackingGetState)},
- {"nativeResumeTracking",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeResumeTracking)},
- {"nativeResumeTrackingSetState",
- "("
- "J"
- "[B"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeResumeTrackingSetState)},
- {"nativeResetTracking",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeResetTracking)},
- {"nativeRecenterTracking",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeRecenterTracking)},
- {"nativeGetEyeFromHeadMatrix",
- "("
- "J"
- "I"
- "[F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEyeFromHeadMatrix)},
- {"nativeGetWindowBounds",
- "("
- "J"
- ")"
- "[I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetWindowBounds)},
- {"nativeComputeDistortedPoint",
- "("
- "J"
- "I"
- "[F"
- ")"
- "[F",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeComputeDistortedPoint)},
- {"nativeSetDefaultViewerProfile",
- "("
- "J"
- "Ljava/lang/String;"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDefaultViewerProfile)},
- {"nativeGetViewerVendor",
- "("
- "J"
- ")"
- "Ljava/lang/String;",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetViewerVendor)},
- {"nativeGetViewerModel",
- "("
- "J"
- ")"
- "Ljava/lang/String;",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetViewerModel)},
- {"nativeGetViewerType",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetViewerType)},
- {"nativeSetAsyncReprojectionEnabled",
- "("
- "J"
- "Z"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetAsyncReprojectionEnabled)},
- {"nativeGetAsyncReprojectionEnabled",
- "("
- "J"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetAsyncReprojectionEnabled)},
- {"nativeIsFeatureSupported",
- "("
- "J"
- "I"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeIsFeatureSupported)},
- {"nativeReconnectSensors",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeReconnectSensors)},
- {"nativeSetIdleListener",
- "("
- "J"
- "Lcom/google/vr/ndk/base/GvrApi$IdleListener;"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetIdleListener)},
- {"nativeSetViewerParams",
- "("
- "J"
- "[B"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetViewerParams)},
- {"nativeSetDisplayMetrics",
- "("
- "J"
- "I"
- "I"
- "F"
- "F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetDisplayMetrics)},
- {"nativeGetBorderSizeMeters",
- "("
- "J"
- ")"
- "F",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetBorderSizeMeters)},
- {"nativeSetSurfaceSize",
- "("
- "J"
- "I"
- "I"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetSurfaceSize)},
- {"nativeSetLensOffset",
- "("
- "J"
- "F"
- "F"
- "F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeSetLensOffset)},
- {"nativeDumpDebugData",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeDumpDebugData)},
- {"nativeUsingVrDisplayService",
- "("
- "J"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeUsingVrDisplayService)},
- {"nativeCreateEvent",
- "("
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeCreateEvent)},
- {"nativeCreateValue",
- "("
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeCreateValue)},
- {"nativeDestroyEvent",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeDestroyEvent)},
- {"nativeDestroyValue",
- "("
- "J"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeDestroyValue)},
- {"nativeGetCurrentProperties",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetCurrentProperties)},
- {"nativeGetEventFlags",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEventFlags)},
- {"nativeGetEventTimestamp",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEventTimestamp)},
- {"nativeGetEventType",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetEventType)},
- {"nativeGetProperty",
- "("
- "J"
- "I"
- "J"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetProperty)},
- {"nativeGetRecenterEventFlags",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecenterEventFlags)},
- {"nativeGetRecenterEventStartSpaceFromTrackingSpaceTransform",
- "("
- "J"
- "[F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecenterEventStartSpaceFromTrackingSpaceTransform)},
- {"nativeGetRecenterEventType",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeGetRecenterEventType)},
- {"nativePollEvent",
- "("
- "J"
- "J"
- ")"
- "Z",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativePollEvent)},
- {"nativeValueAsFlags",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsFlags)},
- {"nativeValueAsFloat",
- "("
- "J"
- ")"
- "F",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsFloat)},
- {"nativeValueAsInt",
- "("
- "J"
- ")"
- "I",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsInt)},
- {"nativeValueAsMat4f",
- "("
- "J"
- "[F"
- ")"
- "V",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeValueAsMat4f)},
- {"nativeValueGetFlags",
- "("
- "J"
- ")"
- "J",
- reinterpret_cast<void*>(
- Java_com_google_vr_ndk_base_GvrApi_nativeValueGetFlags)},
- };
- static bool RegisterNativesImpl(JNIEnv* env) {
- if (base::android::IsSelectiveJniRegistrationEnabled(env))
- return true;
- const int kMethodsGvrApiSize = std::extent<decltype(kMethodsGvrApi)>();
- if (env->RegisterNatives(GvrApi_clazz(env), kMethodsGvrApi,
- kMethodsGvrApiSize) < 0) {
- jni_generator::HandleRegistrationError(env, GvrApi_clazz(env), __FILE__);
- return false;
- }
- return true;
- }
- static bool RegisterGvrApiNatives(JNIEnv* env) {
- return RegisterNativesImpl(env);
- }
- } // namespace GvrApi
- #endif // com_google_vr_ndk_base_GvrApi_JNI
|