public final class

DataSourceContractTest.TestResource.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.test.utils.DataSourceContractTest.TestResource.Builder

Overview

Builder for DataSourceContractTest.TestResource instances.

Summary

Constructors
publicBuilder()

Methods
public DataSourceContractTest.TestResourcebuild()

public DataSourceContractTest.TestResource.BuildersetExpectedBytes(byte[] expectedBytes[])

Sets the expected contents of this resource.

public DataSourceContractTest.TestResource.BuildersetName(java.lang.String name)

Sets a human-readable name for this resource which will be shown in test failure messages.

public DataSourceContractTest.TestResource.BuildersetUri(java.lang.String uri)

Sets the URI where this resource is located.

public DataSourceContractTest.TestResource.BuildersetUri(Uri uri)

Sets the URI where this resource is located.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public DataSourceContractTest.TestResource.Builder setName(java.lang.String name)

Sets a human-readable name for this resource which will be shown in test failure messages.

public DataSourceContractTest.TestResource.Builder setUri(java.lang.String uri)

Sets the URI where this resource is located.

Sets the URI where this resource is located.

public DataSourceContractTest.TestResource.Builder setExpectedBytes(byte[] expectedBytes[])

Sets the expected contents of this resource.

Must be at least 5 bytes.