Home
last modified time | relevance | path

Searched refs:FileType (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tools/aapt2/util/
DFiles.cpp50 FileType GetFileType(const std::string& path) { in GetFileType()
53 return FileType::kNonexistant; in GetFileType()
58 return FileType::kNonexistant; in GetFileType()
62 return FileType::kDirectory; in GetFileType()
66 return FileType::kRegular; in GetFileType()
69 FileType GetFileType(const std::string& path) {
75 return FileType::kNonexistant;
77 return FileType::kUnknown;
81 return FileType::kRegular;
83 return FileType::kDirectory;
[all …]
DFiles.h44 enum class FileType { enum
56 FileType GetFileType(const std::string& path);
116 bool operator()(const std::string& filename, FileType type) const;
/frameworks/base/libs/androidfw/include/androidfw/
DAssetDir.h63 FileType getFileType(int idx) { in getFileType()
110 void set(const String8& path, FileType type) { in set()
118 FileType getFileType(void) const { return mFileType; } in getFileType()
119 void setFileType(FileType type) { mFileType = type; } in setFileType()
133 FileType mFileType; // regular, directory, etc
Dmisc.h31 typedef enum FileType { enum
41 } FileType; typedef
43 FileType getFileType(const char* fileName);
DAssetManager.h188 FileType getFileType(const char* fileName);
224 FileType type;
DApkAssets.h52 const std::function<void(const StringPiece&, FileType)>& /* f */) const { in ForEachFile() argument
/frameworks/compile/mclinker/include/mcld/Support/
DFileSystem.h28 enum FileType { enum
52 explicit FileStatus(FileType v) : m_Value(v) {} in FileStatus()
54 void setType(FileType v) { m_Value = v; } in setType()
55 FileType type() const { return m_Value; } in type()
58 FileType m_Value;
/frameworks/base/tools/validatekeymaps/
DMain.cpp32 enum FileType { enum
68 static FileType getFileType(const char* filename) { in getFileType()
92 FileType fileType = getFileType(filename); in validateFile()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildStrategiesStructureFile.py51 type=argparse.FileType('r'),
56 type=argparse.FileType('r'),
61 type=argparse.FileType('w'),
DbuildPolicyCriterionTypes.py56 type=argparse.FileType('r'),
61 type=argparse.FileType('r'),
70 type=argparse.FileType('r'),
75 type=argparse.FileType('w'),
DbuildCommonTypesStructureFile.py34 type=argparse.FileType('r'),
39 type=argparse.FileType('r'),
44 type=argparse.FileType('w'),
DdomainGeneratorPolicy.py59 type=argparse.FileType('r'),
69 type=argparse.FileType('r'),
87 type=argparse.FileType('r'),
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/protos/
DDeviceFiles.proto29 enum FileType { enum
37 optional FileType type = 1;
/frameworks/base/tools/aapt2/format/
DArchive.cpp45 file::FileType type = file::GetFileType(dir_); in Open()
46 if (type == file::FileType::kNonexistant) { in Open()
49 } else if (type != file::FileType::kDirectory) { in Open()
/frameworks/base/tools/aapt2/io/
DFileSystem.cpp88 if (file::GetFileType(prefix_path) != file::FileType::kDirectory in Create()
104 if (file::GetFileType(full_path) == file::FileType::kDirectory in Create()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp340 const file::FileType file_type = file::GetFileType(input_path); in IsValidFile()
341 if (file_type != file::FileType::kRegular && file_type != file::FileType::kSymlink) { in IsValidFile()
342 if (file_type == file::FileType::kDirectory) { in IsValidFile()
345 } else if (file_type == file::FileType::kNonexistant) { in IsValidFile()
793 file::FileType output_file_type = file::GetFileType(options_.output_path); in Action()
794 if (output_file_type == file::FileType::kDirectory) { in Action()
/frameworks/base/libs/androidfw/
Dmisc.cpp36 FileType getFileType(const char* fileName) in getFileType()
DApkAssets.cpp96 const std::function<void(const StringPiece&, FileType)>& f) const override { in ForEachFile()
309 const std::function<void(const StringPiece&, FileType)>& f) const override { in ForEachFile()
DAssetManager.cpp520 FileType AssetManager::getFileType(const char* fileName) in getFileType()
1151 FileType fileType; in scanDirLocked()
/frameworks/base/startop/view_compiler/
Dapk_layout_compiler.cc104 android::FileType) { in CompileApkAssetsLayouts() argument
108 android::FileType) { in CompileApkAssetsLayouts() argument
/frameworks/base/tools/hiddenapi/
Dmerge_csv.py31 default='-', type=argparse.FileType('w'))
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp622 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
625 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeDirectory)); in TEST_F()
632 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
644 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
647 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeRegular)); in TEST_F()
650 EXPECT_THAT(asset_dir->getFileType(2), Eq(FileType::kFileTypeDirectory)); in TEST_F()
/frameworks/base/tools/aapt/
DAaptAssets.cpp100 FileType type = getFileType(fullPath); in isHidden()
704 FileType type; in slurpFullTree()
973 FileType type; in slurpFromArgs()
997 FileType type = getFileType(assetDirs[i]); in slurpFromArgs()
1069 FileType type = getFileType(assetDir); in slurpFromArgs()
1181 FileType type = getFileType(subdirName.string()); in slurpResourceTree()
DPackage.cpp72 FileType fileType = getFileType(outputFile.string()); in writeAPK()
/frameworks/base/tools/aapt2/test/
DFixture.cpp57 if (file::GetFileType(full_path) == file::FileType::kDirectory) { in ClearDirectory()

12