Searched refs:dataSource (Results 1 - 25 of 63) sorted by relevance

123

/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/
H A DLimitOffsetDataSourceTest.java55 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc();
56 assertThat(dataSource.countItems(), is(0));
62 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc();
63 assertThat(dataSource.countItems(), is(6));
69 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc();
70 assertThat(dataSource.countItems(), is(1));
71 List<User> initial = dataSource.loadRange(0, 10);
74 assertFalse(dataSource.loadRange(1, 10).iterator().hasNext());
80 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc();
81 assertThat(dataSource
[all...]
/frameworks/support/paging/common/src/test/java/androidx/paging/
H A DItemKeyedDataSourceTest.kt37 private fun loadInitial(dataSource: ItemDataSource, key: Key?, initialLoadSize: Int,
45 dataSource.dispatchLoadInitial(key, initialLoadSize,
56 val dataSource = ItemDataSource()
57 val result = loadInitial(dataSource, dataSource.getKey(ITEMS_BY_NAME_ID[49]), 10, true)
66 val dataSource = ItemDataSource(items = ITEMS_BY_NAME_ID.subList(0, 1))
69 val result = loadInitial(dataSource, dataSource.getKey(ITEMS_BY_NAME_ID[0]), 20, true)
78 val dataSource = ItemDataSource()
81 val key = dataSource
[all...]
H A DTiledPagedListTest.kt75 assertTrue(pagedList.dataSource is ListDataSource<Item>)
78 assertSame(pagedList.dataSource,
79 (pagedList.snapshot() as SnapshotPagedList<Item>).dataSource)
126 val dataSource = AsyncListDataSource(ITEMS)
128 dataSource, mMainThread, mBackgroundThread, null,
134 dataSource.flush()
146 val dataSource = AsyncListDataSource(ITEMS)
148 dataSource, mMainThread, mBackgroundThread, null,
157 dataSource.flush()
H A DPositionalDataSourceTest.kt94 val dataSource: PositionalDataSource<Int> = ListDataSource((0..99).toList())
96 val pagedList = ContiguousPagedList(dataSource.wrapAsContiguousWithoutPlaceholders(),
119 val dataSource = object : PositionalDataSource<String>() {
140 TiledPagedList(dataSource, FailExecutor(), FailExecutor(), null, config, 0)
142 ContiguousPagedList(dataSource.wrapAsContiguousWithoutPlaceholders(),
/frameworks/av/media/ndk/
H A DNdkMediaDataSource.cpp46 NdkDataSource::NdkDataSource(AMediaDataSource *dataSource) argument
48 AMediaDataSource_setReadAt(mDataSource, dataSource->readAt);
49 AMediaDataSource_setGetSize(mDataSource, dataSource->getSize);
50 AMediaDataSource_setClose(mDataSource, dataSource->close);
51 AMediaDataSource_setUserdata(mDataSource, dataSource->userdata);
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DPagedList.java160 * @param dataSource DataSource providing data to the PagedList
173 private static <K, T> PagedList<T> create(@NonNull DataSource<K, T> dataSource, argument
179 if (dataSource.isContiguous() || !config.enablePlaceholders) {
181 if (!dataSource.isContiguous()) {
183 dataSource = (DataSource<K, T>) ((PositionalDataSource<T>) dataSource)
189 ContiguousDataSource<K, T> contigDataSource = (ContiguousDataSource<K, T>) dataSource;
198 return new TiledPagedList<>((PositionalDataSource<T>) dataSource,
235 * @param dataSource DataSource the PagedList will load from.
238 public Builder(@NonNull DataSource<Key, Value> dataSource, argument
263 Builder(@onNull DataSource<Key, Value> dataSource, int pageSize) argument
[all...]
H A DPageKeyedDataSource.java249 LoadInitialCallbackImpl(@NonNull PageKeyedDataSource<Key, Value> dataSource, argument
252 dataSource, PageResult.INIT, null, receiver);
253 mDataSource = dataSource;
289 LoadCallbackImpl(@NonNull PageKeyedDataSource<Key, Value> dataSource, argument
293 dataSource, type, mainThreadExecutor, receiver);
294 mDataSource = dataSource;
H A DItemKeyedDataSource.java190 LoadInitialCallbackImpl(@NonNull ItemKeyedDataSource dataSource, boolean countingEnabled, argument
192 mCallbackHelper = new LoadCallbackHelper<>(dataSource, PageResult.INIT, null, receiver);
222 LoadCallbackImpl(@NonNull ItemKeyedDataSource dataSource, @PageResult.ResultType int type, argument
226 dataSource, type, mainThreadExecutor, receiver);
H A DTiledPagedList.java76 TiledPagedList(@NonNull PositionalDataSource<T> dataSource, argument
84 mDataSource = dataSource;
H A DPositionalDataSource.java205 LoadInitialCallbackImpl(@NonNull PositionalDataSource dataSource, boolean countingEnabled, argument
207 mCallbackHelper = new LoadCallbackHelper<>(dataSource, PageResult.INIT, null, receiver);
261 LoadRangeCallbackImpl(@NonNull PositionalDataSource dataSource, argument
265 dataSource, resultType, mainThreadExecutor, receiver);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DSsidSetStoreData.java72 * @param dataSource The DataSource that implements the update and retrieval of the SSID set.
74 SsidSetStoreData(String name, DataSource dataSource) { argument
76 mDataSource = dataSource;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DPasspointObjectFactory.java68 * @param dataSource Passpoint configuration data source
72 SIMAccessor simAccessor, PasspointConfigStoreData.DataSource dataSource) {
73 return new PasspointConfigStoreData(keyStore, simAccessor, dataSource);
71 makePasspointConfigStoreData(WifiKeyStore keyStore, SIMAccessor simAccessor, PasspointConfigStoreData.DataSource dataSource) argument
/frameworks/base/libs/hwui/
H A DPropertyValuesHolder.h68 void setPropertyDataSource(T* dataSource, int length) { argument
69 mDataSource.insert(mDataSource.begin(), dataSource, dataSource + length);
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp189 sp<DataSource> dataSource; local
199 dataSource = DataSourceFactory::CreateFromURI(
201 if (dataSource == NULL) {
218 dataSource = new FileSource(fd, mDataLocator.fdi.offset, mDataLocator.fdi.length);
219 status_t err = dataSource->initCheck();
235 sp<IMediaExtractor> extractor = MediaExtractorFactory::Create(dataSource);
283 if (dataSource->getSize(&size) == OK
325 mDataSource = dataSource;
/frameworks/av/include/media/
H A DIMediaMetadataRetriever.h44 const sp<IDataSource>& dataSource, const char *mime) = 0;
H A Dmediametadataretriever.h89 const sp<IDataSource>& dataSource, const char *mime = NULL);
/frameworks/av/media/extractors/midi/
H A DMidiExtractor.cpp145 MidiEngine::MidiEngine(DataSourceBase *dataSource, argument
153 mIoWrapper = new MidiIoWrapper(dataSource);
265 DataSourceBase *dataSource)
266 : mDataSource(dataSource),
264 MidiExtractor( DataSourceBase *dataSource) argument
H A DMidiExtractor.h33 explicit MidiEngine(DataSourceBase *dataSource,
/frameworks/av/media/libmedia/include/media/
H A DIMediaMetadataRetriever.h44 const sp<IDataSource>& dataSource, const char *mime) = 0;
H A Dmediametadataretriever.h89 const sp<IDataSource>& dataSource, const char *mime = NULL);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
H A DQueryTransactionTest.java217 public void dataSource() { method in class:QueryTransactionTest
222 LimitOffsetDataSource<Entity1> dataSource =
223 (LimitOffsetDataSource<Entity1>) mDao.dataSource();
224 dataSource.loadRange(0, 10);
360 PositionalDataSource<Entity1> dataSource(); method in interface:QueryTransactionTest.Entity1Dao
402 PositionalDataSource<Entity1> dataSource(); method in interface:QueryTransactionTest.EntityDao
445 PositionalDataSource<Entity1> dataSource(); method in interface:QueryTransactionTest.TransactionDao
/frameworks/av/media/extractors/flac/
H A DFLACExtractor.cpp44 DataSourceBase *dataSource,
80 DataSourceBase *dataSource,
488 DataSourceBase *dataSource,
491 : mDataSource(dataSource),
709 DataSourceBase *dataSource,
711 : mDataSource(dataSource),
790 DataSourceBase *dataSource)
791 : mDataSource(dataSource),
487 FLACParser( DataSourceBase *dataSource, MetaDataBase *fileMetadata, MetaDataBase *trackMetadata) argument
708 FLACSource( DataSourceBase *dataSource, MetaDataBase &trackMetadata) argument
789 FLACExtractor( DataSourceBase *dataSource) argument
/frameworks/base/core/java/android/widget/
H A DVideoView2.java331 * @param dataSource the {@link DataSourceDesc} object to play.
334 public void setDataSource(@NonNull DataSourceDesc dataSource) { argument
335 mProvider.setDataSource_impl(dataSource);
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
H A DVideoView2Impl.java191 * @param dataSource the {@link DataSourceDesc} object to play.
194 void setDataSource(@NonNull DataSourceDesc dataSource); argument
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/
H A DTypeAdapterStoreTest.kt279 val dataSource = invocation.processingEnv.elementUtils
281 assertThat(dataSource, notNullValue())
283 MoreTypes.asDeclared(dataSource.asType())), `is`(true))
291 val dataSource = invocation.processingEnv.elementUtils
293 assertThat(dataSource, notNullValue())
295 MoreTypes.asDeclared(dataSource.asType())), `is`(true))

Completed in 1951 milliseconds

123