/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | ParsableByteArrayTest.java | 299 ParsableByteArray byteArray = new ParsableByteArray(new byte[] { in readLittleEndianLong() local 303 assertThat(byteArray.readLittleEndianLong()).isEqualTo(0xFF00000000000001L); in readLittleEndianLong() 304 assertThat(byteArray.getPosition()).isEqualTo(8); in readLittleEndianLong() 309 ParsableByteArray byteArray = new ParsableByteArray(new byte[] { in readLittleEndianUnsignedInt() local 312 assertThat(byteArray.readLittleEndianUnsignedInt()).isEqualTo(0xFF000010L); in readLittleEndianUnsignedInt() 313 assertThat(byteArray.getPosition()).isEqualTo(4); in readLittleEndianUnsignedInt() 318 ParsableByteArray byteArray = new ParsableByteArray(new byte[] { in readLittleEndianInt() local 321 assertThat(byteArray.readLittleEndianInt()).isEqualTo(0xFF000001); in readLittleEndianInt() 322 assertThat(byteArray.getPosition()).isEqualTo(4); in readLittleEndianInt() 328 ParsableByteArray byteArray = new ParsableByteArray(data); in readLittleEndianUnsignedInt24() local [all …]
|
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
D | ConvertUtils.java | 35 byte[] byteArray = new byte[parseString.length]; in convertStringToByteArray() 36 if (byteArray.length > 0) { in convertStringToByteArray() 41 byteArray[i] = (byte)val; in convertStringToByteArray() 44 return byteArray; in convertStringToByteArray() 53 public static String convertByteArrayToString(byte[] byteArray) { in convertByteArrayToString() argument 55 if (byteArray != null) { in convertByteArrayToString() 56 for (int i = 0; i < byteArray.length; i++) { in convertByteArrayToString() 57 if ((i + 1) != byteArray.length) { in convertByteArrayToString() 58 ret = ret + Integer.valueOf((byteArray[i]&0xFF)) + ","; in convertByteArrayToString() 61 ret = ret + Integer.valueOf((byteArray[i]&0xFF)); in convertByteArrayToString()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | ChecksumVerifyingInputStreamTest.java | 43 byte[] byteArray = new byte[3]; in testReadTakingByteArrayThrowsIOException() 44 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingByteArrayThrowsIOException() 47 checksumVerifyingInputStream.read(byteArray); in testReadTakingByteArrayThrowsIOException() 56 byte[] byteArray = new byte[9]; in testReadTakingNoArgumentsThrowsIOException() 57 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingNoArgumentsThrowsIOException() 69 byte[] byteArray = new byte[4]; in testSkip() 70 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testSkip() 72 int intOne = checksumVerifyingInputStream.read(byteArray); in testSkip() 79 assertArrayEquals(new byte[] {(byte)0, (byte)0, (byte)0, (byte)0}, byteArray); in testSkip()
|
D | ChecksumCalculatingInputStreamTest.java | 43 byte[] byteArray = new byte[0]; in testSkipReturningZero() 44 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testSkipReturningZero() 60 byte[] byteArray = new byte[6]; in testSkipReturningPositive() 61 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testSkipReturningPositive() 76 byte[] byteArray = new byte[6]; in testReadTakingNoArguments() 77 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingNoArguments() 80 int inputStreamReadResult = bufferedInputStream.read(byteArray, 0, 1); in testReadTakingNoArguments() 97 byte[] byteArray = new byte[6]; in testReadTakingByteArray() 98 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingByteArray() 100 int readResult = checksumCalculatingInputStream.read(byteArray); in testReadTakingByteArray()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/ |
D | ArchiveUtilsTest.java | 102 byte[] byteArray = new byte[8]; in testIsEqualWithNullWithPositive() 103 byteArray[1] = (byte) (-77); in testIsEqualWithNullWithPositive() 105 … assertFalse(ArchiveUtils.isEqualWithNull(byteArray, 0, (byte)0, byteArray, (byte)0, (byte)80)); in testIsEqualWithNullWithPositive() 112 byte[] byteArray = ArchiveUtils.toAsciiBytes("SOCKET"); in testToAsciiBytes() 114 …ertArrayEquals(new byte[] {(byte)83, (byte)79, (byte)67, (byte)75, (byte)69, (byte)84}, byteArray); in testToAsciiBytes() 116 assertFalse(ArchiveUtils.isEqualWithNull(byteArray, 0, 46, byteArray, 63, 0)); in testToAsciiBytes() 140 byte[] byteArray = new byte[3]; in testToAsciiStringThrowsStringIndexOutOfBoundsException() 142 ArchiveUtils.toAsciiString(byteArray, 940, 2730); in testToAsciiStringThrowsStringIndexOutOfBoundsException()
|
/external/mdnsresponder/mDNSWindows/DLLX/ |
D | DNSSDRecord.cpp | 40 std::vector< BYTE > byteArray; in Update() local 54 ok = VariantToByteArray( &rdata, byteArray ); in Update() 60 …bject->GetSubordRef(), m_rref, flags, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteA… in Update()
|
D | DNSSDService.cpp | 750 std::vector< BYTE > byteArray; in RegisterRecord() local 782 ok = VariantToByteArray( &rdata, byteArray ); in RegisterRecord() 812 …ullNameUTF8.c_str(), rrtype, rrclass, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteA… in RegisterRecord() 860 std::vector< BYTE > byteArray; in AddRecord() local 884 ok = VariantToByteArray( &rdata, byteArray ); in AddRecord() 914 …ord( m_primary, &rref, flags, rrtype, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteA… in AddRecord() 956 std::vector< BYTE > byteArray; in ReconfirmRecord() local 978 ok = VariantToByteArray( &rdata, byteArray ); in ReconfirmRecord() 984 …ullNameUTF8.c_str(), rrtype, rrclass, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteA… in ReconfirmRecord() 1008 std::vector< BYTE > byteArray; in GetProperty() local [all …]
|
/external/llvm-project/lldb/test/API/commands/watchpoints/watchpoint_size/ |
D | main.c | 5 uint8_t byteArray[8] = {0}; variable 22 byteArray[i] = 7; in main() 24 localByte = byteArray[i]; // Here onwards we should'nt be stopped in loop in main() 25 byteArray[i]++; in main() 26 localByte = byteArray[i]; in main()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/ |
D | ArArchiveInputStream.java | 208 private long asLong(final byte[] byteArray, int offset, int len) { in asLong() argument 209 return Long.parseLong(ArchiveUtils.toAsciiString(byteArray, offset, len).trim()); in asLong() 212 private int asInt(final byte[] byteArray, int offset, int len) { in asInt() argument 213 return asInt(byteArray, offset, len, 10, false); in asInt() 216 private int asInt(final byte[] byteArray, int offset, int len, final boolean treatBlankAsZero) { in asInt() argument 217 return asInt(byteArray, offset, len, 10, treatBlankAsZero); in asInt() 220 private int asInt(final byte[] byteArray, int offset, int len, final int base) { in asInt() argument 221 return asInt(byteArray, offset, len, base, false); in asInt() 224 …private int asInt(final byte[] byteArray, int offset, int len, final int base, final boolean treat… in asInt() argument 225 final String string = ArchiveUtils.toAsciiString(byteArray, offset, len).trim(); in asInt()
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | MessageDigestConsistencyTest.kt | 75 val byteArray = ByteArray(size).also { random.nextBytes(it) } in test() constant 80 input = byteArray, in test() 86 source = byteArray, in test() 94 val byteArray = data.readByteArray() in test() constant 96 val jdkHash = jdkMessageDigest.digest(byteArray) in test()
|
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/ |
D | CodecSpecificDataUtil.java | 38 ParsableByteArray byteArray = new ParsableByteArray(audioSpecificConfig); in parseAlacAudioSpecificConfig() local 39 byteArray.setPosition(9); in parseAlacAudioSpecificConfig() 40 int channelCount = byteArray.readUnsignedByte(); in parseAlacAudioSpecificConfig() 41 byteArray.setPosition(20); in parseAlacAudioSpecificConfig() 42 int sampleRate = byteArray.readUnsignedIntToInt(); in parseAlacAudioSpecificConfig()
|
/external/harfbuzz_ng/src/ |
D | hb-ot-cff-common.hh | 111 const byte_str_array_t &byteArray) in serialize() 114 if (byteArray.length == 0) in serialize() 124 this->count = byteArray.length; in serialize() 126 if (unlikely (!c->allocate_size<HBUINT8> (offSize_ * (byteArray.length + 1)))) in serialize() 132 for (; i < byteArray.length; i++) in serialize() 135 offset += byteArray[i].get_size (); in serialize() 140 for (unsigned int i = 0; i < byteArray.length; i++) in serialize() 142 const byte_str_t &bs = byteArray[i]; in serialize() 156 byte_str_array_t byteArray; in serialize() local 157 byteArray.init (); in serialize() [all …]
|
/external/cbor-java/src/main/java/co/nstant/in/cbor/decoder/ |
D | ByteStringDecoder.java | 47 byte[] byteArray = byteString.getBytes(); in decodeInfinitiveLength() 48 if (byteArray != null) { in decodeInfinitiveLength() 49 bytes.write(byteArray, 0, byteArray.length); in decodeInfinitiveLength()
|
D | UnicodeStringDecoder.java | 48 byte[] byteArray = unicodeString.toString().getBytes(StandardCharsets.UTF_8); in decodeInfinitiveLength() 49 bytes.write(byteArray, 0, byteArray.length); in decodeInfinitiveLength()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/util/ |
D | RequestPayloadTest.java | 35 byte[] byteArray = new byte[5]; in testCreateTaking2ArgumentsAndCallsGetRawPayload() 36 RequestPayload requestPayload = new RequestPayload(byteArray, "/ _ \" €"); in testCreateTaking2ArgumentsAndCallsGetRawPayload() 38 assertSame(byteArray, requestPayload.getRawPayload()); in testCreateTaking2ArgumentsAndCallsGetRawPayload()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/sevenz/ |
D | AES256SHA256DecoderTest.java | 46 byte[] byteArray = new byte[8]; in testDecodeWithNonEmptyString() 47 byteArray[1] = (byte) (-72); in testDecodeWithNonEmptyString() 48 coder.properties = byteArray; in testDecodeWithNonEmptyString()
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | LittleEndianByteArray.java | 30 private static final LittleEndianBytes byteArray; field in LittleEndianByteArray 44 return byteArray.getLongLittleEndian(input, offset); in load64() 82 byteArray.putLongLittleEndian(sink, offset, value); in store64() 106 return (byteArray instanceof UnsafeByteArray); in usingUnsafe() 255 byteArray = theGetter;
|
/external/guava/guava/src/com/google/common/hash/ |
D | LittleEndianByteArray.java | 30 private static final LittleEndianBytes byteArray; field in LittleEndianByteArray 44 return byteArray.getLongLittleEndian(input, offset); in load64() 82 byteArray.putLongLittleEndian(sink, offset, value); in store64() 106 return (byteArray instanceof UnsafeByteArray); in usingUnsafe() 255 byteArray = theGetter;
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/ |
D | AmrExtractorNonParameterizedTest.java | 200 for (byte[] byteArray : byteArrays) { in joinData() 201 totalLength += byteArray.length; in joinData() 205 for (byte[] byteArray : byteArrays) { in joinData() 206 System.arraycopy(byteArray, /* srcPos= */ 0, result, offset, byteArray.length); in joinData() 207 offset += byteArray.length; in joinData()
|
/external/guava/guava/src/com/google/common/math/ |
D | PairedStats.java | 304 public static PairedStats fromByteArray(byte[] byteArray) { in fromByteArray() argument 305 checkNotNull(byteArray); in fromByteArray() 307 byteArray.length == BYTES, in fromByteArray() 310 byteArray.length); in fromByteArray() 311 ByteBuffer buffer = ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
|
/external/guava/android/guava/src/com/google/common/math/ |
D | PairedStats.java | 304 public static PairedStats fromByteArray(byte[] byteArray) { in fromByteArray() argument 305 checkNotNull(byteArray); in fromByteArray() 307 byteArray.length == BYTES, in fromByteArray() 310 byteArray.length); in fromByteArray() 311 ByteBuffer buffer = ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
|
D | Stats.java | 551 public static Stats fromByteArray(byte[] byteArray) { in fromByteArray() argument 552 checkNotNull(byteArray); in fromByteArray() 554 byteArray.length == BYTES, in fromByteArray() 557 byteArray.length); in fromByteArray() 558 return readFrom(ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN)); in fromByteArray()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | TestUtil.java | 160 byte[] byteArray = new byte[intArray.length]; in createByteArray() 161 for (int i = 0; i < byteArray.length; i++) { in createByteArray() 163 byteArray[i] = (byte) intArray[i]; in createByteArray() 165 return byteArray; in createByteArray() 176 for (byte[] byteArray : byteArrays) { in joinByteArrays() 177 length += byteArray.length; in joinByteArrays() 181 for (byte[] byteArray : byteArrays) { in joinByteArrays() 182 System.arraycopy(byteArray, 0, joined, length, byteArray.length); in joinByteArrays() 183 length += byteArray.length; in joinByteArrays()
|
/external/llvm-project/lldb/test/API/commands/watchpoints/multi_watchpoint_slots/ |
D | main.c | 5 uint8_t byteArray[4] = {0}; variable 16 byteArray[i] = 7; in main()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/cpio/ |
D | CpioUtilTest.java | 76 byte[] byteArray = new byte[1]; in testByteArray2longThrowsUnsupportedOperationException() 78 CpioUtil.byteArray2long(byteArray, true); in testByteArray2longThrowsUnsupportedOperationException()
|