/external/brotli/java/org/brotli/dec/ |
BrotliInputStream.java | 118 public int read(byte[] destBuffer, int destOffset, int destLen) throws IOException { 119 if (destOffset < 0) { 120 throw new IllegalArgumentException("Bad offset: " + destOffset); 123 } else if (destOffset + destLen > destBuffer.length) { 125 "Buffer overflow: " + (destOffset + destLen) + " > " + destBuffer.length); 132 System.arraycopy(buffer, bufferOffset, destBuffer, destOffset, copyLen); 134 destOffset += copyLen; 142 state.outputOffset = destOffset;
|
/cts/tests/sensor/jni/ |
android_hardware_cts_SensorDirectReportTest.cpp | 26 jobject hardwareBufferObj, jbyteArray buffer, jint srcOffset, jint destOffset, jint count) { 28 srcOffset < 0 || destOffset < 0 || count <= 0) { 32 if (env->GetArrayLength(buffer) < destOffset + count) { 49 env->SetByteArrayRegion(buffer, destOffset, count,
|
/external/brotli/csharp/org/brotli/dec/ |
BrotliInputStream.cs | 141 public override int Read(byte[] destBuffer, int destOffset, int destLen)
143 if (destOffset < 0)
145 throw new System.ArgumentException("Bad offset: " + destOffset);
151 else if (destOffset + destLen > destBuffer.Length)
153 throw new System.ArgumentException("Buffer overflow: " + (destOffset + destLen) + " > " + destBuffer.Length);
163 System.Array.Copy(buffer, bufferOffset, destBuffer, destOffset, copyLen);
165 destOffset += copyLen;
175 state.outputOffset = destOffset;
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
OkHttpReadableBuffer.java | 56 public void readBytes(byte[] dest, int destOffset, int length) { 58 int bytesRead = buffer.read(dest, destOffset, length); 63 destOffset += bytesRead;
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
TraceOptions.java | 143 * the {@code destOffset} offset. 148 * System.arraycopy(getBytes(), 0, dest, destOffset, TraceOptions.SIZE); 152 * @param destOffset the starting offset in the destination buffer. 154 * @throws IndexOutOfBoundsException if {@code destOffset+TraceOptions.SIZE} is greater than 158 public void copyBytesTo(byte[] dest, int destOffset) { 159 Utils.checkIndex(destOffset, dest.length); 160 dest[destOffset] = options;
|
SpanId.java | 141 * the {@code destOffset} offset. 146 * System.arraycopy(getBytes(), 0, dest, destOffset, SpanId.SIZE); 150 * @param destOffset the starting offset in the destination buffer. 152 * @throws IndexOutOfBoundsException if {@code destOffset+SpanId.SIZE} is greater than {@code 156 public void copyBytesTo(byte[] dest, int destOffset) { 157 System.arraycopy(bytes, 0, dest, destOffset, SIZE);
|
TraceId.java | 142 * the {@code destOffset} offset. 147 * System.arraycopy(getBytes(), 0, dest, destOffset, TraceId.SIZE); 151 * @param destOffset the starting offset in the destination buffer. 153 * @throws IndexOutOfBoundsException if {@code destOffset+TraceId.SIZE} is greater than {@code 157 public void copyBytesTo(byte[] dest, int destOffset) { 158 System.arraycopy(bytes, 0, dest, destOffset, SIZE);
|
/cts/tests/tests/os/src/android/os/cts/ |
MemoryFileTest.java | 53 private void checkWriteBytesInIllegalParameter(int srcOffset, int destOffset, int count) 57 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); 136 private void checkReadBytesInIllegalParameter(int srcOffset, int destOffset, int count) 140 mMemoryFile.readBytes(data, srcOffset, destOffset, count);
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
ReadableBuffer.java | 66 * @param destOffset the starting offset in the destination array. 71 void readBytes(byte[] dest, int destOffset, int length);
|
ForwardingReadableBuffer.java | 65 public void readBytes(byte[] dest, int destOffset, int length) { 66 buf.readBytes(dest, destOffset, length);
|
ReadableBuffers.java | 236 public void readBytes(byte[] dest, int destOffset, int length) { 238 bytes.get(dest, destOffset, length); 320 public int read(byte[] dest, int destOffset, int length) throws IOException { 327 buffer.readBytes(dest, destOffset, length);
|
CompositeReadableBuffer.java | 90 public void readBytes(final byte[] dest, final int destOffset, int length) { 92 int currentOffset = destOffset;
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
EncodedBufferTest.java | 316 private void testWriteFromThisBuffer(int chunkSize, int destOffset, int srcOffset, int size) 329 System.arraycopy(expected, srcOffset, expected, destOffset, size); 337 // Skip destOffset bytes (also tests that writing from offset 0 to offset 0 works). 338 if (destOffset != 0) { 339 buffer.writeFromThisBuffer(0, destOffset); 348 assertEquals(destOffset+size, buffer.getWritePos()); 351 private void testWriteFromThisBufferFails(int chunkSize, int destOffset, int srcOffset, 354 testWriteFromThisBuffer(chunkSize, destOffset, srcOffset, size); 356 + " chunkSize=" + chunkSize + " destOffset=" + destOffset [all...] |
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
AttributeResolution.java | 106 int destOffset = 0; 202 outValues[destOffset + STYLE_TYPE] = value.dataType; 203 outValues[destOffset + STYLE_DATA] = value.data; 204 outValues[destOffset + STYLE_ASSET_COOKIE] = 206 outValues[destOffset + STYLE_RESOURCE_ID] = resid; 207 outValues[destOffset + STYLE_CHANGING_CONFIGURATIONS] = typeSetFlags; 208 outValues[destOffset + STYLE_DENSITY] = config.density; 215 destOffset += STYLE_NUM_ENTRIES;
|
AttributeResolution10.java | 132 int destOffset = 0; 220 out_values[destOffset + STYLE_TYPE] = value.dataType; 221 out_values[destOffset + STYLE_DATA] = value.data; 222 out_values[destOffset + STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(cookie); 223 out_values[destOffset + STYLE_RESOURCE_ID] = resid; 224 out_values[destOffset + STYLE_CHANGING_CONFIGURATIONS] = type_set_flags; 225 out_values[destOffset + STYLE_DENSITY] = config.density; 232 destOffset += STYLE_NUM_ENTRIES;
|
AttributeResolution9.java | 128 int destOffset = 0; 216 out_values[destOffset + STYLE_TYPE] = value.dataType; 217 out_values[destOffset + STYLE_DATA] = value.data; 218 out_values[destOffset + STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(cookie); 219 out_values[destOffset + STYLE_RESOURCE_ID] = resid; 220 out_values[destOffset + STYLE_CHANGING_CONFIGURATIONS] = type_set_flags; 221 out_values[destOffset + STYLE_DENSITY] = config.density; 228 destOffset += STYLE_NUM_ENTRIES;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowArscAssetManager.java | 744 int destOffset = 0; 898 int destOffset = 0; 900 while (destOffset < NV && destOffset < bagOff * STYLE_NUM_ENTRIES /*&& arrayEnt < endArrayEnt*/) { 901 bag_entry curArrayEnt = arrayEnt.get()[destOffset / STYLE_NUM_ENTRIES]; 932 dest[destOffset + STYLE_TYPE] = value.dataType; 933 dest[destOffset + STYLE_DATA] = value.data; 934 dest[destOffset + STYLE_ASSET_COOKIE] = res.getTableCookie(block); 935 dest[destOffset + STYLE_RESOURCE_ID] = resid.get(); 936 dest[destOffset + STYLE_CHANGING_CONFIGURATIONS] = typeSetFlags.get() [all...] |
/external/pdfium/core/fxge/dib/ |
cfx_dibitmap.cpp | 279 int destOffset = 0; 289 destOffset = 3; 307 destOffset = g_ChannelOffset[destChannel]; 333 destOffset = 0; 338 uint8_t* dest_pos = (uint8_t*)pDst->GetScanline(row) + destOffset; 353 int destOffset; 359 destOffset = 0; 361 destOffset = 0; 366 destOffset = 3; 386 destOffset = g_ChannelOffset[destChannel] [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
TimeZoneNames.java | 424 String[] dest, int destOffset) { 438 dest[destOffset + i] = name;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
TimeZoneNames.java | 457 String[] dest, int destOffset) { 471 dest[destOffset + i] = name;
|
/external/mesa3d/src/intel/vulkan/ |
genX_query.c | 733 VkDeviceSize destOffset, 755 gpu_write_query_result(&cmd_buffer->batch, buffer, destOffset, 775 gpu_write_query_result(&cmd_buffer->batch, buffer, destOffset, 787 gpu_write_query_result(&cmd_buffer->batch, buffer, destOffset, 801 gpu_write_query_result(&cmd_buffer->batch, buffer, destOffset, 805 destOffset += destStride; 816 VkDeviceSize destOffset,
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
BytesTrie.java | 455 * @param destOffset Starting offset to where in dest the byte sequence is copied. 457 public void copyBytesTo(byte[] dest, int destOffset) { 458 System.arraycopy(bytes, 0, dest, destOffset, length); [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
BytesTrie.java | 479 * @param destOffset Starting offset to where in dest the byte sequence is copied. 482 public void copyBytesTo(byte[] dest, int destOffset) { 483 System.arraycopy(bytes, 0, dest, destOffset, length); [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
TimeZoneNamesImpl.java | 263 String[] dest, int destOffset) { 283 dest[destOffset + i] = name; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
TimeZoneNamesImpl.java | 261 String[] dest, int destOffset) { 281 dest[destOffset + i] = name; [all...] |