Home
last modified time | relevance | path

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

12

/system/core/fastboot/
Dbootimg.c66 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in mkbootimg()
80 memcpy(hdr->magic + page_size, in mkbootimg()
82 memcpy(hdr->magic + page_size + kernel_actual, in mkbootimg()
84 memcpy(hdr->magic + page_size + kernel_actual + ramdisk_actual, 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/verity/
DVerityVerifier.java88 int magic = fromle(img.readShort()); in getMetadataPosition() local
90 if (magic != EXT4_SB_MAGIC) { in getMetadataPosition()
117 int magic = fromle(img.readInt()); in verifyMetaData() local
119 if (magic != VERITY_MAGIC) { in verifyMetaData()
Dverify_boot_signature.c102 if (memcmp(BOOT_MAGIC, hdr.magic, BOOT_MAGIC_SIZE) != 0) { in get_signature_offset()
/system/core/libsparse/
Dsimg_dump.py58 magic = header[0]
68 if magic != 0xED26FF3A:
70 % (me, path, magic))
Dsparse_format.h22 __le32 magic; /* 0xed26ff3a */ member
Dsparse_read.c302 if (sparse_header.magic != SPARSE_HEADER_MAGIC) { in sparse_file_read_sparse()
432 if (sparse_header.magic != SPARSE_HEADER_MAGIC) { in sparse_file_import()
Doutput_file.c574 .magic = SPARSE_HEADER_MAGIC, in output_file_init()
/system/vold/
DAsec.h22 unsigned int magic; member
Dcryptfs.h88 __le32 magic; /* See above */ member
DVolumeManager.cpp414 sb.magic = ASEC_SB_MAGIC; in createAsec()
670 SLOGD("Container sb magic/ver (%.8x/%.2x)", sb.magic, sb.ver); in resizeAsec()
672 if (sb.magic != ASEC_SB_MAGIC || sb.ver != ASEC_SB_VER) { in resizeAsec()
673 SLOGE("Bad container magic/version (%.8x/%.2x)", sb.magic, sb.ver); in resizeAsec()
1309 SLOGD("Container sb magic/ver (%.8x/%.2x)", sb.magic, sb.ver); in mountAsec()
1311 if (sb.magic != ASEC_SB_MAGIC || sb.ver != ASEC_SB_VER) { in mountAsec()
1312 SLOGE("Bad container magic/version (%.8x/%.2x)", sb.magic, sb.ver); in mountAsec()
/system/core/mkbootimg/
Dbootimg.h31 unsigned char magic[BOOT_MAGIC_SIZE]; member
Dmkbootimg.c194 memcpy(hdr.magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); in main()
/system/core/adb/
Dtransport_usb.c39 p->msg.magic = H4(p->msg.magic); in fix_endians()
Dtransport_local.c40 p->msg.magic = H4(p->msg.magic); in fix_endians()
69 … p->msg.command, p->msg.arg0, p->msg.arg1, p->msg.data_length, p->msg.data_check, p->msg.magic); in remote_read()
97 … p->msg.command, p->msg.arg0, p->msg.arg1, p->msg.data_length, p->msg.data_check, p->msg.magic); in remote_write()
Dusb_linux_client.c67 .magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC),
136 .magic = cpu_to_le32(FUNCTIONFS_STRINGS_MAGIC),
Dtransport.c223 p->msg.magic = p->msg.command ^ 0xffffffff; in send_packet()
271 p->msg.magic = A_SYNC ^ 0xffffffff; in output_thread()
302 p->msg.magic = A_SYNC ^ 0xffffffff; in output_thread()
1206 if(p->msg.magic != (p->msg.command ^ 0xffffffff)) { in check_header()
Dadb.h57 unsigned magic; /* command ^ 0xffffffff */ member
Dprotocol.txt37 unsigned magic; /* command ^ 0xffffffff */
/system/core/fastbootd/
Dbootimg.h41 unsigned char magic[BOOT_MAGIC_SIZE]; member
Dusb_linux_client.c81 .magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC),
150 .magic = cpu_to_le32(FUNCTIONFS_STRINGS_MAGIC),
/system/core/gpttool/
Dgpttool.c46 u8 magic[8]; member
305 memcpy(hdr->magic, EFI_MAGIC, sizeof(hdr->magic)); in main()
/system/core/include/system/
Dwindow.h76 int magic; member
92 common.magic = ANDROID_NATIVE_BUFFER_MAGIC; in ANativeWindowBuffer()
376 common.magic = ANDROID_NATIVE_WINDOW_MAGIC; in ANativeWindow()
/system/core/libutils/
DREADME238 idmap-magic constant spells "idmp" in ASCII. Offsets are given relative
242 header := idmap-magic <crc32-original-pkg> <crc32-overlay-pkg>
243 idmap-magic := <0x706d6469>
275 0x706d6469 # magic: all idmap files begin with this constant
/system/extras/f2fs_utils/
Df2fs_sparseblock.c37 D_DISP_u32(sb, magic); in dbg_print_raw_sb_info()
187 if (le32_to_cpu(sb->magic) != F2FS_SUPER_MAGIC) { in read_f2fs_sb()
189 le32_to_cpu(sb->magic), F2FS_SUPER_MAGIC); in read_f2fs_sb()

12