Searched refs:asset_dir (Results 1 – 3 of 3) sorted by relevance
567 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F() local568 ASSERT_THAT(asset_dir, NotNull()); in TEST_F()569 ASSERT_THAT(asset_dir->getFileCount(), Eq(2u)); in TEST_F()571 EXPECT_THAT(asset_dir->getFileName(0), Eq(String8("file.txt"))); in TEST_F()572 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()574 EXPECT_THAT(asset_dir->getFileName(1), Eq(String8("subdir"))); in TEST_F()575 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeDirectory)); in TEST_F()577 asset_dir = assetmanager.OpenDir("subdir"); in TEST_F()578 ASSERT_THAT(asset_dir, NotNull()); in TEST_F()579 ASSERT_THAT(asset_dir->getFileCount(), Eq(1u)); in TEST_F()[all …]
569 std::unique_ptr<AssetDir> asset_dir = in NativeList() local571 if (asset_dir == nullptr) { in NativeList()576 const size_t file_count = asset_dir->getFileCount(); in NativeList()584 jstring java_string = env->NewStringUTF(asset_dir->getFileName(i).string()); in NativeList()
330 std::unique_ptr<AssetDir> asset_dir = util::make_unique<AssetDir>(); in OpenDir() local331 asset_dir->setFileList(files.release()); in OpenDir()332 return asset_dir; in OpenDir()