Home
last modified time | relevance | path

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

1234

/system/extras/boot_control_copy/
Dbootinfo.cpp169 if (info->magic[0] != 'B' || in boot_info_validate()
170 info->magic[1] != 'C' || in boot_info_validate()
171 info->magic[2] != 'c') in boot_info_validate()
181 info->magic[0] = 'B'; in boot_info_reset()
182 info->magic[1] = 'C'; in boot_info_reset()
183 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()
70 memcpy(hdr->magic + V3_PAGE_SIZE, kernel.data(), kernel.size()); in mkbootimg_v3()
71 memcpy(hdr->magic + V3_PAGE_SIZE + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg_v3()
100 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg()
119 memcpy(hdr->magic + hdr->page_size, kernel.data(), kernel.size()); in mkbootimg()
120 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg()
121 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual, second.data(), in mkbootimg()
123 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual + second_actual, dtb.data(), in mkbootimg()
/system/chre/apps/chqts/src/general_test/
Devent_between_apps_test.cc121 uint32_t magic; in handleEvent() local
122 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
123 if (magic != EventBetweenApps0::kMagic) { in handleEvent()
124 sendFatalFailureToHost("Got incorrect magic data: ", &magic); in handleEvent()
/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/update_engine/payload_consumer/
Dmount_history.cc62 uint16_t magic = *reinterpret_cast<uint16_t*>(&block0_buffer[0x400 + 0x38]); in LogMountHistory() local
64 if (magic == 0xEF53) { in LogMountHistory()
/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/tools/mkbootimg/include/bootimg/
Dbootimg.h62 uint8_t magic[BOOT_MAGIC_SIZE]; member
244 uint8_t magic[BOOT_MAGIC_SIZE]; member
279 uint8_t magic[VENDOR_BOOT_MAGIC_SIZE]; member
/system/chre/platform/shared/nanoapp/
Dnanoapp_dso_util.cc34 if (appInfo->magic != CHRE_NSL_NANOAPP_INFO_MAGIC) { in validateAppInfo()
36 appInfo->magic, static_cast<uint32_t>(CHRE_NSL_NANOAPP_INFO_MAGIC)); in validateAppInfo()
/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/extras/simpleperf/
Dtracing.cpp124 char magic[10]; member in TracingFile
141 memcpy(magic, TRACING_INFO_MAGIC, sizeof(TRACING_INFO_MAGIC)); in TracingFile()
179 ret.insert(ret.end(), magic, magic + sizeof(magic)); in BinaryFormat()
208 CHECK(memcmp(p, magic, sizeof(magic)) == 0); in LoadFromBinary()
209 p += sizeof(magic); in LoadFromBinary()
249 printf("0x%x ", magic[i]); in Dump()
251 for (size_t i = 3; i < sizeof(magic); ++i) { in Dump()
252 printf("%c", magic[i]); in Dump()
Drecord_file_format.h112 char magic[8]; member
/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/core/adb/daemon/
Dusb_ffs.cpp63 __le32 magic; member
240 .magic = cpu_to_le32(FUNCTIONFS_STRINGS_MAGIC),
258 v2_descriptor.header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2); in open_functionfs()
285 v1_descriptor.header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC); in open_functionfs()
/system/chre/platform/shared/include/chre/platform/shared/
Dnanoapp_support_lib_dso.h59 uint32_t magic; member
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h81 uint32_t magic; member
/system/vold/
DCheckpoint.cpp415 uint32_t magic; member
564 ls.magic = kPartialRestoreMagic; in restoreSector()
575 if (next->magic == kMagic) { in restoreSector()
576 next->magic = kPartialRestoreMagic; in restoreSector()
628 if (original_ls.magic == kPartialRestoreMagic) { in cp_restoreCheckpoint()
631 } else if (original_ls.magic != kMagic) { in cp_restoreCheckpoint()
645 if (ls.magic != kMagic && (ls.magic != kPartialRestoreMagic || validating)) { in cp_restoreCheckpoint()
/system/extras/verity/
Dbuild_verity_metadata.py43 magic = MAGIC_DISABLE if verity_disable else MAGIC_NUMBER
44 block = struct.pack("II256sI", magic, VERSION, signature, table_len)
/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()
/system/update_engine/scripts/update_payload/
Dpayload.py97 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
98 if magic != self._MAGIC:
99 raise PayloadError('invalid payload magic: %s' % magic)

1234