Lines Matching refs:mDataSource
55 : mDataSource(AMediaDataSource_new()) { in NdkDataSource()
56 AMediaDataSource_setReadAt(mDataSource, dataSource->readAt); in NdkDataSource()
57 AMediaDataSource_setGetSize(mDataSource, dataSource->getSize); in NdkDataSource()
58 AMediaDataSource_setClose(mDataSource, dataSource->close); in NdkDataSource()
59 AMediaDataSource_setUserdata(mDataSource, dataSource->userdata); in NdkDataSource()
60 AMediaDataSource_setGetAvailableSize(mDataSource, dataSource->getAvailableSize); in NdkDataSource()
61 mDataSource->mImpl = dataSource->mImpl; in NdkDataSource()
62 mDataSource->mFlags = dataSource->mFlags; in NdkDataSource()
66 AMediaDataSource_delete(mDataSource); in ~NdkDataSource()
74 return mDataSource->mFlags; in flags()
79 if (mDataSource->readAt == NULL || mDataSource->userdata == NULL) { in readAt()
82 return mDataSource->readAt(mDataSource->userdata, offset, data, size); in readAt()
87 if (mDataSource->getSize == NULL || mDataSource->userdata == NULL) { in getSize()
91 *size = mDataSource->getSize(mDataSource->userdata); in getSize()
105 if (mDataSource->close != NULL && mDataSource->userdata != NULL) { in close()
106 mDataSource->close(mDataSource->userdata); in close()
112 if (mDataSource->getAvailableSize != NULL in getAvailableSize()
113 && mDataSource->userdata != NULL in getAvailableSize()
115 size = mDataSource->getAvailableSize(mDataSource->userdata, offset); in getAvailableSize()