Home
last modified time | relevance | path

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

12

/system/extras/boot_control_copy/
Dbootinfo.c172 if (info->magic[0] != 'B' || in boot_info_validate()
173 info->magic[1] != 'C' || in boot_info_validate()
174 info->magic[2] != 'c') in boot_info_validate()
184 info->magic[0] = 'B'; in boot_info_reset()
185 info->magic[1] = 'C'; in boot_info_reset()
186 info->magic[2] = 'c'; in boot_info_reset()
Dbootinfo.h34 uint8_t magic[3]; member
/system/core/fastboot/
Dbootimg_utils.cpp59 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg()
72 memcpy(hdr->magic + page_size, kernel, kernel_size); in mkbootimg()
73 memcpy(hdr->magic + page_size + kernel_actual, ramdisk, ramdisk_size); in mkbootimg()
74 memcpy(hdr->magic + page_size + kernel_actual + ramdisk_actual, second, second_size); in mkbootimg()
/system/extras/ext4_utils/
Dext4fixup.c88 unsigned long long magic; in get_fs_fixup_state() local
96 len = read(fd, &magic, sizeof(magic)); in get_fs_fixup_state()
97 if (len != sizeof(magic)) { in get_fs_fixup_state()
101 switch (magic) { in get_fs_fixup_state()
119 unsigned long long magic; in set_fs_fixup_state() local
130 magic = MAGIC_STATE_MARKING_INUMS; in set_fs_fixup_state()
133 magic = MAGIC_STATE_UPDATING_INUMS; in set_fs_fixup_state()
136 magic = MAGIC_STATE_UPDATING_SB; in set_fs_fixup_state()
140 magic = 0ll; in set_fs_fixup_state()
145 len = write(fd, &magic, sizeof(magic)); in set_fs_fixup_state()
[all …]
/system/extras/libfec/
Dfec_verity.cpp490 if (header->magic != VERITY_MAGIC && in validate_header()
491 header->magic != VERITY_MAGIC_DISABLE) { in validate_header()
546 if (v->header.magic == VERITY_MAGIC_DISABLE) { in verity_parse_header()
567 if (!v->disabled && v->header.magic != v->ecc_header.magic) { in verity_parse_header()
569 v->header.magic = v->ecc_header.magic; in verity_parse_header()
634 uint32_t magic = enabled ? VERITY_MAGIC : VERITY_MAGIC_DISABLE; in fec_verity_set_status() local
636 if (!raw_pwrite(f, &magic, sizeof(magic), v->metadata_start)) { in fec_verity_set_status()
637 error("failed to update verity magic to %08x: %s", magic, in fec_verity_set_status()
642 warn("updated verity magic to %08x (%s)", magic, in fec_verity_set_status()
Dfec_private.h60 uint32_t magic; member
/system/core/libsparse/
Dsimg_dump.py58 magic = header[0]
68 if magic != 0xED26FF3A:
70 % (me, path, magic))
Dsparse_format.h22 __le32 magic; /* 0xed26ff3a */ member
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Dheader.h63 u64 magic; member
74 u64 magic; member
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Dheader.h48 u64 magic; member
59 u64 magic; member
152 bool is_perf_magic(u64 magic);
/system/vold/
DAsec.h22 unsigned int magic; member
Dcryptfs.h96 __le32 magic; /* See above */ member
DVolumeManager.cpp788 sb.magic = ASEC_SB_MAGIC; in createAsec()
1039 SLOGD("Container sb magic/ver (%.8x/%.2x)", sb.magic, sb.ver); in resizeAsec()
1041 if (sb.magic != ASEC_SB_MAGIC || sb.ver != ASEC_SB_VER) { in resizeAsec()
1042 SLOGE("Bad container magic/version (%.8x/%.2x)", sb.magic, sb.ver); in resizeAsec()
1676 SLOGD("Container sb magic/ver (%.8x/%.2x)", sb.magic, sb.ver); in mountAsec()
1678 if (sb.magic != ASEC_SB_MAGIC || sb.ver != ASEC_SB_VER) { in mountAsec()
1679 SLOGE("Bad container magic/version (%.8x/%.2x)", sb.magic, sb.ver); in mountAsec()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp474 uint32_t magic; in metadata_find() local
490 fread(&magic, sizeof(magic), 1, fp) != 1) { in metadata_find()
495 if (magic != METADATA_MAGIC) { in metadata_find()
496 magic = METADATA_MAGIC; in metadata_find()
499 fwrite(&magic, sizeof(magic), 1, fp) != 1) { in metadata_find()
504 rc = metadata_add(fp, start + sizeof(magic), stag, slength, offset); in metadata_find()
512 start += sizeof(magic); in metadata_find()
/system/extras/simpleperf/
Drecord_file_format.h69 char magic[8]; member
Drecord_file_writer.cpp259 memcpy(header.magic, PERF_MAGIC, sizeof(header.magic)); in WriteFileHeader()
/system/core/mkbootimg/
Dbootimg.h33 uint8_t magic[BOOT_MAGIC_SIZE]; member
/system/core/liblog/tests/
Dliblog_benchmark.cpp127 pmsg_header.magic = LOGGER_MAGIC; in BM_pmsg_short()
215 buffer->pmsg_header.magic = LOGGER_MAGIC; in BM_pmsg_short_aligned()
291 buffer->pmsg_header.magic = LOGGER_MAGIC; in BM_pmsg_short_unaligned1()
367 buffer->pmsg_header.magic = LOGGER_MAGIC; in BM_pmsg_long_aligned()
440 buffer->pmsg_header.magic = LOGGER_MAGIC; in BM_pmsg_long_unaligned1()
/system/core/liblog/
Dpmsg_reader.c173 &buf.p.magic + preread_count, in pmsgRead()
183 if ((buf.p.magic != LOGGER_MAGIC) in pmsgRead()
189 memmove(&buf.p.magic, &buf.p.magic + 1, --preread_count); in pmsgRead()
190 } while (preread_count && (buf.p.magic != LOGGER_MAGIC)); in pmsgRead()
/system/core/include/system/
Dwindow.h77 int magic; member
93 common.magic = ANDROID_NATIVE_BUFFER_MAGIC; in ANativeWindowBuffer()
408 common.magic = ANDROID_NATIVE_WINDOW_MAGIC; in ANativeWindow()
/system/core/include/private/
Dandroid_logger.h34 uint8_t magic; member
/system/core/adb/
Dusb_linux_client.cpp94 __le32 magic; member
232 .magic = cpu_to_le32(FUNCTIONFS_STRINGS_MAGIC),
389 v2_descriptor.header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2); in init_functionfs()
413 v1_descriptor.header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC); in init_functionfs()
/system/update_engine/scripts/
Dbrillo_update_payload284 local magic=$(head --bytes=4 "${image}" | hexdump -e '1/1 "%.2x"')
285 if [[ "${magic}" == "504b0304" ]]; then
/system/extras/verity/fec/
Dimage.cpp236 if (p->magic != FEC_MAGIC) { in image_ecc_load()
237 FATAL("invalid magic in '%s': %08x\n", filename.c_str(), p->magic); in image_ecc_load()
300 f->magic = FEC_MAGIC; in image_ecc_save()
/system/extras/libfec/include/fec/
Dio.h45 uint32_t magic; member

12