Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Adam Lesinski | 1ab598f | 2015-08-14 14:26:04 -0700 | [diff] [blame] | 17 | #include "util/Files.h" |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 18 | |
| 19 | #include <dirent.h> |
| 20 | #include <sys/stat.h> |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 21 | |
Adam Lesinski | 803c7c8 | 2016-04-06 16:09:43 -0700 | [diff] [blame] | 22 | #include <algorithm> |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 23 | #include <cerrno> |
Adam Lesinski | 1ab598f | 2015-08-14 14:26:04 -0700 | [diff] [blame] | 24 | #include <cstdio> |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 25 | #include <string> |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 26 | |
| 27 | #include "android-base/errors.h" |
| 28 | #include "android-base/file.h" |
| 29 | #include "android-base/logging.h" |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 30 | #include "android-base/unique_fd.h" |
| 31 | #include "android-base/utf8.h" |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 32 | |
| 33 | #include "util/Util.h" |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 34 | |
Elliott Hughes | 9a6ec58 | 2015-08-19 10:38:36 -0700 | [diff] [blame] | 35 | #ifdef _WIN32 |
Adam Lesinski | ca2fc35 | 2015-04-03 12:08:26 -0700 | [diff] [blame] | 36 | // Windows includes. |
Adam Lesinski | 3a725dc | 2017-11-02 16:14:59 -0700 | [diff] [blame] | 37 | #include <windows.h> |
Adam Lesinski | ca2fc35 | 2015-04-03 12:08:26 -0700 | [diff] [blame] | 38 | #endif |
| 39 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 40 | using ::android::FileMap; |
| 41 | using ::android::StringPiece; |
| 42 | using ::android::base::ReadFileToString; |
| 43 | using ::android::base::SystemErrorCodeToString; |
| 44 | using ::android::base::unique_fd; |
Adam Lesinski | d5083f6 | 2017-01-16 15:07:21 -0800 | [diff] [blame] | 45 | |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 46 | namespace aapt { |
Adam Lesinski | 1ab598f | 2015-08-14 14:26:04 -0700 | [diff] [blame] | 47 | namespace file { |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 48 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 49 | #ifdef _WIN32 |
Adam Lesinski | 3a725dc | 2017-11-02 16:14:59 -0700 | [diff] [blame] | 50 | FileType GetFileType(const std::string& path) { |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 51 | std::wstring path_utf16; |
| 52 | if (!::android::base::UTF8PathToWindowsLongPath(path.c_str(), &path_utf16)) { |
| 53 | return FileType::kNonexistant; |
| 54 | } |
| 55 | |
Adam Lesinski | 3a725dc | 2017-11-02 16:14:59 -0700 | [diff] [blame] | 56 | DWORD result = GetFileAttributesW(path_utf16.c_str()); |
| 57 | if (result == INVALID_FILE_ATTRIBUTES) { |
| 58 | return FileType::kNonexistant; |
| 59 | } |
| 60 | |
| 61 | if (result & FILE_ATTRIBUTE_DIRECTORY) { |
| 62 | return FileType::kDirectory; |
| 63 | } |
| 64 | |
| 65 | // Too many types to consider, just let open fail later. |
| 66 | return FileType::kRegular; |
| 67 | } |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 68 | #else |
Adam Lesinski | 3a725dc | 2017-11-02 16:14:59 -0700 | [diff] [blame] | 69 | FileType GetFileType(const std::string& path) { |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 70 | struct stat sb; |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 71 | int result = stat(path.c_str(), &sb); |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 72 | |
| 73 | if (result == -1) { |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 74 | if (errno == ENOENT || errno == ENOTDIR) { |
| 75 | return FileType::kNonexistant; |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 76 | } |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 77 | return FileType::kUnknown; |
| 78 | } |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 79 | |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 80 | if (S_ISREG(sb.st_mode)) { |
| 81 | return FileType::kRegular; |
| 82 | } else if (S_ISDIR(sb.st_mode)) { |
| 83 | return FileType::kDirectory; |
| 84 | } else if (S_ISCHR(sb.st_mode)) { |
| 85 | return FileType::kCharDev; |
| 86 | } else if (S_ISBLK(sb.st_mode)) { |
| 87 | return FileType::kBlockDev; |
| 88 | } else if (S_ISFIFO(sb.st_mode)) { |
| 89 | return FileType::kFifo; |
Adam Lesinski | ca2fc35 | 2015-04-03 12:08:26 -0700 | [diff] [blame] | 90 | #if defined(S_ISLNK) |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 91 | } else if (S_ISLNK(sb.st_mode)) { |
| 92 | return FileType::kSymlink; |
Adam Lesinski | ca2fc35 | 2015-04-03 12:08:26 -0700 | [diff] [blame] | 93 | #endif |
| 94 | #if defined(S_ISSOCK) |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 95 | } else if (S_ISSOCK(sb.st_mode)) { |
| 96 | return FileType::kSocket; |
Adam Lesinski | ca2fc35 | 2015-04-03 12:08:26 -0700 | [diff] [blame] | 97 | #endif |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 98 | } else { |
| 99 | return FileType::kUnknown; |
| 100 | } |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 101 | } |
Adam Lesinski | 3a725dc | 2017-11-02 16:14:59 -0700 | [diff] [blame] | 102 | #endif |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 103 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 104 | bool mkdirs(const std::string& path) { |
Ryan Mitchell | db0cad4 | 2018-09-09 23:06:59 -0700 | [diff] [blame] | 105 | #ifdef _WIN32 |
| 106 | // Start after the drive path if present. Calling mkdir with only the drive will cause an error. |
| 107 | size_t current_pos = 1u; |
| 108 | if (path.size() >= 3 && path[1] == ':' && |
| 109 | (path[2] == '\\' || path[2] == '/')) { |
| 110 | current_pos = 3u; |
| 111 | } |
| 112 | #else |
Adam Lesinski | 940f49f | 2017-08-18 19:33:03 -0700 | [diff] [blame] | 113 | // Start after the first character so that we don't consume the root '/'. |
| 114 | // This is safe to do with unicode because '/' will never match with a continuation character. |
| 115 | size_t current_pos = 1u; |
Ryan Mitchell | db0cad4 | 2018-09-09 23:06:59 -0700 | [diff] [blame] | 116 | #endif |
| 117 | constexpr const mode_t mode = S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP; |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 118 | while ((current_pos = path.find(sDirSep, current_pos)) != std::string::npos) { |
| 119 | std::string parent_path = path.substr(0, current_pos); |
Ryan Mitchell | db0cad4 | 2018-09-09 23:06:59 -0700 | [diff] [blame] | 120 | if (parent_path.empty()) { |
| 121 | continue; |
| 122 | } |
| 123 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 124 | int result = ::android::base::utf8::mkdir(parent_path.c_str(), mode); |
| 125 | if (result < 0 && errno != EEXIST) { |
| 126 | return false; |
Adam Lesinski | c51562c | 2016-04-28 11:12:38 -0700 | [diff] [blame] | 127 | } |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 128 | current_pos += 1; |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 129 | } |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 130 | return ::android::base::utf8::mkdir(path.c_str(), mode) == 0 || errno == EEXIST; |
Adam Lesinski | c51562c | 2016-04-28 11:12:38 -0700 | [diff] [blame] | 131 | } |
| 132 | |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 133 | StringPiece GetStem(const StringPiece& path) { |
| 134 | const char* start = path.begin(); |
| 135 | const char* end = path.end(); |
| 136 | for (const char* current = end - 1; current != start - 1; --current) { |
| 137 | if (*current == sDirSep) { |
| 138 | return StringPiece(start, current - start); |
| 139 | } |
| 140 | } |
| 141 | return {}; |
| 142 | } |
| 143 | |
| 144 | StringPiece GetFilename(const StringPiece& path) { |
| 145 | const char* end = path.end(); |
| 146 | const char* last_dir_sep = path.begin(); |
| 147 | for (const char* c = path.begin(); c != end; ++c) { |
| 148 | if (*c == sDirSep) { |
| 149 | last_dir_sep = c + 1; |
| 150 | } |
| 151 | } |
| 152 | return StringPiece(last_dir_sep, end - last_dir_sep); |
| 153 | } |
| 154 | |
| 155 | StringPiece GetExtension(const StringPiece& path) { |
| 156 | StringPiece filename = GetFilename(path); |
| 157 | const char* const end = filename.end(); |
| 158 | const char* c = std::find(filename.begin(), end, '.'); |
| 159 | if (c != end) { |
| 160 | return StringPiece(c, end - c); |
| 161 | } |
| 162 | return {}; |
| 163 | } |
| 164 | |
Ryan Mitchell | f3649d6 | 2018-08-02 16:16:45 -0700 | [diff] [blame] | 165 | bool IsHidden(const android::StringPiece& path) { |
| 166 | return util::StartsWith(GetFilename(path), "."); |
| 167 | } |
| 168 | |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 169 | void AppendPath(std::string* base, StringPiece part) { |
| 170 | CHECK(base != nullptr); |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 171 | const bool base_has_trailing_sep = (!base->empty() && *(base->end() - 1) == sDirSep); |
| 172 | const bool part_has_leading_sep = (!part.empty() && *(part.begin()) == sDirSep); |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 173 | if (base_has_trailing_sep && part_has_leading_sep) { |
| 174 | // Remove the part's leading sep |
| 175 | part = part.substr(1, part.size() - 1); |
| 176 | } else if (!base_has_trailing_sep && !part_has_leading_sep) { |
| 177 | // None of the pieces has a separator. |
| 178 | *base += sDirSep; |
| 179 | } |
| 180 | base->append(part.data(), part.size()); |
| 181 | } |
| 182 | |
| 183 | std::string PackageToPath(const StringPiece& package) { |
| 184 | std::string out_path; |
Chih-Hung Hsieh | a1b644e | 2018-12-11 11:09:20 -0800 | [diff] [blame] | 185 | for (const StringPiece& part : util::Tokenize(package, '.')) { |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 186 | AppendPath(&out_path, part); |
| 187 | } |
| 188 | return out_path; |
| 189 | } |
| 190 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 191 | Maybe<FileMap> MmapPath(const std::string& path, std::string* out_error) { |
| 192 | int flags = O_RDONLY | O_CLOEXEC | O_BINARY; |
| 193 | unique_fd fd(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), flags))); |
| 194 | if (fd == -1) { |
| 195 | if (out_error) { |
| 196 | *out_error = SystemErrorCodeToString(errno); |
| 197 | } |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 198 | return {}; |
| 199 | } |
| 200 | |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 201 | struct stat filestats = {}; |
| 202 | if (fstat(fd, &filestats) != 0) { |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 203 | if (out_error) { |
| 204 | *out_error = SystemErrorCodeToString(errno); |
| 205 | } |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 206 | return {}; |
| 207 | } |
| 208 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 209 | FileMap filemap; |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 210 | if (filestats.st_size == 0) { |
| 211 | // mmap doesn't like a length of 0. Instead we return an empty FileMap. |
| 212 | return std::move(filemap); |
| 213 | } |
| 214 | |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 215 | if (!filemap.create(path.c_str(), fd, 0, filestats.st_size, true)) { |
| 216 | if (out_error) { |
| 217 | *out_error = SystemErrorCodeToString(errno); |
| 218 | } |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 219 | return {}; |
| 220 | } |
| 221 | return std::move(filemap); |
| 222 | } |
| 223 | |
Adam Lesinski | 2354b56 | 2017-05-26 16:31:38 -0700 | [diff] [blame] | 224 | bool AppendArgsFromFile(const StringPiece& path, std::vector<std::string>* out_arglist, |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 225 | std::string* out_error) { |
| 226 | std::string contents; |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 227 | if (!ReadFileToString(path.to_string(), &contents, true /*follow_symlinks*/)) { |
Adam Lesinski | 2354b56 | 2017-05-26 16:31:38 -0700 | [diff] [blame] | 228 | if (out_error) { |
| 229 | *out_error = "failed to read argument-list file"; |
| 230 | } |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 231 | return false; |
| 232 | } |
| 233 | |
| 234 | for (StringPiece line : util::Tokenize(contents, ' ')) { |
| 235 | line = util::TrimWhitespace(line); |
| 236 | if (!line.empty()) { |
Adam Lesinski | d5083f6 | 2017-01-16 15:07:21 -0800 | [diff] [blame] | 237 | out_arglist->push_back(line.to_string()); |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 238 | } |
| 239 | } |
| 240 | return true; |
| 241 | } |
| 242 | |
| 243 | bool FileFilter::SetPattern(const StringPiece& pattern) { |
| 244 | pattern_tokens_ = util::SplitAndLowercase(pattern, ':'); |
| 245 | return true; |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 246 | } |
| 247 | |
| 248 | bool FileFilter::operator()(const std::string& filename, FileType type) const { |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 249 | if (filename == "." || filename == "..") { |
| 250 | return false; |
| 251 | } |
| 252 | |
| 253 | const char kDir[] = "dir"; |
| 254 | const char kFile[] = "file"; |
| 255 | const size_t filename_len = filename.length(); |
| 256 | bool chatty = true; |
| 257 | for (const std::string& token : pattern_tokens_) { |
| 258 | const char* token_str = token.c_str(); |
| 259 | if (*token_str == '!') { |
| 260 | chatty = false; |
| 261 | token_str++; |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 262 | } |
| 263 | |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 264 | if (strncasecmp(token_str, kDir, sizeof(kDir)) == 0) { |
| 265 | if (type != FileType::kDirectory) { |
| 266 | continue; |
| 267 | } |
| 268 | token_str += sizeof(kDir); |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 269 | } |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 270 | |
| 271 | if (strncasecmp(token_str, kFile, sizeof(kFile)) == 0) { |
| 272 | if (type != FileType::kRegular) { |
| 273 | continue; |
| 274 | } |
| 275 | token_str += sizeof(kFile); |
| 276 | } |
| 277 | |
| 278 | bool ignore = false; |
| 279 | size_t n = strlen(token_str); |
| 280 | if (*token_str == '*') { |
| 281 | // Math suffix. |
| 282 | token_str++; |
| 283 | n--; |
| 284 | if (n <= filename_len) { |
| 285 | ignore = |
| 286 | strncasecmp(token_str, filename.c_str() + filename_len - n, n) == 0; |
| 287 | } |
| 288 | } else if (n > 1 && token_str[n - 1] == '*') { |
| 289 | // Match prefix. |
| 290 | ignore = strncasecmp(token_str, filename.c_str(), n - 1) == 0; |
| 291 | } else { |
| 292 | ignore = strcasecmp(token_str, filename.c_str()) == 0; |
| 293 | } |
| 294 | |
| 295 | if (ignore) { |
| 296 | if (chatty) { |
| 297 | diag_->Warn(DiagMessage() |
| 298 | << "skipping " |
| 299 | << (type == FileType::kDirectory ? "dir '" : "file '") |
| 300 | << filename << "' due to ignore pattern '" << token << "'"); |
| 301 | } |
| 302 | return false; |
| 303 | } |
| 304 | } |
| 305 | return true; |
Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 306 | } |
| 307 | |
Adam Lesinski | b39ad7c | 2017-03-13 11:40:48 -0700 | [diff] [blame] | 308 | Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag, |
| 309 | const FileFilter* filter) { |
| 310 | const std::string root_dir = path.to_string(); |
| 311 | std::unique_ptr<DIR, decltype(closedir)*> d(opendir(root_dir.data()), closedir); |
| 312 | if (!d) { |
Adam Lesinski | efeb7af | 2017-08-02 14:57:43 -0700 | [diff] [blame] | 313 | diag->Error(DiagMessage() << SystemErrorCodeToString(errno)); |
Adam Lesinski | b39ad7c | 2017-03-13 11:40:48 -0700 | [diff] [blame] | 314 | return {}; |
| 315 | } |
| 316 | |
| 317 | std::vector<std::string> files; |
| 318 | std::vector<std::string> subdirs; |
| 319 | while (struct dirent* entry = readdir(d.get())) { |
| 320 | if (util::StartsWith(entry->d_name, ".")) { |
| 321 | continue; |
| 322 | } |
| 323 | |
| 324 | std::string file_name = entry->d_name; |
| 325 | std::string full_path = root_dir; |
| 326 | AppendPath(&full_path, file_name); |
| 327 | const FileType file_type = GetFileType(full_path); |
| 328 | |
| 329 | if (filter != nullptr) { |
| 330 | if (!(*filter)(file_name, file_type)) { |
| 331 | continue; |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | if (file_type == file::FileType::kDirectory) { |
| 336 | subdirs.push_back(std::move(file_name)); |
| 337 | } else { |
| 338 | files.push_back(std::move(file_name)); |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | // Now process subdirs. |
| 343 | for (const std::string& subdir : subdirs) { |
| 344 | std::string full_subdir = root_dir; |
| 345 | AppendPath(&full_subdir, subdir); |
| 346 | Maybe<std::vector<std::string>> subfiles = FindFiles(full_subdir, diag, filter); |
| 347 | if (!subfiles) { |
| 348 | return {}; |
| 349 | } |
| 350 | |
| 351 | for (const std::string& subfile : subfiles.value()) { |
| 352 | std::string new_file = subdir; |
| 353 | AppendPath(&new_file, subfile); |
| 354 | files.push_back(new_file); |
| 355 | } |
| 356 | } |
| 357 | return files; |
| 358 | } |
| 359 | |
Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 360 | } // namespace file |
| 361 | } // namespace aapt |