Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/native/
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);
Djni_util.c1085 jfieldID fid; in JNU_GetFieldByName() local
1094 fid = (*env)->GetFieldID(env, cls, name, signature); in JNU_GetFieldByName()
1095 if (fid == 0) in JNU_GetFieldByName()
1101 result.l = (*env)->GetObjectField(env, obj, fid); in JNU_GetFieldByName()
1104 result.z = (*env)->GetBooleanField(env, obj, fid); in JNU_GetFieldByName()
1107 result.b = (*env)->GetByteField(env, obj, fid); in JNU_GetFieldByName()
1110 result.c = (*env)->GetCharField(env, obj, fid); in JNU_GetFieldByName()
1113 result.s = (*env)->GetShortField(env, obj, fid); in JNU_GetFieldByName()
1116 result.i = (*env)->GetIntField(env, obj, fid); in JNU_GetFieldByName()
1119 result.j = (*env)->GetLongField(env, obj, fid); in JNU_GetFieldByName()
[all …]
Dio_util_md.c89 fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags) in fileOpen() argument
102 SET_FD(this, fd, fid); in fileOpen()
111 fileClose(JNIEnv *env, jobject this, jfieldID fid) in fileClose() argument
113 FD fd = GET_FD(this, fid); in fileClose()
124 SET_FD(this, -1, fid); in fileClose()
134 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.c112 jfieldID fid = in System_setIn0() local
114 if (fid == 0) in System_setIn0()
116 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setIn0()
122 jfieldID fid = in System_setOut0() local
124 if (fid == 0) in System_setOut0()
126 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setOut0()
132 jfieldID fid = in System_setErr0() local
134 if (fid == 0) in System_setErr0()
136 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setErr0()
/libcore/luni/src/main/native/
DvalueOf.cpp53 static jfieldID fid = env->GetFieldID(JniConstants::booleanClass, "value", "Z"); in booleanValue() local
54 return env->GetBooleanField(javaLangBoolean, fid); in booleanValue()
58 static jfieldID fid = env->GetFieldID(JniConstants::integerClass, "value", "I"); in intValue() local
59 return env->GetIntField(javaLangInteger, fid); in intValue()
Dlibcore_icu_ICU.cpp331 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "Ljava/lang/Integer;"); in setIntegerField() local
332 env->SetObjectField(obj, fid, integerValue.get()); in setIntegerField()
337 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "Ljava/lang/String;"); in setStringField() local
338 env->SetObjectField(obj, fid, value); in setStringField()
343 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "[Ljava/lang/String;"); in setStringArrayField() local
344 env->SetObjectField(obj, fid, value); in setStringArrayField()
392 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "C"); in setCharField() local
393 env->SetCharField(obj, fid, value.charAt(0)); in setCharField()