You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0c92a5b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(harmonyos): inject single-pointer human-trajectory pans through the panel evdev node
Motivation:
HarmonyOS lowering dropped every interior sample of the shared gesture plan:
performHarmonyGesture collapsed PointerTrajectorySample[] onto a straight
uitest uiInput swipe/fling, so flows that verify trajectory shape (slider
controls, drag verification) had no non-linear path on this platform.
Approach:
- contracts: gesture pan accepts an optional trajectory: 'human' opt-in.
buildSinglePointerPlan then densifies the canonical endpoints into a
deterministic human-hand stroke (slow onset, bounded overshoot, settle-back,
seeded wobble, >= 20 samples) and marks the plan, so transports receive the
full trajectory model instead of an endpoint pair.
- platform-harmonyos: the marked plan lowers through the touchscreen evdev
node as a Type-B sendevent sequence paced to the sample timeline, carried in
one hdc shell round trip. The release frame reports the final point so the
stroke ends on the destination. Plans without the opt-in keep the
byte-identical endpoint swipe transport.
- CLI: --trajectory human on gesture pan, threaded through the flag registry,
CLI reader, command fields, .ad replay preflight, and integration model.
Test evidence:
- contracts: generator invariants (determinism, exact endpoints, monotonic
offsets, slow onset, capped overshoot, viewport clamp), plan marking, and
payload/positional normalization (60 focused tests).
- platform-harmonyos: evdev batch lowering, transport sample cap, script
rendering and pacing, node resolution with its typed refusal, dispatch
wiring; the legacy uiInput assertions are unchanged.
- On-device trajectory verification is tracked in the contribution ledger.
Docs impact: the help gestures topic gains the HarmonyOS trajectory quirk line.
Co-Authored-By: Claude Code <[email protected]>
0 commit comments