01
Driving restrictions
Motion and distraction gating while the vehicle is in motion. Restricted flows get honest substitutes — not disabled clutter.
Compliance
Compliance is design material — a first-class Restriction Engine consumed by Compose, Views, and Experimental kit hosts. Programs tighten policy without forking components.
Vehicle state
Driving · 48 km/h
Policy
Limit string · No keyboard
Outcome
Browse substituted
Illustrative restriction path — widgets query policy; they do not hardcode OEM if/else trees.
01
Motion and distraction gating while the vehicle is in motion. Restricted flows get honest substitutes — not disabled clutter.
02
Touch targets, density, contrast, and day/night profiles that both UI stacks honor from the same policy.
03
Typography and layout budgets so primary values arrive in under a second without scanning the whole screen.
04
Deterministic affordances and fail-safe presentation when vehicle signals are missing — never invented values.
Restriction Engine
Widgets declare an interaction and ask the engine. Single-tap controls stay available at speed — defrost is never blocked — while multi-step tasks fail closed. On AAOS, an adapter maps CarUxRestrictions into these states; if the car service is missing, the state is unknown and treated as Restricted.
| Task | Parked | Idling | Moving | Restricted |
|---|---|---|---|---|
| Single-tap climate and bodyTemp step, fan, seat heat, defrost, lock, lights, drive mode | Allow | Allow | Allow | Allow |
| Media transportPlay, pause, skip | Allow | Allow | Allow | Allow |
| Multi-step setupClimate zones and schedules, windows, mirrors, seat position | Allow | Allow | Block | Block |
| Media source and browseSource picker, seek, queue | Allow | Substitute | Block | Block |
| Keyboard and filteringText entry, sort, filter | Allow | Block | Block | Block |
| Parked-only contentVideo, lyrics, long-form setup | Allow | Block | Block | Block |
Default policy. Programs can tighten it without forking widgets. Unknown vehicle state uses the Restricted column.