Searched defs:inputChannel (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/libs/ui/tests/
H A DInputChannel_test.cpp43 sp<InputChannel> inputChannel = new InputChannel(String8("channel name"), local
46 EXPECT_STREQ("channel name", inputChannel->getName().string())
48 EXPECT_EQ(fakeAshmem.sendFd, inputChannel->getAshmemFd())
50 EXPECT_EQ(receivePipe.receiveFd, inputChannel->getReceivePipeFd())
52 EXPECT_EQ(sendPipe.sendFd, inputChannel->getSendPipeFd())
55 inputChannel.clear(); // destroys input channel
/frameworks/base/core/java/android/view/
H A DInputQueue.java53 private static native void nativeRegisterInputChannel(InputChannel inputChannel, argument
55 private static native void nativeUnregisterInputChannel(InputChannel inputChannel); argument
70 * @param inputChannel The input channel to register.
75 public static void registerInputChannel(InputChannel inputChannel, InputHandler inputHandler, argument
77 if (inputChannel == null) {
78 throw new IllegalArgumentException("inputChannel must not be null");
89 Slog.d(TAG, "Registering input channel '" + inputChannel + "'");
92 nativeRegisterInputChannel(inputChannel, inputHandler, messageQueue);
99 * @param inputChannel The input channel to unregister.
102 public static void unregisterInputChannel(InputChannel inputChannel) { argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DInputWindowHandle.java41 public InputChannel inputChannel; field in class:InputWindowHandle
H A DInputManager.java80 private static native void nativeRegisterInputChannel(InputChannel inputChannel, argument
82 private static native void nativeUnregisterInputChannel(InputChannel inputChannel); argument
270 * @param inputChannel The input channel to register.
274 public void registerInputChannel(InputChannel inputChannel, argument
276 if (inputChannel == null) {
277 throw new IllegalArgumentException("inputChannel must not be null.");
280 nativeRegisterInputChannel(inputChannel, inputWindowHandle, false);
285 * @param inputChannel The input channel to unregister.
287 public void unregisterInputChannel(InputChannel inputChannel) { argument
288 if (inputChannel
[all...]
H A DWindowState.java1505 void setInputChannel(InputChannel inputChannel) { argument
1510 mInputChannel = inputChannel;
1511 mInputWindowHandle.inputChannel = inputChannel;
1522 mInputWindowHandle.inputChannel = null;
/frameworks/base/core/jni/
H A Dandroid_view_InputChannel.cpp43 NativeInputChannel(const sp<InputChannel>& inputChannel);
59 NativeInputChannel::NativeInputChannel(const sp<InputChannel>& inputChannel) : argument
60 mInputChannel(inputChannel), mDisposeCallback(NULL) {
226 InputChannel* inputChannel = new InputChannel(name, ashmemFd, local
228 NativeInputChannel* nativeInputChannel = new NativeInputChannel(inputChannel);
242 sp<InputChannel> inputChannel = nativeInputChannel->getInputChannel(); local
245 parcel->writeString8(inputChannel->getName());
246 parcel->writeDupFileDescriptor(inputChannel->getAshmemFd());
247 parcel->writeDupFileDescriptor(inputChannel->getReceivePipeFd());
248 parcel->writeDupFileDescriptor(inputChannel
[all...]
H A Dandroid_view_InputQueue.cpp80 const sp<InputChannel>& inputChannel, const sp<Looper>& looper);
82 inline const char* getInputChannelName() const { return inputChannel->getName().string(); }
89 sp<InputChannel> inputChannel; member in class:android::NativeInputQueue::Connection
108 ssize_t getConnectionIndex(const sp<InputChannel>& inputChannel);
111 jobject inputChannelObj, const sp<InputChannel>& inputChannel, void* data);
133 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, local
135 if (inputChannel == NULL) {
141 LOGD("channel '%s' - Registered", inputChannel->getName().string());
149 if (getConnectionIndex(inputChannel) >= 0) {
151 inputChannel
178 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, local
222 getConnectionIndex(const sp<InputChannel>& inputChannel) argument
288 handleInputChannelDisposed(JNIEnv* env, jobject inputChannelObj, const sp<InputChannel>& inputChannel, void* data) argument
438 Connection(uint16_t id, const sp<InputChannel>& inputChannel, const sp<Looper>& looper) argument
[all...]
H A Dandroid_app_NativeActivity.cpp433 inputChannel = NULL;
472 if (inputChannel != NULL) {
474 env->DeleteGlobalRef(inputChannel);
476 inputChannel = NULL;
479 inputChannel = env->NewGlobalRef(_channel);
509 jobject inputChannel; member in struct:android::NativeCode
/frameworks/base/services/jni/
H A Dcom_android_server_InputWindowHandle.cpp35 jfieldID inputChannel; member in struct:android::__anon1190
90 gInputWindowHandleClassInfo.inputChannel);
92 mInfo->inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj);
95 mInfo->inputChannel.clear();
235 GET_FIELD_ID(gInputWindowHandleClassInfo.inputChannel, clazz,
236 "inputChannel", "Landroid/view/InputChannel;");
H A Dcom_android_server_InputManager.cpp180 status_t registerInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel,
182 status_t unregisterInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel);
377 const sp<InputChannel>& inputChannel,
380 inputChannel, inputWindowHandle, monitor);
384 const sp<InputChannel>& inputChannel) {
385 return mInputManager->getDispatcher()->unregisterInputChannel(inputChannel);
1066 "inputChannel is not initialized");
1070 jobject inputChannelObj, const sp<InputChannel>& inputChannel, void* data) {
1072 "the input manager!", inputChannel->getName().string());
1075 gNativeInputManager->unregisterInputChannel(env, inputChannel);
376 registerInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel, const sp<InputWindowHandle>& inputWindowHandle, bool monitor) argument
383 unregisterInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel) argument
1069 android_server_InputManager_handleInputChannelDisposed(JNIEnv* env, jobject inputChannelObj, const sp<InputChannel>& inputChannel, void* data) argument
1085 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, local
1116 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, local
[all...]
/frameworks/base/services/input/
H A DInputWindow.h115 sp<InputChannel> inputChannel; member in struct:android::InputWindowInfo
165 return mInfo ? mInfo->inputChannel : NULL;
H A DInputDispatcher.h144 sp<InputChannel> inputChannel; member in struct:android::InputTarget
346 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
348 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel) = 0;
398 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
400 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel);
817 sp<InputChannel> inputChannel; // never null member in class:android::InputDispatcher::Connection
827 explicit Connection(const sp<InputChannel>& inputChannel,
830 inline const char* getInputChannelName() const { return inputChannel->getName().string(); }
908 ssize_t getConnectionIndexLocked(const sp<InputChannel>& inputChannel);
964 sp<InputWindowHandle> getWindowHandleLocked(const sp<InputChannel>& inputChannel) cons
[all...]
H A DInputDispatcher.cpp241 unregisterInputChannel(mConnectionsByReceiveFd.valueAt(0)->inputChannel);
1035 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel);
1044 inputTarget.inputChannel->getName().string());
1129 const sp<InputChannel>& inputChannel) {
1141 if (inputChannel.get()) {
1142 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
1752 target.inputChannel = windowInfo->inputChannel;
1765 target.inputChannel = mMonitoringChannels[i];
2449 d->unregisterInputChannelLocked(connection->inputChannel, notif
1128 resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout, const sp<InputChannel>& inputChannel) argument
3635 registerInputChannel(const sp<InputChannel>& inputChannel, const sp<InputWindowHandle>& inputWindowHandle, bool monitor) argument
3673 unregisterInputChannel(const sp<InputChannel>& inputChannel) argument
3693 unregisterInputChannelLocked(const sp<InputChannel>& inputChannel, bool notify) argument
3720 removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) argument
3729 getConnectionIndexLocked(const sp<InputChannel>& inputChannel) argument
4606 Connection(const sp<InputChannel>& inputChannel, const sp<InputWindowHandle>& inputWindowHandle, bool monitor) argument
[all...]

Completed in 200 milliseconds