Searched refs:magic (Results 1 - 25 of 58) sorted by relevance

123

/system/core/fastboot/
H A Dbootimg_utils.cpp59 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE);
72 memcpy(hdr->magic + page_size, kernel, kernel_size);
73 memcpy(hdr->magic + page_size + kernel_actual, ramdisk, ramdisk_size);
74 memcpy(hdr->magic + page_size + kernel_actual + ramdisk_actual, second, second_size);
/system/vold/
H A DAsec.h22 unsigned int magic; member in struct:asec_superblock
/system/chre/apps/chqts/src/general_test/
H A Devent_between_apps_test.cc121 uint32_t magic; local
122 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic));
123 if (magic != EventBetweenApps0::kMagic) {
124 sendFatalFailureToHost("Got incorrect magic data: ", &magic);
/system/extras/boot_control_copy/
H A Dbootinfo.c166 if (info->magic[0] != 'B' ||
167 info->magic[1] != 'C' ||
168 info->magic[2] != 'c')
178 info->magic[0] = 'B';
179 info->magic[1] = 'C';
180 info->magic[2] = 'c';
H A Dbootinfo.h34 uint8_t magic[3]; member in struct:BrilloBootInfo
/system/chre/platform/shared/nanoapp/
H A Dnanoapp_dso_util.cc35 if (appInfo->magic != CHRE_NSL_NANOAPP_INFO_MAGIC) {
36 LOGE("Invalid app info magic: got 0x%08" PRIx32 " expected 0x%08" PRIx32,
37 appInfo->magic, static_cast<uint32_t>(CHRE_NSL_NANOAPP_INFO_MAGIC));
H A Dnanoapp_support_lib_dso.c38 .magic = CHRE_NSL_NANOAPP_INFO_MAGIC,
/system/libufdt/utils/src/
H A Ddt_table.c30 header->magic = cpu_to_fdt32(DT_TABLE_MAGIC);
H A Ddt_table.h30 uint32_t magic; /* DT_TABLE_MAGIC */ member in struct:dt_table_header
/system/chre/platform/shared/include/chre/platform/shared/
H A Dnanoapp_support_lib_dso.h39 //! Special magic value to uniquely identify the nanoapp info structure
58 uint32_t magic; member in struct:chreNslNanoappInfo
/system/core/libsparse/
H A Dsparse_format.h26 __le32 magic; /* 0xed26ff3a */ member in struct:sparse_header
H A Dsimg_dump.py79 magic = header[0]
89 if magic != 0xED26FF3A:
91 % (me, path, magic))
/system/core/mkbootimg/
H A Dbootimg.h33 uint8_t magic[BOOT_MAGIC_SIZE]; member in struct:boot_img_hdr
/system/extras/simpleperf/
H A Drecord_file_format.h102 char magic[8]; member in struct:PerfFileFormat::FileHeader
H A Dtracing.cpp102 char magic[10]; member in class:TracingFile
119 memcpy(magic, TRACING_INFO_MAGIC, sizeof(TRACING_INFO_MAGIC));
181 ret.insert(ret.end(), magic, magic + sizeof(magic));
210 CHECK(memcmp(p, magic, sizeof(magic)) == 0);
211 p += sizeof(magic);
249 PrintIndented(indent + 1, "magic: ");
251 printf("0x%x ", magic[
[all...]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
H A Dheader.h63 u64 magic; member in struct:perf_file_header
74 u64 magic; member in struct:perf_pipe_file_header
/system/chre/platform/linux/include/chre/target_platform/
H A Dstatic_nanoapp_init.h38 appInfo.magic = CHRE_NSL_NANOAPP_INFO_MAGIC; \
/system/chre/platform/slpi/include/chre/target_platform/
H A Dstatic_nanoapp_init.h40 appInfo.magic = CHRE_NSL_NANOAPP_INFO_MAGIC; \
/system/nvram/core/
H A Dpersistence.cpp42 // this gives us the opportunity to encode a magic constant in the field number
45 template <uint32_t magic, typename Object>
49 writer.set_field_number(magic);
62 // record produced by |EncodeObject|. It then checks the magic field number to
66 template <uint32_t magic, typename Object>
70 if (!reader.ReadWireTag() || reader.field_number() != magic ||
/system/nfc/halimpl/bcm2079x/gki/common/
H A Dgki_debug.c88 ** stack used by looking non magic num. Magic num is consider
152 uint32_t* magic; local
170 magic = (uint32_t*)((uint8_t*)hdr + BUFFER_HDR_SIZE + size);
172 (*magic == MAGIC_NO) ? "OK" : "CORRUPTED");
191 uint32_t* magic; local
206 magic = (uint32_t*)((uint8_t*)p_hdr + buf_size - sizeof(uint32_t));
214 p_hdr->status, (*magic == MAGIC_NO) ? "OK" : "CORRUPTED", p[0], p[1],
/system/extras/ext4_utils/
H A Dext4fixup.c61 /* Internal state variables corresponding to the magic numbers */
93 unsigned long long magic; local
101 len = read(fd, &magic, sizeof(magic));
102 if (len != sizeof(magic)) {
106 switch (magic) {
124 unsigned long long magic; local
135 magic = MAGIC_STATE_MARKING_INUMS;
138 magic = MAGIC_STATE_UPDATING_INUMS;
141 magic
[all...]
/system/extras/libfec/
H A Dfec_verity.cpp511 if (header->magic != VERITY_MAGIC &&
512 header->magic != VERITY_MAGIC_DISABLE) {
565 /* use raw data to check for the alternative magic, because it will
567 if (v->header.magic == VERITY_MAGIC_DISABLE) {
588 if (!v->disabled && v->header.magic != v->ecc_header.magic) {
589 warn("corrected verity header magic");
590 v->header.magic = v->ecc_header.magic;
641 error("cannot update verity magic
658 uint32_t magic = enabled ? VERITY_MAGIC : VERITY_MAGIC_DISABLE; local
[all...]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
H A Dheader.h48 u64 magic; member in struct:perf_file_header
59 u64 magic; member in struct:perf_pipe_file_header
152 bool is_perf_magic(u64 magic);
/system/chre/build/app_support/qcom_nanohub/
H A Dapp_support.cc59 char magic[13]; member in struct:LegacyAppHdr
104 .magic = LEGACY_APP_HDR_MAGIC_ARRAY,
/system/update_engine/scripts/
H A Dbrillo_update_payload295 # Brillo images are zip files. We detect the 4-byte magic header of the zip
297 local magic=$(head --bytes=4 "${image}" | hexdump -e '1/1 "%.2x"')
298 if [[ "${magic}" == "504b0304" ]]; then
439 local magic=$(head --bytes=4 "${part_file}" | hexdump -e '1/1 "%.2x"')
440 if [[ "${magic}" == "3aff26ed" ]]; then

Completed in 696 milliseconds

123