Home
last modified time | relevance | path

Searched refs:EMPTY_BYTE_ARRAY (Results 1 – 25 of 99) sorted by relevance

1234

/external/apache-commons-io/src/test/java/org/apache/commons/io/input/
DUnsynchronizedByteArrayInputStreamTest.java37 final byte[] empty = IOUtils.EMPTY_BYTE_ARRAY; in testConstructor1()
55 final byte[] empty = IOUtils.EMPTY_BYTE_ARRAY; in testConstructor2()
84 final byte[] empty = IOUtils.EMPTY_BYTE_ARRAY; in testConstructor3()
139 new UnsynchronizedByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY, -1); in testInvalidConstructor2OffsetUnder()
146 new UnsynchronizedByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY, 0, -1); in testInvalidConstructor3LengthUnder()
153 new UnsynchronizedByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY, -1, 1); in testInvalidConstructor3OffsetUnder()
160 final byte[] buf = IOUtils.EMPTY_BYTE_ARRAY; in testInvalidReadArrayExplicitLenUnder()
169 final byte[] buf = IOUtils.EMPTY_BYTE_ARRAY; in testInvalidReadArrayExplicitOffsetUnder()
179 final byte[] buf = IOUtils.EMPTY_BYTE_ARRAY; in testInvalidReadArrayExplicitRangeOver()
236 …hronizedByteArrayInputStream is = new UnsynchronizedByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testReadArray()
[all …]
DMemoryMappedFileInputStreamTest.java19 import static org.apache.commons.lang3.ArrayUtils.EMPTY_BYTE_ARRAY;
85 assertArrayEquals(EMPTY_BYTE_ARRAY, IOUtils.toByteArray(inputStream)); in testEmptyFile()
153 assertArrayEquals(EMPTY_BYTE_ARRAY, IOUtils.toByteArray(inputStream)); in testSkipEmpty()
213 assertArrayEquals(EMPTY_BYTE_ARRAY, IOUtils.toByteArray(inputStream)); in testSkipPastEof()
DCountingInputStreamTest.java167 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength1()
178 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength2()
191 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength3()
/external/apache-http/src/org/apache/commons/codec/binary/
DBinaryCodec.java49 private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; field in BinaryCodec
118 return EMPTY_BYTE_ARRAY; in decode()
154 return EMPTY_BYTE_ARRAY; in toByteArray()
173 return EMPTY_BYTE_ARRAY; in fromAscii()
200 return EMPTY_BYTE_ARRAY; in fromAscii()
229 return EMPTY_BYTE_ARRAY; in toAsciiBytes()
/external/emma/core/java12/com/vladium/jcd/cls/attribute/
DGenericAttribute_info.java38 m_info = (info != null ? info : EMPTY_BYTE_ARRAY); in GenericAttribute_info()
69 _clone.m_info = (m_info.length == 0 ? EMPTY_BYTE_ARRAY : (byte []) m_info.clone ()); in clone()
101 private static final byte [] EMPTY_BYTE_ARRAY = new byte [0]; field in GenericAttribute_info
DCodeAttribute_info.java80 public static final byte [] EMPTY_BYTE_ARRAY = new byte [0]; field in CodeAttribute_info
97 m_code = (code != null ? code : EMPTY_BYTE_ARRAY); in CodeAttribute_info()
171 … _clone.m_code = (m_codeSize == 0 ? EMPTY_BYTE_ARRAY : (byte []) m_code.clone ()); // does not trim in clone()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessor.java117 maybeSilenceBuffer = Util.EMPTY_BYTE_ARRAY; in SilenceSkippingAudioProcessor()
118 paddingBuffer = Util.EMPTY_BYTE_ARRAY; in SilenceSkippingAudioProcessor()
209 maybeSilenceBuffer = Util.EMPTY_BYTE_ARRAY; in onReset()
210 paddingBuffer = Util.EMPTY_BYTE_ARRAY; in onReset()
DTrimmingAudioProcessor.java41 endBuffer = Util.EMPTY_BYTE_ARRAY; in TrimmingAudioProcessor()
181 endBuffer = Util.EMPTY_BYTE_ARRAY; in onReset()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessor.java120 maybeSilenceBuffer = Util.EMPTY_BYTE_ARRAY; in SilenceSkippingAudioProcessor()
121 paddingBuffer = Util.EMPTY_BYTE_ARRAY; in SilenceSkippingAudioProcessor()
212 maybeSilenceBuffer = Util.EMPTY_BYTE_ARRAY; in onReset()
213 paddingBuffer = Util.EMPTY_BYTE_ARRAY; in onReset()
DTrimmingAudioProcessor.java41 endBuffer = Util.EMPTY_BYTE_ARRAY; in TrimmingAudioProcessor()
181 endBuffer = Util.EMPTY_BYTE_ARRAY; in onReset()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/propagation/
DTagContextBinarySerializerImpl.java28 private static final byte[] EMPTY_BYTE_ARRAY = {}; field in TagContextBinarySerializerImpl
39 ? EMPTY_BYTE_ARRAY in toByteArray()
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DArrayUtilsRemoveTest.java80 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.removeAllOccurences(a, (byte) 2)); in testRemoveAllByteOccurences()
83 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.removeAllOccurences(a, (byte) 2)); in testRemoveAllByteOccurences()
86 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.removeAllOccurences(a, (byte) 2)); in testRemoveAllByteOccurences()
101 … assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.removeAllOccurrences(a, (byte) 2)); in testRemoveAllByteOccurrences()
104 … assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.removeAllOccurrences(a, (byte) 2)); in testRemoveAllByteOccurrences()
107 … assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.removeAllOccurrences(a, (byte) 2)); in testRemoveAllByteOccurrences()
434 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveByteArray()
514 array = ArrayUtils.removeElement(ArrayUtils.EMPTY_BYTE_ARRAY, (byte) 1); in testRemoveElementByteArray()
515 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
518 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
DArrayUtilsRemoveMultipleTest.java118 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveAllByteArray()
134 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveAllByteArray()
829 array = ArrayUtils.removeElements(ArrayUtils.EMPTY_BYTE_ARRAY, (byte) 1); in testRemoveElementByteArray()
830 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
834 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
848 array = ArrayUtils.removeElements(ArrayUtils.EMPTY_BYTE_ARRAY, (byte) 1, (byte) 2); in testRemoveElementByteArray()
849 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
853 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
857 assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, array); in testRemoveElementByteArray()
/external/opencensus-java/api/src/main/java/io/opencensus/tags/
DNoopTags.java200 static final byte[] EMPTY_BYTE_ARRAY = {}; field in NoopTags.NoopTagContextBinarySerializer
205 return EMPTY_BYTE_ARRAY; in toByteArray()
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/charset/
DCharsetDecoderICU.java31 private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; field in CharsetDecoderICU
113 input = EMPTY_BYTE_ARRAY; in implFlush()
/external/apache-commons-io/src/test/java/org/apache/commons/io/output/
DByteArrayOutputStreamTest.java159 … assertThrows(IndexOutOfBoundsException.class, () -> baout.write(IOUtils.EMPTY_BYTE_ARRAY, 1, 0)); in testInvalidWriteOffsetOver()
250 try (ByteArrayInputStream bain = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY)) { in testToBufferedInputStreamEmpty()
348 baout.write(IOUtils.EMPTY_BYTE_ARRAY, 0, 0); in testWriteZero()
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DInternal.java380 public static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; field in Internal
383 public static final ByteBuffer EMPTY_BYTE_BUFFER = ByteBuffer.wrap(EMPTY_BYTE_ARRAY);
387 CodedInputStream.newInstance(EMPTY_BYTE_ARRAY);
DByteString.java95 public static final ByteString EMPTY = new LiteralByteString(Internal.EMPTY_BYTE_ARRAY);
767 return Internal.EMPTY_BYTE_ARRAY; in toByteArray()
1066 private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; field in Output
1225 buffer = EMPTY_BYTE_ARRAY; in flushLastBuffer()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DInternal.java380 public static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; field in Internal
383 public static final ByteBuffer EMPTY_BYTE_BUFFER = ByteBuffer.wrap(EMPTY_BYTE_ARRAY);
387 CodedInputStream.newInstance(EMPTY_BYTE_ARRAY);
DByteString.java95 public static final ByteString EMPTY = new LiteralByteString(Internal.EMPTY_BYTE_ARRAY);
767 return Internal.EMPTY_BYTE_ARRAY; in toByteArray()
1066 private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; field in Output
1225 buffer = EMPTY_BYTE_ARRAY; in flushLastBuffer()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/
DHttpDataSource.java418 /* responseBody= */ Util.EMPTY_BYTE_ARRAY); in InvalidResponseCodeException()
437 /* responseBody= */ Util.EMPTY_BYTE_ARRAY); in InvalidResponseCodeException()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTrackOutput.java62 sampleData = Util.EMPTY_BYTE_ARRAY; in FakeTrackOutput()
70 sampleData = Util.EMPTY_BYTE_ARRAY; in clear()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/
DHttpDataSource.java422 /* responseBody= */ Util.EMPTY_BYTE_ARRAY); in InvalidResponseCodeException()
441 /* responseBody= */ Util.EMPTY_BYTE_ARRAY); in InvalidResponseCodeException()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTrackOutput.java62 sampleData = Util.EMPTY_BYTE_ARRAY; in FakeTrackOutput()
70 sampleData = Util.EMPTY_BYTE_ARRAY; in clear()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DDataChunk.java67 this.data = data == null ? Util.EMPTY_BYTE_ARRAY : data; in DataChunk()

1234