Home
last modified time | relevance | path

Searched refs:dataPosition (Results 1 – 11 of 11) sorted by relevance

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowParcelTest.java61 assertThat(parcel.dataPosition()).isEqualTo(0); in testReadIntWhenEmpty()
68 assertThat(parcel.dataPosition()).isEqualTo(0); in testReadLongWhenEmpty()
99 assertThat(parcel.dataPosition()).isEqualTo(4); in testReadWriteNumbers()
101 assertThat(parcel.dataPosition()).isEqualTo(12); in testReadWriteNumbers()
103 assertThat(parcel.dataPosition()).isEqualTo(20); in testReadWriteNumbers()
105 assertThat(parcel.dataPosition()).isEqualTo(24); in testReadWriteNumbers()
107 assertThat(parcel.dataPosition()).isEqualTo(24); in testReadWriteNumbers()
138 assertThat(parcel.dataPosition()).isEqualTo(4); in testWriteNullString()
221 assertWithMessage("position post-readInt@0").that(parcel.dataPosition()).isEqualTo(4); in testFullyOverwritten()
223 assertWithMessage("position post-readByte@4").that(parcel.dataPosition()).isEqualTo(8); in testFullyOverwritten()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowParcel.java324 return NATIVE_BYTE_BUFFER_REGISTRY.getNativeObject(nativePtr).dataPosition(); in nativeDataPosition()
793 private int dataPosition; field in ShadowParcel.ByteBuffer
811 dataPosition = 0; in clear()
967 if (dataPosition != dataSize) { in appendFrom()
979 System.arraycopy(other.data, offset, data, dataPosition, length); in appendFrom()
980 dataPosition += length; in appendFrom()
1054 int oldDataPosition = dataPosition; in toByteArray()
1063 dataPosition = 0; in toByteArray()
1064 while (dataPosition < dataSize) { in toByteArray()
1077 dataPosition = oldDataPosition; in toByteArray()
[all …]
/external/snakeyaml/src/test/java/org/pyyaml/
DPyMarkTest.java51 int dataPosition = data.indexOf("*"); in testMarks() local
53 assertEquals("Pointer should coincide with '*':\n " + snippet, dataPosition, in testMarks()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowParcel.java172 return NATIVE_PTR_TO_PARCEL.get(nativePtr).dataPosition(); in nativeDataPosition()
755 return dataSize() - dataPosition(); in dataAvailable()
768 public int dataPosition() { in dataPosition() method in ShadowParcel.ByteBuffer
777 int dataPosition = dataPosition(); in dataSize() local
778 return totalSize > dataPosition ? totalSize : dataPosition; in dataSize()
835 private int toIndex(int dataPosition) { in toIndex() argument
838 for (; i < buffer.size() && calculatedPos < dataPosition; i++) { in toIndex()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowParcelTest.java525 assertThat(parcel.dataPosition()).isEqualTo(4); in testDataPositionAfterSomeWrites()
528 assertThat(parcel.dataPosition()).isEqualTo(8); in testDataPositionAfterSomeWrites()
531 assertThat(parcel.dataPosition()).isEqualTo(16); in testDataPositionAfterSomeWrites()
534 assertThat(parcel.dataPosition()).isEqualTo(36); in testDataPositionAfterSomeWrites()
545 assertThat(parcel.dataPosition()).isEqualTo(4); in testDataPositionAfterSomeReads()
548 assertThat(parcel.dataPosition()).isEqualTo(8); in testDataPositionAfterSomeReads()
551 assertThat(parcel.dataPosition()).isEqualTo(16); in testDataPositionAfterSomeReads()
589 parcel.setDataPosition(parcel.dataPosition()); in testSetDataPositionToEmptyString()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DDvbSubtitleReader.java110 int dataPosition = data.getPosition(); in consume() local
113 data.setPosition(dataPosition); in consume()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DDvbSubtitleReader.java108 int dataPosition = data.getPosition(); in consume() local
111 data.setPosition(dataPosition); in consume()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DTrackFragment.java32 public long dataPosition; field in TrackFragment
DFragmentedMp4Extractor.java402 fragment.dataPosition = atomPosition; in readAtomHeader()
914 trackBundle.fragment.dataPosition = baseDataPosition; in parseTfhd()
983 fragment.trunDataPosition[index] = fragment.dataPosition; in parseTrun()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DTrackFragment.java32 public long dataPosition; field in TrackFragment
DFragmentedMp4Extractor.java407 fragment.dataPosition = atomPosition; in readAtomHeader()
928 trackBundle.fragment.dataPosition = baseDataPosition; in parseTfhd()
997 fragment.trunDataPosition[index] = fragment.dataPosition; in parseTrun()