/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | DataSourceContractTest.java | 36 import com.google.android.exoplayer2.upstream.DataSource; 58 * A collection of contract tests for {@link DataSource} implementations. 60 * <p>Subclasses should only include the logic necessary to construct the DataSource and allow it to 74 /** Creates and returns an instance of the {@link DataSource}. */ 75 protected abstract DataSource createDataSource() throws Exception; in createDataSource() 78 * Returns the {@link DataSource} that will be included in the {@link TransferListener} callbacks 79 * for the {@link DataSource} most recently created by {@link #createDataSource()}. If it's the 80 * same {@link DataSource} then {@code null} can be returned. 83 protected DataSource getTransferListenerDataSource() { in getTransferListenerDataSource() 88 * Returns whether the {@link DataSource} will continue reading indefinitely for unbounded {@link [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | DataSourceContractTest.java | 36 import com.google.android.exoplayer2.upstream.DataSource; 58 * A collection of contract tests for {@link DataSource} implementations. 60 * <p>Subclasses should only include the logic necessary to construct the DataSource and allow it to 74 /** Creates and returns an instance of the {@link DataSource}. */ 75 protected abstract DataSource createDataSource() throws Exception; in createDataSource() 78 * Returns the {@link DataSource} that will be included in the {@link TransferListener} callbacks 79 * for the {@link DataSource} most recently created by {@link #createDataSource()}. If it's the 80 * same {@link DataSource} then {@code null} can be returned. 83 protected DataSource getTransferListenerDataSource() { in getTransferListenerDataSource() 88 * Returns whether the {@link DataSource} will continue reading indefinitely for unbounded {@link [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/test/java/com/google/android/exoplayer2/testutil/ |
D | FakeDataSourceTest.java | 57 FakeDataSource dataSource = new FakeDataSource(fakeDataSet); in testReadFull() local 58 assertThat(dataSource.open(new DataSpec(uri))).isEqualTo(15); in testReadFull() 59 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(10); in testReadFull() 61 assertThat(dataSource.read(BUFFER, 10, BUFFER.length)).isEqualTo(5); in testReadFull() 63 assertThat(dataSource.read(BUFFER, 15, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadFull() 65 assertThat(dataSource.read(BUFFER, 20, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadFull() 66 dataSource.close(); in testReadFull() 71 FakeDataSource dataSource = new FakeDataSource(fakeDataSet); in testReadPartialOpenEnded() local 72 assertThat(dataSource.open(new DataSpec(uri, 7, C.LENGTH_UNSET))).isEqualTo(8); in testReadPartialOpenEnded() 73 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(3); in testReadPartialOpenEnded() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/test/java/com/google/android/exoplayer2/testutil/ |
D | FakeDataSourceTest.java | 57 FakeDataSource dataSource = new FakeDataSource(fakeDataSet); in testReadFull() local 58 assertThat(dataSource.open(new DataSpec(uri))).isEqualTo(15); in testReadFull() 59 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(10); in testReadFull() 61 assertThat(dataSource.read(BUFFER, 10, BUFFER.length)).isEqualTo(5); in testReadFull() 63 assertThat(dataSource.read(BUFFER, 15, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadFull() 65 assertThat(dataSource.read(BUFFER, 20, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadFull() 66 dataSource.close(); in testReadFull() 71 FakeDataSource dataSource = new FakeDataSource(fakeDataSet); in testReadPartialOpenEnded() local 72 assertThat(dataSource.open(new DataSpec(uri, 7, C.LENGTH_UNSET))).isEqualTo(8); in testReadPartialOpenEnded() 73 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(3); in testReadPartialOpenEnded() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
D | DefaultDataSource.java | 32 * A {@link DataSource} that supports multiple URI schemes. The supported schemes are: 53 * #DefaultDataSource(Context, DataSource)}. 56 public final class DefaultDataSource implements DataSource { 58 /** {@link DataSource.Factory} for {@link DefaultDataSource} instances. */ 59 public static final class Factory implements DataSource.Factory { 62 private final DataSource.Factory baseDataSourceFactory; 78 * @param baseDataSourceFactory The {@link DataSource.Factory} to be used to create base {@link 79 * DataSource DataSources} for {@link DefaultDataSource} instances. The base {@link 80 * DataSource} is normally an {@link HttpDataSource}, and is responsible for fetching data 84 public Factory(Context context, DataSource.Factory baseDataSourceFactory) { in Factory() [all …]
|
D | DataSourceUtil.java | 23 /** Utility methods for {@link DataSource}. */ 29 * Reads data from the specified opened {@link DataSource} until it ends, and returns a byte array 32 * @param dataSource The source from which to read. 36 public static byte[] readToEnd(DataSource dataSource) throws IOException { in readToEnd() argument 44 bytesRead = dataSource.read(data, position, data.length - position); in readToEnd() 53 * Reads {@code length} bytes from the specified opened {@link DataSource}, and returns a byte 56 * @param dataSource The source from which to read. 62 public static byte[] readExactly(DataSource dataSource, int length) throws IOException { in readExactly() argument 66 int bytesRead = dataSource.read(data, position, data.length - position); in readExactly() 77 * Closes a {@link DataSource}, suppressing any {@link IOException} that may occur. [all …]
|
D | DataSourceInputStream.java | 24 * Allows data corresponding to a given {@link DataSpec} to be read from a {@link DataSource} and 29 private final DataSource dataSource; field in DataSourceInputStream 38 * @param dataSource The {@link DataSource} from which the data should be read. 39 * @param dataSpec The {@link DataSpec} defining the data to be read from {@code dataSource}. 41 public DataSourceInputStream(DataSource dataSource, DataSpec dataSpec) { in DataSourceInputStream() argument 42 this.dataSource = dataSource; in DataSourceInputStream() 53 * Optional call to open the underlying {@link DataSource}. 55 * <p>Calling this method does nothing if the {@link DataSource} is already open. Calling this 57 * {@link DataSource} if it's not open already. 59 * @throws IOException If an error occurs opening the {@link DataSource}. [all …]
|
D | StatsDataSource.java | 28 * {@link DataSource} wrapper which keeps track of bytes transferred, redirected uris, and response 31 public final class StatsDataSource implements DataSource { 33 private final DataSource dataSource; field in StatsDataSource 42 * @param dataSource The wrapped {@link DataSource}. 44 public StatsDataSource(DataSource dataSource) { in StatsDataSource() argument 45 this.dataSource = Assertions.checkNotNull(dataSource); in StatsDataSource() 76 dataSource.addTransferListener(transferListener); in addTransferListener() 81 // Reassign defaults in case dataSource.open throws an exception. in open() 84 long availableBytes = dataSource.open(dataSpec); in open() 92 int bytesRead = dataSource.read(buffer, offset, length); in read() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
D | DefaultDataSource.java | 32 * A {@link DataSource} that supports multiple URI schemes. The supported schemes are: 53 * #DefaultDataSource(Context, DataSource)}. 56 public final class DefaultDataSource implements DataSource { 58 /** {@link DataSource.Factory} for {@link DefaultDataSource} instances. */ 59 public static final class Factory implements DataSource.Factory { 62 private final DataSource.Factory baseDataSourceFactory; 78 * @param baseDataSourceFactory The {@link DataSource.Factory} to be used to create base {@link 79 * DataSource DataSources} for {@link DefaultDataSource} instances. The base {@link 80 * DataSource} is normally an {@link HttpDataSource}, and is responsible for fetching data 84 public Factory(Context context, DataSource.Factory baseDataSourceFactory) { in Factory() [all …]
|
D | DataSourceUtil.java | 23 /** Utility methods for {@link DataSource}. */ 29 * Reads data from the specified opened {@link DataSource} until it ends, and returns a byte array 32 * @param dataSource The source from which to read. 36 public static byte[] readToEnd(DataSource dataSource) throws IOException { in readToEnd() argument 44 bytesRead = dataSource.read(data, position, data.length - position); in readToEnd() 53 * Reads {@code length} bytes from the specified opened {@link DataSource}, and returns a byte 56 * @param dataSource The source from which to read. 62 public static byte[] readExactly(DataSource dataSource, int length) throws IOException { in readExactly() argument 66 int bytesRead = dataSource.read(data, position, data.length - position); in readExactly() 77 * Closes a {@link DataSource}, suppressing any {@link IOException} that may occur. [all …]
|
D | DataSourceInputStream.java | 24 * Allows data corresponding to a given {@link DataSpec} to be read from a {@link DataSource} and 29 private final DataSource dataSource; field in DataSourceInputStream 38 * @param dataSource The {@link DataSource} from which the data should be read. 39 * @param dataSpec The {@link DataSpec} defining the data to be read from {@code dataSource}. 41 public DataSourceInputStream(DataSource dataSource, DataSpec dataSpec) { in DataSourceInputStream() argument 42 this.dataSource = dataSource; in DataSourceInputStream() 53 * Optional call to open the underlying {@link DataSource}. 55 * <p>Calling this method does nothing if the {@link DataSource} is already open. Calling this 57 * {@link DataSource} if it's not open already. 59 * @throws IOException If an error occurs opening the {@link DataSource}. [all …]
|
D | StatsDataSource.java | 28 * {@link DataSource} wrapper which keeps track of bytes transferred, redirected uris, and response 31 public final class StatsDataSource implements DataSource { 33 private final DataSource dataSource; field in StatsDataSource 42 * @param dataSource The wrapped {@link DataSource}. 44 public StatsDataSource(DataSource dataSource) { in StatsDataSource() argument 45 this.dataSource = Assertions.checkNotNull(dataSource); in StatsDataSource() 76 dataSource.addTransferListener(transferListener); in addTransferListener() 81 // Reassign defaults in case dataSource.open throws an exception. in open() 84 long availableBytes = dataSource.open(dataSpec); in open() 92 int bytesRead = dataSource.read(buffer, offset, length); in read() [all …]
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/util/ |
D | DataSource.java | 20 public class DataSource { class 21 private String dataSource; field in DataSource 44 private DataSource(String dataSource) { in DataSource() argument 45 this.dataSource = dataSource; in DataSource() 48 public static DataSource toDataSource(String path) { in toDataSource() 49 return new DataSource(path); in toDataSource() 52 public static DataSource toDataSource(Context context, Uri uri) { in toDataSource() 56 public static DataSource toDataSource(Context context, Uri uri, Map<String, String> headers) { in toDataSource() 60 public static DataSource toDataSource( in toDataSource() 65 public static DataSource toDataSource(String uri, Map<String, String> headers) { in toDataSource() [all …]
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMediaMetadataRetriever.java | 6 import static org.robolectric.shadows.util.DataSource.toDataSource; 19 import org.robolectric.shadows.util.DataSource; 23 private DataSource dataSource; field in ShadowMediaMetadataRetriever 24 private static final Map<DataSource, Map<Integer, String>> metadata = new HashMap<>(); 25 private static final Map<DataSource, Map<Long, Bitmap>> frames = new HashMap<>(); 26 private static final Map<DataSource, Map<String, Bitmap>> scaledFrames = new HashMap<>(); 27 private static final Map<DataSource, RuntimeException> exceptions = new HashMap<>(); 29 public void setDataSource(DataSource dataSource) { in setDataSource() argument 30 RuntimeException e = exceptions.get(dataSource); in setDataSource() 35 this.dataSource = dataSource; in setDataSource() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.Tools/build/_protobuf/ |
D | Protobuf.CSharp.xml | 17 <Rule.DataSource> 18 <DataSource Persistence="ProjectFile" Label="Configuration" ItemType="Protobuf" 20 </Rule.DataSource> 33 <StringProperty.DataSource> 34 <DataSource Persistence="Intrinsic" ItemType="Protobuf" 36 </StringProperty.DataSource> 44 <StringProperty.DataSource> 45 <DataSource Persistence="Intrinsic" ItemType="Protobuf" 47 </StringProperty.DataSource> 55 <StringProperty.DataSource> [all …]
|
/external/google-cloud-java/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ |
D | DataSourceName.java | 41 private final String dataSource; field in DataSourceName 47 dataSource = null; in DataSourceName() 53 dataSource = Preconditions.checkNotNull(builder.getDataSource()); in DataSourceName() 61 dataSource = Preconditions.checkNotNull(builder.getDataSource()); in DataSourceName() 70 return dataSource; in getDataSource() 95 public static DataSourceName of(String project, String dataSource) { in of() argument 96 return newBuilder().setProject(project).setDataSource(dataSource).build(); in of() 100 public static DataSourceName ofProjectDataSourceName(String project, String dataSource) { in ofProjectDataSourceName() argument 101 return newBuilder().setProject(project).setDataSource(dataSource).build(); in ofProjectDataSourceName() 106 String project, String location, String dataSource) { in ofProjectLocationDataSourceName() argument [all …]
|
D | ProjectDataSourceName.java | 41 private final String dataSource; field in ProjectDataSourceName 48 return dataSource; in getDataSource() 61 dataSource = Preconditions.checkNotNull(builder.getDataSource()); in ProjectDataSourceName() 64 public static ProjectDataSourceName of(String project, String dataSource) { in of() argument 65 return newBuilder().setProject(project).setDataSource(dataSource).build(); in of() 68 public static String format(String project, String dataSource) { in format() argument 69 return newBuilder().setProject(project).setDataSource(dataSource).build().toString(); in format() 112 fieldMapBuilder.put("dataSource", dataSource); in getFieldValuesMap() 126 return PATH_TEMPLATE.instantiate("project", project, "data_source", dataSource); in toString() 133 private String dataSource; field in ProjectDataSourceName.Builder [all …]
|
D | LocationDataSourceName.java | 43 private final String dataSource; field in LocationDataSourceName 54 return dataSource; in getDataSource() 68 dataSource = Preconditions.checkNotNull(builder.getDataSource()); in LocationDataSourceName() 71 public static LocationDataSourceName of(String project, String location, String dataSource) { in of() argument 72 return newBuilder().setProject(project).setLocation(location).setDataSource(dataSource).build(); in of() 75 public static String format(String project, String location, String dataSource) { in format() argument 79 .setDataSource(dataSource) in format() 125 fieldMapBuilder.put("dataSource", dataSource); in getFieldValuesMap() 140 "project", project, "location", location, "data_source", dataSource); in toString() 148 private String dataSource; field in LocationDataSourceName.Builder [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | ParsingLoadable.java | 56 * @param dataSource The {@link DataSource} through which the object should be read. 63 public static <T> T load(DataSource dataSource, Parser<? extends T> parser, Uri uri, int type) in load() argument 65 ParsingLoadable<T> loadable = new ParsingLoadable<>(dataSource, uri, type, parser); in load() 73 * @param dataSource The {@link DataSource} through which the object should be read. 81 DataSource dataSource, Parser<? extends T> parser, DataSpec dataSpec, int type) in load() argument 83 ParsingLoadable<T> loadable = new ParsingLoadable<>(dataSource, dataSpec, type, parser); in load() 98 private final StatsDataSource dataSource; field in ParsingLoadable 104 * @param dataSource A {@link DataSource} to use when loading the data. 109 public ParsingLoadable(DataSource dataSource, Uri uri, int type, Parser<? extends T> parser) { in ParsingLoadable() argument 111 dataSource, in ParsingLoadable() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | ParsingLoadable.java | 56 * @param dataSource The {@link DataSource} through which the object should be read. 63 public static <T> T load(DataSource dataSource, Parser<? extends T> parser, Uri uri, int type) in load() argument 65 ParsingLoadable<T> loadable = new ParsingLoadable<>(dataSource, uri, type, parser); in load() 73 * @param dataSource The {@link DataSource} through which the object should be read. 81 DataSource dataSource, Parser<? extends T> parser, DataSpec dataSpec, int type) in load() argument 83 ParsingLoadable<T> loadable = new ParsingLoadable<>(dataSource, dataSpec, type, parser); in load() 98 private final StatsDataSource dataSource; field in ParsingLoadable 104 * @param dataSource A {@link DataSource} to use when loading the data. 109 public ParsingLoadable(DataSource dataSource, Uri uri, int type, Parser<? extends T> parser) { in ParsingLoadable() argument 111 dataSource, in ParsingLoadable() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/ |
D | DashUtil.java | 34 import com.google.android.exoplayer2.upstream.DataSource; 85 * @param dataSource The {@link DataSource} from which the manifest should be read. 90 public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { in loadManifest() argument 91 return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); in loadManifest() 97 * @param dataSource The {@link DataSource} from which data should be loaded. 103 public static Format loadFormatWithDrmInitData(DataSource dataSource, Period period) in loadFormatWithDrmInitData() argument 116 Format sampleFormat = DashUtil.loadSampleFormat(dataSource, primaryTrackType, representation); in loadFormatWithDrmInitData() 125 * @param dataSource The source from which the data should be loaded. 136 DataSource dataSource, int trackType, Representation representation, int baseUrlIndex) in loadSampleFormat() argument 144 chunkExtractor, dataSource, representation, baseUrlIndex, /* loadIndex= */ false); in loadSampleFormat() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/ |
D | DashUtil.java | 34 import com.google.android.exoplayer2.upstream.DataSource; 86 * @param dataSource The {@link HttpDataSource} from which the manifest should be read. 91 public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { in loadManifest() argument 92 return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); in loadManifest() 98 * @param dataSource The {@link HttpDataSource} from which data should be loaded. 104 public static Format loadFormatWithDrmInitData(DataSource dataSource, Period period) in loadFormatWithDrmInitData() argument 117 Format sampleFormat = DashUtil.loadSampleFormat(dataSource, primaryTrackType, representation); in loadFormatWithDrmInitData() 126 * @param dataSource The source from which the data should be loaded. 137 DataSource dataSource, int trackType, Representation representation, int baseUrlIndex) in loadSampleFormat() argument 145 chunkExtractor, dataSource, representation, baseUrlIndex, /* loadIndex= */ false); in loadSampleFormat() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue10/ |
D | BasicDumpTest.java | 25 DataSource base = new DataSource(); in testTag() 29 ArrayList<DataSource> dataSources = new ArrayList<DataSource>(); in testTag() 44 Iterator<DataSource> iter = dsOut.getDataSources().iterator(); in testTag() 45 assertFalse("Must be DataSource.", iter.next() instanceof JDBCDataSource); in testTag() 50 DataSource base = new DataSource(); in testTag2() 54 ArrayList<DataSource> dataSources = new ArrayList<DataSource>(); in testTag2() 72 DataSource base = new DataSource(); in testTag3() 76 ArrayList<DataSource> dataSources = new ArrayList<DataSource>(); in testTag3() 91 Iterator<DataSource> iter = bean.getDataSources().iterator(); in testTag3() 93 assertFalse("Must be DataSource.", iter.next() instanceof JDBCDataSource); in testTag3()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SingleSampleMediaPeriod.java | 26 import com.google.android.exoplayer2.upstream.DataSource; 56 private final DataSource.Factory dataSourceFactory; 75 DataSource.Factory dataSourceFactory, in SingleSampleMediaPeriod() 151 DataSource dataSource = dataSourceFactory.createDataSource(); in continueLoading() local 153 dataSource.addTransferListener(transferListener); in continueLoading() 155 SourceLoadable loadable = new SourceLoadable(dataSpec, dataSource); in continueLoading() 211 sampleSize = (int) loadable.dataSource.getBytesRead(); in onLoadCompleted() 214 StatsDataSource dataSource = loadable.dataSource; in onLoadCompleted() local 219 dataSource.getLastOpenedUri(), in onLoadCompleted() 220 dataSource.getLastResponseHeaders(), in onLoadCompleted() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SingleSampleMediaPeriod.java | 26 import com.google.android.exoplayer2.upstream.DataSource; 56 private final DataSource.Factory dataSourceFactory; 75 DataSource.Factory dataSourceFactory, in SingleSampleMediaPeriod() 151 DataSource dataSource = dataSourceFactory.createDataSource(); in continueLoading() local 153 dataSource.addTransferListener(transferListener); in continueLoading() 155 SourceLoadable loadable = new SourceLoadable(dataSpec, dataSource); in continueLoading() 211 sampleSize = (int) loadable.dataSource.getBytesRead(); in onLoadCompleted() 214 StatsDataSource dataSource = loadable.dataSource; in onLoadCompleted() local 219 dataSource.getLastOpenedUri(), in onLoadCompleted() 220 dataSource.getLastResponseHeaders(), in onLoadCompleted() [all …]
|