/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtils.java | 46 public static long readUnsigned4Le(@Nonnull ByteBuffer bytes) throws IOException { in readUnsigned4Le() argument 47 Preconditions.checkNotNull(bytes, "bytes == null"); in readUnsigned4Le() 49 if (bytes.remaining() < 4) { in readUnsigned4Le() 50 throw new EOFException("Not enough data: 4 bytes expected, " + bytes.remaining() in readUnsigned4Le() 54 byte b0 = bytes.get(); in readUnsigned4Le() 55 byte b1 = bytes.get(); in readUnsigned4Le() 56 byte b2 = bytes.get(); in readUnsigned4Le() 57 byte b3 = bytes.get(); in readUnsigned4Le() 72 public static int readUnsigned2Le(@Nonnull ByteBuffer bytes) throws IOException { in readUnsigned2Le() argument 73 Preconditions.checkNotNull(bytes, "bytes == null"); in readUnsigned2Le() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZipField.java | 146 void skip(@Nonnull ByteBuffer bytes) throws IOException { in skip() argument 147 if (bytes.remaining() < size) { in skip() 149 + bytes.remaining() + " remain in the buffer."); in skip() 152 bytes.position(bytes.position() + size); in skip() 163 long read(@Nonnull ByteBuffer bytes) throws IOException { in read() argument 164 if (bytes.remaining() < size) { in read() 166 + bytes.remaining() + " remain in the buffer."); in read() 169 bytes.order(ByteOrder.LITTLE_ENDIAN); in read() 173 r = LittleEndianUtils.readUnsigned2Le(bytes); in read() 175 r = LittleEndianUtils.readUnsigned4Le(bytes); in read() [all …]
|
D | CentralDirectory.java | 224 static CentralDirectory makeFromData(@Nonnull ByteBuffer bytes, int count, @Nonnull ZFile file) in makeFromData() argument 226 Preconditions.checkNotNull(bytes, "bytes == null"); in makeFromData() 233 directory.readEntry(bytes); in makeFromData() 240 + bytes.position() in makeFromData() 281 private void readEntry(@Nonnull ByteBuffer bytes) throws IOException { in readEntry() argument 282 F_SIGNATURE.verify(bytes); in readEntry() 283 long madeBy = F_MADE_BY.read(bytes); in readEntry() 285 long versionNeededToExtract = F_VERSION_EXTRACT.read(bytes); in readEntry() 291 long gpBit = F_GP_BIT.read(bytes); in readEntry() 294 long methodCode = F_METHOD.read(bytes); in readEntry() [all …]
|
D | Eocd.java | 124 Eocd(@Nonnull ByteBuffer bytes) throws IOException { in Eocd() argument 129 F_SIGNATURE.verify(bytes); in Eocd() 130 F_NUMBER_OF_DISK.verify(bytes); in Eocd() 131 F_DISK_CD_START.verify(bytes); in Eocd() 132 long totalRecords1 = F_RECORDS_DISK.read(bytes); in Eocd() 133 long totalRecords2 = F_RECORDS_TOTAL.read(bytes); in Eocd() 134 long directorySize = F_CD_SIZE.read(bytes); in Eocd() 135 long directoryOffset = F_CD_OFFSET.read(bytes); in Eocd() 136 int commentSize = Ints.checkedCast(F_COMMENT_SIZE.read(bytes)); in Eocd() 152 if (bytes.remaining() < commentSize) { in Eocd() [all …]
|
D | EncodeUtils.java | 50 public static String decode(@Nonnull ByteBuffer bytes, int length, @Nonnull GPFlags flags) in decode() argument 52 if (bytes.remaining() < length) { in decode() 53 throw new IOException("Only " + bytes.remaining() + " bytes exist in the buffer, but " in decode() 58 bytes.get(stringBytes); in decode() 109 ByteBuffer bytes = charset.encode(name); in encode() local 110 byte[] result = new byte[bytes.remaining()]; in encode() 111 bytes.get(result); in encode()
|
D | StoredEntry.java | 357 public int read(byte[] bytes) throws IOException { in read() argument 358 if (bytes.length < getCentralDirectoryHeader().getUncompressedSize()) { in read() 363 return ByteStreams.read(is, bytes, 0, bytes.length); in read() 438 ByteBuffer bytes = ByteBuffer.wrap(localHeader); in readLocalHeader() local 439 F_LOCAL_SIGNATURE.verify(bytes); in readLocalHeader() 440 F_VERSION_EXTRACT.verify(bytes, compressInfo.getVersionExtract(), verifyLog); in readLocalHeader() 441 F_GP_BIT.verify(bytes, cdh.getGpBit().getValue(), verifyLog); in readLocalHeader() 442 F_METHOD.verify(bytes, compressInfo.getMethod().methodCode, verifyLog); in readLocalHeader() 445 F_LAST_MOD_TIME.skip(bytes); in readLocalHeader() 446 F_LAST_MOD_DATE.skip(bytes); in readLocalHeader() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ByteArrayUtil.java | 44 byte[] bytes, int offset, int length, int containerSize) { in getByteBuffer() argument 47 data[i] = bytes[offset + i]; in getByteBuffer() 63 public static int getInt(byte[] bytes, int offset, int length) { in getInt() argument 64 return getByteBuffer(bytes, offset, length, 4).getInt(); in getInt() 78 public static long getLong(byte[] bytes, int offset, int length) { in getLong() argument 79 return getByteBuffer(bytes, offset, length, 8).getLong(); in getLong() 89 public static String getString(byte[] bytes, int offset, int length) { in getString() argument 90 return new String(Arrays.copyOfRange(bytes, offset, offset + length)); in getString()
|
D | StreamUtil.java | 462 private static String bytesToHexString(byte[] bytes) { in bytesToHexString() argument 463 Objects.requireNonNull(bytes); in bytesToHexString() 464 StringBuilder sb = new StringBuilder(2 * bytes.length); in bytesToHexString() 465 for (int i = 0; i < bytes.length; i++) { in bytesToHexString() 466 int b = 0x0f & (bytes[i] >> 4); in bytesToHexString() 468 b = 0x0f & bytes[i]; in bytesToHexString()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4Signature.java | 45 static HashingInfo fromByteArray(byte[] bytes) throws IOException { in fromByteArray() argument 46 ByteBuffer buffer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray() 84 static SigningInfo fromByteArray(byte[] bytes) throws IOException { in fromByteArray() argument 85 ByteBuffer buffer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray() 157 static int bytesSize(byte[] bytes) { in bytesSize() argument 158 return 4/*length*/ + (bytes == null ? 0 : bytes.length); in bytesSize() 187 final byte[] bytes = new byte[size]; in readBytes() 188 readFully(stream, bytes); in readBytes() 189 return bytes; in readBytes() 203 final byte[] bytes = new byte[size]; in readBytes() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/ |
D | MatchFilterTest.py | 34 MF_NNNNN = bytes([0x0, 0x0, 0x0, 0x0, 0x0]) 35 MF_12345 = bytes([0x1, 0x1, 0x1, 0x2, 0x1, 0x3, 0x1, 0x4, 0x1, 0x5]) 36 MF_12145 = bytes([0x1, 0x1, 0x1, 0x2, 0x1, 0x1, 0x1, 0x4, 0x1, 0x5]) 37 MF_1N3N5 = bytes([0x1, 0x1, 0x0, 0x1, 0x3, 0x0, 0x1, 0x5]) 38 MF_N23N5 = bytes([0x0, 0x1, 0x2, 0x1, 0x3, 0x0, 0x1, 0x5]) 39 MF_N2N4 = bytes([0x0, 0x1, 0x2, 0x0, 0x1, 0x4]) 40 MF_1N3N = bytes([0x1, 0x1, 0x0, 0x1, 0x3, 0x0])
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_job_test.py | 18 from builtins import bytes 42 self._stdout = bytes(stdout, 43 'utf-8') if stdout is not None else bytes() 44 self._stderr = bytes(stderr, 45 'utf-8') if stderr is not None else bytes()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ConvertJarsToSignatureFiles.kt | 159 val bytes = ByteStreams.toByteArray(`is`) in <lambda>() constant 160 if (bytes != null) { in <lambda>() 161 markDeprecated(codebase, bytes, path + ":" + entry.name) in <lambda>() 180 val bytes = file.readBytes() in <lambda>() constant 181 markDeprecated(codebase, bytes, file.path) in <lambda>() 187 private fun markDeprecated(codebase: Codebase, bytes: ByteArray, path: String) { in <lambda>() 192 reader = ClassReader(bytes) in <lambda>()
|
D | RewriteAnnotations.kt | 155 val bytes = file.readBytes() in <lambda>() constant 156 val rewritten = rewriteClass(bytes, file.path) ?: return in <lambda>() 160 private fun rewriteClass(bytes: ByteArray, path: String): ByteArray? { in <lambda>() 162 val reader = ClassReader(bytes) in <lambda>() 250 val bytes = zis.readBytes() in <lambda>() constant 251 val rewritten = rewriteClass(bytes, name) in <lambda>() 255 zos.write(bytes) in <lambda>()
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
D | job.py | 77 stdout=bytes(), 78 stderr=bytes(), 149 out = bytes() 150 err = bytes()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | PasswordRetriever.java | 301 private static char[] castBytesToChars(byte[] bytes) { in castBytesToChars() argument 302 if (bytes == null) { in castBytesToChars() 306 char[] chars = new char[bytes.length]; in castBytesToChars() 307 for (int i = 0; i < bytes.length; i++) { in castBytesToChars() 308 chars[i] = (char) (bytes[i] & 0xff); in castBytesToChars()
|
/tools/apksig/src/main/java/com/android/apksig/internal/jar/ |
D | ManifestParser.java | 123 byte[] bytes = readAttributeBytes(); in readAttribute() 124 if (bytes == null) { in readAttribute() 126 } else if (bytes.length == 0) { in readAttribute() 129 return new String(bytes, StandardCharsets.UTF_8); in readAttribute()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ZipUtilFuncTest.java | 154 byte[] bytes = new byte[1024]; in addToZipFile() 156 while ((length = fis.read(bytes)) >= 0) { in addToZipFile() 157 zos.write(bytes, 0, length); in addToZipFile()
|
/tools/tradefederation/core/atest/proto/ |
D | clientanalytics.proto | 21 optional bytes source_extension = 6;
|
/tools/asuite/atest/proto/ |
D | clientanalytics.proto | 21 optional bytes source_extension = 6;
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | X509CertificateUtilsTest.java | 187 private static String getHexEncodedDigestOfBytes(byte[] bytes) in getHexEncodedDigestOfBytes() argument 189 return HexEncoding.encode(MessageDigest.getInstance("SHA-256").digest(bytes)); in getHexEncodedDigestOfBytes()
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/ |
D | nanopb.proto | 2 // - Maximum size of string/bytes 33 // Allocated size for 'bytes' and 'string' fields.
|
/tools/security/fuzzing/example_fuzzer/ |
D | README.md | 47 INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes 74 Shadow bytes around the buggy address: 86 Shadow byte legend (one shadow byte represents 8 application bytes):
|
/tools/repohooks/rh/ |
D | shell.py | 74 if isinstance(s, bytes):
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | AndroidJarReader.java | 132 byte[] bytes = ByteStreams.toByteArray(zis); in readJar() 133 ClassReader reader = new ClassReader(bytes); in readJar()
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/ |
D | aware_test_utils.py | 188 obj = bytes() 191 base64.b64encode(bytes(obj, 'utf-8')).decode('utf-8')) 224 mf_list.append(bytes([i])) 226 mf_list.append(bytes([255])) 228 mf_list.append(bytes([254, 255]))
|