Documentation
¶
Overview ¶
Command partpressprobe shows the pressed state of segmented-button segments and split-button halves (#1156) on a device, for a screenshot taken while a press is held.
A segmented button with three segments sits above a split button. Every tap logs
partpressprobe: TAP <what>
Expected, with the change: a press held on the first segment shows a state layer rounded on the left only; on the middle segment, square; on the last, rounded on the right only. Nothing spills past the outline and no gap shows at a seam. A press on the split button's primary half shows on that half, rounded on the left; one on its dropdown half shows there, rounded on the right. Before #1156 the segments and the split button showed nothing while pressed.
go run ./hack/partpressprobe
On Android, package it and read logcat for "partpressprobe".
With -auto (desktop) it presses each segment and each split-button half itself, captures the window while the press is held, and compares two pixels per part against a capture with nothing pressed: one just inside the part's rounded outer corner, which the state layer must leave alone, and one just inside its square inner corner, which the layer must change. It logs one PASS or FAIL line per part and exits non-zero on any FAIL.
go run ./hack/partpressprobe -auto