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.cpp547 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F() local
548 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 …]
/frameworks/base/libs/androidfw/
DAssetManager2.cpp273 std::unique_ptr<AssetDir> asset_dir = util::make_unique<AssetDir>(); in OpenDir() local
274 asset_dir->setFileList(files.release()); in OpenDir()
275 return asset_dir; in OpenDir()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp412 std::unique_ptr<AssetDir> asset_dir = in NativeList() local
414 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()