Lines Matching defs:env

56 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
943 jlong add(JNIEnv *env, jobject thiz, jint mode,
953 if (parse(env, jRemoteAddress, remotePort, &remote) < 0) {
958 jniThrowNullPointerException(env, "codecSpec");
961 const char *codecSpec = env->GetStringUTFChars(jCodecSpec, NULL);
968 jniThrowException(env, "java/lang/IllegalStateException",
973 ScopedUtfChars opPackageName(env, opPackageNameStr);
982 env->ReleaseStringUTFChars(jCodecSpec, codecSpec);
984 jniThrowException(env, "java/lang/IllegalStateException",
993 jniThrowException(env, "java/lang/IllegalStateException",
1001 group = (AudioGroup *)env->GetLongField(thiz, gNative);
1003 int mode = env->GetIntField(thiz, gMode);
1006 jniThrowException(env, "java/lang/IllegalStateException",
1014 jniThrowException(env, "java/lang/IllegalStateException",
1020 env->SetLongField(thiz, gNative, (jlong)group);
1028 env->SetLongField(thiz, gNative, 0);
1032 void remove(JNIEnv *env, jobject thiz, jlong stream)
1034 AudioGroup *group = (AudioGroup *)env->GetLongField(thiz, gNative);
1038 env->SetLongField(thiz, gNative, 0);
1043 void setMode(JNIEnv *env, jobject thiz, jint mode)
1045 AudioGroup *group = (AudioGroup *)env->GetLongField(thiz, gNative);
1047 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1051 void sendDtmf(JNIEnv *env, jobject thiz, jint event)
1053 AudioGroup *group = (AudioGroup *)env->GetLongField(thiz, gNative);
1055 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
1068 int registerAudioGroup(JNIEnv *env)
1077 if ((clazz = env->FindClass("android/net/rtp/AudioGroup")) == NULL ||
1078 (gNative = env->GetFieldID(clazz, "mNative", "J")) == NULL ||
1079 (gMode = env->GetFieldID(clazz, "mMode", "I")) == NULL ||
1080 env->RegisterNatives(clazz, gMethods, NELEM(gMethods)) < 0) {