Lines Matching refs:RSInfo
18 // This file implements RSInfo::ReadFromFile()
21 #include "bcc/Renderscript/RSInfo.h"
36 const RSInfo &pInfo,
41 helper_read_list_item<rsinfo::DependencyTableItem, RSInfo::DependencyTableTy>(
42 const rsinfo::DependencyTableItem &pItem,
43 const RSInfo &pInfo,
44 RSInfo::DependencyTableTy &pResult)
68 helper_read_list_item<rsinfo::PragmaItem, RSInfo::PragmaListTy>(
69 const rsinfo::PragmaItem &pItem,
70 const RSInfo &pInfo,
71 RSInfo::PragmaListTy &pResult)
92 helper_read_list_item<rsinfo::ObjectSlotItem, RSInfo::ObjectSlotListTy>(
93 const rsinfo::ObjectSlotItem &pItem,
94 const RSInfo &pInfo,
95 RSInfo::ObjectSlotListTy &pResult)
103 helper_read_list_item<rsinfo::ExportVarNameItem, RSInfo::ExportVarNameListTy>(
104 const rsinfo::ExportVarNameItem &pItem,
105 const RSInfo &pInfo,
106 RSInfo::ExportVarNameListTy &pResult)
121 helper_read_list_item<rsinfo::ExportFuncNameItem, RSInfo::ExportFuncNameListTy>(
122 const rsinfo::ExportFuncNameItem &pItem,
123 const RSInfo &pInfo,
124 RSInfo::ExportFuncNameListTy &pResult)
139 helper_read_list_item<rsinfo::ExportForeachFuncItem, RSInfo::ExportForeachFuncListTy>(
140 const rsinfo::ExportForeachFuncItem &pItem,
141 const RSInfo &pInfo,
142 RSInfo::ExportForeachFuncListTy &pResult)
157 const RSInfo &pInfo,
158 const rsinfo::ListHeader &pHeader,
176 RSInfo *RSInfo::ReadFromFile(InputFile &pInput, const DependencyTableTy &pDeps) {
178 RSInfo *result = NULL;
180 const rsinfo::Header *header;
210 header = reinterpret_cast<const rsinfo::Header *>(data);
230 if ((header->headerSize != sizeof(rsinfo::Header)) ||
231 (header->dependencyTable.itemSize != sizeof(rsinfo::DependencyTableItem)) ||
232 (header->pragmaList.itemSize != sizeof(rsinfo::PragmaItem)) ||
233 (header->objectSlotList.itemSize != sizeof(rsinfo::ObjectSlotItem)) ||
234 (header->exportVarNameList.itemSize != sizeof(rsinfo::ExportVarNameItem)) ||
235 (header->exportFuncNameList.itemSize != sizeof(rsinfo::ExportFuncNameItem)) ||
236 (header->exportForeachFuncList.itemSize != sizeof(rsinfo::ExportForeachFuncItem))) {
256 // File seems ok, create result RSInfo object.
257 result = new (std::nothrow) RSInfo(header->strPoolSize);
259 ALOGE("Out of memory when create RSInfo object for %s!", input_filename);
267 ::memcpy(&result->mHeader, header, sizeof(rsinfo::Header));
282 if (!helper_read_list<rsinfo::DependencyTableItem, DependencyTableTy>
292 if (!helper_read_list<rsinfo::PragmaItem, PragmaListTy>
297 if (!helper_read_list<rsinfo::ObjectSlotItem, ObjectSlotListTy>
302 if (!helper_read_list<rsinfo::ExportVarNameItem, ExportVarNameListTy>
307 if (!helper_read_list<rsinfo::ExportFuncNameItem, ExportFuncNameListTy>
312 if (!helper_read_list<rsinfo::ExportForeachFuncItem, ExportForeachFuncListTy>
330 } // RSInfo::ReadFromFile