Home
last modified time | relevance | path

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

12345

/system/extras/simpleperf/
DJITDebugReader_impl.h76 char magic[8] = "JIT_SYM"; in WriteHeader() local
77 static_assert(sizeof(magic) == 8); in WriteHeader()
78 if (fwrite(magic, sizeof(magic), 1, fp_.get()) != 1) { in WriteHeader()
82 file_offset_ = sizeof(magic); in WriteHeader()
Dtracing.cpp126 char magic[10]; member in simpleperf::TracingFile
143 memcpy(magic, TRACING_INFO_MAGIC, sizeof(TRACING_INFO_MAGIC)); in TracingFile()
181 ret.insert(ret.end(), magic, magic + sizeof(magic)); in BinaryFormat()
209 if (!reader.CheckLeftSize(sizeof(magic)) || memcmp(reader.head, magic, sizeof(magic)) != 0) { in LoadFromBinary()
212 reader.head += sizeof(magic); in LoadFromBinary()
251 printf("0x%x ", magic[i]); in Dump()
253 for (size_t i = 3; i < sizeof(magic); ++i) { in Dump()
254 printf("%c", magic[i]); in Dump()
/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/update_engine/scripts/
Dscan_lz4.py17 magic = data[index:index+4]
18 if magic == LZ4_LEGACY_FRAME_MAGIC or magic == LZ4_FRAME_MAGIC:
20 (csize,) = struct.unpack("<L", magic)
Dtrim_ota_package.py14 (magic, version, manifest_length,
16 assert magic == _MAGIC
/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/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/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/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()
/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/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/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/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()
92 CHECK_EQ(0, memcmp(hdr_v4->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)); in CreateFromFile()
/system/core/libsparse/
Dsimg_dump.py78 magic = header[0]
88 if magic != 0xED26FF3A:
90 % (me, path, magic))
Dsparse_format.h26 __le32 magic; /* 0xed26ff3a */ member
/system/chre/host/common/include/chre_host/
Dnapp_header.h27 uint32_t magic; member
/system/chre/host/tinysys/hal/
Dtinysys_chre_connection.h104 uint32_t magic = 0x67728269; member
115 return sizeof(magic) + sizeof(payloadSize) + payloadSize; in getMessageSize()
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h81 uint32_t magic; member
/system/vold/
DCheckpoint.cpp425 uint32_t magic; member
574 ls.magic = kPartialRestoreMagic; in restoreSector()
585 if (next->magic == kMagic) { in restoreSector()
586 next->magic = kPartialRestoreMagic; in restoreSector()
651 if (original_ls.magic == kPartialRestoreMagic) { in cp_restoreCheckpoint()
654 } else if (original_ls.magic != kMagic) { in cp_restoreCheckpoint()
676 if (ls.magic != kMagic && (ls.magic != kPartialRestoreMagic || validating)) { in cp_restoreCheckpoint()

12345