Home
last modified time | relevance | path

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

12

/frameworks/base/tools/validatekeymaps/
DMain.cpp43 enum class FileType { enum
78 static FileType getFileType(const char* filename) { in getFileType()
82 return FileType::KEY_LAYOUT; in getFileType()
85 return FileType::KEY_CHARACTER_MAP; in getFileType()
88 return FileType::INPUT_DEVICE_CONFIGURATION; in getFileType()
93 return FileType::VIRTUAL_KEY_DEFINITION; in getFileType()
96 return FileType::UNKNOWN; in getFileType()
132 FileType fileType = getFileType(filename); in validateFile()
134 case FileType::UNKNOWN: in validateFile()
138 case FileType::KEY_LAYOUT: { in validateFile()
[all …]
/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.h46 enum class FileType { enum
58 FileType GetFileType(const std::string& path);
118 bool operator()(const std::string& filename, FileType type) const;
/frameworks/base/libs/androidfw/include/androidfw/
Dmisc.h31 typedef enum FileType { enum
41 } FileType; typedef
43 FileType getFileType(const char* fileName);
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
DAssetsProvider.h49 const std::function<void(const StringPiece&, FileType)>& f) const = 0;
93 const std::function<void(const StringPiece&, FileType)>& f) const override;
135 const std::function<void(const StringPiece&, FileType)>& f) const override;
160 const std::function<void(const StringPiece&, FileType)>& f) const override;
187 const std::function<void(const StringPiece&, FileType)>& f) const override;
DAssetManager.h188 FileType getFileType(const char* fileName);
224 FileType type;
/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/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'),
66 type=argparse.FileType('r'),
75 type=argparse.FileType('r'),
80 type=argparse.FileType('w'),
DdomainGeneratorPolicy.py59 type=argparse.FileType('r'),
69 type=argparse.FileType('r'),
87 type=argparse.FileType('r'),
DbuildCommonTypesStructureFile.py34 type=argparse.FileType('r'),
39 type=argparse.FileType('r'),
44 type=argparse.FileType('w'),
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/protos/
DDeviceFiles.proto29 enum FileType { enum
37 optional FileType type = 1;
/frameworks/av/drm/mediadrm/plugins/clearkey/common/protos/
DDeviceFiles.proto34 enum FileType { enum
42 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.cpp87 if (file::GetFileType(prefix_path) != file::FileType::kDirectory in Create()
103 if (file::GetFileType(full_path) == file::FileType::kDirectory in Create()
/frameworks/base/libs/androidfw/
Dmisc.cpp36 FileType getFileType(const char* fileName) in getFileType()
DAssetsProvider.cpp214 const std::function<void(const StringPiece&, FileType)>& f) in ForEachFile()
327 const std::function<void(const StringPiece&, FileType)>& /* f */) in ForEachFile()
376 const std::function<void(const StringPiece&, FileType)>& f) in ForEachFile()
415 const std::function<void(const StringPiece&, FileType)>& /* f */) const { in ForEachFile()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp334 const file::FileType file_type = file::GetFileType(input_path); in IsValidFile()
335 if (file_type != file::FileType::kRegular && file_type != file::FileType::kSymlink) { in IsValidFile()
336 if (file_type == file::FileType::kDirectory) { in IsValidFile()
339 } 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/startop/view_compiler/
Dapk_layout_compiler.cc104 android::FileType) { in CompileApkAssetsLayouts() argument
108 android::FileType) { in CompileApkAssetsLayouts() argument
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp695 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
698 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeDirectory)); in TEST_F()
705 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
717 EXPECT_THAT(asset_dir->getFileType(0), Eq(FileType::kFileTypeRegular)); in TEST_F()
720 EXPECT_THAT(asset_dir->getFileType(1), Eq(FileType::kFileTypeRegular)); in TEST_F()
723 EXPECT_THAT(asset_dir->getFileType(2), Eq(FileType::kFileTypeDirectory)); in TEST_F()
/frameworks/base/tools/aapt2/test/
DFixture.cpp56 if (file::GetFileType(full_path) == file::FileType::kDirectory) { in ClearDirectory()
/frameworks/base/tools/aapt/
DAaptAssets.cpp100 FileType type = getFileType(fullPath); in isHidden()
702 FileType type; in slurpFullTree()
971 FileType type; in slurpFromArgs()
995 FileType type = getFileType(assetDirs[i]); in slurpFromArgs()
1067 FileType type = getFileType(assetDir); in slurpFromArgs()
1179 FileType type = getFileType(subdirName.string()); in slurpResourceTree()
DPackage.cpp72 FileType fileType = getFileType(outputFile.string()); in writeAPK()
/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp99 const std::function<void(const StringPiece&, FileType)>& /* f */) const { in ForEachFile()

12