/system/extras/boot_control_copy/ |
D | bootinfo.cpp | 169 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()
|
D | bootinfo.h | 34 uint8_t magic[3]; member
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 63 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/ |
D | event_between_apps_test.cc | 121 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/ |
D | dt_table.c | 31 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()
|
D | dt_table.h | 31 uint32_t magic; /* DT_TABLE_MAGIC */ member
|
/system/update_engine/payload_consumer/ |
D | mount_history.cc | 62 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/ |
D | ZoneInfoTestHelper.java | 38 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/ |
D | persistence.cpp | 45 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/ |
D | bootimg.h | 62 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/ |
D | nanoapp_dso_util.cc | 34 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/ |
D | fec_verity.cpp | 502 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/ |
D | metadata_format.h | 118 uint32_t magic; member 184 uint32_t magic; member 384 uint32_t magic; member
|
/system/extras/simpleperf/ |
D | tracing.cpp | 124 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()
|
D | record_file_format.h | 112 char magic[8]; member
|
/system/core/libsparse/ |
D | simg_dump.py | 79 magic = header[0] 89 if magic != 0xED26FF3A: 91 % (me, path, magic))
|
D | sparse_format.h | 26 __le32 magic; /* 0xed26ff3a */ member
|
/system/chre/build/app_support/qcom_nanohub/ |
D | app_support.cc | 59 char magic[13]; member 104 .magic = LEGACY_APP_HDR_MAGIC_ARRAY,
|
/system/core/adb/daemon/ |
D | usb_ffs.cpp | 63 __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/ |
D | nanoapp_support_lib_dso.h | 59 uint32_t magic; member
|
/system/core/fs_mgr/libvbmeta/ |
D | super_vbmeta_format_c.h | 81 uint32_t magic; member
|
/system/vold/ |
D | Checkpoint.cpp | 415 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/ |
D | build_verity_metadata.py | 43 magic = MAGIC_DISABLE if verity_disable else MAGIC_NUMBER 44 block = struct.pack("II256sI", magic, VERSION, signature, table_len)
|
/system/update_engine/payload_generator/ |
D | boot_img_filesystem.cc | 78 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/ |
D | payload.py | 97 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher) 98 if magic != self._MAGIC: 99 raise PayloadError('invalid payload magic: %s' % magic)
|