Searched refs:dataPosition (Results 1 – 11 of 11) sorted by relevance
61 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 …]
324 return NATIVE_BYTE_BUFFER_REGISTRY.getNativeObject(nativePtr).dataPosition(); in nativeDataPosition()793 private int dataPosition; field in ShadowParcel.ByteBuffer811 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 …]
51 int dataPosition = data.indexOf("*"); in testMarks() local53 assertEquals("Pointer should coincide with '*':\n " + snippet, dataPosition, in testMarks()
172 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.ByteBuffer777 int dataPosition = dataPosition(); in dataSize() local778 return totalSize > dataPosition ? totalSize : dataPosition; in dataSize()835 private int toIndex(int dataPosition) { in toIndex() argument838 for (; i < buffer.size() && calculatedPos < dataPosition; i++) { in toIndex()
525 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()
110 int dataPosition = data.getPosition(); in consume() local113 data.setPosition(dataPosition); in consume()
108 int dataPosition = data.getPosition(); in consume() local111 data.setPosition(dataPosition); in consume()
32 public long dataPosition; field in TrackFragment
402 fragment.dataPosition = atomPosition; in readAtomHeader()914 trackBundle.fragment.dataPosition = baseDataPosition; in parseTfhd()983 fragment.trunDataPosition[index] = fragment.dataPosition; in parseTrun()
407 fragment.dataPosition = atomPosition; in readAtomHeader()928 trackBundle.fragment.dataPosition = baseDataPosition; in parseTfhd()997 fragment.trunDataPosition[index] = fragment.dataPosition; in parseTrun()