Lines Matching refs:windowHandle
481 sp<InputWindowHandle> windowHandle = mWindowHandles.itemAt(i); in findTouchedWindowAtLocked() local
482 const InputWindowInfo* windowInfo = windowHandle->getInfo(); in findTouchedWindowAtLocked()
492 return windowHandle; in findTouchedWindowAtLocked()
951 const sp<InputWindowHandle>& windowHandle, in handleTargetsNotReadyLocked() argument
953 if (applicationHandle == NULL && windowHandle == NULL) { in handleTargetsNotReadyLocked()
968 getApplicationWindowLabelLocked(applicationHandle, windowHandle).string(), in handleTargetsNotReadyLocked()
972 if (windowHandle != NULL) { in handleTargetsNotReadyLocked()
973 timeout = windowHandle->getDispatchingTimeout(DEFAULT_INPUT_DISPATCHING_TIMEOUT); in handleTargetsNotReadyLocked()
987 if (windowHandle != NULL) { in handleTargetsNotReadyLocked()
988 mInputTargetWaitApplicationHandle = windowHandle->inputApplicationHandle; in handleTargetsNotReadyLocked()
1001 onANRLocked(currentTime, applicationHandle, windowHandle, in handleTargetsNotReadyLocked()
1031 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; in resumeAfterTargetsNotReadyTimeoutLocked() local
1033 if (windowHandle != NULL) { in resumeAfterTargetsNotReadyTimeoutLocked()
1034 const InputWindowInfo* info = windowHandle->getInfo(); in resumeAfterTargetsNotReadyTimeoutLocked()
1039 windowHandle); in resumeAfterTargetsNotReadyTimeoutLocked()
1206 sp<InputWindowHandle> windowHandle = mWindowHandles.itemAt(i); in findTouchedWindowTargetsLocked() local
1207 const InputWindowInfo* windowInfo = windowHandle->getInfo(); in findTouchedWindowTargetsLocked()
1218 newTouchedWindowHandle = windowHandle; in findTouchedWindowTargetsLocked()
1226 if (isWindowObscuredAtPointLocked(windowHandle, x, y)) { in findTouchedWindowTargetsLocked()
1231 windowHandle, outsideTargetFlags, BitSet32(0)); in findTouchedWindowTargetsLocked()
1369 if (! checkInjectionPermission(touchedWindow.windowHandle, in findTouchedWindowTargetsLocked()
1398 sp<InputWindowHandle> inputWindowHandle = touchedWindow.windowHandle; in findTouchedWindowTargetsLocked()
1413 touchedWindow.windowHandle, entry, "touched"); in findTouchedWindowTargetsLocked()
1416 NULL, touchedWindow.windowHandle, nextWakeupTime, reason.string()); in findTouchedWindowTargetsLocked()
1433 sp<InputWindowHandle> windowHandle = mWindowHandles.itemAt(i); in findTouchedWindowTargetsLocked() local
1434 const InputWindowInfo* info = windowHandle->getInfo(); in findTouchedWindowTargetsLocked()
1436 && windowHandle->getInfo()->layoutParamsType in findTouchedWindowTargetsLocked()
1438 mTempTouchState.addOrUpdateWindow(windowHandle, in findTouchedWindowTargetsLocked()
1452 addWindowTargetLocked(touchedWindow.windowHandle, touchedWindow.targetFlags, in findTouchedWindowTargetsLocked()
1565 void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle, in addWindowTargetLocked() argument
1569 const InputWindowInfo* windowInfo = windowHandle->getInfo(); in addWindowTargetLocked()
1593 bool InputDispatcher::checkInjectionPermission(const sp<InputWindowHandle>& windowHandle, in checkInjectionPermission() argument
1596 && (windowHandle == NULL in checkInjectionPermission()
1597 || windowHandle->getInfo()->ownerUid != injectionState->injectorUid) in checkInjectionPermission()
1599 if (windowHandle != NULL) { in checkInjectionPermission()
1603 windowHandle->getName().string(), in checkInjectionPermission()
1604 windowHandle->getInfo()->ownerUid); in checkInjectionPermission()
1615 const sp<InputWindowHandle>& windowHandle, int32_t x, int32_t y) const { in isWindowObscuredAtPointLocked() argument
1616 int32_t displayId = windowHandle->getInfo()->displayId; in isWindowObscuredAtPointLocked()
1620 if (otherHandle == windowHandle) { in isWindowObscuredAtPointLocked()
1635 const sp<InputWindowHandle>& windowHandle, const EventEntry* eventEntry, in checkWindowReadyForMoreInputLocked() argument
1638 if (windowHandle->getInfo()->paused) { in checkWindowReadyForMoreInputLocked()
1643 ssize_t connectionIndex = getConnectionIndexLocked(windowHandle->getInputChannel()); in checkWindowReadyForMoreInputLocked()
1716 const sp<InputWindowHandle>& windowHandle) { in getApplicationWindowLabelLocked() argument
1718 if (windowHandle != NULL) { in getApplicationWindowLabelLocked()
1721 label.append(windowHandle->getName()); in getApplicationWindowLabelLocked()
1726 } else if (windowHandle != NULL) { in getApplicationWindowLabelLocked()
1727 return windowHandle->getName(); in getApplicationWindowLabelLocked()
2226 sp<InputWindowHandle> windowHandle = getWindowHandleLocked(connection->inputChannel); in synthesizeCancelationEventsForConnectionLocked() local
2227 if (windowHandle != NULL) { in synthesizeCancelationEventsForConnectionLocked()
2228 const InputWindowInfo* windowInfo = windowHandle->getInfo(); in synthesizeCancelationEventsForConnectionLocked()
2803 const sp<InputWindowHandle>& windowHandle = mWindowHandles.itemAt(i); in getWindowHandleLocked() local
2804 if (windowHandle->getInputChannel() == inputChannel) { in getWindowHandleLocked()
2805 return windowHandle; in getWindowHandleLocked()
2812 const sp<InputWindowHandle>& windowHandle) const { in hasWindowHandleLocked()
2815 if (mWindowHandles.itemAt(i) == windowHandle) { in hasWindowHandleLocked()
2835 const sp<InputWindowHandle>& windowHandle = mWindowHandles.itemAt(i); in setInputWindows() local
2836 if (!windowHandle->updateInfo() || windowHandle->getInputChannel() == NULL) { in setInputWindows()
2840 if (windowHandle->getInfo()->hasFocus) { in setInputWindows()
2841 newFocusedWindowHandle = windowHandle; in setInputWindows()
2843 if (windowHandle == mLastHoverWindowHandle) { in setInputWindows()
2879 if (!hasWindowHandleLocked(touchedWindow.windowHandle)) { in setInputWindows()
2882 touchedWindow.windowHandle->getName().string()); in setInputWindows()
2885 touchedWindow.windowHandle->getInputChannel(); in setInputWindows()
3038 if (touchedWindow.windowHandle == fromWindowHandle) { in transferTouchFocus()
3146 i, touchedWindow.windowHandle->getName().string(), in dumpDispatchStateLocked()
3161 const sp<InputWindowHandle>& windowHandle = mWindowHandles.itemAt(i); in dumpDispatchStateLocked() local
3162 const InputWindowInfo* windowInfo = windowHandle->getInfo(); in dumpDispatchStateLocked()
3432 const sp<InputWindowHandle>& windowHandle, in onANRLocked() argument
3438 getApplicationWindowLabelLocked(applicationHandle, windowHandle).string(), in onANRLocked()
3451 getApplicationWindowLabelLocked(applicationHandle, windowHandle).string()); in onANRLocked()
3460 commandEntry->inputWindowHandle = windowHandle; in onANRLocked()
4444 void InputDispatcher::TouchState::addOrUpdateWindow(const sp<InputWindowHandle>& windowHandle, in addOrUpdateWindow() argument
4452 if (touchedWindow.windowHandle == windowHandle) { in addOrUpdateWindow()
4465 touchedWindow.windowHandle = windowHandle; in addOrUpdateWindow()
4470 void InputDispatcher::TouchState::removeWindow(const sp<InputWindowHandle>& windowHandle) { in removeWindow() argument
4472 if (windows.itemAt(i).windowHandle == windowHandle) { in removeWindow()
4497 return window.windowHandle; in getFirstForegroundWindowHandle()
4510 || !(window.windowHandle->getInfo()->layoutParamsFlags in isSlippery()