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.cpp567 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F() local
568 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 …]
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp569 std::unique_ptr<AssetDir> asset_dir = in NativeList() local
571 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()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp330 std::unique_ptr<AssetDir> asset_dir = util::make_unique<AssetDir>(); in OpenDir() local
331 asset_dir->setFileList(files.release()); in OpenDir()
332 return asset_dir; in OpenDir()