Searched refs:expected_offset (Results 1 – 6 of 6) sorted by relevance
/aosp12/bionic/tests/ |
H A D | struct_layout_test.cpp | 131 size_t expected_offset) { in TEST() argument 132 EXPECT_EQ(expected_offset, offset) << "offsetof(" << name << ", " << field << ")"; in TEST() 133 if (offset != expected_offset) { in TEST() 149 size_t expected_offset) { in TEST() argument 150 (void)expected_offset; in TEST()
|
/aosp12/frameworks/native/libs/gui/tests/ |
H A D | DisplayEventStructLayout_test.cpp | 22 #define CHECK_OFFSET(type, member, expected_offset) \ argument 23 static_assert((offsetof(type, member) == (expected_offset)), "")
|
/aosp12/frameworks/native/libs/input/tests/ |
H A D | StructLayout_test.cpp | 22 #define CHECK_OFFSET(type, member, expected_offset) \ argument 23 static_assert((offsetof(type, member) == (expected_offset)), "")
|
/aosp12/art/libdexfile/dex/ |
H A D | dex_file_verifier.cc | 2220 uint32_t expected_offset; in CheckIntraIdSection() local 2226 expected_offset = header_->string_ids_off_; in CheckIntraIdSection() 2230 expected_offset = header_->type_ids_off_; in CheckIntraIdSection() 2234 expected_offset = header_->proto_ids_off_; in CheckIntraIdSection() 2238 expected_offset = header_->field_ids_off_; in CheckIntraIdSection() 2242 expected_offset = header_->method_ids_off_; in CheckIntraIdSection() 2246 expected_offset = header_->class_defs_off_; in CheckIntraIdSection() 2255 if (UNLIKELY(offset != expected_offset)) { in CheckIntraIdSection() 2256 ErrorStringPrintf("Bad offset for section: got %zx, expected %x", offset, expected_offset); in CheckIntraIdSection()
|
/aosp12/system/libziparchive/ |
H A D | zip_archive_test.cc | 107 uint64_t expected_offset = header_.size(); in TEST_F() local 111 ASSERT_EQ(offset, expected_offset); in TEST_F() 112 expected_offset += name.size() + separator_.size(); in TEST_F()
|
/aosp12/art/dex2oat/linker/ |
H A D | oat_writer.cc | 3593 uint32_t expected_offset = oat_data_offset_ + oat_size_; in WriteDexLayoutSections() local 3594 off_t actual_offset = oat_rodata->Seek(expected_offset, kSeekSet); in WriteDexLayoutSections() 3595 if (static_cast<uint32_t>(actual_offset) != expected_offset) { in WriteDexLayoutSections() 3597 << " Expected: " << expected_offset << " File: " << oat_rodata->GetLocation(); in WriteDexLayoutSections()
|