Lines Matching refs:env

43 android_os_StatFs_getBlockSize(JNIEnv *env, jobject thiz)
45 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context);
50 android_os_StatFs_getBlockCount(JNIEnv *env, jobject thiz)
52 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context);
57 android_os_StatFs_getFreeBlocks(JNIEnv *env, jobject thiz)
59 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context);
64 android_os_StatFs_getAvailableBlocks(JNIEnv *env, jobject thiz)
66 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context);
71 android_os_StatFs_native_restat(JNIEnv *env, jobject thiz, jstring path)
74 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
79 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context);
81 jniThrowException(env, "java/lang/NoSuchFieldException", NULL);
85 const char* pathstr = env->GetStringUTFChars(path, NULL);
87 jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
96 env->SetIntField(thiz, fields.context, 0);
97 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
100 env->ReleaseStringUTFChars(path, pathstr);
104 android_os_StatFs_native_setup(JNIEnv *env, jobject thiz, jstring path)
107 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
113 jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
116 env->SetIntField(thiz, fields.context, (int)stat);
117 android_os_StatFs_native_restat(env, thiz, path);
121 android_os_StatFs_native_finalize(JNIEnv *env, jobject thiz)
123 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context);
126 env->SetIntField(thiz, fields.context, 0);
143 int register_android_os_StatFs(JNIEnv *env)
147 clazz = env->FindClass("android/os/StatFs");
153 fields.context = env->GetFieldID(clazz, "mNativeContext", "I");
159 return AndroidRuntime::registerNativeMethods(env,