Home | History | Annotate | Download | only in jni

Lines Matching defs:inputChannel

17 #define LOG_TAG "InputChannel-JNI"
38 jfieldID mPtr; // native object attached to the DVM InputChannel
46 explicit NativeInputChannel(const sp<InputChannel>& inputChannel);
49 inline sp<InputChannel> getInputChannel() { return mInputChannel; }
55 sp<InputChannel> mInputChannel;
62 NativeInputChannel::NativeInputChannel(const sp<InputChannel>& inputChannel) :
63 mInputChannel(inputChannel), mDisposeCallback(NULL) {
96 sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env, jobject inputChannelObj) {
130 sp<InputChannel> serverChannel;
131 sp<InputChannel> clientChannel;
132 status_t result = InputChannel::openInputChannelPair(name, serverChannel, clientChannel);
215 InputChannel* inputChannel = new InputChannel(name.string(), dupFd);
216 NativeInputChannel* nativeInputChannel = new NativeInputChannel(inputChannel);
230 sp<InputChannel> inputChannel = nativeInputChannel->getInputChannel();
233 parcel->writeString8(String8(inputChannel->getName().c_str()));
234 parcel->writeDupFileDescriptor(inputChannel->getFd());
265 { "nativeOpenInputChannelPair", "(Ljava/lang/String;)[Landroid/view/InputChannel;",
269 { "nativeTransferTo", "(Landroid/view/InputChannel;)V",
277 { "nativeDup", "(Landroid/view/InputChannel;)V",
282 int res = RegisterMethodsOrDie(env, "android/view/InputChannel", gInputChannelMethods,
285 jclass clazz = FindClassOrDie(env, "android/view/InputChannel");