Home
last modified time | relevance | path

Searched refs:parcel (Results 1 – 25 of 113) sorted by relevance

12345

/packages/apps/Launcher3/quickstep/src/com/android/launcher3/proxy/
DStartActivityParams.java56 private StartActivityParams(Parcel parcel) { in StartActivityParams() argument
57 mPICallback = parcel.readTypedObject(PendingIntent.CREATOR); in StartActivityParams()
58 requestCode = parcel.readInt(); in StartActivityParams()
59 intent = parcel.readTypedObject(Intent.CREATOR); in StartActivityParams()
61 intentSender = parcel.readTypedObject(IntentSender.CREATOR); in StartActivityParams()
62 fillInIntent = parcel.readTypedObject(Intent.CREATOR); in StartActivityParams()
63 flagsMask = parcel.readInt(); in StartActivityParams()
64 flagsValues = parcel.readInt(); in StartActivityParams()
65 extraFlags = parcel.readInt(); in StartActivityParams()
66 options = parcel.readBundle(); in StartActivityParams()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomAppWidgetProviderInfo.java37 protected CustomAppWidgetProviderInfo(Parcel parcel, boolean readSelf, int providerId) { in CustomAppWidgetProviderInfo() argument
38 super(parcel); in CustomAppWidgetProviderInfo()
40 this.providerId = parcel.readInt(); in CustomAppWidgetProviderInfo()
42 … provider = new ComponentName(parcel.readString(), CLS_CUSTOM_WIDGET_PREFIX + providerId); in CustomAppWidgetProviderInfo()
44 label = parcel.readString(); in CustomAppWidgetProviderInfo()
45 initialLayout = parcel.readInt(); in CustomAppWidgetProviderInfo()
46 icon = parcel.readInt(); in CustomAppWidgetProviderInfo()
47 previewImage = parcel.readInt(); in CustomAppWidgetProviderInfo()
49 resizeMode = parcel.readInt(); in CustomAppWidgetProviderInfo()
50 spanX = parcel.readInt(); in CustomAppWidgetProviderInfo()
[all …]
DCustomWidgetManager.java81 Parcel parcel = Parcel.obtain(); in onPluginConnected()
82 providers.get(0).writeToParcel(parcel, 0); in onPluginConnected()
83 parcel.setDataPosition(0); in onPluginConnected()
84 CustomAppWidgetProviderInfo info = newInfo(mAutoProviderId, plugin, parcel, context); in onPluginConnected()
85 parcel.recycle(); in onPluginConnected()
153 Parcel parcel, Context context) { in newInfo() argument
155 parcel, false, providerId); in newInfo()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DResultPayloadUtils.java31 Parcel parcel = Parcel.obtain(); in marshall() local
32 payload.writeToParcel(parcel, 0); in marshall()
33 byte[] bytes = parcel.marshall(); in marshall()
34 parcel.recycle(); in marshall()
40 Parcel parcel = unmarshall(bytes); in unmarshall() local
41 result = creator.createFromParcel(parcel); in unmarshall()
42 parcel.recycle(); in unmarshall()
47 Parcel parcel = Parcel.obtain(); in unmarshall() local
48 parcel.unmarshall(bytes, 0, bytes.length); in unmarshall()
49 parcel.setDataPosition(0); in unmarshall()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DInterfaceControllerTest.java72 final InterfaceConfigurationParcel parcel = mConfigCaptor.getValue(); in testSetIPv4Address() local
73 assertEquals(TEST_IFACE, parcel.ifName); in testSetIPv4Address()
74 assertEquals(TEST_IPV4_ADDR, parcel.ipv4Addr); in testSetIPv4Address()
75 assertEquals(TEST_PREFIXLENGTH, parcel.prefixLength); in testSetIPv4Address()
76 assertEquals("", parcel.hwAddr); in testSetIPv4Address()
77 assertArrayEquals(new String[0], parcel.flags); in testSetIPv4Address()
84 final InterfaceConfigurationParcel parcel = mConfigCaptor.getValue(); in testClearIPv4Address() local
85 assertEquals(TEST_IFACE, parcel.ifName); in testClearIPv4Address()
86 assertEquals("0.0.0.0", parcel.ipv4Addr); in testClearIPv4Address()
87 assertEquals(0, parcel.prefixLength); in testClearIPv4Address()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/
DRawContact.java51 public RawContact createFromParcel(Parcel parcel) {
52 return new RawContact(parcel);
80 private RawContact(Parcel parcel) { in RawContact() argument
81 mValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in RawContact()
83 parcel.readTypedList(mDataItems, NamedDataItem.CREATOR); in RawContact()
103 public void writeToParcel(Parcel parcel, int i) { in writeToParcel() argument
104 parcel.writeParcelable(mValues, i); in writeToParcel()
105 parcel.writeTypedList(mDataItems); in writeToParcel()
288 public NamedDataItem createFromParcel(Parcel parcel) {
289 return new NamedDataItem(parcel);
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContact.java77 public NamedDataItem(Parcel parcel) { in NamedDataItem() argument
78 this.mUri = parcel.readParcelable(Uri.class.getClassLoader()); in NamedDataItem()
79 this.mContentValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in NamedDataItem()
88 public void writeToParcel(Parcel parcel, int i) { in writeToParcel() argument
89 parcel.writeParcelable(mUri, i); in writeToParcel()
90 parcel.writeParcelable(mContentValues, i); in writeToParcel()
97 public NamedDataItem createFromParcel(Parcel parcel) {
98 return new NamedDataItem(parcel);
151 private RawContact(Parcel parcel) { in RawContact() argument
152 mValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in RawContact()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java130 public static DhcpServingParams fromParcelableObject(@Nullable DhcpServingParamsParcel parcel) in fromParcelableObject() argument
132 if (parcel == null) { in fromParcelableObject()
136 intToInet4AddressHTH(parcel.serverAddr), in fromParcelableObject()
137 parcel.serverAddrPrefixLength); in fromParcelableObject()
139 if (parcel.singleClientAddr != 0) { in fromParcelableObject()
140 clientAddr = intToInet4AddressHTH(parcel.singleClientAddr); in fromParcelableObject()
145 .setDefaultRouters(toInet4AddressSet(parcel.defaultRouters)) in fromParcelableObject()
146 .setDnsServers(toInet4AddressSet(parcel.dnsServers)) in fromParcelableObject()
147 .setExcludedAddrs(toInet4AddressSet(parcel.excludedAddrs)) in fromParcelableObject()
148 .setDhcpLeaseTimeSecs(parcel.dhcpLeaseTimeSecs) in fromParcelableObject()
[all …]
/packages/services/Car/tools/keventreader/server/
Devent.cpp30 status_t KeypressEvent::writeToParcel(Parcel* parcel) const { in writeToParcel()
32 parcel->writeString16(s16); in writeToParcel()
33 parcel->writeUint32(keycode); in writeToParcel()
34 parcel->writeBool(keydown); in writeToParcel()
39 status_t KeypressEvent::readFromParcel(const Parcel* parcel) { in readFromParcel() argument
40 String16 s16 = parcel->readString16(); in readFromParcel()
42 keycode = parcel->readUint32(); in readFromParcel()
43 keydown = parcel->readBool(); in readFromParcel()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java179 final DhcpServingParamsParcel parcel = new DhcpServingParamsParcel(); in testFromParcelableObject() local
180 parcel.defaultRouters = toIntArray(TEST_DEFAULT_ROUTERS); in testFromParcelableObject()
181 parcel.dhcpLeaseTimeSecs = TEST_LEASE_TIME_SECS; in testFromParcelableObject()
182 parcel.dnsServers = toIntArray(TEST_DNS_SERVERS); in testFromParcelableObject()
183 parcel.serverAddr = inet4AddressToIntHTH(TEST_SERVER_ADDR); in testFromParcelableObject()
184 parcel.serverAddrPrefixLength = TEST_LINKADDR.getPrefixLength(); in testFromParcelableObject()
185 parcel.linkMtu = TEST_MTU; in testFromParcelableObject()
186 parcel.excludedAddrs = toIntArray(TEST_EXCLUDED_ADDRS); in testFromParcelableObject()
187 parcel.metered = TEST_METERED; in testFromParcelableObject()
188 parcel.singleClientAddr = inet4AddressToIntHTH(TEST_CLIENT_ADDR); in testFromParcelableObject()
[all …]
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DPrivateDnsConfig.java73 final PrivateDnsConfigParcel parcel = new PrivateDnsConfigParcel(); in toParcel() local
74 parcel.hostname = hostname; in toParcel()
75 parcel.ips = toParcelableArray( in toParcel()
78 return parcel; in toParcel()
84 public static PrivateDnsConfig fromParcel(PrivateDnsConfigParcel parcel) { in fromParcel() argument
85 InetAddress[] ips = new InetAddress[parcel.ips.length]; in fromParcel()
86 ips = fromParcelableArray(parcel.ips, IpConfigurationParcelableUtil::unparcelAddress) in fromParcel()
88 return new PrivateDnsConfig(parcel.hostname, ips); in fromParcel()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestWallpaperInfo.java202 public void writeToParcel(Parcel parcel, int i) { in writeToParcel() argument
203 parcel.writeInt(mPixelColor); in writeToParcel()
204 parcel.writeStringList(mAttributions); in writeToParcel()
205 parcel.writeString(mActionUrl); in writeToParcel()
206 parcel.writeString(mBaseImageUrl); in writeToParcel()
207 parcel.writeString(mCollectionId); in writeToParcel()
208 parcel.writeString(mWallpaperId); in writeToParcel()
209 parcel.writeInt(mIsAssetCorrupt ? 1 : 0); in writeToParcel()
210 parcel.writeInt(mBackupPermission); in writeToParcel()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVmsAssociatedLayerTest.java62 Parcel parcel = Parcel.obtain(); in testNoPublishersAssociatedLayerParcel() local
63 vmsAssociatedLayer.writeToParcel(parcel, vmsAssociatedLayer.describeContents()); in testNoPublishersAssociatedLayerParcel()
64 parcel.setDataPosition(0); in testNoPublishersAssociatedLayerParcel()
65 VmsAssociatedLayer createdFromParcel = VmsAssociatedLayer.CREATOR.createFromParcel(parcel); in testNoPublishersAssociatedLayerParcel()
74 Parcel parcel = Parcel.obtain(); in testLayerWithMultiplePublishersParcel() local
75 vmsAssociatedLayer.writeToParcel(parcel, vmsAssociatedLayer.describeContents()); in testLayerWithMultiplePublishersParcel()
76 parcel.setDataPosition(0); in testLayerWithMultiplePublishersParcel()
77 VmsAssociatedLayer createdFromParcel = VmsAssociatedLayer.CREATOR.createFromParcel(parcel); in testLayerWithMultiplePublishersParcel()
DVmsLayerDependencyTest.java73 Parcel parcel = Parcel.obtain(); in testNoDependendtLayerParcel() local
74 vmsLayerDependency.writeToParcel(parcel, vmsLayerDependency.describeContents()); in testNoDependendtLayerParcel()
75 parcel.setDataPosition(0); in testNoDependendtLayerParcel()
76 VmsLayerDependency createdFromParcel = VmsLayerDependency.CREATOR.createFromParcel(parcel); in testNoDependendtLayerParcel()
86 Parcel parcel = Parcel.obtain(); in testMultipleDependendtLayerParcel() local
87 vmsLayerDependency.writeToParcel(parcel, vmsLayerDependency.describeContents()); in testMultipleDependendtLayerParcel()
88 parcel.setDataPosition(0); in testMultipleDependendtLayerParcel()
89 VmsLayerDependency createdFromParcel = VmsLayerDependency.CREATOR.createFromParcel(parcel); in testMultipleDependendtLayerParcel()
DVmsAvailableLayersTest.java69 Parcel parcel = Parcel.obtain(); in testNoAvailableLayersParcel() local
71 vmsAvailableLayers.writeToParcel(parcel, vmsAvailableLayers.describeContents()); in testNoAvailableLayersParcel()
72 parcel.setDataPosition(0); in testNoAvailableLayersParcel()
73 VmsAvailableLayers createdFromParcel = VmsAvailableLayers.CREATOR.createFromParcel(parcel); in testNoAvailableLayersParcel()
85 Parcel parcel = Parcel.obtain(); in testMultipleAvailableLayersParcel() local
87 vmsAvailableLayers.writeToParcel(parcel, vmsAvailableLayers.describeContents()); in testMultipleAvailableLayersParcel()
88 parcel.setDataPosition(0); in testMultipleAvailableLayersParcel()
89 VmsAvailableLayers createdFromParcel = VmsAvailableLayers.CREATOR.createFromParcel(parcel); in testMultipleAvailableLayersParcel()
DVmsLayersOfferingTest.java80 Parcel parcel = Parcel.obtain(); in testNoOfferingParcel() local
81 vmsLayersOffering.writeToParcel(parcel, vmsLayersOffering.describeContents()); in testNoOfferingParcel()
82 parcel.setDataPosition(0); in testNoOfferingParcel()
83 VmsLayersOffering createdFromParcel = VmsLayersOffering.CREATOR.createFromParcel(parcel); in testNoOfferingParcel()
95 Parcel parcel = Parcel.obtain(); in testMultipleOfferingParcel() local
96 vmsLayersOffering.writeToParcel(parcel, vmsLayersOffering.describeContents()); in testMultipleOfferingParcel()
97 parcel.setDataPosition(0); in testMultipleOfferingParcel()
98 VmsLayersOffering createdFromParcel = VmsLayersOffering.CREATOR.createFromParcel(parcel); in testMultipleOfferingParcel()
DVmsSubscriptionStateTest.java71 Parcel parcel = Parcel.obtain(); in testNoSubscriptionsParcel() local
72 vmsSubscriptionState.writeToParcel(parcel, vmsSubscriptionState.describeContents()); in testNoSubscriptionsParcel()
73 parcel.setDataPosition(0); in testNoSubscriptionsParcel()
74 … VmsSubscriptionState createdFromParcel = VmsSubscriptionState.CREATOR.createFromParcel(parcel); in testNoSubscriptionsParcel()
85 Parcel parcel = Parcel.obtain(); in testMultipleSubscriptionsParcel() local
86 vmsSubscriptionState.writeToParcel(parcel, vmsSubscriptionState.describeContents()); in testMultipleSubscriptionsParcel()
87 parcel.setDataPosition(0); in testMultipleSubscriptionsParcel()
88 … VmsSubscriptionState createdFromParcel = VmsSubscriptionState.CREATOR.createFromParcel(parcel); in testMultipleSubscriptionsParcel()
/packages/services/Car/procfs-inspector/server/
Dprocess.cpp5 status_t procfsinspector::ProcessInfo::writeToParcel(Parcel* parcel) const { in writeToParcel()
6 parcel->writeUint32(mPid); in writeToParcel()
7 parcel->writeUint32(mUid); in writeToParcel()
11 status_t procfsinspector::ProcessInfo::readFromParcel(const Parcel* parcel) { in readFromParcel() argument
12 mPid = parcel->readUint32(); in readFromParcel()
13 mUid = parcel->readUint32(); in readFromParcel()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DTextInfoCompatUtilsTests.java82 Parcel parcel = null; in marshall() local
84 parcel = Parcel.obtain(); in marshall()
85 TextUtils.writeToParcel(cahrSequence, parcel, 0); in marshall()
86 return parcel.marshall(); in marshall()
88 if (parcel != null) { in marshall()
89 parcel.recycle(); in marshall()
90 parcel = null; in marshall()
/packages/apps/Dialer/java/com/android/dialer/callintent/
DCallIntentBuilder.java101 public CallIntentBuilder(@NonNull Parcel parcel) { in CallIntentBuilder() argument
103 uri = parcel.readParcelable(classLoader); in CallIntentBuilder()
106 data = CallSpecificAppData.parseFrom(parcel.createByteArray()); in CallIntentBuilder()
111 phoneAccountHandle = parcel.readParcelable(classLoader); in CallIntentBuilder()
112 isVideoCall = parcel.readInt() != 0; in CallIntentBuilder()
113 isDuoCall = parcel.readInt() != 0; in CallIntentBuilder()
114 callSubject = parcel.readString(); in CallIntentBuilder()
115 allowAssistedDial = parcel.readInt() != 0; in CallIntentBuilder()
116 inCallUiIntentExtras.putAll(parcel.readBundle(classLoader)); in CallIntentBuilder()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DPinWidgetFlowHandler.java48 protected PinWidgetFlowHandler(Parcel parcel) { in PinWidgetFlowHandler() argument
49 super(parcel); in PinWidgetFlowHandler()
50 mRequest = PinItemRequest.CREATOR.createFromParcel(parcel); in PinWidgetFlowHandler()
54 public void writeToParcel(Parcel parcel, int i) { in writeToParcel() argument
55 super.writeToParcel(parcel, i); in writeToParcel()
56 mRequest.writeToParcel(parcel, i); in writeToParcel()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DCurrentWallpaperInfoVN.java166 public void writeToParcel(Parcel parcel, int flags) { in writeToParcel() argument
167 parcel.writeStringList(mAttributions); in writeToParcel()
168 parcel.writeInt(mWallpaperManagerFlag); in writeToParcel()
169 parcel.writeString(mActionUrl); in writeToParcel()
170 parcel.writeString(mCollectionId); in writeToParcel()
171 parcel.writeInt(mActionLabelRes); in writeToParcel()
172 parcel.writeInt(mActionIconRes); in writeToParcel()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDevice.java41 public HdHomeRunDevice(Parcel parcel) { in HdHomeRunDevice() argument
42 mIpAddress = parcel.readInt(); in HdHomeRunDevice()
43 mDeviceType = parcel.readInt(); in HdHomeRunDevice()
44 mDeviceId = parcel.readInt(); in HdHomeRunDevice()
45 mTunerIndex = parcel.readInt(); in HdHomeRunDevice()
46 mDeviceModel = parcel.readString(); in HdHomeRunDevice()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingCapability.java75 public void writeToParcel(Parcel parcel, int flags) { in writeToParcel() argument
76 parcel.writeString(inputId); in writeToParcel()
77 parcel.writeInt(maxConcurrentTunedSessions); in writeToParcel()
78 parcel.writeInt(maxConcurrentPlayingSessions); in writeToParcel()
79 parcel.writeInt(maxConcurrentSessionsOfAllTypes); in writeToParcel()
80 parcel.writeByte((byte) (playbackWhileRecording ? 1 : 0)); in writeToParcel()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPendingRequestArgs.java54 public PendingRequestArgs(Parcel parcel) { in PendingRequestArgs() argument
55 readFromValues(ContentValues.CREATOR.createFromParcel(parcel)); in PendingRequestArgs()
56 user = parcel.readParcelable(null); in PendingRequestArgs()
58 mArg1 = parcel.readInt(); in PendingRequestArgs()
59 mObjectType = parcel.readInt(); in PendingRequestArgs()
60 mObject = parcel.readParcelable(getClass().getClassLoader()); in PendingRequestArgs()

12345