Lines Matching refs:env

54 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
939 jlong add(JNIEnv *env, jobject thiz, jint mode,
949 if (parse(env, jRemoteAddress, remotePort, &remote) < 0) {
954 jniThrowNullPointerException(env, "codecSpec");
957 const char *codecSpec = env->GetStringUTFChars(jCodecSpec, NULL);
964 jniThrowException(env, "java/lang/IllegalStateException",
976 env->ReleaseStringUTFChars(jCodecSpec, codecSpec);
978 jniThrowException(env, "java/lang/IllegalStateException",
987 jniThrowException(env, "java/lang/IllegalStateException",
995 group = (AudioGroup *)env->GetLongField(thiz, gNative);
997 int mode = env->GetIntField(thiz, gMode);
1000 jniThrowException(env, "java/lang/IllegalStateException",
1008 jniThrowException(env, "java/lang/IllegalStateException",
1014 env->SetLongField(thiz, gNative, (jlong)group);
1022 env->SetLongField(thiz, gNative, 0);
1026 void remove(JNIEnv *env, jobject thiz, jlong stream)
1028 AudioGroup *group = (AudioGroup *)env->GetLongField(thiz, gNative);
1032 env->SetLongField(thiz, gNative, 0);
1037 void setMode(JNIEnv *env, jobject thiz, jint mode)
1039 AudioGroup *group = (AudioGroup *)env->GetLongField(thiz, gNative);
1041 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1045 void sendDtmf(JNIEnv *env, jobject thiz, jint event)
1047 AudioGroup *group = (AudioGroup *)env->GetLongField(thiz, gNative);
1049 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1062 int registerAudioGroup(JNIEnv *env)
1071 if ((clazz = env->FindClass("android/net/rtp/AudioGroup")) == NULL ||
1072 (gNative = env->GetFieldID(clazz, "mNative", "J")) == NULL ||
1073 (gMode = env->GetFieldID(clazz, "mMode", "I")) == NULL ||
1074 env->RegisterNatives(clazz, gMethods, NELEM(gMethods)) < 0) {