Searched refs:fc (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/tests/component/ |
D | applypatch_test.cpp | 153 struct FileContents fc; in SetUpTestCase() local 155 ASSERT_EQ(0, LoadFileContents(&rand_file[0], &fc)); in SetUpTestCase() 158 patch1->size = fc.data.size(); in SetUpTestCase() 159 patch1->data = static_cast<char*>(malloc(fc.data.size())); in SetUpTestCase() 160 memcpy(patch1->data, fc.data.data(), fc.data.size()); in SetUpTestCase() 163 ASSERT_EQ(0, LoadFileContents(&patch_file[0], &fc)); in SetUpTestCase() 166 patch2->size = fc.st.st_size; in SetUpTestCase() 167 patch2->data = static_cast<char*>(malloc(fc.data.size())); in SetUpTestCase() 168 memcpy(patch2->data, fc.data.data(), fc.data.size()); in SetUpTestCase()
|
/bootable/recovery/applypatch/ |
D | main.cpp | 70 FileContents fc; in ParsePatchArgs() local 71 if (LoadFileContents(colon, &fc) != 0) { in ParsePatchArgs() 74 files->push_back(std::move(fc)); in ParsePatchArgs()
|
/bootable/recovery/updater/ |
D | install.cpp | 1419 FileContents fc; in ReadFileFn() local 1420 if (LoadFileContents(filename, &fc) != 0) { in ReadFileFn() 1421 v->data = static_cast<char*>(malloc(fc.data.size())); in ReadFileFn() 1423 memcpy(v->data, fc.data.data(), fc.data.size()); in ReadFileFn() 1424 v->size = fc.data.size(); in ReadFileFn()
|