/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 …]
|
D | DNSSD.cpp | 445 std::vector< BYTE > byteArray; in GetProperty() local 461 byteArray.reserve( psa->rgsabound[0].cElements ); in GetProperty() 462 byteArray.assign( byteArray.capacity(), 0 ); in GetProperty() 463 elems = ( uint32_t ) byteArray.capacity(); in GetProperty() 466 err = DNSServiceGetProperty( propUTF8.c_str(), &byteArray[ 0 ], &elems ); in GetProperty() 468 ok = ByteArrayToVariant( &byteArray[ 0 ], elems, value ); in GetProperty()
|
/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/harfbuzz_ng/src/ |
D | hb-ot-cff-common.hh | 120 const ByteStrArray &byteArray) in serialize() 123 if (byteArray.len == 0) in serialize() 133 this->count.set (byteArray.len); in serialize() 135 if (!unlikely (c->allocate_size<HBUINT8> (offSize_ * (byteArray.len + 1)))) in serialize() 141 for (; i < byteArray.len; i++) in serialize() 144 offset += byteArray[i].get_size (); in serialize() 149 for (unsigned int i = 0; i < byteArray.len; i++) in serialize() 153 !dest->serialize (c, byteArray[i]))) in serialize() 164 ByteStrArray byteArray; in serialize() local 165 byteArray.init (); in serialize() [all …]
|
/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/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | Relay.java | 57 private byte[] byteArray; field in Relay 108 byteArray = byteBuffer.array(); in run() 124 bytesRead = transport.read(byteArray, offset, bytesToRead); in run()
|
/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()
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ArrayReference/ |
D | ArrayReferenceDebuggee.java | 50 static byte[] byteArray = new byte[10]; field in ArrayReferenceDebuggee 55 byteArray[i] = (byte)i;
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
D | InjectedThing.java | 61 @Inject byte[] byteArray; field in InjectedThing 130 byte[] byteArray, in InjectedThing() 198 @Inject void byteArray(byte[] byteArray) {} in byteArray() method in InjectedThing
|
/external/llvm/unittests/DebugInfo/PDB/ |
D | MappedBlockStreamTest.cpp | 322 ArrayRef<uint8_t> byteArray[] = { byteArrayRef0, byteArrayRef1 }; in TEST() local 374 EXPECT_NO_ERROR(Writer.writeArray(byteArray[0])); in TEST() 375 EXPECT_NO_ERROR(Reader.readArray(byteArray[1], byteArray[0].size())); in TEST() 376 EXPECT_EQ(byteArray[0], byteArray[1]); in TEST()
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
D | Hex.java | 189 … byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object; in encode() 190 return encodeHex(byteArray); in encode()
|
/external/caliper/examples/src/main/java/examples/ |
D | CopyArrayBenchmark.java | 247 byte[] byteArray; field in CopyArrayBenchmark 258 byteArray = new byte[size]; in setUp() 271 byteArray[i] = (byte) num; in setUp() 300 dummy += System.identityHashCode(strategy.copy(byteArray)); in bytes()
|
/external/pdfium/fxbarcode/common/ |
D | BC_CommonByteArray.cpp | 39 CBC_CommonByteArray::CBC_CommonByteArray(uint8_t* byteArray, int32_t size) { in CBC_CommonByteArray() argument 42 memcpy(m_bytes, byteArray, size); in CBC_CommonByteArray()
|
D | BC_CommonByteArray.h | 20 CBC_CommonByteArray(uint8_t* byteArray, int32_t size);
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | Utf8Benchmark.java | 127 for (byte[] byteArray : byteArrays) { in isWellFormed() 128 if (!Utf8.isWellFormed(byteArray)) { in isWellFormed()
|
/external/icu/icu4c/source/tools/genrb/ |
D | wrtjava.cpp | 452 uint8_t* byteArray = NULL; in bytes_write_java() local 457 byteArray = res->fData; in bytes_write_java() 471 if (byteArray[byteIterator] < 128) in bytes_write_java() 473 sprintf(byteBuffer, byteDecl, byteArray[byteIterator]); in bytes_write_java() 477 sprintf(byteBuffer, byteDecl, (byteArray[byteIterator]-256)); in bytes_write_java()
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferTest.java | 470 byte[] byteArray = new byte[4]; in bufferInputStreamBulkReads() 472 Arrays.fill(byteArray, (byte) -5); in bufferInputStreamBulkReads() 474 assertEquals(3, in.read(byteArray)); in bufferInputStreamBulkReads() 475 assertEquals("[97, 98, 99, -5]", Arrays.toString(byteArray)); in bufferInputStreamBulkReads() 477 Arrays.fill(byteArray, (byte) -7); in bufferInputStreamBulkReads() 478 assertEquals(-1, in.read(byteArray)); in bufferInputStreamBulkReads() 479 assertEquals("[-7, -7, -7, -7]", Arrays.toString(byteArray)); in bufferInputStreamBulkReads()
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractNonStreamingHashFunction.java | 145 return hashBytes(stream.byteArray(), 0, stream.length()); in hash() 154 byte[] byteArray() { in byteArray() method in AbstractNonStreamingHashFunction.ExposedByteArrayOutputStream
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/MSF/ |
D | MappedBlockStreamTest.cpp | 332 ArrayRef<uint8_t> byteArray[] = {byteArrayRef0, byteArrayRef1}; in TEST() local 387 EXPECT_THAT_ERROR(Writer.writeArray(byteArray[0]), Succeeded()); in TEST() 388 EXPECT_THAT_ERROR(Reader.readArray(byteArray[1], byteArray[0].size()), in TEST() 390 EXPECT_EQ(byteArray[0], byteArray[1]); in TEST()
|
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/bsdiff/ |
D | RandomAccessObject.java | 137 public RandomAccessByteArrayObject(final byte[] byteArray) { in RandomAccessByteArrayObject() argument 138 mByteBuffer = ByteBuffer.wrap(byteArray); in RandomAccessByteArrayObject()
|