MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / writePathsToFile

Function writePathsToFile

tools/aapt/Resource.cpp:2631–2640  ·  view source on GitHub ↗

Loops through the string paths and writes them to the file pointer Each file path is written on its own line with a terminating backslash.

Source from the content-addressed store, hash-verified

2629// Loops through the string paths and writes them to the file pointer
2630// Each file path is written on its own line with a terminating backslash.
2631status_t writePathsToFile(const sp<FilePathStore>& files, FILE* fp)
2632{
2633 status_t deps = -1;
2634 for (size_t file_i = 0; file_i < files->size(); ++file_i) {
2635 // Add the full file path to the dependency file
2636 fprintf(fp, "%s \\\n", files->itemAt(file_i).string());
2637 deps++;
2638 }
2639 return deps;
2640}
2641
2642status_t
2643writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets, FILE* fp, bool includeRaw)

Callers 1

writeDependencyPreReqsFunction · 0.85

Calls 2

stringMethod · 0.80
sizeMethod · 0.65

Tested by

no test coverage detected