Lines Matching refs:injectionState
315 if (motionEntry.injectionState) { in createDispatchEntry()
316 combinedMotionEntry->injectionState = motionEntry.injectionState; in createDispatchEntry()
317 combinedMotionEntry->injectionState->refCount += 1; in createDispatchEntry()
993 InjectionState* injectionState = entry->injectionState; in releaseInboundEventLocked() local
994 if (injectionState && injectionState->injectionResult == INPUT_EVENT_INJECTION_PENDING) { in releaseInboundEventLocked()
1500 if (!checkInjectionPermission(focusedWindowHandle, entry.injectionState)) { in findFocusedWindowTargetsLocked()
1826 if (!checkInjectionPermission(touchedWindow.windowHandle, entry.injectionState)) { in findTouchedWindowTargetsLocked()
1914 if (checkInjectionPermission(nullptr, entry.injectionState)) { in findTouchedWindowTargetsLocked()
2057 const InjectionState* injectionState) { in checkInjectionPermission() argument
2058 if (injectionState && in checkInjectionPermission()
2060 windowHandle->getInfo()->ownerUid != injectionState->injectorUid) && in checkInjectionPermission()
2061 !hasInjectionPermission(injectionState->injectorPid, injectionState->injectorUid)) { in checkInjectionPermission()
2065 injectionState->injectorPid, injectionState->injectorUid, in checkInjectionPermission()
2069 injectionState->injectorPid, injectionState->injectorUid); in checkInjectionPermission()
3011 if (originalMotionEntry.injectionState) { in splitMotionEvent()
3012 splitMotionEntry->injectionState = originalMotionEntry.injectionState; in splitMotionEvent()
3013 splitMotionEntry->injectionState->refCount += 1; in splitMotionEvent()
3398 InjectionState* injectionState = new InjectionState(injectorPid, injectorUid); in injectInputEvent() local
3400 injectionState->injectionIsAsync = true; in injectInputEvent()
3403 injectionState->refCount += 1; in injectInputEvent()
3404 injectedEntries.back()->injectionState = injectionState; in injectInputEvent()
3426 injectionResult = injectionState->injectionResult; in injectInputEvent()
3446 while (injectionState->pendingForegroundDispatches != 0) { in injectInputEvent()
3449 injectionState->pendingForegroundDispatches); in injectInputEvent()
3466 injectionState->release(); in injectInputEvent()
3516 InjectionState* injectionState = entry->injectionState; in setInjectionResult() local
3517 if (injectionState) { in setInjectionResult()
3521 injectionResult, injectionState->injectorPid, injectionState->injectorUid); in setInjectionResult()
3524 if (injectionState->injectionIsAsync && !(entry->policyFlags & POLICY_FLAG_FILTERED)) { in setInjectionResult()
3542 injectionState->injectionResult = injectionResult; in setInjectionResult()
3548 InjectionState* injectionState = entry->injectionState; in incrementPendingForegroundDispatches() local
3549 if (injectionState) { in incrementPendingForegroundDispatches()
3550 injectionState->pendingForegroundDispatches += 1; in incrementPendingForegroundDispatches()
3555 InjectionState* injectionState = entry->injectionState; in decrementPendingForegroundDispatches() local
3556 if (injectionState) { in decrementPendingForegroundDispatches()
3557 injectionState->pendingForegroundDispatches -= 1; in decrementPendingForegroundDispatches()
3559 if (injectionState->pendingForegroundDispatches == 0) { in decrementPendingForegroundDispatches()