Home
last modified time | relevance | path

Searched refs:asset_dir (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp684 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F() local
685 ASSERT_THAT(asset_dir, NotNull()); in TEST_F()
686 ASSERT_THAT(asset_dir->getFileCount(), Eq(2u)); in TEST_F()
688 EXPECT_THAT(asset_dir->getFileName(0), Eq(String8("file.txt"))); in TEST_F()
689 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
691 EXPECT_THAT(asset_dir->getFileName(1), Eq(String8("subdir"))); in TEST_F()
692 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeDirectory)); in TEST_F()
694 asset_dir = assetmanager.OpenDir("subdir"); in TEST_F()
695 ASSERT_THAT(asset_dir, NotNull()); in TEST_F()
696 ASSERT_THAT(asset_dir->getFileCount(), Eq(1u)); in TEST_F()
[all …]
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp470 std::unique_ptr<AssetDir> asset_dir = in NativeList() local
472 if (asset_dir == nullptr) { in NativeList()
477 const size_t file_count = asset_dir->getFileCount(); in NativeList()
485 jstring java_string = env->NewStringUTF(asset_dir->getFileName(i).c_str()); in NativeList()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp591 std::unique_ptr<AssetDir> asset_dir = util::make_unique<AssetDir>(); in OpenDir() local
592 asset_dir->setFileList(files.release()); in OpenDir()
593 return asset_dir; in OpenDir()