Skip to content

CarLife: follow the head unit's picture size instead of a fixed size - #131

Merged
riko2chen merged 2 commits into
mainfrom
agent/carlife-headunit-size
Nov 30, 2026
Merged

riko2chen merged 2 commits into
mainfrom
agent/carlife-headunit-size

Conversation

@riko2chen

Copy link
Copy Markdown
Contributor

Implements the Android Relay part of bd OpenXPlay-8ek0o. When CarLife is primary, or it is enabled without Browser or CarLink before any head unit reports, the Relay treats a saved fixed display mode as automatic for startup, refit, and view-area planning. This mirrors the iOS effective-mode rule for CarLife and preserves the saved choice.

The display observer receives the same main DisplayInfo instance that TranscodingOutput forwards to the Stream hub. Where receiver bounds apply, CarLife adjusts frameSize before both receive the display, so primary detection can use object identity. The refit gate also handles a mismatched canvas when the receiver matches the remembered screen.

The separate Stream CarLife frameSize fix will be pinned on this branch in a follow-up.

Added focused coverage for mode selection, display identity, and refit. Local verification was limited to source and diff review.

@riko2chen
riko2chen enabled auto-merge November 30, 2026 16:41
@riko2chen
riko2chen disabled auto-merge November 30, 2026 16:42
…request as frameSize

Signed-off-by: Riko <symeonchen@gmail.com>
@riko2chen
riko2chen enabled auto-merge November 30, 2026 16:42
@riko2chen
riko2chen merged commit c78b924 into main Nov 30, 2026
7 checks passed
@riko2chen
riko2chen deleted the agent/carlife-headunit-size branch November 30, 2026 16:48
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant