HomeSort by relevance Sort by last modified time
    Searched defs:indexOfElement (Results 1 - 6 of 6) sorted by null

  /external/okhttp/okio/okio/src/main/java/okio/
BufferedSource.java 238 long indexOfElement(ByteString targetBytes) throws IOException;
247 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException;
RealBufferedSource.java 334 @Override public long indexOfElement(ByteString targetBytes) throws IOException {
335 return indexOfElement(targetBytes, 0);
338 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException {
344 while ((index = buffer.indexOfElement(targetBytes, fromIndex)) == -1) {
  /external/okhttp/okio/okio/src/test/java/okio/
BufferedSourceTest.java 513 @Test public void indexOfElement() throws IOException {
515 assertEquals(0, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK")));
516 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb")));
517 assertEquals(Segment.SIZE + 1, source.indexOfElement(ByteString.encodeUtf8("cDEFGHIJK")));
518 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFbGHIc")));
519 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJK")));
520 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8("")));
525 assertEquals(-1, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"), 1));
526 assertEquals(15, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"), 15));
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.6.0/
okio-1.6.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.8.0/
okio-1.8.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.9.0/
okio-1.9.0.jar 

Completed in 154 milliseconds