Home
last modified time | relevance | path

Searched refs:mParcel (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerMetadataParserTest.java39 private Parcel mParcel = null; field in MediaPlayerMetadataParserTest
45 mParcel = Parcel.obtain(); in setUp()
53 mParcel.setDataPosition(0); in assertParseFail()
54 assertFalse(mMetadata.parse(mParcel)); in assertParseFail()
55 assertEquals(0, mParcel.dataPosition()); in assertParseFail()
60 mParcel.setDataPosition(0); in assertParse()
61 assertTrue(mMetadata.parse(mParcel)); in assertParse()
73 final int pos = mParcel.dataPosition(); in adjustSize()
75 mParcel.setDataPosition(offset); in adjustSize()
76 mParcel.writeInt(pos - offset); in adjustSize()
[all …]
/frameworks/base/media/java/android/media/
DTimedText.java71 private Parcel mParcel = Parcel.obtain(); field in TimedText
309 mParcel.unmarshall(obj, 0, obj.length); in TimedText()
323 mParcel.setDataPosition(0); in parseParcel()
324 if (mParcel.dataAvail() == 0) { in parseParcel()
328 int type = mParcel.readInt(); in parseParcel()
330 type = mParcel.readInt(); in parseParcel()
334 int mStartTimeMs = mParcel.readInt(); in parseParcel()
337 type = mParcel.readInt(); in parseParcel()
343 mTextStruct.textLen = mParcel.readInt(); in parseParcel()
345 mTextStruct.text = mParcel.createByteArray(); in parseParcel()
[all …]
DMetadata.java253 private Parcel mParcel; field in Metadata
406 mParcel = parcel; in parse()
436 return mParcel.readString(); in getString()
444 return mParcel.readInt(); in getInt()
452 return mParcel.readInt() == 1; in getBoolean()
462 return mParcel.readLong(); in getLong()
470 return mParcel.readDouble(); in getDouble()
478 return mParcel.createByteArray(); in getByteArray()
486 final long timeSinceEpoch = mParcel.readLong(); in getDate()
487 final String timeZone = mParcel.readString(); in getDate()
[all …]
/frameworks/base/core/java/android/content/pm/
DParceledListSlice.java38 private Parcel mParcel; field in ParceledListSlice
45 mParcel = Parcel.obtain(); in ParceledListSlice()
49 mParcel = p; in ParceledListSlice()
70 final int parcelSize = mParcel.dataSize(); in writeToParcel()
72 dest.appendFrom(mParcel, 0, parcelSize); in writeToParcel()
76 mParcel.recycle(); in writeToParcel()
77 mParcel = null; in writeToParcel()
88 if (mParcel == null) { in append()
92 item.writeToParcel(mParcel, PARCELABLE_WRITE_RETURN_VALUE); in append()
95 return mParcel.dataSize() > MAX_IPC_SIZE; in append()
[all …]