Searched refs:mParcel (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerMetadataParserTest.java | 39 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/ |
D | ParcelBenchmark.java | 25 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/ |
D | ParcelPerfTest.java | 36 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/ |
D | ParcelUtilTest.java | 38 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/ |
D | ParcelableParcel.java | 26 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/ |
D | UsageEvents.java | 260 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/ |
D | Metadata.java | 254 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/ |
D | android_os_HwParcel.cpp | 165 : 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()
|
D | android_os_HwParcel.h | 59 hardware::Parcel *mParcel; member
|