Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DInputEventReceiver.java46 InputChannel inputChannel, MessageQueue messageQueue); in nativeInit() argument
58 public InputEventReceiver(InputChannel inputChannel, Looper looper) { in InputEventReceiver() argument
59 if (inputChannel == null) { in InputEventReceiver()
66 mInputChannel = inputChannel; in InputEventReceiver()
68 mReceiverPtr = nativeInit(this, inputChannel, mMessageQueue); in InputEventReceiver()
190 InputChannel inputChannel, Looper looper); in createInputEventReceiver() argument
DViewRootImpl.java4357 public WindowInputEventReceiver(InputChannel inputChannel, Looper looper) { in WindowInputEventReceiver() argument
4358 super(inputChannel, looper); in WindowInputEventReceiver()
/frameworks/base/core/jni/
Dandroid_view_InputChannel.cpp44 NativeInputChannel(const sp<InputChannel>& inputChannel);
60 NativeInputChannel::NativeInputChannel(const sp<InputChannel>& inputChannel) : in NativeInputChannel() argument
61 mInputChannel(inputChannel), mDisposeCallback(NULL) { in NativeInputChannel()
212 InputChannel* inputChannel = new InputChannel(name, dupFd); in android_view_InputChannel_nativeReadFromParcel() local
213 NativeInputChannel* nativeInputChannel = new NativeInputChannel(inputChannel); in android_view_InputChannel_nativeReadFromParcel()
227 sp<InputChannel> inputChannel = nativeInputChannel->getInputChannel(); in android_view_InputChannel_nativeWriteToParcel() local
230 parcel->writeString8(inputChannel->getName()); in android_view_InputChannel_nativeWriteToParcel()
231 parcel->writeDupFileDescriptor(inputChannel->getFd()); in android_view_InputChannel_nativeWriteToParcel()
Dandroid_view_InputEventReceiver.cpp50 jobject receiverObj, const sp<InputChannel>& inputChannel,
77 jobject receiverObj, const sp<InputChannel>& inputChannel, in NativeInputEventReceiver() argument
80 mInputConsumer(inputChannel), mMessageQueue(messageQueue), in NativeInputEventReceiver()
229 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, in nativeInit() local
231 if (inputChannel == NULL) { in nativeInit()
243 receiverObj, inputChannel, messageQueue); in nativeInit()
Dandroid_view_InputChannel.h27 const sp<InputChannel>& inputChannel, void* data);
Dandroid_app_NativeActivity.cpp407 inputChannel = NULL; in NativeCode()
446 if (inputChannel != NULL) { in setInputChannel()
448 env->DeleteGlobalRef(inputChannel); in setInputChannel()
450 inputChannel = NULL; in setInputChannel()
453 inputChannel = env->NewGlobalRef(_channel); in setInputChannel()
478 jobject inputChannel; member
/frameworks/base/libs/androidfw/tests/
DInputChannel_test.cpp43 sp<InputChannel> inputChannel = new InputChannel(String8("channel name"), pipe.sendFd); in TEST_F() local
45 EXPECT_STREQ("channel name", inputChannel->getName().string()) in TEST_F()
47 EXPECT_EQ(pipe.sendFd, inputChannel->getFd()) in TEST_F()
50 inputChannel.clear(); // destroys input channel in TEST_F()
/frameworks/base/services/input/
DInputDispatcher.h145 sp<InputChannel> inputChannel; member
341 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
343 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel) = 0;
393 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
395 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel);
799 sp<InputChannel> inputChannel; // never null variable
816 explicit Connection(const sp<InputChannel>& inputChannel,
819 inline const char* getInputChannelName() const { return inputChannel->getName().string(); } in getInputChannelName()
878 ssize_t getConnectionIndexLocked(const sp<InputChannel>& inputChannel);
922 sp<InputWindowHandle> getWindowHandleLocked(const sp<InputChannel>& inputChannel) const;
[all …]
DInputDispatcher.cpp217 unregisterInputChannel(mConnectionsByFd.valueAt(0)->inputChannel); in ~InputDispatcher()
909 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel); in dispatchEventLocked()
917 inputTarget.inputChannel->getName().string()); in dispatchEventLocked()
993 const sp<InputChannel>& inputChannel) { in resumeAfterTargetsNotReadyTimeoutLocked() argument
1002 if (inputChannel.get()) { in resumeAfterTargetsNotReadyTimeoutLocked()
1003 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel); in resumeAfterTargetsNotReadyTimeoutLocked()
1599 target.inputChannel = windowInfo->inputChannel; in addWindowTargetLocked()
1612 target.inputChannel = mMonitoringChannels[i]; in addMonitoringTargetsLocked()
2159 d->unregisterInputChannelLocked(connection->inputChannel, notify); in handleReceiveCallback()
2214 sp<InputWindowHandle> windowHandle = getWindowHandleLocked(connection->inputChannel); in synthesizeCancelationEventsForConnectionLocked()
[all …]
DInputWindow.h117 sp<InputChannel> inputChannel; member
168 return mInfo ? mInfo->inputChannel : NULL; in getInputChannel()
/frameworks/base/services/jni/
Dcom_android_server_input_InputWindowHandle.cpp35 jfieldID inputChannel; member
91 gInputWindowHandleClassInfo.inputChannel); in updateInfo()
93 mInfo->inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj); in updateInfo()
96 mInfo->inputChannel.clear(); in updateInfo()
238 GET_FIELD_ID(gInputWindowHandleClassInfo.inputChannel, clazz, in register_android_server_InputWindowHandle()
Dcom_android_server_input_InputManagerService.cpp169 status_t registerInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel,
171 status_t unregisterInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel);
337 const sp<InputChannel>& inputChannel, in registerInputChannel() argument
340 inputChannel, inputWindowHandle, monitor); in registerInputChannel()
344 const sp<InputChannel>& inputChannel) { in unregisterInputChannel() argument
345 return mInputManager->getDispatcher()->unregisterInputChannel(inputChannel); in unregisterInputChannel()
1066 jobject inputChannelObj, const sp<InputChannel>& inputChannel, void* data) { in handleInputChannelDisposed() argument
1070 "the input manager!", inputChannel->getName().string()); in handleInputChannelDisposed()
1071 im->unregisterInputChannel(env, inputChannel); in handleInputChannelDisposed()
1078 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, in nativeRegisterInputChannel() local
[all …]
/frameworks/base/services/java/com/android/server/input/
DInputWindowHandle.java40 public InputChannel inputChannel; field in InputWindowHandle
DInputManagerService.java166 private static native void nativeRegisterInputChannel(int ptr, InputChannel inputChannel, in nativeRegisterInputChannel() argument
168 private static native void nativeUnregisterInputChannel(int ptr, InputChannel inputChannel); in nativeUnregisterInputChannel() argument
441 public void registerInputChannel(InputChannel inputChannel, in registerInputChannel() argument
443 if (inputChannel == null) { in registerInputChannel()
447 nativeRegisterInputChannel(mPtr, inputChannel, inputWindowHandle, false); in registerInputChannel()
454 public void unregisterInputChannel(InputChannel inputChannel) { in unregisterInputChannel() argument
455 if (inputChannel == null) { in unregisterInputChannel()
459 nativeUnregisterInputChannel(mPtr, inputChannel); in unregisterInputChannel()
/frameworks/base/services/java/com/android/server/wm/
DFakeWindowImpl.java62 mWindowHandle.inputChannel = mServerChannel; in FakeWindowImpl()
DInputMonitor.java256 final InputChannel inputChannel = child.mInputChannel; in updateInputWindowsLw() local
258 if (inputChannel == null || inputWindowHandle == null || child.mRemoved) { in updateInputWindowsLw()
DWindowState.java907 void setInputChannel(InputChannel inputChannel) { in setInputChannel() argument
912 mInputChannel = inputChannel; in setInputChannel()
913 mInputWindowHandle.inputChannel = inputChannel; in setInputChannel()
924 mInputWindowHandle.inputChannel = null; in disposeInputChannel()
DDragState.java114 mDragWindowHandle.inputChannel = mServerChannel; in register()
DWindowManagerService.java667 public DragInputEventReceiver(InputChannel inputChannel, Looper looper) { in DragInputEventReceiver() argument
668 super(inputChannel, looper); in DragInputEventReceiver()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java233 public WallpaperInputEventReceiver(InputChannel inputChannel, Looper looper) { in WallpaperInputEventReceiver() argument
234 super(inputChannel, looper); in WallpaperInputEventReceiver()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindowManager.java330 public PointerLocationInputEventReceiver(InputChannel inputChannel, Looper looper, in PointerLocationInputEventReceiver() argument
332 super(inputChannel, looper); in PointerLocationInputEventReceiver()
2262 public HideNavInputEventReceiver(InputChannel inputChannel, Looper looper) { in HideNavInputEventReceiver() argument
2263 super(inputChannel, looper); in HideNavInputEventReceiver()
2324 InputChannel inputChannel, Looper looper) {
2325 return new HideNavInputEventReceiver(inputChannel, looper);