Home
last modified time | relevance | path

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

12345678910>>...479

/aosp_15_r20/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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/BinaryFormat/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
H A 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 …]
/aosp_15_r20/external/e2fsprogs/lib/ext2fs/
H A 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 …]
H A 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 …]
H A 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 …]
/aosp_15_r20/external/llvm/lib/Support/
H A 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 …]
/aosp_15_r20/external/fbjni/test/
H A 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 …]
/aosp_15_r20/external/igt-gpu-tools/tests/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-subzero/lib/Support/
H A DPath.cpp984 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
985 return Magic.startswith(StringRef(S, N - 1)); in startswith()
988 /// @brief Identify the magic in magic.
989 file_magic identify_magic(StringRef Magic) { in identify_magic() argument
990 if (Magic.size() < 4) in identify_magic()
992 switch ((unsigned char)Magic[0]) { in identify_magic()
995 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
997 if (Magic.size() < MinSize) in identify_magic()
1000 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
1008 if (startswith(Magic, "\0\0\0\0\x20\0\0\0\xFF")) in identify_magic()
[all …]
/aosp_15_r20/dalvik/dx/src/com/android/dex/
H A DDexFormat.java84 /** common prefix for all dex file "magic numbers" */
87 /** common suffix for all dex file "magic numbers" */
109 * Returns the API level corresponding to the given magic number,
111 * magic number.
113 * @param magic array of bytes containing DEX file magic string
114 * @return API level corresponding to magic string if valid, -1 otherwise.
116 public static int magicToApi(byte[] magic) { in magicToApi() argument
117 if (magic.length != 8) { in magicToApi()
121 if ((magic[0] != 'd') || (magic[1] != 'e') || (magic[2] != 'x') || (magic[3] != '\n') || in magicToApi()
122 (magic[7] != '\0')) { in magicToApi()
[all …]
/aosp_15_r20/dalvik/dx/tests/003-magic-version-access/
H A Dexpected.txt1 reading class-bad-magic.txt...
3 magic: deadbabe
8 bad class file magic (deadbabe)
9 ...while parsing class-bad-magic.txt
12 magic: cafebabe
21 magic: cafebabe
30 magic: cafebabe
51 magic: cafebabe
72 magic: cafebabe
93 magic: cafebabe
[all …]
/aosp_15_r20/external/libdrm/
H A 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 …]
/aosp_15_r20/external/cronet/net/base/
H A Dmime_sniffer.cc100 // The number of content bytes we need to use all our magic numbers. Feel free
101 // to increase this number if you add a longer magic number.
106 const std::string_view magic; member
108 const char* const mask; // if set, must have same length as |magic|
111 #define MAGIC_NUMBER(mime_type, magic) \ argument
112 { (mime_type), std::string_view((magic), sizeof(magic) - 1), false, nullptr }
122 #define verified_sizeof(magic, mask) \ argument
123 VerifySizes<sizeof(magic), sizeof(mask)>::SIZES
125 #define MAGIC_MASK(mime_type, magic, mask) \ argument
127 (mime_type), std::string_view((magic), verified_sizeof(magic, mask) - 1), \
[all …]
/aosp_15_r20/external/apache-commons-io/src/main/java/org/apache/commons/io/filefilter/
H A 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 …]
/aosp_15_r20/external/coreboot/src/commonlib/bsd/
H A 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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/tcpdump/tests/
H A Ddhcp-rfc4388.out6 Magic Cookie 0x63825363
21 Magic Cookie 0x63825363
32 Magic Cookie 0x63825363
47 Magic Cookie 0x63825363
64 Magic Cookie 0x63825363
72 Magic Cookie 0x63825363
85 Magic Cookie 0x63825363
100 Magic Cookie 0x63825363
111 Magic Cookie 0x63825363
126 Magic Cookie 0x63825363
[all …]
H A DQinQpacketv.out6 Magic Cookie 0x63825363
19 Magic Cookie 0x63825363
33 Magic Cookie 0x63825363
46 Magic Cookie 0x63825363
59 Magic Cookie 0x63825363
72 Magic Cookie 0x63825363
85 Magic Cookie 0x63825363
98 Magic Cookie 0x63825363
116 Magic Cookie 0x63825363
129 Magic Cookie 0x63825363
[all …]
/aosp_15_r20/external/mesa3d/src/util/
H A 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 …]
/aosp_15_r20/external/pigweed/pw_kvs/
H A Dentry_test.cc35 // For magic value always use a random 32 bit integer rather than a human
73 EXPECT_EQ(entry.magic(), kFormat.magic); in TEST()
85 EXPECT_EQ(entry.magic(), kFormat.magic); in TEST()
90 // For magic value always use a unique random 32 bit integer rather than a human
133 EXPECT_EQ(entry_.magic(), kMagicWithChecksum); in TEST_F()
221 "\x42\x51\x16\xad" // magic
250 EXPECT_EQ(entry_.magic(), kMagicWithChecksum); in TEST_F()
331 EXPECT_EQ(kFormatWithChecksum.magic, entry_.magic()); in TEST_F()
341 EXPECT_EQ(kFormat.magic, entry_.magic()); in TEST_F()
354 // For magic value always use a random 32 bit integer rather than a human
[all …]
/aosp_15_r20/external/scapy/scapy/contrib/
H A Dhttp2.uts377 # Magic bits are not supposed to be modified and if they are anyway, they must
378 # be assigned the magic|default value only...
485 assert(p.magic == 1)
489 assert(p.magic == 1)
507 assert(p.magic == 1)
522 assert(p.magic == 1)
555 assert(p.magic == 0)
573 assert(p.magic == 0)
591 assert(p.magic == 0)
636 assert(p.magic == 1)
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/image/
Dformat.go18 // A format holds an image format's name, magic header and how to decode it.
20 name, magic string member
33 // Magic is the magic prefix that identifies the format's encoding. The magic
37 func RegisterFormat(name, magic string, decode func(io.Reader) (Image, error), decodeConfig func(io…
40 atomicFormats.Store(append(formats, format{name, magic, decode, decodeConfig}))
58 // match reports whether magic matches b. Magic may contain "?" wildcards.
59 func match(magic string, b []byte) bool {
60 if len(magic) != len(b) {
64 if magic[i] != c && magic[i] != '?' {
75 b, err := r.Peek(len(f.magic))
[all …]
/aosp_15_r20/external/pigweed/pw_cpu_exception_cortex_m/
H A Dexception_entry_test.cc94 // Magic pattern to help identify if the exception handler's
122 uint32_t magic = kMagicPattern; in BeginBaseFaultTest() local
124 " mov r0, %[magic] \n" in BeginBaseFaultTest()
132 : /*input=*/[magic]"r"(magic) in BeginBaseFaultTest()
149 volatile uint32_t magic = kNestedMagicPattern; in BeginNestedFaultTest() local
151 " mov r0, %[magic] \n" in BeginNestedFaultTest()
159 : /*input=*/[magic]"r"(magic), [magic_addr]"r"(&magic) in BeginNestedFaultTest()
171 uint32_t magic = kMagicPattern; in BeginBaseFaultUnalignedStackTest() local
176 " mov r0, %[magic] \n" in BeginBaseFaultUnalignedStackTest()
186 : /*input=*/[magic]"r"(magic) in BeginBaseFaultUnalignedStackTest()
[all …]
/aosp_15_r20/external/ublksrv/nbd/
H A Dnbd-client.c141 uint64_t magic; in send_request() member
174 uint64_t magic; member
184 retval->magic = ntohll(retval->magic); in read_reply()
188 if (retval->magic != rep_magic) { in read_reply()
189 …printf(stderr, "E: received invalid negotiation magic %" PRIu64 " (expected %" PRIu64 ")", retval-… in read_reply()
204 uint64_t magic; in ask_list() local
214 if(read(sock, &magic, sizeof(magic)) < 0) { in ask_list()
215 err("Reading magic from server: %m"); in ask_list()
226 magic=ntohll(magic); in ask_list()
229 if(magic != rep_magic) { in ask_list()
[all …]

12345678910>>...479