Skip to content

Fix VtsHalLightTargetTest VTS failures - #10

Merged
akanisetti merged 1 commit into
edge-aosp-bsp:celadon/a15/masterfrom
prashanth-intel:NIACP3-1474-light-vts
Jul 15, 2026
Merged

Fix VtsHalLightTargetTest VTS failures#10
akanisetti merged 1 commit into
edge-aosp-bsp:celadon/a15/masterfrom
prashanth-intel:NIACP3-1474-light-vts

Conversation

@prashanth-intel

Copy link
Copy Markdown

No description provided.

On virtual devices such as CaaS, none of the probed sysfs backlight
paths exist (intel_backlight, acpi_video0, lcd-backlight, leds/lcd-backlight).
The previous Default::default() always registered a BACKLIGHT HwLight regardless,
but then setLightState for that light would fail in write_backlight because
backlight_dev is None.  This violates the ILights HAL contract: every light
returned by getLights() must accept setLightState() successfully, causing
VtsHalLightTargetTest Lights/LightsAidl#TestSupported to fail.

Fix: in Default::default(), call determine_backlight_device() at construction
time and only include the BACKLIGHT entry in the advertised list when a real
sysfs device was found.  On CaaS the list is empty; all six VtsHalLightTargetTest
cases pass trivially (empty iteration) or via correct UNSUPPORTED_OPERATION
for the invalid-ID case.  On physical hardware with a backlight the behaviour
is unchanged.

Tracked-On: NIACP3-1474
Signed-off-by: Suresh, Prashanth <prashanth.suresh@intel.com>
@prashanth-intel
prashanth-intel force-pushed the NIACP3-1474-light-vts branch from 30de0d1 to 239a9b3 Compare July 8, 2026 20:45
@prashanth-intel prashanth-intel changed the title Niacp3 1474 light vts Fix VtsHalLightTargetTest VTS failures Jul 9, 2026
@prashanth-intel
prashanth-intel marked this pull request as ready for review July 9, 2026 15:18
@prashanth-intel
prashanth-intel requested a review from a team July 9, 2026 15:18

@akanisetti akanisetti left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akanisetti
akanisetti merged commit b9ccaba into edge-aosp-bsp:celadon/a15/master Jul 15, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants