#include <jni.h>
#include <android/log.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
|
#define | LOG_TAG "libNative" |
|
#define | LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
|
#define | LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
|
#define LOG_TAG "libNative" |
#define LOGE |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
#define LOGI |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_fileloading_NativeLibrary_init |
( |
JNIEnv * |
env, |
|
|
jobject |
obj, |
|
|
jstring |
privateFile, |
|
|
jstring |
publicFile, |
|
|
jstring |
cacheFile |
|
) |
| |
void readFile |
( |
const char * |
fileName, |
|
|
int |
size |
|
) |
| |
int CACHE_FILE_SIZE = 146 |
|
static |
int PRIVATE_FILE_SIZE = 82 |
|
static |
int PUBLIC_FILE_SIZE = 105 |
|
static |