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 |
|
final @NonNull PerceivedResolutionResult |
Configures the perceived resolution of the entity, to be retrieved by |
final @NonNull Surface |
The |
int |
hashCode() |
final void |
Configures the perceived resolution of the entity, to be retrieved by |
final void |
setSurface(@NonNull Surface value)The |
Public methods
getPerceivedResolutionResult
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
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.
setPerceivedResolutionResult
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
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.