/libcore/ojluni/src/main/native/ |
D | io_util_md.h | 42 #define SET_FD(this, fd, fid) \ argument 43 if ((*env)->GetObjectField(env, (this), (fid)) != NULL) \ 44 (*env)->SetIntField(env, (*env)->GetObjectField(env, (this), (fid)),IO_fd_fdID, (fd)) 46 #define GET_FD(this, fid) \ argument 47 (*env)->GetObjectField(env, (this), (fid)) == NULL ? \ 48 -1 : (*env)->GetIntField(env, (*env)->GetObjectField(env, (this), (fid)), IO_fd_fdID) 73 void fileClose(JNIEnv *env, jobject this, jfieldID fid);
|
D | jni_util.c | 1085 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 …]
|
D | io_util_md.c | 66 fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags) in fileOpen() argument 91 SET_FD(this, fd, fid); in fileOpen() 102 fileClose(JNIEnv *env, jobject this, jfieldID fid) in fileClose() argument 104 FD fd = GET_FD(this, fid); in fileClose() 115 SET_FD(this, -1, fid); in fileClose() 125 SET_FD(this, fd, fid); // restore fd in fileClose()
|
D | io_util.c | 40 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()
|
D | io_util.h | 49 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);
|
D | System.c | 109 jfieldID fid = in System_setIn0() local 111 if (fid == 0) in System_setIn0() 113 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setIn0() 119 jfieldID fid = in System_setOut0() local 121 if (fid == 0) in System_setOut0() 123 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setOut0() 129 jfieldID fid = in System_setErr0() local 131 if (fid == 0) in System_setErr0() 133 (*env)->SetStaticObjectField(env,cla,fid,stream); in System_setErr0()
|
D | PlainDatagramSocketImpl.c | 1246 jfieldID fid; in mcast_set_loop_v4() local 1252 fid = (*env)->GetFieldID(env, cls, "value", "Z"); in mcast_set_loop_v4() 1253 CHECK_NULL(fid); in mcast_set_loop_v4() 1255 on = (*env)->GetBooleanField(env, value, fid); in mcast_set_loop_v4() 1270 jfieldID fid; in mcast_set_loop_v6() local 1276 fid = (*env)->GetFieldID(env, cls, "value", "Z"); in mcast_set_loop_v6() 1277 CHECK_NULL(fid); in mcast_set_loop_v6() 1279 on = (*env)->GetBooleanField(env, value, fid); in mcast_set_loop_v6() 1381 jfieldID fid; in PlainDatagramSocketImpl_socketSetOption() local 1385 fid = (*env)->GetFieldID(env, cls, "value", "I"); in PlainDatagramSocketImpl_socketSetOption() [all …]
|
D | PlainSocketImpl.c | 895 jfieldID fid; in PlainSocketImpl_socketSetOption() local 899 fid = (*env)->GetFieldID(env, cls, "value", "I"); in PlainSocketImpl_socketSetOption() 900 CHECK_NULL(fid); in PlainSocketImpl_socketSetOption() 905 optval.ling.l_linger = (*env)->GetIntField(env, value, fid); in PlainSocketImpl_socketSetOption() 912 optval.i = (*env)->GetIntField(env, value, fid); in PlainSocketImpl_socketSetOption()
|
/libcore/luni/src/main/native/ |
D | valueOf.cpp | 53 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()
|
D | libcore_icu_ICU.cpp | 326 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "Ljava/lang/Integer;"); in setIntegerField() local 327 env->SetObjectField(obj, fid, integerValue.get()); in setIntegerField() 332 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "Ljava/lang/String;"); in setStringField() local 333 env->SetObjectField(obj, fid, value); in setStringField() 338 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "[Ljava/lang/String;"); in setStringArrayField() local 339 env->SetObjectField(obj, fid, value); in setStringArrayField() 372 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "C"); in setCharField() local 373 env->SetCharField(obj, fid, value.charAt(0)); in setCharField()
|