Home
last modified time | relevance | path

Searched refs:mParcel (Results 1 – 9 of 9) 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/core/tests/benchmarks/src/android/os/
DParcelBenchmark.java25 private Parcel mParcel; field in ParcelBenchmark
29 mParcel = Parcel.obtain(); in setUp()
30 mParcel.setDataPosition(0); in setUp()
31 mParcel.setDataCapacity(INNER_REPS * 8); in setUp()
36 mParcel.recycle(); in tearDown()
37 mParcel = null; in tearDown()
43 mParcel.setDataPosition(0); in timeWriteByte()
45 mParcel.writeByte(val); in timeWriteByte()
52 mParcel.setDataPosition(0); in timeReadByte()
54 mParcel.readByte(); in timeReadByte()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DParcelPerfTest.java36 private Parcel mParcel; field in ParcelPerfTest
40 mParcel = Parcel.obtain(); in setUp()
41 mParcel.setDataPosition(0); in setUp()
42 mParcel.setDataCapacity(8); in setUp()
47 mParcel.recycle(); in tearDown()
48 mParcel = null; in tearDown()
55 mParcel.setDataPosition(0); in timeSetDataPosition()
64 mParcel.setDataPosition(0); in timeWriteByte()
65 mParcel.writeByte(val); in timeWriteByte()
73 mParcel.setDataPosition(0); in timeReadByte()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DParcelUtilTest.java38 private Parcel mParcel; field in ParcelUtilTest
42 mParcel = Parcel.obtain(); in setUp()
47 ParcelUtil.writePrivateKey(mParcel, null); in readWriteNullPrivateKey()
49 mParcel.setDataPosition(0); // Rewind data position back to the beginning for read. in readWriteNullPrivateKey()
50 PrivateKey readKey = ParcelUtil.readPrivateKey(mParcel); in readWriteNullPrivateKey()
57 ParcelUtil.writePrivateKey(mParcel, writeKey); in readWriteValidPrivateKey()
59 mParcel.setDataPosition(0); // Rewind data position back to the beginning for read. in readWriteValidPrivateKey()
60 PrivateKey readKey = ParcelUtil.readPrivateKey(mParcel); in readWriteValidPrivateKey()
68 ParcelUtil.writeCertificate(mParcel, null); in readWriteNullCertificate()
70 mParcel.setDataPosition(0); // Rewind data position back to the beginning for read. in readWriteNullCertificate()
[all …]
/frameworks/base/core/java/android/os/
DParcelableParcel.java26 final Parcel mParcel; field in ParcelableParcel
30 mParcel = Parcel.obtain(); in ParcelableParcel()
35 mParcel = Parcel.obtain(); in ParcelableParcel()
44 mParcel.appendFrom(src, pos, size); in ParcelableParcel()
48 mParcel.setDataPosition(0); in getParcel()
49 return mParcel; in getParcel()
63 dest.writeInt(mParcel.dataSize()); in writeToParcel()
64 dest.appendFrom(mParcel, 0, mParcel.dataSize()); in writeToParcel()
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java260 private Parcel mParcel = null; field in UsageEvents
283 mParcel = Parcel.obtain(); in UsageEvents()
284 mParcel.setDataPosition(0); in UsageEvents()
285 mParcel.appendFrom(in, in.dataPosition(), listByteLength); in UsageEvents()
286 mParcel.setDataSize(mParcel.dataPosition()); in UsageEvents()
287 mParcel.setDataPosition(positionInParcel); in UsageEvents()
332 readEventFromParcel(mParcel, eventOut); in getNextEvent()
336 mParcel.recycle(); in getNextEvent()
337 mParcel = null; in getNextEvent()
350 if (mParcel != null) { in resetToStart()
[all …]
/frameworks/base/media/java/android/media/
DMetadata.java254 private Parcel mParcel; field in Metadata
414 mParcel = parcel; in parse()
444 return mParcel.readString(); in getString()
452 return mParcel.readInt(); in getInt()
460 return mParcel.readInt() == 1; in getBoolean()
470 return mParcel.readLong(); in getLong()
478 return mParcel.readDouble(); in getDouble()
486 return mParcel.createByteArray(); in getByteArray()
494 final long timeSinceEpoch = mParcel.readLong(); in getDate()
495 final String timeZone = mParcel.readString(); in getDate()
[all …]
/frameworks/base/core/jni/
Dandroid_os_HwParcel.cpp165 : mParcel(NULL), in JHwParcel()
191 return mParcel; in getParcel()
199 if (mParcel && mOwnsParcel) { in setParcel()
200 delete mParcel; in setParcel()
203 mParcel = parcel; in setParcel()
224 CHECK(mParcel != nullptr); in send()
226 mTransactCallback(*mParcel); in send()
Dandroid_os_HwParcel.h59 hardware::Parcel *mParcel; member