Lines Matching refs:oat
24 #include "oat.h"
205 LOG(WARNING) << "Invalid oat magic for " << GetLocation();
208 const byte* oat = Begin();
209 oat += sizeof(OatHeader);
210 if (oat > End()) {
211 LOG(ERROR) << "In oat file " << GetLocation() << " found truncated OatHeader";
215 oat += GetOatHeader().GetImageFileLocationSize();
216 if (oat > End()) {
217 LOG(ERROR) << "In oat file " << GetLocation() << " found truncated image file location: "
226 size_t dex_file_location_size = *reinterpret_cast<const uint32_t*>(oat);
228 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
232 oat += sizeof(dex_file_location_size);
233 if (oat > End()) {
234 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
239 const char* dex_file_location_data = reinterpret_cast<const char*>(oat);
240 oat += dex_file_location_size;
241 if (oat > End()) {
242 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
249 uint32_t dex_file_checksum = *reinterpret_cast<const uint32_t*>(oat);
250 oat += sizeof(dex_file_checksum);
251 if (oat > End()) {
252 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
258 uint32_t dex_file_offset = *reinterpret_cast<const uint32_t*>(oat);
260 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
266 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
271 oat += sizeof(dex_file_offset);
272 if (oat > End()) {
273 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
281 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
287 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i
293 const uint32_t* methods_offsets_pointer = reinterpret_cast<const uint32_t*>(oat);
295 oat += (sizeof(*methods_offsets_pointer) * header->class_defs_size_);
296 if (oat > End()) {
297 LOG(ERROR) << "In oat file " << GetLocation() << " found OatDexFile # " << i