Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 91) sorted by relevance

1234

/system/extras/boot_control_copy/
Dbootinfo.cpp159 if (info->magic[0] != 'B' || info->magic[1] != 'C' || info->magic[2] != 'c') return false; in boot_info_validate()
166 info->magic[0] = 'B'; in boot_info_reset()
167 info->magic[1] = 'C'; in boot_info_reset()
168 info->magic[2] = 'c'; in boot_info_reset()
Dbootinfo.h34 uint8_t magic[3]; member
/system/core/fastboot/
Dbootimg_utils.cpp63 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg_v3_and_above()
75 memcpy(hdr->magic + V3_PAGE_SIZE, kernel.data(), kernel.size()); in mkbootimg_v3_and_above()
76 memcpy(hdr->magic + V3_PAGE_SIZE + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg_v3_and_above()
105 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg()
124 memcpy(hdr->magic + hdr->page_size, kernel.data(), kernel.size()); in mkbootimg()
125 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg()
126 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual, second.data(), in mkbootimg()
128 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual + second_actual, dtb.data(), in mkbootimg()
/system/chre/apps/test/chqts/src/general_test/
Devent_between_apps_test.cc114 uint32_t magic; in handleEvent() local
115 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
116 if (magic != EventBetweenApps0::kMagic) { in handleEvent()
117 sendFatalFailureToHost("Got incorrect magic data: ", &magic); in handleEvent()
/system/core/trusty/coverage/
Dcoverage_test.cpp69 uint32_t magic = 0xdeadbeef; in TEST_F() local
72 for (size_t i = 1; i < sizeof(magic) * 8; i++) { in TEST_F()
77 uint32_t msg = magic & ~(mask << i); in TEST_F()
Dcoverage.cpp281 uint64_t magic; in SaveSancovFile() local
283 magic = 0xC0BFFFFFFFFFFF64; in SaveSancovFile()
285 magic = 0xC0BFFFFFFFFFFF32; in SaveSancovFile()
287 WriteFully(output_fd, &magic, sizeof(magic)); in SaveSancovFile()
/system/libufdt/utils/src/
Ddt_table.c31 header->magic = cpu_to_fdt32(ACPI_TABLE_MAGIC); in dt_table_header_init()
33 header->magic = cpu_to_fdt32(DT_TABLE_MAGIC); in dt_table_header_init()
Ddt_table.h31 uint32_t magic; /* DT_TABLE_MAGIC */ member
/system/timezone/testing/src/main/java/libcore/timezone/testing/
DZoneInfoTestHelper.java38 private int magic = 0x545a6966; // Default, valid magic. field in ZoneInfoTestHelper.ZicDataBuilder
46 public ZicDataBuilder setMagic(int magic) { in setMagic() argument
47 this.magic = magic; in setMagic()
145 writeHeader(baos, magic, tzh_timecnt_32, tzh_typecnt, tzh_charcnt, tzh_leapcnt, in build()
154 writeHeader(baos, magic, tzh_timecnt_64, tzh_typecnt, tzh_charcnt, tzh_leapcnt, in build()
193 private static void writeHeader(ByteArrayOutputStream baos, int magic, int tzh_timecnt, in writeHeader() argument
197 writeInt(baos, magic); in writeHeader()
/system/nvram/core/
Dpersistence.cpp45 template <uint32_t magic, typename Object>
49 writer.set_field_number(magic); in EncodeObject()
66 template <uint32_t magic, typename Object>
70 if (!reader.ReadWireTag() || reader.field_number() != magic || in DecodeObject()
/system/extras/libfec/
Dfec_verity.cpp502 if (header->magic != VERITY_MAGIC && in validate_header()
503 header->magic != VERITY_MAGIC_DISABLE) { in validate_header()
558 if (v->header.magic == VERITY_MAGIC_DISABLE) { in verity_parse_header()
579 if (!v->disabled && v->header.magic != v->ecc_header.magic) { in verity_parse_header()
581 v->header.magic = v->ecc_header.magic; in verity_parse_header()
649 uint32_t magic = enabled ? VERITY_MAGIC : VERITY_MAGIC_DISABLE; in fec_verity_set_status() local
651 if (!raw_pwrite(f->fd, &magic, sizeof(magic), v->metadata_start)) { in fec_verity_set_status()
652 error("failed to update verity magic to %08x: %s", magic, in fec_verity_set_status()
657 warn("updated verity magic to %08x (%s)", magic, in fec_verity_set_status()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h118 uint32_t magic; member
184 uint32_t magic; member
384 uint32_t magic; member
/system/update_engine/payload_consumer/
Dmount_history.cc66 uint16_t magic = *reinterpret_cast<uint16_t*>(&block0_buffer[0x400 + 0x38]); in LogMountHistory() local
72 if (magic == 0xEF53) { in LogMountHistory()
/system/chre/platform/shared/nanoapp/
Dnanoapp_dso_util.cc35 if (appInfo->magic != CHRE_NSL_NANOAPP_INFO_MAGIC) { in validateAppInfo()
37 appInfo->magic, static_cast<uint32_t>(CHRE_NSL_NANOAPP_INFO_MAGIC)); in validateAppInfo()
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h69 uint8_t magic[BOOT_MAGIC_SIZE]; member
252 uint8_t magic[BOOT_MAGIC_SIZE]; member
288 uint8_t magic[VENDOR_BOOT_MAGIC_SIZE]; member
/system/extras/simpleperf/
Dtracing.cpp129 char magic[10]; member in simpleperf::TracingFile
146 memcpy(magic, TRACING_INFO_MAGIC, sizeof(TRACING_INFO_MAGIC)); in TracingFile()
184 ret.insert(ret.end(), magic, magic + sizeof(magic)); in BinaryFormat()
213 CHECK(memcmp(p, magic, sizeof(magic)) == 0); in LoadFromBinary()
214 p += sizeof(magic); in LoadFromBinary()
254 printf("0x%x ", magic[i]); in Dump()
256 for (size_t i = 3; i < sizeof(magic); ++i) { in Dump()
257 printf("%c", magic[i]); in Dump()
/system/core/libsparse/
Dsimg_dump.py79 magic = header[0]
89 if magic != 0xED26FF3A:
91 % (me, path, magic))
Dsparse_format.h26 __le32 magic; /* 0xed26ff3a */ member
/system/chre/build/app_support/qcom_nanohub/
Dapp_support.cc59 char magic[13]; member
104 .magic = LEGACY_APP_HDR_MAGIC_ARRAY,
/system/chre/host/common/include/chre_host/
Dnapp_header.h27 uint32_t magic; member
/system/chre/platform/shared/include/chre/platform/shared/
Dnanoapp_support_lib_dso.h63 uint32_t magic; member
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h81 uint32_t magic; member
/system/vold/
DCheckpoint.cpp414 uint32_t magic; member
563 ls.magic = kPartialRestoreMagic; in restoreSector()
574 if (next->magic == kMagic) { in restoreSector()
575 next->magic = kPartialRestoreMagic; in restoreSector()
627 if (original_ls.magic == kPartialRestoreMagic) { in cp_restoreCheckpoint()
630 } else if (original_ls.magic != kMagic) { in cp_restoreCheckpoint()
644 if (ls.magic != kMagic && (ls.magic != kPartialRestoreMagic || validating)) { in cp_restoreCheckpoint()
/system/update_engine/scripts/update_payload/
Dpayload.py100 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
101 if magic != self._MAGIC:
102 raise PayloadError('invalid payload magic: %s' % magic)
/system/update_engine/payload_generator/
Dboot_img_filesystem.cc78 CHECK_EQ(0, memcmp(hdr_v0->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)); in CreateFromFile()
85 CHECK_EQ(0, memcmp(hdr_v3->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)); in CreateFromFile()

1234