Home
last modified time | relevance | path

Searched full:magic (Results 1 – 25 of 6335) sorted by relevance

12345678910>>...254

/external/sdv/vsomeip/test/offer_tests/conf/
Doffer_test_big_sd_msg_slave.json.in23 …,"instance":"0x1","unreliable":"30001","reliable":{"port":"30001","enable-magic-cookies":"false"}},
24 …,"instance":"0x1","unreliable":"30002","reliable":{"port":"30002","enable-magic-cookies":"false"}},
25 …,"instance":"0x1","unreliable":"30003","reliable":{"port":"30003","enable-magic-cookies":"false"}},
26 …,"instance":"0x1","unreliable":"30004","reliable":{"port":"30004","enable-magic-cookies":"false"}},
27 …,"instance":"0x1","unreliable":"30005","reliable":{"port":"30005","enable-magic-cookies":"false"}},
28 …,"instance":"0x1","unreliable":"30006","reliable":{"port":"30006","enable-magic-cookies":"false"}},
29 …,"instance":"0x1","unreliable":"30007","reliable":{"port":"60000","enable-magic-cookies":"false"}},
30 …,"instance":"0x1","unreliable":"30008","reliable":{"port":"30008","enable-magic-cookies":"false"}},
31 …,"instance":"0x1","unreliable":"60000","reliable":{"port":"30009","enable-magic-cookies":"false"}},
32 …,"instance":"0x1","unreliable":"30010","reliable":{"port":"30010","enable-magic-cookies":"false"}},
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/lib/BinaryFormat/
DMagic.cpp1 //===- llvm/BinaryFormat/Magic.cpp - File magic identification --*- C++ -*-===//
9 #include "llvm/BinaryFormat/Magic.h"
28 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
29 return Magic.startswith(StringRef(S, N - 1)); in startswith()
32 /// Identify the magic in magic.
33 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() argument
34 if (Magic.size() < 4) in identify_magic()
36 switch ((unsigned char)Magic[0]) { in identify_magic()
39 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
42 if (Magic.size() < MinSize) in identify_magic()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
DMagic.cpp1 //===- llvm/BinaryFormat/Magic.cpp - File magic identification --*- C++ -*-===//
9 #include "llvm/BinaryFormat/Magic.h"
29 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
30 return Magic.startswith(StringRef(S, N - 1)); in startswith()
33 /// Identify the magic in magic.
34 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() argument
35 if (Magic.size() < 4) in identify_magic()
37 switch ((unsigned char)Magic[0]) { in identify_magic()
40 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
43 if (Magic.size() < MinSize) in identify_magic()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dext2_err.et.in15 "Wrong magic number for ext2_filsys structure"
18 "Wrong magic number for badblocks_list structure"
21 "Wrong magic number for badblocks_iterate structure"
24 "Wrong magic number for inode_scan structure"
27 "Wrong magic number for io_channel structure"
30 "Wrong magic number for unix io_channel structure"
33 "Wrong magic number for io_manager structure"
36 "Wrong magic number for block_bitmap structure"
39 "Wrong magic number for inode_bitmap structure"
42 "Wrong magic number for generic_bitmap structure"
[all …]
Dext2_err.c12 N_( "Wrong magic number for ext2_filsys structure"),
13 N_( "Wrong magic number for badblocks_list structure"),
14 N_( "Wrong magic number for badblocks_iterate structure"),
15 N_( "Wrong magic number for inode_scan structure"),
16 N_( "Wrong magic number for io_channel structure"),
17 N_( "Wrong magic number for unix io_channel structure"),
18 N_( "Wrong magic number for io_manager structure"),
19 N_( "Wrong magic number for block_bitmap structure"),
20 N_( "Wrong magic number for inode_bitmap structure"),
21 N_( "Wrong magic number for generic_bitmap structure"),
[all …]
Dgen_bitmap.c32 errcode_t magic; member
45 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
46 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
47 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
50 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
51 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
52 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
74 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic()
75 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic()
76 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic()
[all …]
/external/igt-gpu-tools/tests/
Dcore_auth.c70 unsigned long magic, iocs; in check_auth() local
75 if (drmGetClient(fd, i, &auth, &pid, &uid, &magic, &iocs) != 0) in check_auth()
90 drm_magic_t magic, *magics = NULL; in test_many_magics() local
113 /* resize magic-map */ in test_many_magics()
130 /* insert magic */ in test_many_magics()
131 igt_assert(drmGetMagic(slave, &magic) == 0); in test_many_magics()
132 igt_assert(magic > 0); in test_many_magics()
134 magics[i] = magic; in test_many_magics()
142 * We cannot open the DRM file anymore. Lets sort the magic-map and in test_many_magics()
143 * verify no magic was used multiple times. in test_many_magics()
[all …]
/external/fbjni/test/
DPrimitiveArrayTests.java29 private static final int MAGIC = 42; field in PrimitiveArrayTests
33 assertThat(nativeTestMakeBooleanArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
34 assertThat(nativeTestMakeByteArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
35 assertThat(nativeTestMakeCharArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
36 assertThat(nativeTestMakeShortArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
37 assertThat(nativeTestMakeIntArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
38 assertThat(nativeTestMakeLongArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
39 assertThat(nativeTestMakeFloatArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
40 assertThat(nativeTestMakeDoubleArray(MAGIC).length).isEqualTo(MAGIC); in testMakeArrays()
81 byte[] array = new byte[MAGIC]; in testGetSetByteArray()
[all …]
/external/libdrm/
Dxf86drmSL.c58 unsigned long magic; /* SL_ENTRY_MAGIC */ member
66 unsigned long magic; /* SL_LIST_MAGIC */ member
82 entry->magic = SL_ENTRY_MAGIC; in SLCreateEntry()
108 list->magic = SL_LIST_MAGIC; in drmSLCreate()
124 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
127 if (entry->magic != SL_ENTRY_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
129 entry->magic = SL_FREED_MAGIC; in drmSLDestroy()
133 list->magic = SL_FREED_MAGIC; in drmSLDestroy()
144 if (list->magic != SL_LIST_MAGIC) return NULL; in SLLocate()
163 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLInsert()
[all …]
/external/coreboot/src/commonlib/bsd/
Dcbfs_mcache.c13 * as stored on flash (i.e. values in big-endian), except that the CBFS magic signature in the
15 * bytes are a magic number (MCACHE_MAGIC_FILE) and the next 4 bytes are the absolute offset in
23 * mcache_entry that consists only of a magic number (MCACHE_MAGIC_END or MCACHE_MAGIC_FULL).
32 struct { /* These fields exactly overlap file.h.magic */
33 uint32_t magic; member
57 entry->magic = MCACHE_MAGIC_FILE; in build_walker()
72 - sizeof(uint32_t), /* leave space for terminating magic */ in cbfs_mcache_build()
81 entry->magic = MCACHE_MAGIC_END; in cbfs_mcache_build()
84 entry->magic = MCACHE_MAGIC_FULL; in cbfs_mcache_build()
88 args.count, args.mcache + sizeof(entry->magic) - mcache, size); in cbfs_mcache_build()
[all …]
/external/llvm/lib/Support/
DPath.cpp981 /// @brief Identify the magic in magic.
982 file_magic identify_magic(StringRef Magic) { in identify_magic() argument
983 if (Magic.size() < 4) in identify_magic()
985 switch ((unsigned char)Magic[0]) { in identify_magic()
988 if (Magic[1] == (char)0x00 && Magic[2] == (char)0xff && in identify_magic()
989 Magic[3] == (char)0xff) { in identify_magic()
991 if (Magic.size() < MinSize) in identify_magic()
995 Magic.data() + offsetof(COFF::BigObjHeader, Version)); in identify_magic()
999 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
1006 if (Magic.size() >= sizeof(Expected) && in identify_magic()
[all …]
/external/apache-commons-io/src/main/java/org/apache/commons/io/filefilter/
DMagicNumberFileFilter.java38 * File filter for matching files containing a "magic number". A magic number
57 * magic number will be offset by a certain number of bytes in the file. In the
112 * The magic number to compare against the file's bytes at the provided
118 * The offset (in bytes) within the files that the magic number's bytes
125 * Constructs a new MagicNumberFileFilter and associates it with the magic
132 * any changes to the magic number array after construction will affect the
142 * @param magicNumber the magic number to look for in the file.
153 * Constructs a new MagicNumberFileFilter and associates it with the magic
155 * to look for that magic number.
168 * @param magicNumbers the magic number to look for in the file.
[all …]
/external/dokka/core/testdata/format/website-html/
DoverloadGroup.html1 <div class='api-docs-breadcrumbs'><a href="index.html">test</a> / <a href="./magic.html">magic</a><…
2 <h1>magic</h1>
3 <div class="overload-group"><a name="$magic(kotlin.String)"></a>
4 …>fun </span><span class="identifier">magic</span><span class="symbol">(</span><span class="paramet…
10 <div class="overload-group"><a name="$magic(kotlin.Int)"></a>
11 …>fun </span><span class="identifier">magic</span><span class="symbol">(</span><span class="paramet…
/external/blktrace/
Dblktrace.h70 #define CHECK_MAGIC(t) (((t)->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC)
98 fprintf(stderr, "bad trace magic %x\n", t->magic); in verify_trace()
101 if ((t->magic & 0xff) != SUPPORTED_VERSION) { in verify_trace()
103 t->magic & 0xff); in verify_trace()
115 t->magic = be32_to_cpu(t->magic); in trace_to_cpu()
131 static inline int check_data_endianness(u32 magic) in check_data_endianness() argument
133 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
138 magic = __bswap_32(magic); in check_data_endianness()
139 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
/external/mesa3d/src/util/
Du_debug_memory.c79 unsigned magic; member
85 unsigned magic; member
144 hdr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc()
155 ftr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc()
175 if (hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_free()
184 if (ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_free()
205 hdr->magic = 0; in debug_free()
206 ftr->magic = 0; in debug_free()
239 if (old_hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc()
248 if (old_ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc()
[all …]
/external/angle/src/common/fuchsia_egl/
Dfuchsia_egl.c17 uint32_t magic; member
31 egl_window->magic = FUCHSIA_EGL_WINDOW_MAGIC; in fuchsia_egl_window_create()
40 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_destroy()
46 egl_window->magic = -1U; in fuchsia_egl_window_destroy()
52 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_resize()
61 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_get_width()
67 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_get_height()
73 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_release_image_pipe()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DPath.cpp985 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
986 return Magic.startswith(StringRef(S, N - 1)); in startswith()
989 /// @brief Identify the magic in magic.
990 file_magic identify_magic(StringRef Magic) { in identify_magic() argument
991 if (Magic.size() < 4) in identify_magic()
993 switch ((unsigned char)Magic[0]) { in identify_magic()
996 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
998 if (Magic.size() < MinSize) in identify_magic()
1001 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
1009 if (startswith(Magic, "\0\0\0\0\x20\0\0\0\xFF")) in identify_magic()
[all …]
/external/pigweed/pw_kvs/public/pw_kvs/
Dformat.h24 // The EntryFormat defines properties of KVS entries that use a particular magic
27 // Magic is a unique constant identifier for entries.
29 // Upon reading from an address in flash, the magic number facilitiates
36 // When selecting a magic for your particular KVS, pick a random 32 bit
44 uint32_t magic; member
55 // For KVS magic value always use a random 32 bit integer rather than a
58 uint32_t magic; member
96 bool KnownMagic(uint32_t magic) const { return Find(magic) != nullptr; } in KnownMagic() argument
98 const EntryFormat* Find(uint32_t magic) const;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DMachO.cpp41 uint32_t Magic; in jitLink_MachO() local
42 memcpy(&Magic, Data.data(), sizeof(uint32_t)); in jitLink_MachO()
44 dbgs() << "jitLink_MachO: magic = " << format("0x%08" PRIx32, Magic) in jitLink_MachO()
49 if (Magic == MachO::MH_MAGIC || Magic == MachO::MH_CIGAM) { in jitLink_MachO()
53 } else if (Magic == MachO::MH_MAGIC_64 || Magic == MachO::MH_CIGAM_64) { in jitLink_MachO()
57 if (Magic == MachO::MH_CIGAM_64) in jitLink_MachO()
77 Ctx->notifyFailed(make_error<JITLinkError>("MachO magic not valid")); in jitLink_MachO()
/external/dokka/core/testdata/format/website/
DoverloadGroup.md2 title: magic - test
6 <div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/magic">magic</a></d…
8 # magic chapter
12 …>fun </span><span class="identifier">magic</span><span class="symbol">(</span><span class="paramet…
25 …>fun </span><span class="identifier">magic</span><span class="symbol">(</span><span class="paramet…
/external/swiftshader/third_party/llvm-16.0/llvm/lib/ExecutionEngine/JITLink/
DMachO.cpp36 uint32_t Magic; in createLinkGraphFromMachOObject() local
37 memcpy(&Magic, Data.data(), sizeof(uint32_t)); in createLinkGraphFromMachOObject()
39 dbgs() << "jitLink_MachO: magic = " << format("0x%08" PRIx32, Magic) in createLinkGraphFromMachOObject()
44 if (Magic == MachO::MH_MAGIC || Magic == MachO::MH_CIGAM) in createLinkGraphFromMachOObject()
46 else if (Magic == MachO::MH_MAGIC_64 || Magic == MachO::MH_CIGAM_64) { in createLinkGraphFromMachOObject()
56 if (Magic == MachO::MH_CIGAM_64) in createLinkGraphFromMachOObject()
72 return make_error<JITLinkError>("Unrecognized MachO magic value"); in createLinkGraphFromMachOObject()
/external/google-breakpad/src/common/mac/
Dmacho_walker.cc134 // Read the magic bytes that's common amongst all mach-o files in FindHeader()
135 uint32_t magic; in FindHeader() local
136 if (!ReadBytes(&magic, sizeof(magic), 0)) in FindHeader()
139 offset = sizeof(magic); in FindHeader()
143 if (magic == FAT_MAGIC || magic == FAT_CIGAM) { in FindHeader()
146 else if (magic != MH_MAGIC && magic != MH_CIGAM && magic != MH_MAGIC_64 && in FindHeader()
147 magic != MH_CIGAM_64) { in FindHeader()
158 if (magic == MH_CIGAM || magic == MH_CIGAM_64) in FindHeader()
209 bool swap = (header.magic == MH_CIGAM); in WalkHeaderAtOffset()
235 bool swap = (header.magic == MH_CIGAM_64); in WalkHeader64AtOffset()
/external/trusty/lk/kernel/
Dport.c41 // different magic number.
65 int magic; member
74 int magic; member
80 int magic; member
160 if (wp->magic == WRITEPORT_MAGIC_X) in port_create()
178 wp->magic = WRITEPORT_MAGIC_W; in port_create()
210 rp->magic = READPORT_MAGIC; in port_open()
287 pg->magic = PORTGROUP_MAGIC; in port_group()
296 if ((rp->magic != READPORT_MAGIC) || rp->gport) { in port_group()
326 if (pg->magic != PORTGROUP_MAGIC) in port_group_add()
[all …]
/external/executorch/backends/xnnpack/serialization/
Dxnnpack_graph_serialize.py90 # magic bytes that should be at the beginning of the header
94 # Zeros magic
95 # We offset the magic by 4 bytes so that it is in the same location
96 # as the flatbuffer payload's magic. This way we can dynamically
99 # Header magic
132 We check that the magic and length is valid, but do not check that the offset and
133 … size values are valid. We ensure here that the XNNHeader metadata is valid (magic and length)
142 ValueError: if not enough data is provided, or if parsed length/magic are invalid
149 magic: bytes = data[XNNHeader.MAGIC_OFFSET]
158 if magic != XNNHeader.EXPECTED_MAGIC:
[all …]
/external/pigweed/pw_cpu_exception_cortex_m/
Dexception_entry_test_armv6m.cc68 uint32_t magic = kMagicPattern; in BeginBaseFaultTest() local
70 " mov r0, %[magic] \n" in BeginBaseFaultTest()
80 : /*input=*/[magic]"r"(magic) in BeginBaseFaultTest()
93 uint32_t magic = kMagicPattern; in BeginBaseFaultUnalignedStackTest() local
98 " mov r0, %[magic] \n" in BeginBaseFaultUnalignedStackTest()
110 : /*input=*/[magic]"r"(magic) in BeginBaseFaultUnalignedStackTest()
123 uint32_t magic = kMagicPattern; in BeginExtendedFaultTest() local
127 " mov r4, %[magic] \n" in BeginExtendedFaultTest()
129 " mov r11, %[magic] \n" in BeginExtendedFaultTest()
138 : /*input=*/[magic]"r"(magic) in BeginExtendedFaultTest()
[all …]

12345678910>>...254