Home
last modified time | relevance | path

Searched +full:magic +full:- +full:string (Results 1 – 25 of 1155) sorted by relevance

12345678910>>...47

/external/apache-commons-io/src/main/java/org/apache/commons/io/filefilter/
DMagicNumberFileFilter.java9 * http://www.apache.org/licenses/LICENSE-2.0
38 * File filter for matching files containing a "magic number". A magic number
49 * String[] javaClassFiles = dir.list(javaClassFileFilter);
50 * for (String javaClassFile : javaClassFiles) {
57 * magic number will be offset by a certain number of bytes in the file. In the
65 * String[] tarFiles = dir.list(tarFileFilter);
66 * for (String tarFile : tarFiles) {
100 * @see FileFilterUtils#magicNumberFileFilter(String)
102 * @see FileFilterUtils#magicNumberFileFilter(String, long)
109 private static final long serialVersionUID = -547733176983104172L;
[all …]
DFileFilterUtils.java9 * http://www.apache.org/licenses/LICENSE-2.0
426 * Returns a filter that accepts files that begin with the provided magic
429 * @param magicNumber the magic number (byte sequence) to match at the
433 * magic number.
445 * Returns a filter that accepts files that contains the provided magic
448 * @param magicNumber the magic number (byte sequence) to match at the
450 * @param offset the offset within the files to look for the magic number.
452 * @return an IOFileFilter that accepts files containing the magic number
466 * Returns a filter that accepts files that begin with the provided magic
469 * @param magicNumber the magic number (byte sequence) to match at the
[all …]
/external/autotest/client/cros/faft/utils/
Dos_interface.py2 # Use of this source code is governed by a BSD-style license that can be
25 """Init the instance. If running on Mario - adjust the map."""
96 """Run shell command and check its stdout for a string."""
131 cmd = 'test -e %s' % path
136 cmd = 'test -d %s' % path
141 cmd = 'mkdir -p %s' % path
147 cmd = 'mktemp -p %s %sXXXXXX' % (tmp_path, prefix)
152 cmd = 'cp -f %s %s' % (from_path, to_path)
157 cmd = 'cp -rf %s %s' % (from_path, to_path)
162 cmd = 'rm -f %s' % path
[all …]
/external/cronet/net/base/
Dmime_sniffer.cc2 // Use of this source code is governed by a BSD-style license that can be
9 // HTML payload, no Content-Type header:
18 // HTML payload, Content-Type: "text/plain":
28 // We generalize this as follows. If the Content-Type header is text/plain
31 // HTML payload, Content-Type: "application/octet-stream":
33 // * Firefox 2: Download as application/octet-stream
38 // => Chrome: Download as application/octet-stream
40 // application/octet-stream for .xhtml files (because they don't recognize
44 // GIF payload, no Content-Type header:
53 // Once we decide to render HTML without a Content-Type header, there isn't much
[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>
4magic</span><span class="symbol">(</span><span class="parameterName" id="$magic(kotlin.String)/spe…
7 <code>spell</code> - The text of spell, often distributed on scrolls</p>
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…
14 <code>spell</code> - Spell ID of previously casted spell</p>
/external/oss-fuzz/projects/file/
Dmagic_fuzzer.cc7 // http://www.apache.org/licenses/LICENSE-2.0
20 #include <string>
22 #include <magic.h>
25 Environment(std::string data_dir) { in Environment()
26 magic = magic_open(MAGIC_NONE); in Environment()
27 std::string magic_path = data_dir + "/magic"; in Environment()
28 if (magic_load(magic, magic_path.c_str())) { in Environment()
29 fprintf(stderr, "error loading magic file: %s\n", magic_error(magic)); in Environment()
34 magic_t magic; member
52 magic_buffer(env->magic, data, size); in LLVMFuzzerTestOneInput()
/external/dokka/core/testdata/format/website/
DoverloadGroup.md1 ---
2 title: magic - test
4 ---
6 <div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/magic">magic</a></d…
8 # magic chapter
10 <div class="overload-group" markdown="1">
12magic</span><span class="symbol">(</span><span class="parameterName" id="$magic(kotlin.String)/spe…
16 <code>spell</code> - The text of spell, often distributed on scrolls
23 <div class="overload-group" markdown="1">
25 …>fun </span><span class="identifier">magic</span><span class="symbol">(</span><span class="paramet…
[all …]
/external/armnn/tests/
DMnistDatabase.cpp3 // SPDX-License-Identifier: MIT
19 MnistDatabase::MnistDatabase(const std::string& binaryFileDirectory, bool scaleValues) in MnistDatabase()
30 std::string imagePath = m_BinaryDirectory + std::string("t10k-images.idx3-ubyte"); in GetTestCaseData()
31 std::string labelPath = m_BinaryDirectory + std::string("t10k-labels.idx1-ubyte"); in GetTestCaseData()
47 unsigned int magic, num, row, col; in GetTestCaseData() local
50 imageStream.read(reinterpret_cast<char*>(&magic), sizeof(magic)); in GetTestCaseData()
51 if (magic != 0x03080000) in GetTestCaseData()
56 labelStream.read(reinterpret_cast<char*>(&magic), sizeof(magic)); in GetTestCaseData()
57 if (magic != 0x01080000) in GetTestCaseData()
63 …// Endian swaps the image and label file - all the integers in the files are stored in MSB first(h… in GetTestCaseData()
[all …]
/external/ltp/testcases/kernel/fs/binfmt_misc/
Dbinfmt_misc02.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
11 # or magic is matched.
13 # or magic is mismatched.
28 local string="$2"
31 if [ $? -ne 0 ] || ! grep -q "$string" temp; then
37 if [ $? -ne 0 ] || grep -q enable "$mntpoint/$name"; then
43 if [ $? -eq 0 ] || grep -q "$string" temp; then
54 local string="$2"
57 if [ $? -eq 0 ] || grep -q "$string" temp; then
66 local delimiter=$(echo "$1" | head -c1)
[all …]
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/
DTestErrorCallbackActivity.java8 * http://www.apache.org/licenses/LICENSE-2.0
43 mStatusDeleteCallback.setText(getString(R.string.plug_or_unplug)); in onTestDeleteCrash()
60 int magic = getCallbackMagic();
61 updateMagicDisplay(magic);
80 private void updateMagicDisplay(int magic) { in updateMagicDisplay() argument
81 if (magic != 0) { in updateMagicDisplay()
82 String text = getString(R.string.report_magic_pass, MAGIC_GOOD); in updateMagicDisplay()
83 if (magic != MAGIC_GOOD) { in updateMagicDisplay()
84 text = getString(R.string.report_magic_fail, in updateMagicDisplay()
85 magic, MAGIC_GOOD); in updateMagicDisplay()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/
DTarConstants.java10 * http://www.apache.org/licenses/LICENSE-2.0
100 /** Offset of start of magic field within header record */
103 * The length of the magic field in a header buffer.
107 /** Offset of start of magic field within header record */
110 * Previously this was regarded as part of "magic" field, but it is separate.
271 * Identifies the entry as a Pax extended header (SunOS tar -E).
285 * The magic tag representing a POSIX tar archive.
287 String MAGIC_POSIX = "ustar\0";
288 String VERSION_POSIX = "00";
291 * The magic tag representing a GNU tar archive.
[all …]
/external/wpa_supplicant_8/src/utils/
Dwpabuf.c3 * Copyright (c) 2007-2012, Jouni Malinen <j@w1.fi>
19 unsigned int magic; member
25 ((const u8 *) buf - sizeof(struct wpabuf_trace)); in wpabuf_get_trace()
34 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow()
35 wpa_printf(MSG_ERROR, "wpabuf: invalid magic %x", in wpabuf_overflow()
36 trace->magic); in wpabuf_overflow()
40 buf, (unsigned long) buf->size, (unsigned long) buf->used, in wpabuf_overflow()
56 return *_buf == NULL ? -1 : 0; in wpabuf_resize()
61 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize()
62 wpa_printf(MSG_ERROR, "wpabuf: invalid magic %x", in wpabuf_resize()
[all …]
/external/pigweed/pw_kvs/
Dentry_test.cc7 // https://www.apache.org/licenses/LICENSE-2.0
35 // For magic value always use a random 32 bit integer rather than a human
52 for (size_t value : {size_t(0), align - 1, align, align + 1, 2 * align}) { in TEST()
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
95 constexpr auto kKey1 = bytes::String("key45");
96 constexpr auto kValue1 = bytes::String("VALUE!");
97 constexpr auto kPadding1 = bytes::String("\0\0\0\0\0");
133 EXPECT_EQ(entry_.magic(), kMagicWithChecksum); in TEST_F()
[all …]
/external/starlark-go/internal/compile/
Dserial.go13 // "sky!" [4]byte # magic number
16 // filename string
20 // names []string
49 // filename string
53 // type varint # 0=string string
54 // data ... # 1=bytes string
57 // # 4=bigint string (decimal ASCII text)
59 // The encoding starts with a four-byte magic number.
60 // The next four bytes are a little-endian uint32
61 // that provides the offset of the string section
[all …]
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dtokens.py7 # https://www.apache.org/licenses/LICENSE-2.0
43 # The default hash length to use for C-style hashes. This value only applies
56 def _value(char: int | str) -> int:
61 string: str | bytes, *, hash_length: int | None = None
62 ) -> int:
63 """Hashes the string with the hash function used to generate tokens in C++.
69 hash_value = len(string)
72 for char in string[:hash_length]:
80 string: str | bytes, hash_length: int = DEFAULT_C_HASH_LENGTH
81 ) -> int:
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/lib/ToolDrivers/llvm-lib/
DLibDriver.cpp1 //===- LibDriver.cpp - lib.exe-compatible driver --------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Defines an interface to a lib.exe-compatible driver that also understands
10 // bitcode files. Used by llvm-lib and lld-link /lib.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
18 #include "llvm/BinaryFormat/Magic.h"
47 std::size(NAME##_init) - 1);
65 static std::string getDefaultOutputPath(const NewArchiveMember &FirstMember) { in getDefaultOutputPath()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ToolDrivers/llvm-lib/
DLibDriver.cpp1 //===- LibDriver.cpp - lib.exe-compatible driver --------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Defines an interface to a lib.exe-compatible driver that also understands
10 // bitcode files. Used by llvm-lib and lld-link /lib.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
18 #include "llvm/BinaryFormat/Magic.h"
62 static std::string getOutputPath(opt::InputArgList *Args, in getOutputPath()
64 if (auto *Arg = Args->getLastArg(OPT_out)) in getOutputPath()
[all …]
/external/igt-gpu-tools/tests/
Dcore_auth.c33 #include <string.h>
70 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()
[all …]
/external/pigweed/pw_kvs/public/pw_kvs/
Dformat.h7 // https://www.apache.org/licenses/LICENSE-2.0
24 // 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
32 // - Reading erased data - typically 0xFF - from flash.
33 // - Reading corrupted data
34 // - Reading a valid entry
36 // When selecting a magic for your particular KVS, pick a random 32 bit
38 // probability of a collision with a real string when scanning in the case of
41 $ python3 -c 'import random; print(hex(random.randint(0,2**32)))'
[all …]
/external/libbrillo/brillo/timezone/
Dtzif_parser.cc2 // Use of this source code is governed by a BSD-style license that can be
9 #include <string.h>
22 char magic[4]; member
36 int read = file->ReadAtCurrentPos(reinterpret_cast<char*>(&buf), sizeof(buf)); in ReadInt()
40 // Values are stored in network byte order (highest-order byte first). in ReadInt()
48 int read = tzfile->ReadAtCurrentPos(header->magic, sizeof(header->magic)); in ParseTzifHeader()
49 if (read != sizeof(header->magic)) { in ParseTzifHeader()
52 if (memcmp(header->magic, "TZif", 4) != 0) { in ParseTzifHeader()
56 read = tzfile->ReadAtCurrentPos(&header->version, sizeof(header->version)); in ParseTzifHeader()
57 if (read != sizeof(header->version)) { in ParseTzifHeader()
[all …]
/external/trusty/lk/lib/klog/
Dklog.c29 #include <string.h>
44 uint32_t magic; member
54 uint32_t magic; member
71 DEBUG_ASSERT(klog_buf->magic == KLOG_BUFFER_HEADER_MAGIC); in find_nth_log()
72 DEBUG_ASSERT(log < klog_buf->log_count); in find_nth_log()
76 DEBUG_ASSERT(k->magic == KLOG_HEADER_MAGIC); in find_nth_log()
78 uint8_t *ptr = (uint8_t *)k->data; in find_nth_log()
79 ptr += k->size; in find_nth_log()
82 log--; in find_nth_log()
91 DEBUG_ASSERT(kb->magic == KLOG_BUFFER_HEADER_MAGIC); in get_checksum_klog_buffer_header()
[all …]
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Dtokenize_string.h7 // https://www.apache.org/licenses/LICENSE-2.0
19 // - C++ hash constexpr function, which works for any hash length
20 // - C 80-character hash macro
21 // - C 96-character hash macro
22 // - C 128-character hash macro
33 // starts with a header comprised of a magic number, the token, and the domain
34 // and string lengths. The domain and tokenized string follow immediately after
38 uint32_t magic; // must be _PW_TOKENIZER_ENTRY_MAGIC member
39 uint32_t token; // the token that represents this string.
40 uint32_t domain_length; // domain string length
[all …]
/external/cronet/net/data/cache_tests/dirty_entry5/
Dcontents.txt2 magic: c103cac3
4 entries: 2 <---- there is an extra entry on the lru.
29 -------------------------
32 magic: c104cac3
48 -------------------------
51 magic: c104cac3
67 -------------------------
70 magic: c104cac3
86 -------------------------
89 magic: c104cac3
[all …]
/external/llvm/include/llvm/Bitcode/
DReaderWriter.h1 //===-- llvm/Bitcode/ReaderWriter.h - Bitcode reader/writers ----*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
23 #include <string>
33 /// Offsets of the 32-bit fields of bitcode wrapper header.
58 /// triple information. If successful, this returns a string. On error, this
60 std::string getBitcodeTargetTriple(MemoryBufferRef Buffer,
69 /// producer string information. If successful, this returns a string. On
71 std::string getBitcodeProducerString(MemoryBufferRef Buffer,
93 /// If \c ShouldPreserveUseListOrder, encode the use-list order for each \a
[all …]
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_msg.c19 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
67 * Hypervisor-specific bi-directional communication channel. Should never
78 * @magic: [IN] hypervisor magic value
81 * @cx: [OUT] e.g. status from a non-HB message status command
87 port_num, magic, \ argument
97 "a"(magic), \
109 * Hypervisor-specific bi-directional communication channel. Should never
118 * @magic: [IN] hypervisor magic value
122 * @cx: [OUT] e.g. status from a non-HB message status command
132 port_num, magic, bp, \ argument
[all …]

12345678910>>...47