/system/extras/simpleperf/ |
D | JITDebugReader_impl.h | 76 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()
|
D | tracing.cpp | 126 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/ |
D | bootinfo.cpp | 159 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()
|
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_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/ |
D | event_between_apps_test.cc | 114 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/ |
D | scan_lz4.py | 17 magic = data[index:index+4] 18 if magic == LZ4_LEGACY_FRAME_MAGIC or magic == LZ4_FRAME_MAGIC: 20 (csize,) = struct.unpack("<L", magic)
|
D | trim_ota_package.py | 14 (magic, version, manifest_length, 16 assert magic == _MAGIC
|
/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/core/trusty/coverage/ |
D | coverage_test.cpp | 69 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()
|
D | coverage.cpp | 281 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/ |
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/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()
|
/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/update_engine/payload_consumer/ |
D | mount_history.cc | 66 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/ |
D | bootimg.h | 69 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/ |
D | nanoapp_dso_util.cc | 35 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/ |
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() 92 CHECK_EQ(0, memcmp(hdr_v4->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)); in CreateFromFile()
|
/system/core/libsparse/ |
D | simg_dump.py | 78 magic = header[0] 88 if magic != 0xED26FF3A: 90 % (me, path, magic))
|
D | sparse_format.h | 26 __le32 magic; /* 0xed26ff3a */ member
|
/system/chre/host/common/include/chre_host/ |
D | napp_header.h | 27 uint32_t magic; member
|
/system/chre/host/tinysys/hal/ |
D | tinysys_chre_connection.h | 104 uint32_t magic = 0x67728269; member 115 return sizeof(magic) + sizeof(payloadSize) + payloadSize; in getMessageSize()
|
/system/core/fs_mgr/libvbmeta/ |
D | super_vbmeta_format_c.h | 81 uint32_t magic; member
|
/system/vold/ |
D | Checkpoint.cpp | 425 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()
|