Lines Matching refs:injectionState
671 InjectionState* injectionState = entry->injectionState; in releaseInboundEventLocked() local
672 if (injectionState && injectionState->injectionResult == INPUT_EVENT_INJECTION_PENDING) { in releaseInboundEventLocked()
1132 if (! checkInjectionPermission(mFocusedWindowHandle, entry->injectionState)) { in findFocusedWindowTargetsLocked()
1412 entry->injectionState)) { in findTouchedWindowTargetsLocked()
1506 if (checkInjectionPermission(NULL, entry->injectionState)) { in findTouchedWindowTargetsLocked()
1637 const InjectionState* injectionState) { in checkInjectionPermission() argument
1638 if (injectionState in checkInjectionPermission()
1640 || windowHandle->getInfo()->ownerUid != injectionState->injectorUid) in checkInjectionPermission()
1641 && !hasInjectionPermission(injectionState->injectorPid, injectionState->injectorUid)) { in checkInjectionPermission()
1645 injectionState->injectorPid, injectionState->injectorUid, in checkInjectionPermission()
1650 injectionState->injectorPid, injectionState->injectorUid); in checkInjectionPermission()
2400 if (originalMotionEntry->injectionState) { in splitMotionEvent()
2401 splitMotionEntry->injectionState = originalMotionEntry->injectionState; in splitMotionEvent()
2402 splitMotionEntry->injectionState->refCount += 1; in splitMotionEvent()
2752 InjectionState* injectionState = new InjectionState(injectorPid, injectorUid); in injectInputEvent() local
2754 injectionState->injectionIsAsync = true; in injectInputEvent()
2757 injectionState->refCount += 1; in injectInputEvent()
2758 lastInjectedEntry->injectionState = injectionState; in injectInputEvent()
2781 injectionResult = injectionState->injectionResult; in injectInputEvent()
2801 while (injectionState->pendingForegroundDispatches != 0) { in injectInputEvent()
2804 injectionState->pendingForegroundDispatches); in injectInputEvent()
2821 injectionState->release(); in injectInputEvent()
2839 InjectionState* injectionState = entry->injectionState; in setInjectionResultLocked() local
2840 if (injectionState) { in setInjectionResultLocked()
2844 injectionResult, injectionState->injectorPid, injectionState->injectorUid); in setInjectionResultLocked()
2847 if (injectionState->injectionIsAsync in setInjectionResultLocked()
2866 injectionState->injectionResult = injectionResult; in setInjectionResultLocked()
2872 InjectionState* injectionState = entry->injectionState; in incrementPendingForegroundDispatchesLocked() local
2873 if (injectionState) { in incrementPendingForegroundDispatchesLocked()
2874 injectionState->pendingForegroundDispatches += 1; in incrementPendingForegroundDispatchesLocked()
2879 InjectionState* injectionState = entry->injectionState; in decrementPendingForegroundDispatchesLocked() local
2880 if (injectionState) { in decrementPendingForegroundDispatchesLocked()
2881 injectionState->pendingForegroundDispatches -= 1; in decrementPendingForegroundDispatchesLocked()
2883 if (injectionState->pendingForegroundDispatches == 0) { in decrementPendingForegroundDispatchesLocked()
3937 injectionState(NULL), dispatchInProgress(false) { in EventEntry()
3954 if (injectionState) { in releaseInjectionState()
3955 injectionState->release(); in releaseInjectionState()
3956 injectionState = NULL; in releaseInjectionState()