Home
last modified time | relevance | path

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

12345678910>>...47

/aosp_15_r20/dalvik/dx/src/com/android/dex/
H A DDexFormat.java8 * http://www.apache.org/licenses/LICENSE-2.0
29 /** API level to target in order to generate const-method-handle and const-method-type */
32 /** API level to target in order to generate invoke-polymorphic and invoke-custom */
55 public static final String VERSION_FOR_API_10000 = "040";
58 public static final String VERSION_FOR_API_28 = "039";
61 public static final String VERSION_FOR_API_26 = "038";
64 public static final String VERSION_FOR_API_24 = "037";
67 public static final String VERSION_FOR_API_13 = "035";
76 public static final String VERSION_CURRENT = VERSION_FOR_API_28;
82 public static final String DEX_IN_JAR_NAME = "classes.dex";
[all …]
/aosp_15_r20/external/cronet/net/base/
H A 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 …]
/aosp_15_r20/art/libdexfile/dex/
H A Ddex_file_loader.cc8 * http://www.apache.org/licenses/LICENSE-2.0
24 #include "android-base/stringprintf.h"
129 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid() argument
130 return IsMagicValid(reinterpret_cast<uint8_t*>(&magic)); in IsMagicValid()
133 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid() argument
134 return StandardDexFile::IsMagicValid(magic) || in IsMagicValid()
135 CompactDexFile::IsMagicValid(magic); in IsMagicValid()
138 bool DexFileLoader::IsVersionAndMagicValid(const uint8_t* magic) { in IsVersionAndMagicValid() argument
139 if (StandardDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
140 return StandardDexFile::IsVersionValid(magic); in IsVersionAndMagicValid()
[all …]
H A Dstandard_dex_file.h8 * http://www.apache.org/licenses/LICENSE-2.0
66 uint16_t tries_size_; // the number of try_items for this instance. If non-zero,
83 // Write the standard dex specific magic.
84 static void WriteMagic(uint8_t* magic);
86 // Write the current version, note that the input is the address of the magic.
87 static void WriteCurrentVersion(uint8_t* magic);
90 // note that the input is the address of the magic.
91 static void WriteVersionBeforeDefaultMethods(uint8_t* magic);
97 // Returns true if the byte string points to the magic value.
98 static bool IsMagicValid(const uint8_t* magic);
[all …]
/aosp_15_r20/external/apache-commons-io/src/main/java/org/apache/commons/io/filefilter/
H A 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 …]
/aosp_15_r20/prebuilts/go/linux-x86/src/image/
Dformat.go2 // Use of this source code is governed by a BSD-style
18 // 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
34 // string can contain "?" wildcards that each match any one byte.
37 func RegisterFormat(name, magic string, decode func(io.Reader) (Image, error), decodeConfig func(io… argument
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 { argument
60 if len(magic) != len(b) {
[all …]
/aosp_15_r20/external/autotest/client/cros/faft/utils/
H A 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 …]
/aosp_15_r20/prebuilts/go/linux-x86/src/archive/tar/
Dformat.go2 // Use of this source code is governed by a BSD-style
20 // ------------------+--------+-----------+----------
31 // ------------------+--------+-----------+----------
32 // string encoding | ASCII | UTF-8 | binary
33 // sub-second times | no | yes | no
37 // the maximum number of bytes allowed for each string field and
42 // such as supported string encodings, support for sub-second timestamps,
59 // FormatUSTAR represents the USTAR header format defined in POSIX.1-1988.
64 // filenames larger than 256 characters, and non-ASCII filenames.
70 // FormatPAX represents the PAX header format defined in POSIX.1-2001.
[all …]
/aosp_15_r20/external/pigweed/pw_kvs/
H A 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 …]
H A Dkey_value_store_binary_format_test.cc7 // https://www.apache.org/licenses/LICENSE-2.0
75 constexpr auto MakeValidEntry(uint32_t magic, in MakeValidEntry() argument
79 constexpr size_t kKeyLength = kKeyLengthWithNull - 1; in MakeValidEntry()
82 bytes::Concat(magic, in MakeValidEntry()
84 uint8_t(kAlignmentBytes / 16 - 1), in MakeValidEntry()
88 bytes::String(key), in MakeValidEntry()
106 constexpr auto MakeDeletedEntry(uint32_t magic, in MakeDeletedEntry() argument
109 constexpr size_t kKeyLength = kKeyLengthWithNull - 1; in MakeDeletedEntry()
111 auto data = bytes::Concat(magic, in MakeDeletedEntry()
113 uint8_t(kAlignmentBytes / 16 - 1), in MakeDeletedEntry()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/debug/plan9obj/
Dfile.go2 // Use of this source code is governed by a BSD-style
29 Magic uint32 member
45 // This structure doesn't exist on-disk, but eases navigation
48 Name string
73 func (s *Section) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) }
79 Name string
90 msg string
94 func (e *formatError) Error() string {
104 func Open(name string) (*File, error) { argument
130 func parseMagic(magic []byte) (uint32, error) {
[all …]
/aosp_15_r20/system/extras/simpleperf/
H A Dtracing.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
20 #include <string.h>
24 #include <string>
27 #include <android-base/file.h>
28 #include <android-base/logging.h>
29 #include <android-base/parseint.h>
30 #include <android-base/stringprintf.h>
31 #include <android-base/strings.h>
56 void AppendData(std::vector<char>& data, const std::string& s) { in AppendData()
60 static void AppendFile(std::vector<char>& data, const std::string& file, in AppendFile()
[all …]
/aosp_15_r20/external/scapy/scapy/
H A Dutils.py91 :returns: a String only when dump=True
112 s = s[:-1]
129 :returns: a String only when dump=True
156 :returns: a String only if dump=True
175 """ Convert provided bitstring to a simple string of hex digits """
181 x=raw(x)[::-1]
182 y=raw(y)[::-1]
185 d = {(-1, -1): (0, (-1, -1))}
187 d[-1,j] = d[-1,j-1][0]+INSERT, (-1,j-1)
189 d[i,-1] = d[i-1,-1][0]+INSERT, (i-1,-1)
[all …]
/aosp_15_r20/external/pigweed/pw_tokenizer/py/pw_tokenizer/
H A Dtokens.py7 # https://www.apache.org/licenses/LICENSE-2.0
51 # The default hash length to use for C-style hashes. This value only applies
64 def _value(char: int | str) -> int:
69 string: str | bytes, *, hash_length: int | None = None
70 ) -> int:
71 """Hashes the string with the hash function used to generate tokens in C++.
77 hash_value = len(string)
80 for char in string[:hash_length]:
88 string: str | bytes, hash_length: int = DEFAULT_C_HASH_LENGTH
89 ) -> int:
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/internal/xcoff/
Dar.go2 // Use of this source code is governed by a BSD-style
28 Flmagic [SAIAMAG]byte // Archive magic string
30 Flgstoff [20]byte // 32-bits global symtab offset
31 Flgst64off [20]byte // 64-bits global symtab offset
59 magic string member
70 Name string
76 func OpenArchive(name string) (*Archive, error) { argument
105 return strconv.ParseInt(strings.TrimSpace(string(b)), 10, 64)
107 sr := io.NewSectionReader(r, 0, 1<<63-1)
110 var magic [SAIAMAG]byte
[all …]
/aosp_15_r20/dalvik/tools/dexdeps/src/com/android/dexdeps/
H A DDexData.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 private String[] mStrings; // strings from string_data_*
64 /** Verifies the given magic number. */
65 private static boolean verifyMagic(byte[] magic) { in verifyMagic() argument
66 return Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v035) in verifyMagic()
67 || Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v037) in verifyMagic()
68 || Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v038) in verifyMagic()
69 || Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v039) in verifyMagic()
70 || Arrays.equals(magic, HeaderItem.DEX_FILE_MAGIC_v041); in verifyMagic()
79 byte[] magic = new byte[8]; in parseHeaderItem()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/ToolDrivers/llvm-lib/
H A 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 …]
/aosp_15_r20/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <android-base/file.h>
28 #include "android-base/stringprintf.h"
45 #define STATS_DATA_DIR "/data/misc/stats-data"
46 #define STATS_SERVICE_DIR "/data/misc/stats-service"
61 string getFullFileName(const char* path) { in getFullFileName()
67 string StorageManager::getDataFileName(long wallClockSec, int uid, int64_t id) { in getDataFileName()
72 string StorageManager::getDataHistoryFileName(long wallClockSec, int uid, int64_t id) { in getDataHistoryFileName()
77 static string findTrainInfoFileNameLocked(const string& trainName) { in findTrainInfoFileNameLocked()
85 char* fileName = de->d_name; in findTrainInfoFileNameLocked()
[all …]
/aosp_15_r20/dalvik/dx/src/com/android/dx/cf/direct/
H A DDirectClassFile.java8 * http://www.apache.org/licenses/LICENSE-2.0
46 /** the expected value of the ClassFile.magic field */
52 * See http://en.wikipedia.org/wiki/Java_class_file for an up-to-date
82 * {@code non-null;} the file path for the class, excluding any base directory
85 private final String filePath;
87 /** {@code non-null;} the bytes of the file */
93 * for purposes of verification (such as magic number matching and
94 * path-package consistency checking)
99 * {@code null-ok;} the constant pool; only ever {@code null}
105 * the class file field {@code access_flags}; will be {@code -1}
[all …]
/aosp_15_r20/prebuilts/module_sdk/art/current/sdk/common_os/include/art/libdexfile/dex/
Dstandard_dex_file.h8 * http://www.apache.org/licenses/LICENSE-2.0
66 uint16_t tries_size_; // the number of try_items for this instance. If non-zero,
83 // Write the standard dex specific magic.
84 static void WriteMagic(uint8_t* magic);
86 // Write the current version, note that the input is the address of the magic.
87 static void WriteCurrentVersion(uint8_t* magic);
90 // note that the input is the address of the magic.
91 static void WriteVersionBeforeDefaultMethods(uint8_t* magic);
97 // Returns true if the byte string points to the magic value.
98 static bool IsMagicValid(const uint8_t* magic);
[all …]
/aosp_15_r20/prebuilts/module_sdk/art/13/include/art/libdexfile/dex/
Dstandard_dex_file.h8 * http://www.apache.org/licenses/LICENSE-2.0
66 uint16_t tries_size_; // the number of try_items for this instance. If non-zero,
83 // Write the standard dex specific magic.
84 static void WriteMagic(uint8_t* magic);
86 // Write the current version, note that the input is the address of the magic.
87 static void WriteCurrentVersion(uint8_t* magic);
90 // note that the input is the address of the magic.
91 static void WriteVersionBeforeDefaultMethods(uint8_t* magic);
97 // Returns true if the byte string points to the magic value.
98 static bool IsMagicValid(const uint8_t* magic);
[all …]
/aosp_15_r20/prebuilts/module_sdk/art/current/sdk/include/art/libdexfile/dex/
Dstandard_dex_file.h8 * http://www.apache.org/licenses/LICENSE-2.0
66 uint16_t tries_size_; // the number of try_items for this instance. If non-zero,
83 // Write the standard dex specific magic.
84 static void WriteMagic(uint8_t* magic);
86 // Write the current version, note that the input is the address of the magic.
87 static void WriteCurrentVersion(uint8_t* magic);
90 // note that the input is the address of the magic.
91 static void WriteVersionBeforeDefaultMethods(uint8_t* magic);
97 // Returns true if the byte string points to the magic value.
98 static bool IsMagicValid(const uint8_t* magic);
[all …]
/aosp_15_r20/prebuilts/module_sdk/art/13/common_os/include/art/libdexfile/dex/
Dstandard_dex_file.h8 * http://www.apache.org/licenses/LICENSE-2.0
66 uint16_t tries_size_; // the number of try_items for this instance. If non-zero,
83 // Write the standard dex specific magic.
84 static void WriteMagic(uint8_t* magic);
86 // Write the current version, note that the input is the address of the magic.
87 static void WriteCurrentVersion(uint8_t* magic);
90 // note that the input is the address of the magic.
91 static void WriteVersionBeforeDefaultMethods(uint8_t* magic);
97 // Returns true if the byte string points to the magic value.
98 static bool IsMagicValid(const uint8_t* magic);
[all …]
/aosp_15_r20/system/vold/
H A DCheckpoint.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
27 #include <string>
32 #include <android-base/file.h>
33 #include <android-base/logging.h>
34 #include <android-base/parseint.h>
35 #include <android-base/properties.h>
36 #include <android-base/unique_fd.h>
59 const std::string kMetadataCPFile = "/metadata/vold/checkpoint";
61 binder::Status error(const std::string& msg) { in error()
66 binder::Status error(int error, const std::string& msg) { in error()
[all …]
/aosp_15_r20/system/timezone/testing/src/main/java/libcore/timezone/testing/
H A DZoneInfoTestHelper.java8 * http://www.apache.org/licenses/LICENSE-2.0
38 private int magic = 0x545a6966; // Default, valid magic. field in ZoneInfoTestHelper.ZicDataBuilder
46 public ZicDataBuilder setMagic(int magic) { in setMagic() argument
47 this.magic = magic; in setMagic()
112 // Compute the 32-bit transitions / types. in build()
125 transitionTypes32Bit.add(transitionTypes64Bit[i - 1]); in build()
127 // Copy remaining transitions / types that fit in the 32-bit range. in build()
144 // Write 32-bit data. in build()
145 writeHeader(baos, magic, tzh_timecnt_32, tzh_typecnt, tzh_charcnt, tzh_leapcnt, in build()
153 // 64-bit data. in build()
[all …]

12345678910>>...47