| 359 | } |
| 360 | |
| 361 | status_t postProcessImages(const sp<AaptAssets>& assets, |
| 362 | ResourceTable* table, |
| 363 | const sp<ResourceTypeSet>& set) |
| 364 | { |
| 365 | ResourceDirIterator it(set, String8("drawable")); |
| 366 | bool hasErrors = false; |
| 367 | ssize_t res; |
| 368 | while ((res=it.next()) == NO_ERROR) { |
| 369 | res = postProcessImage(assets, table, it.getFile()); |
| 370 | if (res < NO_ERROR) { |
| 371 | hasErrors = true; |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | return (hasErrors || (res < NO_ERROR)) ? UNKNOWN_ERROR : NO_ERROR; |
| 376 | } |
| 377 | |
| 378 | static void collect_files(const sp<AaptDir>& dir, |
| 379 | KeyedVector<String8, sp<ResourceTypeSet> >* resources) |
no test coverage detected