/external/okhttp/okio/okio/src/main/java/okio/ |
DeflaterSink.java | 58 @Override public void write(Buffer source, long byteCount) 60 checkOffsetAndCount(source.size, 0, byteCount); 61 while (byteCount > 0) { 64 int toDeflate = (int) Math.min(byteCount, head.limit - head.pos); 78 byteCount -= toDeflate;
|
BufferedSink.java | 39 * Like {@link OutputStream#write(byte[], int, int)}, this writes {@code byteCount} 42 BufferedSink write(byte[] source, int offset, int byteCount) throws IOException; 50 /** Removes {@code byteCount} bytes from {@code source} and appends them to this sink. */ 51 BufferedSink write(Source source, long byteCount) throws IOException;
|
/external/okhttp/okio/okio/src/test/java/okio/ |
DeflaterSinkTest.java | 84 int byteCount = Segment.SIZE * 4; 85 deflaterSink.write(new Buffer().writeUtf8(repeat('a', byteCount)), byteCount); 87 assertEquals(repeat('a', byteCount), inflate(buffer).readUtf8(byteCount));
|
SocketTimeoutTest.java | 123 private static void writeFully(OutputStream out, int byteCount) throws IOException { 124 out.write(new byte[byteCount]); 128 private static byte[] readFully(InputStream in, int byteCount) throws IOException { 130 byte[] result = new byte[byteCount]; 131 while (count < byteCount) {
|
/external/protobuf/src/google/protobuf/io/ |
coded_stream_unittest.cc | 197 EXPECT_EQ(kVarintCases_case.size, input.ByteCount()); 214 EXPECT_EQ(kVarintCases_case.size, input.ByteCount()); 236 virtual int64 ByteCount() const { return 0; } 272 EXPECT_EQ(kVarintCases_case.size + 1, input.ByteCount()); 274 EXPECT_EQ(1, input.ByteCount()); 308 EXPECT_EQ(kVarintCases_case.size, input.ByteCount()); 325 EXPECT_EQ(kVarintCases_case.size, coded_output.ByteCount()); 328 EXPECT_EQ(kVarintCases_case.size, output.ByteCount()); 342 EXPECT_EQ(kVarintCases_case.size, coded_output.ByteCount()); 345 EXPECT_EQ(kVarintCases_case.size, output.ByteCount()); [all...] |
printer_unittest.cc | 77 buffer[output.ByteCount()] = '\0'; 103 buffer[output.ByteCount()] = '\0'; 138 buffer[output.ByteCount()] = '\0'; 163 buffer[output.ByteCount()] = '\0'; 204 buffer[output.ByteCount()] = '\0';
|
/libcore/luni/src/main/java/libcore/io/ |
IoBridge.java | 465 public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 466 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 467 if (byteCount == 0) { 471 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); 489 public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 490 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 491 if (byteCount == 0) { 495 while (byteCount > 0) { 496 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); 497 byteCount -= bytesWritten [all...] |
/external/dng_sdk/source/ |
dng_opcode_list.h | 142 /// specified offset (streamOffset, in bytes). byteCount is provided for 145 /// match byteCount. 149 uint32 byteCount,
|
/frameworks/base/core/jni/ |
android_ddm_DdmHandleNativeHeap.cpp | 60 ssize_t byteCount; 61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 62 s.append(bytes, byteCount);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
JPEGInputStream.java | 137 public long skip(long byteCount) throws IOException { 138 if (byteCount <= 0) { 142 int flag = skipDecodedBytes((int) (0x7FFFFFFF & byteCount));
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
FaultyFileSystem.java | 85 @Override public void write(Buffer source, long byteCount) throws IOException { 87 super.write(source, byteCount);
|
/libcore/benchmarks/src/benchmarks/ |
ZipFileBenchmark.java | 70 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); 71 out.write(writeBuffer, 0, byteCount);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
FramedConnection.java | 295 * window sufficient to send {@code byteCount}, the caller will block. For example, a user of 299 * <p>Zero {@code byteCount} writes are not subject to flow control and will not block. The only 300 * use case for zero {@code byteCount} is closing a flushed output stream. 302 public void writeData(int streamId, boolean outFinished, Buffer buffer, long byteCount) 304 if (byteCount == 0) { // Empty data frames are not flow-controlled. 309 while (byteCount > 0) { 325 toWrite = (int) Math.min(byteCount, bytesLeftInWriteWindow); 330 byteCount -= toWrite; 331 frameWriter.data(outFinished && byteCount == 0, streamId, buffer, toWrite); 846 * Eagerly reads {@code byteCount} bytes from the source before launching a background task t [all...] |
/external/sfntly/cpp/src/sfntly/table/ |
byte_array_table_builder.cc | 45 int32_t ByteArrayTableBuilder::ByteCount() {
|
/external/skia/include/core/ |
SkMetaData.h | 58 const void* findData(const char name[], size_t* byteCount = NULL) const; 81 bool hasData(const char name[], const void* data, size_t byteCount) const { 84 return ptr && len == byteCount && !memcmp(ptr, data, len); 94 void setData(const char name[], const void* data, size_t byteCount);
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ |
ARDBitrateTracker.h | 28 - (void)updateBitrateWithCurrentByteCount:(NSInteger)byteCount;
|
/frameworks/base/core/java/android/os/ |
FileBridge.java | 178 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { 179 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); 181 Memory.pokeInt(mTemp, 4, byteCount, ByteOrder.BIG_ENDIAN); 183 IoBridge.write(mClient, buffer, byteOffset, byteCount);
|
/libnativehelper/include/nativehelper/ |
AsynchronousCloseMonitor.h | 33 * byteCount = ::read(fd, buf, sizeof(buf));
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/ |
MSOutlookKeyIdCalculator.java | 42 private long byteCount; 70 byteCount = t.byteCount; 84 byteCount++; 112 byteCount += xBuf.length; 129 long bitLength = (byteCount << 3); 148 byteCount = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
byte_array_utils.h | 235 int byteCount = 0; 243 byteCount += 3; 246 byteCount += 1; 251 byteCount += 1; 253 return byteCount;
|
/prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.6.0/ |
okio-1.6.0.jar | |
/system/core/tzdatacheck/ |
tzdatacheck.cpp | 47 * Opens a file and fills headerBytes with the first byteCount bytes from the file. It is a fatal 51 static bool readHeader(const std::string& tzDataFileName, char* headerBytes, size_t byteCount) { 60 size_t bytesRead = fread(headerBytes, 1, byteCount, tzDataFile); 61 if (bytesRead != byteCount) { 62 LOG(FATAL) << tzDataFileName << " is too small. " << byteCount << " bytes required";
|
/external/curl/lib/ |
openldap.c | 469 data->req.size = data->req.bytecount; 500 data->req.bytecount += bv.bv_len + 5; 528 data->req.bytecount += bv.bv_len + 2; 565 data->req.bytecount += 2; 572 data->req.bytecount += val_b64_sz; 585 data->req.bytecount += bvals[i].bv_len + 1; 591 data->req.bytecount++; 597 data->req.bytecount++; 602 data->req.bytecount++;
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
IO.java | 175 /** Copy Stream in to Stream for byteCount bytes or until EOF or exception. 179 long byteCount) 185 if (byteCount>=0) 187 while (byteCount>0) 189 int max = byteCount<bufferSize?(int)byteCount:bufferSize; 195 byteCount -= len; 212 /** Copy Reader to Writer for byteCount bytes or until EOF or exception. 216 long byteCount) 222 if (byteCount>=0 [all...] |
/external/toybox/toys/other/ |
bzcat.c | 73 int byteCount[256]; 323 *byteCount, *base, *limit; 332 byteCount = bw->byteCount; 334 byteCount[ii] = 0; 407 byteCount[uc] += hh; 430 byteCount[uc]++; 454 int *byteCount = bw->byteCount; 459 // Turn byteCount into cumulative occurrence counts of 0 to n-1 [all...] |