Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/jni/
H A Dandroid_view_InputChannel.cpp49 explicit NativeInputChannel(std::unique_ptr<InputChannel> inputChannel);
65 NativeInputChannel::NativeInputChannel(std::unique_ptr<InputChannel> inputChannel) in NativeInputChannel() argument
66 : mInputChannel(std::move(inputChannel)), mDisposeCallback(nullptr) {} in NativeInputChannel()
116 JNIEnv* env, std::unique_ptr<InputChannel> inputChannel) { in android_view_InputChannel_createInputChannel() argument
118 std::make_unique<NativeInputChannel>(std::move(inputChannel)); in android_view_InputChannel_createInputChannel()
125 std::string name = inputChannel->getName(); in android_view_InputChannel_createJavaObject()
137 inputChannel->getName().c_str()); in android_view_InputChannel_createJavaObject()
207 inputChannel->readFromParcel(parcel); in android_view_InputChannel_nativeReadFromParcel()
209 new NativeInputChannel(std::move(inputChannel)); in android_view_InputChannel_nativeReadFromParcel()
255 if (inputChannel == nullptr) { in android_view_InputChannel_nativeDup()
[all …]
H A Dandroid_view_InputChannel.h27 const std::shared_ptr<InputChannel>& inputChannel,
40 JNIEnv* env, std::unique_ptr<InputChannel> inputChannel);
H A Dandroid_view_InputEventSender.cpp55 const std::shared_ptr<InputChannel>& inputChannel,
86 const std::shared_ptr<InputChannel>& inputChannel, in NativeInputEventSender() argument
89 mInputPublisher(inputChannel), in NativeInputEventSender()
305 std::shared_ptr<InputChannel> inputChannel = in nativeInit() local
307 if (inputChannel == NULL) { in nativeInit()
319 senderWeak, inputChannel, messageQueue); in nativeInit()
H A Dandroid_view_InputEventReceiver.cpp78 const std::shared_ptr<InputChannel>& inputChannel,
124 JNIEnv* env, jobject receiverWeak, const std::shared_ptr<InputChannel>& inputChannel, in NativeInputEventReceiver() argument
127 mInputConsumer(inputChannel), in NativeInputEventReceiver()
488 std::shared_ptr<InputChannel> inputChannel = in nativeInit() local
490 if (inputChannel == nullptr) { in nativeInit()
502 receiverWeak, inputChannel, messageQueue); in nativeInit()
/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DConnection.cpp23 Connection::Connection(const std::shared_ptr<InputChannel>& inputChannel, bool monitor, in Connection() argument
26 inputChannel(inputChannel), in Connection()
28 inputPublisher(inputChannel), in Connection()
34 if (inputChannel != nullptr) { in getWindowName()
35 return inputChannel->getName(); in getWindowName()
H A DMonitor.cpp22 Monitor::Monitor(const std::shared_ptr<InputChannel>& inputChannel, int32_t pid) in Monitor() argument
23 : inputChannel(inputChannel), pid(pid) {} in Monitor()
H A DConnection.h45 std::shared_ptr<InputChannel> inputChannel; // never null variable
62 Connection(const std::shared_ptr<InputChannel>& inputChannel, bool monitor,
65 inline const std::string getInputChannelName() const { return inputChannel->getName(); } in getInputChannelName()
H A DMonitor.h25 std::shared_ptr<InputChannel> inputChannel; // never null member
29 explicit Monitor(const std::shared_ptr<InputChannel>& inputChannel, int32_t pid);
H A DInputDispatcher.cpp1308 target.inputChannel = channel; in dispatchFocusLocked()
1380 target.inputChannel = channel; in dispatchPointerCaptureChangedLocked()
1661 target.inputChannel = channel; in dispatchDragLocked()
2485 if (inputChannel == nullptr) { in addWindowTargetLocked()
2489 inputTarget.inputChannel = inputChannel; in addWindowTargetLocked()
2523 target.inputChannel = monitor.inputChannel; in addMonitoringTargetLocked()
3530 target.inputChannel = connection->inputChannel; in synthesizeCancelationEventsForConnectionLocked()
3597 target.inputChannel = connection->inputChannel; in synthesizePointerDownEventsForConnectionLocked()
4456 return connectionIt->second->inputChannel; in getInputChannelLocked()
4619 if (inputChannel != nullptr) { in setInputWindowsLocked()
[all …]
/aosp12/frameworks/base/core/java/android/view/
H A DInputEventSender.java46 InputChannel inputChannel, MessageQueue messageQueue); in nativeInit() argument
57 public InputEventSender(InputChannel inputChannel, Looper looper) { in InputEventSender() argument
58 if (inputChannel == null) { in InputEventSender()
65 mInputChannel = inputChannel; in InputEventSender()
68 inputChannel, mMessageQueue); in InputEventSender()
H A DInputEventReceiver.java54 InputChannel inputChannel, MessageQueue messageQueue); in nativeInit() argument
69 public InputEventReceiver(InputChannel inputChannel, Looper looper) { in InputEventReceiver() argument
70 if (inputChannel == null) { in InputEventReceiver()
77 mInputChannel = inputChannel; in InputEventReceiver()
80 inputChannel, mMessageQueue); in InputEventReceiver()
281 InputEventReceiver createInputEventReceiver(InputChannel inputChannel, Looper looper); in createInputEventReceiver() argument
H A DInputMonitor.java93 @NonNull InputChannel inputChannel, in InputMonitor()
95 this.mInputChannel = inputChannel; in InputMonitor()
148 InputChannel inputChannel = (InputChannel) in.readTypedObject(InputChannel.CREATOR); in InputMonitor() local
151 this.mInputChannel = inputChannel; in InputMonitor()
H A DBatchedInputEventReceiver.java41 InputChannel inputChannel, Looper looper, Choreographer choreographer) { in BatchedInputEventReceiver() argument
42 super(inputChannel, looper); in BatchedInputEventReceiver()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipInputConsumer.java65 InputEventReceiver(InputChannel inputChannel, Looper looper, in InputEventReceiver() argument
67 super(inputChannel, looper, choreographer); in InputEventReceiver()
138 final InputChannel inputChannel = new InputChannel(); in registerInputConsumer() local
142 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer()
149 mInputEventReceiver = new InputEventReceiver(inputChannel, in registerInputConsumer()
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DInputConsumerController.java67 InputEventReceiver(InputChannel inputChannel, Looper looper, in InputEventReceiver() argument
69 super(inputChannel, looper, choreographer); in InputEventReceiver()
149 final InputChannel inputChannel = new InputChannel(); in registerInputConsumer() local
152 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer()
156 mInputEventReceiver = new InputEventReceiver(inputChannel, Looper.myLooper(), in registerInputConsumer()
H A DInputChannelCompat.java68 public InputEventReceiver(InputChannel inputChannel, Looper looper, in InputEventReceiver() argument
70 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
H A DFileMover.java36 FileChannel inputChannel = input.getChannel(); in moveFileBetweenContexts() local
37 inputChannel.transferTo(0, inputChannel.size(), output.getChannel()); in moveFileBetweenContexts()
/aosp12/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/
H A DWindowAddRemovePerfTest.java102 final InputChannel inputChannel = new InputChannel(); in runBenchmark() local
106 Display.DEFAULT_DISPLAY, mRequestedVisibilities, inputChannel, in runBenchmark()
117 inputChannel.dispose(); in runBenchmark()
/aosp12/frameworks/native/libs/input/tests/
H A DInputChannel_test.cpp47 std::unique_ptr<InputChannel> inputChannel = in TEST_F() local
50 EXPECT_NE(inputChannel, nullptr) << "channel should be successfully created"; in TEST_F()
51 EXPECT_STREQ("channel name", inputChannel->getName().c_str()) in TEST_F()
53 EXPECT_NE(-1, inputChannel->getFd()) << "channel should have valid fd"; in TEST_F()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DInputConsumerImpl.java54 InputChannel inputChannel, int clientPid, UserHandle clientUser, int displayId) { in InputConsumerImpl() argument
62 if (inputChannel != null) { in InputConsumerImpl()
63 mClientChannel.copyTo(inputChannel); in InputConsumerImpl()
H A DDragInputEventReceiver.java50 DragInputEventReceiver(InputChannel inputChannel, Looper looper, in DragInputEventReceiver() argument
52 super(inputChannel, looper); in DragInputEventReceiver()
H A DPointerEventDispatcher.java41 public PointerEventDispatcher(InputChannel inputChannel, DisplayContent dc) { in PointerEventDispatcher() argument
42 super(inputChannel, UiThread.getHandler().getLooper()); in PointerEventDispatcher()
/aosp12/frameworks/native/include/input/
H A DInputTransport.h295 bool operator==(const InputChannel& inputChannel) const {
300 if (fstat(inputChannel.getFd(), &rhs) != 0) {
304 return inputChannel.getName() == getName() && inputChannel.getConnectionToken() == mToken &&
/aosp12/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DImportVCardActivity.java458 ReadableByteChannel inputChannel = null; in copyTo() local
462 inputChannel = Channels.newChannel(resolver.openInputStream(sourceUri)); in copyTo()
466 while (inputChannel.read(buffer) != -1) { in copyTo()
476 if (inputChannel != null) { in copyTo()
478 inputChannel.close(); in copyTo()
/aosp12/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DFakeEpgReader.java92 public boolean apply(@Nullable Channel inputChannel) { in getChannels()
94 inputChannel.getDisplayNumber(), in getChannels()

12