Searched refs:asset_dir (Results 1 – 3 of 3) sorted by relevance
547 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F() local548 ASSERT_THAT(asset_dir, NotNull()); in TEST_F()549 ASSERT_THAT(asset_dir->getFileCount(), Eq(2u)); in TEST_F()551 EXPECT_THAT(asset_dir->getFileName(0), Eq(String8("file.txt"))); in TEST_F()552 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()554 EXPECT_THAT(asset_dir->getFileName(1), Eq(String8("subdir"))); in TEST_F()555 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeDirectory)); in TEST_F()557 asset_dir = assetmanager.OpenDir("subdir"); in TEST_F()558 ASSERT_THAT(asset_dir, NotNull()); in TEST_F()559 ASSERT_THAT(asset_dir->getFileCount(), Eq(1u)); in TEST_F()[all …]
273 std::unique_ptr<AssetDir> asset_dir = util::make_unique<AssetDir>(); in OpenDir() local274 asset_dir->setFileList(files.release()); in OpenDir()275 return asset_dir; in OpenDir()
412 std::unique_ptr<AssetDir> asset_dir = in NativeList() local414 if (asset_dir == nullptr) { in NativeList()419 const size_t file_count = asset_dir->getFileCount(); in NativeList()427 jstring java_string = env->NewStringUTF(asset_dir->getFileName(i).string()); in NativeList()