/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidPipedStreamTest.java | 121 byte readBytes[] = new byte[5]; 127 ret = in.read(readBytes, nread, readBytes.length - nread); 137 int readInt = (((int) readBytes[0] & 0xff) << 24) 138 | (((int) readBytes[1] & 0xff) << 16) 139 | (((int) readBytes[2] & 0xff) << 8) 140 | (((int) readBytes[3] & 0xff)); 144 assertEquals("Error at " + countRead, 0, readBytes[4]); 196 final byte readBytes[] = new byte[1024 * 2]; 209 while (nread < readBytes.length) [all...] |
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/core/util/ |
IoUtilTest.groovy | 30 * Test the readBytes() method
35 assert IoUtil.readBytes(input) == BYTES
39 * Test the readBytes() method, passing in a null
42 shouldFailWithMessageContaining("input") { IoUtil.readBytes(null) }
|
/external/llvm/tools/lli/ChildTarget/ |
ChildTarget.cpp | 39 int ReadBytes(void *Data, size_t Size) { 40 return RPC.ReadBytes(Data, Size) ? Size : -1; 69 if (ReadBytes(&MsgType, 4) > 0) 101 int rc = ReadBytes(&DataSize, 4); 109 rc = ReadBytes(&Alignment, 4); 111 rc = ReadBytes(&AllocSize, 4); 125 int rc = ReadBytes(&DataSize, 4); 131 rc = ReadBytes(&Addr, 8); 139 rc = ReadBytes((void*)Addr, BufferSize); 154 int rc = ReadBytes(&DataSize, 4) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
ByteSourceTester.java | 111 byte[] readBytes = ByteStreams.toByteArray(in); 112 assertExpectedBytes(readBytes); 121 byte[] readBytes = ByteStreams.toByteArray(in); 122 assertExpectedBytes(readBytes); 129 byte[] readBytes = source.read(); 130 assertExpectedBytes(readBytes); 170 byte[] readBytes = source.read(new ByteProcessor<byte[]>() { 185 assertExpectedBytes(readBytes); 207 private void assertExpectedBytes(byte[] readBytes) { 208 assertArrayEquals(expected, readBytes); [all...] |
/external/llvm/unittests/Support/ |
StreamingMemoryObject.cpp | 36 EXPECT_EQ((uint64_t) 16, O.readBytes(Buf, 16, 0)); 38 EXPECT_EQ((uint64_t) 8, O.readBytes(Buf, 16, 16));
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
TextureDownloadTest.java | 53 int readBytes = 0;
55 int length = in.read(out, readBytes, out.length - readBytes);
57 readBytes += length;
59 return readBytes;
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/ |
XmlMessageWrapper.java | 132 String receiverId = new String(readBytes(stream, 136 byte[] payloadLenBytes = readBytes(stream, HEADER_FIELD_PAYLOAD_LENGTH); 139 int protocolVersion = shortBigEndianBytesToInt(readBytes(stream, 142 byte createorId = readBytes(stream, 1)[0]; 143 byte[] padding = readBytes(stream, HEADER_FIELD_PADDING_LENGTH); 144 byte[] payload = readBytes(stream, (int)payloadLen); 247 private static byte[] readBytes(InputStream stream, int numBytes)
|
/external/llvm/include/llvm/Support/ |
MemoryObject.h | 19 /// when the request is made. This just means that readByte/readBytes might have 26 /// of the stream. Finally, getPointer can be used instead of readBytes to avoid 47 virtual uint64_t readBytes(uint8_t *Buf, uint64_t Size, 51 /// More efficient than using readBytes if the data is already in memory. May
|
/external/google-breakpad/src/common/mac/ |
macho_walker.cc | 103 bool MachoWalker::ReadBytes(void *buffer, size_t size, off_t offset) { 136 if (!ReadBytes(&magic, sizeof(magic), 0)) 155 if (!ReadBytes(&header, sizeof(header), 0)) 173 if (!ReadBytes(&fat, sizeof(fat), offset)) 184 if (!ReadBytes(&arch, sizeof(arch), offset)) 206 if (!ReadBytes(&header, sizeof(header), offset)) 232 if (!ReadBytes(&header, sizeof(header), offset)) 254 if (!ReadBytes(&cmd, sizeof(cmd), offset))
|
macho_id.cc | 148 if (!walker->ReadBytes(buffer, buffer_size, file_offset)) 260 if (!walker->ReadBytes(&seg, sizeof(seg), offset)) 277 if (!walker->ReadBytes(&sec, sizeof(sec), offset)) 293 if (!walker->ReadBytes(&seg64, sizeof(seg64), offset)) 310 if (!walker->ReadBytes(&sec64, sizeof(sec64), offset)) 338 if (!walker->ReadBytes(uuid_cmd, sizeof(struct breakpad_uuid_command), 358 if (!walker->ReadBytes(dylib_cmd, sizeof(struct dylib_command), offset))
|
/frameworks/av/drm/libdrmframework/include/ |
ReadWriteUtils.h | 48 static String8 readBytes(const String8& filePath); 56 static int readBytes(const String8& filePath, char** buffer);
|
/external/webrtc/webrtc/base/ |
bytebuffer.cc | 72 return ReadBytes(reinterpret_cast<char*>(val), 1); 79 if (!ReadBytes(reinterpret_cast<char*>(&v), 2)) { 96 if (!ReadBytes(read_into, 3)) { 108 if (!ReadBytes(reinterpret_cast<char*>(&v), 4)) { 120 if (!ReadBytes(reinterpret_cast<char*>(&v), 8)) { 140 bool ByteBuffer::ReadBytes(char* val, size_t len) {
|
/external/tpm2/ |
TcpServer.c | 15 BOOL ReadBytes(SOCKET s, char* buffer, int NumBytes); 100 ok = ReadBytes(s, (char*) &Command, 4); 314 // ReadBytes() 319 ReadBytes( 409 res = ReadBytes(s, (char*) &length, 4); 419 res = ReadBytes(s, buffer, length); 466 ok = ReadBytes(s, (char*) &Command, 4); 489 ok = ReadBytes(s, (char*) &locality, 1); 524 ok = ReadBytes(s, (char*)&clientVersion, 4); 537 ok = ReadBytes(s, (char*)&result, 4) [all...] |
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
BinaryDictOffdeviceUtils.java | 197 int readBytes = 0; 199 while (readBytes != outBuffer.length) { 200 readBytesLastCycle = inputStream.read(outBuffer, readBytes, 201 outBuffer.length - readBytes); 204 + " (expected " + outBuffer.length + ", read " + readBytes + ")"); 205 readBytes += readBytesLastCycle; 211 for (int readBytes = input.read(buffer); readBytes >= 0; readBytes = input.read(buffer)) { 212 output.write(buffer, 0, readBytes); [all...] |
/hardware/bsp/intel/peripheral/libupm/src/ds1307/ |
ds1307.cxx | 74 int DS1307::readBytes(uint8_t reg, uint8_t *buffer, int len) 94 int bytesRead = readBytes(0, buffer, 7); 144 readBytes(0, &tmpbuf, 1); 181 readBytes(0, &buf, 1); 194 readBytes(0, &buf, 1);
|
/cts/tests/tests/os/src/android/os/cts/ |
MemoryFileTest.java | 121 mMemoryFile.readBytes(gotData, 0, 0, gotData.length); 143 mMemoryFile.readBytes(data, srcOffset, destOffset, count); 160 mMemoryFile.readBytes(data, 0, 0, 128);
|
/external/llvm/lib/Support/ |
StreamingMemoryObject.cpp | 28 uint64_t readBytes(uint8_t *Buf, uint64_t Size, 49 uint64_t RawMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, 87 uint64_t StreamingMemoryObject::readBytes(uint8_t *Buf, uint64_t Size,
|
/external/sfntly/cpp/src/test/ |
font_parsing_test.cc | 67 wfd->ReadBytes(0, &(b[0]), 0, TTF_LENGTH[SAMPLE_TTF_FEAT]); 93 wfd1->ReadBytes(0, &(b1[0]), 0, TTF_LENGTH[i]); 94 wfd2->ReadBytes(0, &(b2[0]), 0, TTF_LENGTH[i]);
|
/hardware/bsp/intel/peripheral/libupm/src/nunchuck/ |
nunchuck.cxx | 82 int NUNCHUCK::readBytes(uint8_t reg, uint8_t *buffer, int len) 113 rv = readBytes(0x00, buf, bufsize); 118 ": readBytes() failed");
|
/frameworks/av/drm/common/ |
ReadWriteUtils.cpp | 35 String8 ReadWriteUtils::readBytes(const String8& filePath) { 57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) {
|
DrmRights.cpp | 30 rightsLength = ReadWriteUtils::readBytes(rightsFilePath, &mRightsFromFile);
|
/external/libgdx/extensions/gdx-bullet/jni/swig/extras/serialize/ |
gdxBulletSerialize.i | 32 buff.put(fileHandle.readBytes());
|
/external/lzma/CPP/7zip/Common/ |
InBuffer.h | 78 size_t ReadBytes(Byte *buf, size_t size);
|
/external/opencv3/samples/wp8/OcvImageManipulation/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/ |
DirectXHelper.h | 37 Streams::DataReader::FromBuffer(fileBuffer)->ReadBytes(fileData);
|
/external/opencv3/samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/ |
DirectXHelper.h | 37 Streams::DataReader::FromBuffer(fileBuffer)->ReadBytes(fileData);
|