SurfaceEntityTester


public final class SurfaceEntityTester


A test-only accessor for SurfaceEntity that enables direct manipulation and inspection of its internal state.

Summary

Public methods

boolean
equals(Object other)
final @NonNull PerceivedResolutionResult

Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.

final @NonNull Surface

The Surface used by the SurfaceEntity.

int
final void

Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.

final void

The Surface used by the SurfaceEntity.

Public methods

equals

public boolean equals(Object other)

getPerceivedResolutionResult

Added in 1.0.0-alpha16
public final @NonNull PerceivedResolutionResult getPerceivedResolutionResult()

Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.

Note: Unlike the real SurfaceEntity.getPerceivedResolution method, the value returned by this getter is independent of any specific viewpoint or scene pose. It simply returns the last value that was set via this property.

getSurface

Added in 1.0.0-alpha16
public final @NonNull Surface getSurface()

The Surface used by the SurfaceEntity.

Setting this property replaces the current Surface associated with the SurfaceEntity. In this testing implementation, the Surface can be set at any time and can be retrieved by calling SurfaceEntity.getSurface. This allows tests to provide a specific Surface instance (such as one connected to a test-controlled producer) to verify rendering behavior.

hashCode

public int hashCode()

setPerceivedResolutionResult

Added in 1.0.0-alpha16
public final void setPerceivedResolutionResult(@NonNull PerceivedResolutionResult value)

Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.

Note: Unlike the real SurfaceEntity.getPerceivedResolution method, the value returned by this getter is independent of any specific viewpoint or scene pose. It simply returns the last value that was set via this property.

setSurface

Added in 1.0.0-alpha16
public final void setSurface(@NonNull Surface value)

The Surface used by the SurfaceEntity.

Setting this property replaces the current Surface associated with the SurfaceEntity. In this testing implementation, the Surface can be set at any time and can be retrieved by calling SurfaceEntity.getSurface. This allows tests to provide a specific Surface instance (such as one connected to a test-controlled producer) to verify rendering behavior.