Home | History | Annotate | Download | only in android

Lines Matching refs:assetDir

22 #include <androidfw/AssetDir.h>
38 AssetDir* mAssetDir;
42 AAssetDir(AssetDir* dir) : mAssetDir(dir), mCurFileIndex(0) { }
123 * AssetDir functionality
126 const char* AAssetDir_getNextFileName(AAssetDir* assetDir)
129 size_t index = assetDir->mCurFileIndex;
130 const size_t max = assetDir->mAssetDir->getFileCount();
135 while ((index < max) && (assetDir->mAssetDir->getFileType(index) != kFileTypeRegular)) {
142 assetDir->mCachedFileName = assetDir->mAssetDir->getFileName(index);
143 returnName = assetDir->mCachedFileName.string();
147 assetDir->mCurFileIndex = index;
151 void AAssetDir_rewind(AAssetDir* assetDir)
153 assetDir->mCurFileIndex = 0;
156 const char* AAssetDir_getFileName(AAssetDir* assetDir, int index)
158 assetDir->mCachedFileName = assetDir->mAssetDir->getFileName(index);
159 return assetDir->mCachedFileName.string();
162 void AAssetDir_close(AAssetDir* assetDir)
164 delete assetDir;