STL introduce Content.findActionResultBestMatch(swipe)

This refactor lets us search for action results using more complex
conditions, like optionally specifying the pointer type (e.g., Mouse or
Touch). It also makes it easier to add other search conditions in the
future. We'll find gestures that perfectly match our requirements, or
use the closest match if needed.

Test: Just a refactor.
Bug: 371984715
Flag: com.android.systemui.scene_container
Change-Id: I7da1b608942c1065318911dffd1549055f8ccbbf
5 files changed