Home
last modified time | relevance | path

Searched refs:mParcel (Results 1 – 16 of 16) 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/packages/Tethering/tests/unit/src/android/net/dhcp/
DDhcpServingParamsParcelExtTest.java57 private DhcpServingParamsParcelExt mParcel; field in DhcpServingParamsParcelExtTest
61 mParcel = new DhcpServingParamsParcelExt(); in setUp()
66 mParcel.setServerAddr(new LinkAddress(TEST_ADDRESS, TEST_PREFIX_LENGTH)); in testSetServerAddr()
68 assertEquals(TEST_ADDRESS_PARCELED, mParcel.serverAddr); in testSetServerAddr()
69 assertEquals(TEST_PREFIX_LENGTH, mParcel.serverAddrPrefixLength); in testSetServerAddr()
74 mParcel.setDefaultRouters(TEST_ADDRESS_SET); in testSetDefaultRouters()
75 assertEquals(TEST_ADDRESS_SET_PARCELED, asSet(mParcel.defaultRouters)); in testSetDefaultRouters()
80 mParcel.setDnsServers(TEST_ADDRESS_SET); in testSetDnsServers()
81 assertEquals(TEST_ADDRESS_SET_PARCELED, asSet(mParcel.dnsServers)); in testSetDnsServers()
86 mParcel.setExcludedAddrs(TEST_ADDRESS_SET); in testSetExcludedAddrs()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DParcelUtilTest.java39 private Parcel mParcel; field in ParcelUtilTest
43 mParcel = Parcel.obtain(); in setUp()
48 ParcelUtil.writePrivateKey(mParcel, null); in readWriteNullPrivateKey()
50 mParcel.setDataPosition(0); // Rewind data position back to the beginning for read. in readWriteNullPrivateKey()
51 PrivateKey readKey = ParcelUtil.readPrivateKey(mParcel); in readWriteNullPrivateKey()
58 ParcelUtil.writePrivateKey(mParcel, writeKey); in readWriteValidPrivateKey()
60 mParcel.setDataPosition(0); // Rewind data position back to the beginning for read. in readWriteValidPrivateKey()
61 PrivateKey readKey = ParcelUtil.readPrivateKey(mParcel); in readWriteValidPrivateKey()
69 ParcelUtil.writeCertificate(mParcel, null); in readWriteNullCertificate()
71 mParcel.setDataPosition(0); // Rewind data position back to the beginning for read. in readWriteNullCertificate()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageParserCacheHelper.java43 private final Parcel mParcel; field in PackageParserCacheHelper.ReadHelper
46 mParcel = p; in ReadHelper()
58 final int poolPosition = mParcel.readInt(); in startAndInstall()
59 final int startPosition = mParcel.dataPosition(); in startAndInstall()
62 mParcel.setDataPosition(poolPosition); in startAndInstall()
63 mParcel.readStringList(mStrings); in startAndInstall()
66 mParcel.setDataPosition(startPosition); in startAndInstall()
75 mParcel.setReadWriteHelper(this); in startAndInstall()
95 private final Parcel mParcel; field in PackageParserCacheHelper.WriteHelper
102 mParcel = p; in WriteHelper()
[all …]
/frameworks/base/core/java/android/os/
DParcelableHolder.java39 private Parcel mParcel; field in ParcelableHolder
89 if (mParcel != null) { in setParcelable()
90 mParcel.recycle(); in setParcelable()
91 mParcel = null; in setParcelable()
103 if (mParcel == null) { in getParcelable()
110 mParcel.setDataPosition(0); in getParcelable()
112 T parcelable = mParcel.readParcelable(clazz.getClassLoader()); in getParcelable()
118 mParcel.recycle(); in getParcelable()
119 mParcel = null; in getParcelable()
131 if (mParcel == null) { in readFromParcel()
[all …]
DParcelableParcel.java27 final Parcel mParcel; field in ParcelableParcel
32 mParcel = Parcel.obtain(); in ParcelableParcel()
37 mParcel = Parcel.obtain(); in ParcelableParcel()
46 mParcel.appendFrom(src, pos, size); in ParcelableParcel()
51 mParcel.setDataPosition(0); in getParcel()
52 return mParcel; in getParcel()
67 dest.writeInt(mParcel.dataSize()); in writeToParcel()
68 dest.appendFrom(mParcel, 0, mParcel.dataSize()); in writeToParcel()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DParcelPerfTest.java41 private Parcel mParcel; field in ParcelPerfTest
45 mParcel = Parcel.obtain(); in setUp()
46 mParcel.setDataPosition(0); in setUp()
47 mParcel.setDataCapacity(8); in setUp()
52 mParcel.recycle(); in tearDown()
53 mParcel = null; in tearDown()
60 mParcel.setDataPosition(0); in timeSetDataPosition()
68 mParcel.dataPosition(); in timeGetDataPosition()
76 mParcel.setDataSize(0); in timeSetDataSize()
84 mParcel.dataSize(); in timeGetDataSize()
[all …]
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DWrappedApplicationKeyTest.java40 private Parcel mParcel; field in WrappedApplicationKeyTest
44 mParcel = Parcel.obtain(); in setUp()
49 mParcel.recycle(); in tearDown()
74 buildTestKeyWithMetadata(/*metadata=*/ null).writeToParcel(mParcel, /*flags=*/ 0); in writeToParcel_writesAliasToParcel()
76 mParcel.setDataPosition(0); in writeToParcel_writesAliasToParcel()
78 WrappedApplicationKey.CREATOR.createFromParcel(mParcel); in writeToParcel_writesAliasToParcel()
84 buildTestKeyWithMetadata(/*metadata=*/ null).writeToParcel(mParcel, /*flags=*/ 0); in writeToParcel_writesKeyMaterial()
86 mParcel.setDataPosition(0); in writeToParcel_writesKeyMaterial()
88 WrappedApplicationKey.CREATOR.createFromParcel(mParcel); in writeToParcel_writesKeyMaterial()
94 buildTestKeyWithMetadata(METADATA).writeToParcel(mParcel, /*flags=*/ 0); in writeToParcel_writesMetadata_nonNull()
[all …]
/frameworks/base/media/java/android/media/
DMetadata.java259 private Parcel mParcel; field in Metadata
421 mParcel = parcel; in parse()
454 return mParcel.readString(); in getString()
463 return mParcel.readInt(); in getInt()
472 return mParcel.readInt() == 1; in getBoolean()
483 return mParcel.readLong(); in getLong()
492 return mParcel.readDouble(); in getDouble()
501 return mParcel.createByteArray(); in getByteArray()
510 final long timeSinceEpoch = mParcel.readLong(); in getDate()
511 final String timeZone = mParcel.readString(); in getDate()
[all …]
/frameworks/native/libs/binder/ndk/
Dparcel_internal.h27 const ::android::Parcel* get() const { return mParcel; } in get()
28 ::android::Parcel* get() { return mParcel; } in get()
33 : mBinder(binder), mParcel(parcel), mOwns(owns) {} in AParcel()
37 delete mParcel; in ~AParcel() local
52 ::android::Parcel* mParcel;
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionParcelTests.java81 private Parcel mParcel; field in TransactionParcelTests
85 mParcel = Parcel.obtain(); in setUp()
95 ConfigurationChangeItem result = ConfigurationChangeItem.CREATOR.createFromParcel(mParcel); in testConfigurationChange()
109 ActivityConfigurationChangeItem.CREATOR.createFromParcel(mParcel); in testActivityConfigChange()
122 MoveToDisplayItem result = MoveToDisplayItem.CREATOR.createFromParcel(mParcel); in testMoveToDisplay()
135 NewIntentItem result = NewIntentItem.CREATOR.createFromParcel(mParcel); in testNewIntent()
148 ActivityResultItem result = ActivityResultItem.CREATOR.createFromParcel(mParcel); in testActivityResult()
161 PipModeChangeItem result = PipModeChangeItem.CREATOR.createFromParcel(mParcel); in testPipModeChange()
176 MultiWindowModeChangeItem.CREATOR.createFromParcel(mParcel); in testMultiWindowModeChange()
189 WindowVisibilityItem result = WindowVisibilityItem.CREATOR.createFromParcel(mParcel); in testWindowVisibilityChange()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java584 private Parcel mParcel = null; field in UsageEvents
618 mParcel = Parcel.obtain(); in UsageEvents()
619 mParcel.setDataPosition(0); in UsageEvents()
620 mParcel.appendFrom(data, data.dataPosition(), listByteLength); in UsageEvents()
621 mParcel.setDataSize(mParcel.dataPosition()); in UsageEvents()
622 mParcel.setDataPosition(positionInParcel); in UsageEvents()
679 readEventFromParcel(mParcel, eventOut); in getNextEvent()
683 mParcel.recycle(); in getNextEvent()
684 mParcel = null; in getNextEvent()
697 if (mParcel != null) { in resetToStart()
[all …]
/frameworks/base/core/jni/
Dandroid_os_HwParcel.h56 hardware::Parcel *mParcel;
Dandroid_os_HwParcel.cpp178 : mParcel(NULL), in JHwParcel()
193 return mParcel; in getParcel()
201 if (mParcel && mOwnsParcel) { in setParcel()
202 delete mParcel; in setParcel()
205 mParcel = parcel; in setParcel()
226 CHECK(mParcel != nullptr); in send()
228 mTransactCallback(*mParcel); in send()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt15881 Landroid/content/pm/PackageParserCacheHelper$ReadHelper;->mParcel:Landroid/os/Parcel;
15888 Landroid/content/pm/PackageParserCacheHelper$WriteHelper;->mParcel:Landroid/os/Parcel;
39062 Landroid/media/Metadata;->mParcel:Landroid/os/Parcel;
51862 Landroid/os/ParcelableParcel;->mParcel:Landroid/os/Parcel;