Lines Matching refs:windowHandle
463 sp<InputWindowHandle> windowHandle = mWindowHandles.itemAt(i);
464 const InputWindowInfo* windowInfo = windowHandle->getInfo();
474 return windowHandle;
928 const sp<InputWindowHandle>& windowHandle,
930 if (applicationHandle == NULL && windowHandle == NULL) {
945 getApplicationWindowLabelLocked(applicationHandle, windowHandle).string(),
949 if (windowHandle != NULL) {
950 timeout = windowHandle->getDispatchingTimeout(DEFAULT_INPUT_DISPATCHING_TIMEOUT);
964 if (windowHandle != NULL) {
965 mInputTargetWaitApplicationHandle = windowHandle->inputApplicationHandle;
978 onANRLocked(currentTime, applicationHandle, windowHandle,
1008 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle;
1010 if (windowHandle != NULL) {
1011 mTouchState.removeWindow(windowHandle);
1201 sp<InputWindowHandle> windowHandle = mWindowHandles.itemAt(i);
1202 const InputWindowInfo* windowInfo = windowHandle->getInfo();
1210 topErrorWindowHandle = windowHandle;
1221 newTouchedWindowHandle = windowHandle;
1230 if (isWindowObscuredAtPointLocked(windowHandle, x, y)) {
1235 windowHandle, outsideTargetFlags, BitSet32(0));
1398 if (! checkInjectionPermission(touchedWindow.windowHandle,
1427 sp<InputWindowHandle> inputWindowHandle = touchedWindow.windowHandle;
1441 if (touchedWindow.windowHandle->getInfo()->paused) {
1443 NULL, touchedWindow.windowHandle, nextWakeupTime,
1449 if (!isWindowReadyForMoreInputLocked(currentTime, touchedWindow.windowHandle, entry)) {
1451 NULL, touchedWindow.windowHandle, nextWakeupTime,
1470 sp<InputWindowHandle> windowHandle = mWindowHandles.itemAt(i);
1471 const InputWindowInfo* info = windowHandle->getInfo();
1473 && windowHandle->getInfo()->layoutParamsType
1475 mTempTouchState.addOrUpdateWindow(windowHandle,
1489 addWindowTargetLocked(touchedWindow.windowHandle, touchedWindow.targetFlags,
1595 void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle,
1599 const InputWindowInfo* windowInfo = windowHandle->getInfo();
1623 bool InputDispatcher::checkInjectionPermission(const sp<InputWindowHandle>& windowHandle,
1626 && (windowHandle == NULL
1627 || windowHandle->getInfo()->ownerUid != injectionState->injectorUid)
1629 if (windowHandle != NULL) {
1633 windowHandle->getName().string(),
1634 windowHandle->getInfo()->ownerUid);
1645 const sp<InputWindowHandle>& windowHandle, int32_t x, int32_t y) const {
1646 int32_t displayId = windowHandle->getInfo()->displayId;
1650 if (otherHandle == windowHandle) {
1665 const sp<InputWindowHandle>& windowHandle, const EventEntry* eventEntry) {
1666 ssize_t connectionIndex = getConnectionIndexLocked(windowHandle->getInputChannel());
1713 const sp<InputWindowHandle>& windowHandle) {
1715 if (windowHandle != NULL) {
1718 label.append(windowHandle->getName());
1723 } else if (windowHandle != NULL) {
1724 return windowHandle->getName();
2216 sp<InputWindowHandle> windowHandle = getWindowHandleLocked(connection->inputChannel);
2217 if (windowHandle != NULL) {
2218 const InputWindowInfo* windowInfo = windowHandle->getInfo();
2779 const sp<InputWindowHandle>& windowHandle = mWindowHandles.itemAt(i);
2780 if (windowHandle->getInputChannel() == inputChannel) {
2781 windowHandle;
2788 const sp<InputWindowHandle>& windowHandle) const {
2791 if (mWindowHandles.itemAt(i) == windowHandle) {
2811 const sp<InputWindowHandle>& windowHandle = mWindowHandles.itemAt(i);
2812 if (!windowHandle->updateInfo() || windowHandle->getInputChannel() == NULL) {
2816 if (windowHandle->getInfo()->hasFocus) {
2817 newFocusedWindowHandle = windowHandle;
2819 if (windowHandle == mLastHoverWindowHandle) {
2853 if (!hasWindowHandleLocked(touchedWindow.windowHandle)) {
2856 touchedWindow.windowHandle->getName().string());
2859 touchedWindow.windowHandle->getInputChannel();
3009 if (touchedWindow.windowHandle == fromWindowHandle) {
3112 i, touchedWindow.windowHandle->getName().string(),
3123 const sp<InputWindowHandle>& windowHandle = mWindowHandles.itemAt(i);
3124 const InputWindowInfo* windowInfo = windowHandle->getInfo();
3357 const sp<InputWindowHandle>& windowHandle,
3363 getApplicationWindowLabelLocked(applicationHandle, windowHandle).string(),
3376 getApplicationWindowLabelLocked(applicationHandle, windowHandle).string());
3385 commandEntry->inputWindowHandle = windowHandle;
4337 void InputDispatcher::TouchState::addOrUpdateWindow(const sp<InputWindowHandle>& windowHandle,
4345 if (touchedWindow.windowHandle == windowHandle) {
4358 touchedWindow.windowHandle = windowHandle;
4363 void InputDispatcher::TouchState::removeWindow(const sp<InputWindowHandle>& windowHandle) {
4365 if (windows.itemAt(i).windowHandle == windowHandle) {
4390 return window.windowHandle;
4403 || !(window.windowHandle->getInfo()->layoutParamsFlags