Lines Matching defs:env

54 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
933 int add(JNIEnv *env, jobject thiz, jint mode,
943 if (parse(env, jRemoteAddress, remotePort, &remote) < 0) {
948 jniThrowNullPointerException(env, "codecSpec");
951 const char *codecSpec = env->GetStringUTFChars(jCodecSpec, NULL);
958 jniThrowException(env, "java/lang/IllegalStateException",
970 env->ReleaseStringUTFChars(jCodecSpec, codecSpec);
972 jniThrowException(env, "java/lang/IllegalStateException",
981 jniThrowException(env, "java/lang/IllegalStateException",
989 group = (AudioGroup *)env->GetIntField(thiz, gNative);
991 int mode = env->GetIntField(thiz, gMode);
994 jniThrowException(env, "java/lang/IllegalStateException",
1002 jniThrowException(env, "java/lang/IllegalStateException",
1008 env->SetIntField(thiz, gNative, (int)group);
1016 env->SetIntField(thiz, gNative, 0);
1020 void remove(JNIEnv *env, jobject thiz, jint stream)
1022 AudioGroup *group = (AudioGroup *)env->GetIntField(thiz, gNative);
1026 env->SetIntField(thiz, gNative, 0);
1031 void setMode(JNIEnv *env, jobject thiz, jint mode)
1033 AudioGroup *group = (AudioGroup *)env->GetIntField(thiz, gNative);
1035 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1039 void sendDtmf(JNIEnv *env, jobject thiz, jint event)
1041 AudioGroup *group = (AudioGroup *)env->GetIntField(thiz, gNative);
1043 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1056 int registerAudioGroup(JNIEnv *env)
1065 if ((clazz = env->FindClass("android/net/rtp/AudioGroup")) == NULL ||
1066 (gNative = env->GetFieldID(clazz, "mNative", "I")) == NULL ||
1067 (gMode = env->GetFieldID(clazz, "mMode", "I")) == NULL ||
1068 env->RegisterNatives(clazz, gMethods, NELEM(gMethods)) < 0) {