Home
last modified time | relevance | path

Searched refs:fid (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/native/
Djni_util.c1087 jfieldID fid; in JNU_GetFieldByName() local
1096 fid = (*env)->GetFieldID(env, cls, name, signature); in JNU_GetFieldByName()
1097 if (fid == 0) in JNU_GetFieldByName()
1103 result.l = (*env)->GetObjectField(env, obj, fid); in JNU_GetFieldByName()
1106 result.z = (*env)->GetBooleanField(env, obj, fid); in JNU_GetFieldByName()
1109 result.b = (*env)->GetByteField(env, obj, fid); in JNU_GetFieldByName()
1112 result.c = (*env)->GetCharField(env, obj, fid); in JNU_GetFieldByName()
1115 result.s = (*env)->GetShortField(env, obj, fid); in JNU_GetFieldByName()
1118 result.i = (*env)->GetIntField(env, obj, fid); in JNU_GetFieldByName()
1121 result.j = (*env)->GetLongField(env, obj, fid); in JNU_GetFieldByName()
[all …]
Dio_util_md.h49 #define SET_FD(this, fd, fid) \ argument
50 if ((*env)->GetObjectField(env, (this), (fid)) != NULL) \
51 (*env)->SetIntField(env, (*env)->GetObjectField(env, (this), (fid)),IO_fd_fdID, (fd))
53 #define GET_FD(this, fid) \ argument
54 (*env)->GetObjectField(env, (this), (fid)) == NULL ? \
55 -1 : (*env)->GetIntField(env, (*env)->GetObjectField(env, (this), (fid)), IO_fd_fdID)
89 void fileClose(JNIEnv *env, jobject this, jfieldID fid);
Dio_util_md.c97 fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags) in fileOpen() argument
110 SET_FD(this, fd, fid); in fileOpen()
119 fileClose(JNIEnv *env, jobject this, jfieldID fid) in fileClose() argument
121 FD fd = GET_FD(this, fid); in fileClose()
132 SET_FD(this, -1, fid); in fileClose()
142 SET_FD(this, fd, fid); // restore fd in fileClose()
Dio_util.c40 readSingle(JNIEnv *env, jobject this, jfieldID fid) { in readSingle() argument
43 FD fd = GET_FD(this, fid); in readSingle()
78 jint off, jint len, jfieldID fid) in readBytes() argument
107 fd = GET_FD(this, fid); in readBytes()
131 writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID fid) { in writeSingle() argument
135 FD fd = GET_FD(this, fid); in writeSingle()
154 jint off, jint len, jboolean append, jfieldID fid) in writeBytes() argument
188 fd = GET_FD(this, fid); in writeBytes()
Dio_util.h49 jint readSingle(JNIEnv *env, jobject this, jfieldID fid);
51 jint len, jfieldID fid);
52 void writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID fid);
54 jint len, jboolean append, jfieldID fid);
55 void fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags);
DSystem.c111 jfieldID fid = in System_setIn0() local
113 if (fid == 0) in System_setIn0()
115 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setIn0()
121 jfieldID fid = in System_setOut0() local
123 if (fid == 0) in System_setOut0()
125 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setOut0()
131 jfieldID fid = in System_setErr0() local
133 if (fid == 0) in System_setErr0()
135 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setErr0()
/libcore/luni/src/main/native/
DvalueOf.cpp55 static jfieldID fid = env->GetFieldID(JniConstants::GetBooleanClass(env), "value", "Z"); in booleanValue() local
56 return env->GetBooleanField(javaLangBoolean, fid); in booleanValue()
60 static jfieldID fid = env->GetFieldID(JniConstants::GetIntegerClass(env), "value", "I"); in intValue() local
61 return env->GetIntField(javaLangInteger, fid); in intValue()