Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/dispatcher/
DConnection.cpp23 Connection::Connection(const sp<InputChannel>& inputChannel, bool monitor) in Connection() argument
25 inputChannel(inputChannel), in Connection()
27 inputPublisher(inputChannel), in Connection()
33 if (inputChannel != nullptr) { in getWindowName()
34 return inputChannel->getName(); in getWindowName()
DMonitor.cpp22 Monitor::Monitor(const sp<InputChannel>& inputChannel) : inputChannel(inputChannel) {} in Monitor() argument
DConnection.h46 sp<InputChannel> inputChannel; // never null variable
62 explicit Connection(const sp<InputChannel>& inputChannel, bool monitor);
64 inline const std::string getInputChannelName() const { return inputChannel->getName(); } in getInputChannelName()
DMonitor.h25 sp<InputChannel> inputChannel; // never null member
27 explicit Monitor(const sp<InputChannel>& inputChannel);
DInputDispatcher.cpp244 unregisterInputChannel(mConnectionsByFd.valueAt(0)->inputChannel); in ~InputDispatcher()
829 commandEntry->inputChannel = getInputChannelLocked(focusedWindowHandle->getToken()); in dispatchKeyLocked()
1007 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel); in dispatchEventLocked()
1015 inputTarget.inputChannel->getName().c_str()); in dispatchEventLocked()
1096 nsecs_t newTimeout, const sp<InputChannel>& inputChannel) { in resumeAfterTargetsNotReadyTimeoutLocked() argument
1105 if (inputChannel.get()) { in resumeAfterTargetsNotReadyTimeoutLocked()
1106 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel); in resumeAfterTargetsNotReadyTimeoutLocked()
1109 sp<IBinder> token = connection->inputChannel->getToken(); in resumeAfterTargetsNotReadyTimeoutLocked()
1682 sp<InputChannel> inputChannel = getInputChannelLocked(windowHandle->getToken()); in addWindowTargetLocked() local
1683 if (inputChannel == nullptr) { in addWindowTargetLocked()
[all …]
DInputDispatcher.h110 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
112 virtual status_t registerInputMonitor(const sp<InputChannel>& inputChannel, int32_t displayId,
114 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel) override;
189 ssize_t getConnectionIndexLocked(const sp<InputChannel>& inputChannel) REQUIRES(mLock);
321 const sp<InputChannel>& inputChannel)
415 void removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) REQUIRES(mLock);
417 const sp<InputChannel>& inputChannel,
419 status_t unregisterInputChannelLocked(const sp<InputChannel>& inputChannel, bool notify)
DInputTarget.h93 sp<InputChannel> inputChannel; member
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInputChannelCompat.java74 public InputEventReceiver(InputChannel inputChannel, Looper looper, in InputEventReceiver() argument
76 mInputChannel = inputChannel; in InputEventReceiver()
77 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver()
104 public InputEventDispatcher(InputChannel inputChannel, Looper looper) { in InputEventDispatcher() argument
105 mInputChannel = inputChannel; in InputEventDispatcher()
106 mSender = new InputEventSender(inputChannel, looper) { }; in InputEventDispatcher()
DInputConsumerController.java66 public InputEventReceiver(InputChannel inputChannel, Looper looper) { in InputEventReceiver() argument
67 super(inputChannel, looper, Choreographer.getSfInstance()); in InputEventReceiver()
147 final InputChannel inputChannel = new InputChannel(); in registerInputConsumer() local
151 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer()
155 mInputEventReceiver = new InputEventReceiver(inputChannel, Looper.myLooper()); in registerInputConsumer()
/frameworks/base/core/java/android/view/
DInputEventReceiver.java49 InputChannel inputChannel, MessageQueue messageQueue); in nativeInit() argument
61 public InputEventReceiver(InputChannel inputChannel, Looper looper) { in InputEventReceiver() argument
62 if (inputChannel == null) { in InputEventReceiver()
69 mInputChannel = inputChannel; in InputEventReceiver()
72 inputChannel, mMessageQueue); in InputEventReceiver()
200 InputChannel inputChannel, Looper looper); in createInputEventReceiver() argument
DInputEventSender.java45 InputChannel inputChannel, MessageQueue messageQueue); in nativeInit() argument
56 public InputEventSender(InputChannel inputChannel, Looper looper) { in InputEventSender() argument
57 if (inputChannel == null) { in InputEventSender()
64 mInputChannel = inputChannel; in InputEventSender()
67 inputChannel, mMessageQueue); in InputEventSender()
DBatchedInputEventReceiver.java32 InputChannel inputChannel, Looper looper, Choreographer choreographer) { in BatchedInputEventReceiver() argument
33 super(inputChannel, looper); in BatchedInputEventReceiver()
/frameworks/base/core/jni/
Dandroid_view_InputChannel.cpp46 explicit NativeInputChannel(const sp<InputChannel>& inputChannel);
62 NativeInputChannel::NativeInputChannel(const sp<InputChannel>& inputChannel) : in NativeInputChannel() argument
63 mInputChannel(inputChannel), mDisposeCallback(NULL) { in NativeInputChannel()
204 InputChannel* inputChannel = new InputChannel(); in android_view_InputChannel_nativeReadFromParcel() local
205 inputChannel->read(*parcel); in android_view_InputChannel_nativeReadFromParcel()
207 NativeInputChannel* nativeInputChannel = new NativeInputChannel(inputChannel); in android_view_InputChannel_nativeReadFromParcel()
221 sp<InputChannel> inputChannel = nativeInputChannel->getInputChannel(); in android_view_InputChannel_nativeWriteToParcel() local
224 inputChannel->write(*parcel); in android_view_InputChannel_nativeWriteToParcel()
Dandroid_view_InputEventSender.cpp52 jobject senderWeak, const sp<InputChannel>& inputChannel,
81 jobject senderWeak, const sp<InputChannel>& inputChannel, in NativeInputEventSender() argument
84 mInputPublisher(inputChannel), mMessageQueue(messageQueue), in NativeInputEventSender()
241 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, in nativeInit() local
243 if (inputChannel == NULL) { in nativeInit()
255 senderWeak, inputChannel, messageQueue); in nativeInit()
Dandroid_view_InputEventReceiver.cpp54 jobject receiverWeak, const sp<InputChannel>& inputChannel,
91 jobject receiverWeak, const sp<InputChannel>& inputChannel, in NativeInputEventReceiver() argument
94 mInputConsumer(inputChannel), mMessageQueue(messageQueue), in NativeInputEventReceiver()
338 sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, in nativeInit() local
340 if (inputChannel == NULL) { in nativeInit()
352 receiverWeak, inputChannel, messageQueue); in nativeInit()
Dandroid_view_InputChannel.h27 const sp<InputChannel>& inputChannel, void* data);
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherInterface.h129 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
140 virtual status_t registerInputMonitor(const sp<InputChannel>& inputChannel, int32_t displayId,
147 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel) = 0;
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java35 public PointerEventDispatcher(InputChannel inputChannel) { in PointerEventDispatcher() argument
36 super(inputChannel, UiThread.getHandler().getLooper()); in PointerEventDispatcher()
37 mInputChannel = inputChannel; in PointerEventDispatcher()
DInputConsumerImpl.java52 InputChannel inputChannel, int clientPid, UserHandle clientUser, int displayId) { in InputConsumerImpl() argument
61 if (inputChannel != null) { in InputConsumerImpl()
62 channels[1].transferTo(inputChannel); in InputConsumerImpl()
64 mClientChannel = inputChannel; in InputConsumerImpl()
DDragInputEventReceiver.java50 DragInputEventReceiver(InputChannel inputChannel, Looper looper, in DragInputEventReceiver() argument
52 super(inputChannel, looper); in DragInputEventReceiver()
DInputMonitor.java227 void createInputConsumer(IBinder token, String name, InputChannel inputChannel, int clientPid, in createInputConsumer() argument
235 inputChannel, clientPid, clientUser, mDisplayId); in createInputConsumer()
457 final InputChannel inputChannel = w.mInputChannel; in accept() local
459 if (inputChannel == null || inputWindowHandle == null || w.mRemoved in accept()
DLetterbox.java220 SimpleInputReceiver(InputChannel inputChannel) { in SimpleInputReceiver() argument
221 super(inputChannel, UiThread.getHandler().getLooper()); in SimpleInputReceiver()
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp46 sp<InputChannel> inputChannel = new InputChannel("channel name", pipe.sendFd); in TEST_F() local
48 EXPECT_STREQ("channel name", inputChannel->getName().c_str()) in TEST_F()
50 EXPECT_EQ(pipe.sendFd, inputChannel->getFd()) in TEST_F()
53 inputChannel.clear(); // destroys input channel in TEST_F()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp210 status_t registerInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel,
212 status_t registerInputMonitor(JNIEnv* env, const sp<InputChannel>& inputChannel,
214 status_t unregisterInputChannel(JNIEnv* env, const sp<InputChannel>& inputChannel);
434 const sp<InputChannel>& inputChannel, int32_t displayId) { in registerInputChannel() argument
437 inputChannel, displayId); in registerInputChannel()
441 const sp<InputChannel>& inputChannel, int32_t displayId, bool isGestureMonitor) { in registerInputMonitor() argument
444 inputChannel, displayId, isGestureMonitor); in registerInputMonitor()
448 const sp<InputChannel>& inputChannel) { in unregisterInputChannel() argument
450 return mInputManager->getDispatcher()->unregisterInputChannel(inputChannel); in unregisterInputChannel()
1381 jobject /* inputChannelObj */, const sp<InputChannel>& inputChannel, void* data) { in handleInputChannelDisposed() argument
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodSessionWrapper.java219 public ImeInputEventReceiver(InputChannel inputChannel, Looper looper) { in ImeInputEventReceiver() argument
220 super(inputChannel, looper); in ImeInputEventReceiver()

12