Home
last modified time | relevance | path

Searched refs:resolvedViewport (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DTouchpadInputMapper.cpp324 std::optional<DisplayViewport> resolvedViewport; in reconfigure() local
330 resolvedViewport = *assocViewport; in reconfigure()
335 resolvedViewport = getContext()->getPolicy()->getPointerViewportForAssociatedDisplay(); in reconfigure()
336 mDisplayId = resolvedViewport ? std::make_optional(ui::LogicalDisplayId::INVALID) in reconfigure()
341 mGestureConverter.setOrientation(resolvedViewport in reconfigure()
342 ? getInverseRotation(resolvedViewport->orientation) in reconfigure()
346 boundsInLogicalDisplay = resolvedViewport in reconfigure()
347 ? FloatRect{static_cast<float>(resolvedViewport->logicalLeft), in reconfigure()
348 static_cast<float>(resolvedViewport->logicalTop), in reconfigure()
349 static_cast<float>(resolvedViewport->logicalRight - 1), in reconfigure()
[all …]
DCursorInputMapper.cpp510 std::optional<DisplayViewport> resolvedViewport; in configureOnChangeDisplayInfo() local
515 resolvedViewport = *assocViewport; in configureOnChangeDisplayInfo()
520 resolvedViewport = getContext()->getPolicy()->getPointerViewportForAssociatedDisplay(); in configureOnChangeDisplayInfo()
522 resolvedViewport ? std::make_optional(ui::LogicalDisplayId::INVALID) : std::nullopt; in configureOnChangeDisplayInfo()
526 mParameters.mode == Parameters::Mode::POINTER_RELATIVE || !resolvedViewport in configureOnChangeDisplayInfo()
528 : getInverseRotation(resolvedViewport->orientation); in configureOnChangeDisplayInfo()
530 mBoundsInLogicalDisplay = resolvedViewport in configureOnChangeDisplayInfo()
531 ? FloatRect{static_cast<float>(resolvedViewport->logicalLeft), in configureOnChangeDisplayInfo()
532 static_cast<float>(resolvedViewport->logicalTop), in configureOnChangeDisplayInfo()
533 static_cast<float>(resolvedViewport->logicalRight - 1), in configureOnChangeDisplayInfo()
[all …]