Home
last modified time | relevance | path

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

/frameworks/base/services/core/jni/
Dcom_android_server_UsbAlsaMidiDevice.cpp96 int pipeFD[2]; in android_server_UsbAlsaMidiDevice_open() local
97 if (pipe(pipeFD) == -1) { in android_server_UsbAlsaMidiDevice_open()
102 ScopedLocalRef<jobject> jifd(env, jniCreateFileDescriptor(env, pipeFD[0])); in android_server_UsbAlsaMidiDevice_open()
104 close(pipeFD[0]); in android_server_UsbAlsaMidiDevice_open()
105 close(pipeFD[1]); in android_server_UsbAlsaMidiDevice_open()
112 env->SetIntField(thiz, sPipeFDField, pipeFD[1]); in android_server_UsbAlsaMidiDevice_open()
129 jint pipeFD = env->GetIntField(thiz, sPipeFDField); in android_server_UsbAlsaMidiDevice_close() local
130 write(pipeFD, &pipeFD, sizeof(pipeFD)); in android_server_UsbAlsaMidiDevice_close()
131 close(pipeFD); in android_server_UsbAlsaMidiDevice_close()