Searched defs:parcel (Results 76 - 100 of 130) sorted by relevance

123456

/frameworks/base/location/java/android/location/
H A DCriteria.java356 public void writeToParcel(Parcel parcel, int flags) { argument
357 parcel.writeInt(mHorizontalAccuracy);
358 parcel.writeInt(mVerticalAccuracy);
359 parcel.writeInt(mSpeedAccuracy);
360 parcel.writeInt(mBearingAccuracy);
361 parcel.writeInt(mPowerRequirement);
362 parcel.writeInt(mAltitudeRequired ? 1 : 0);
363 parcel.writeInt(mBearingRequired ? 1 : 0);
364 parcel.writeInt(mSpeedRequired ? 1 : 0);
365 parcel
[all...]
H A DGnssNavigationMessage.java371 public GnssNavigationMessage createFromParcel(Parcel parcel) {
374 navigationMessage.setType(parcel.readInt());
375 navigationMessage.setSvid(parcel.readInt());
376 navigationMessage.setMessageId(parcel.readInt());
377 navigationMessage.setSubmessageId(parcel.readInt());
378 int dataLength = parcel.readInt();
380 parcel.readByteArray(data);
382 navigationMessage.setStatus(parcel.readInt());
394 public void writeToParcel(Parcel parcel, int flags) { argument
395 parcel
[all...]
H A DGpsNavigationMessage.java249 public GpsNavigationMessage createFromParcel(Parcel parcel) {
252 navigationMessage.setType(parcel.readByte());
253 navigationMessage.setPrn(parcel.readByte());
254 navigationMessage.setMessageId((short) parcel.readInt());
255 navigationMessage.setSubmessageId((short) parcel.readInt());
257 int dataLength = parcel.readInt();
259 parcel.readByteArray(data);
262 if (parcel.dataAvail() >= Integer.SIZE) {
263 int status = parcel.readInt();
278 public void writeToParcel(Parcel parcel, in argument
[all...]
H A DGnssClock.java433 public GnssClock createFromParcel(Parcel parcel) {
436 gpsClock.mFlags = parcel.readInt();
437 gpsClock.mLeapSecond = parcel.readInt();
438 gpsClock.mTimeNanos = parcel.readLong();
439 gpsClock.mTimeUncertaintyNanos = parcel.readDouble();
440 gpsClock.mFullBiasNanos = parcel.readLong();
441 gpsClock.mBiasNanos = parcel.readDouble();
442 gpsClock.mBiasUncertaintyNanos = parcel.readDouble();
443 gpsClock.mDriftNanosPerSecond = parcel.readDouble();
444 gpsClock.mDriftUncertaintyNanosPerSecond = parcel
457 writeToParcel(Parcel parcel, int flags) argument
[all...]
H A DGpsClock.java399 public GpsClock createFromParcel(Parcel parcel) {
402 gpsClock.mFlags = (short) parcel.readInt();
403 gpsClock.mLeapSecond = (short) parcel.readInt();
404 gpsClock.mType = parcel.readByte();
405 gpsClock.mTimeInNs = parcel.readLong();
406 gpsClock.mTimeUncertaintyInNs = parcel.readDouble();
407 gpsClock.mFullBiasInNs = parcel.readLong();
408 gpsClock.mBiasInNs = parcel.readDouble();
409 gpsClock.mBiasUncertaintyInNs = parcel.readDouble();
410 gpsClock.mDriftInNsPerSec = parcel
422 writeToParcel(Parcel parcel, int flags) argument
[all...]
H A DLocationRequest.java618 public void writeToParcel(Parcel parcel, int flags) { argument
619 parcel.writeInt(mQuality);
620 parcel.writeLong(mFastestInterval);
621 parcel.writeLong(mInterval);
622 parcel.writeLong(mExpireAt);
623 parcel.writeInt(mNumUpdates);
624 parcel.writeFloat(mSmallestDisplacement);
625 parcel.writeInt(mHideFromAppOps ? 1 : 0);
626 parcel.writeString(mProvider);
627 parcel
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiDeviceInfo.java345 public void writeToParcel(Parcel parcel, int flags) { argument
346 parcel.writeInt(mType);
347 parcel.writeInt(mId);
348 parcel.writeInt(mInputPortCount);
349 parcel.writeInt(mOutputPortCount);
350 parcel.writeStringArray(mInputPortNames);
351 parcel.writeStringArray(mOutputPortNames);
352 parcel.writeBundle(mProperties);
353 parcel.writeInt(mIsPrivate ? 1 : 0);
/frameworks/native/libs/binder/
H A DPersistableBundle.cpp88 status_t PersistableBundle::writeToParcel(Parcel* parcel) const {
96 RETURN_IF_FAILED(parcel->writeInt32(0));
100 size_t length_pos = parcel->dataPosition();
101 RETURN_IF_FAILED(parcel->writeInt32(1)); // dummy, will hold length
102 RETURN_IF_FAILED(parcel->writeInt32(BUNDLE_MAGIC));
104 size_t start_pos = parcel->dataPosition();
105 RETURN_IF_FAILED(writeToParcelInner(parcel));
106 size_t end_pos = parcel->dataPosition();
109 parcel->setDataPosition(length_pos);
115 RETURN_IF_FAILED(parcel
120 readFromParcel(const Parcel* parcel) argument
338 readFromParcelInner(const Parcel* parcel, size_t length) argument
[all...]
/frameworks/native/libs/gui/
H A DSurfaceControl.cpp204 const sp<SurfaceControl>& control, Parcel* parcel)
210 return parcel->writeStrongBinder(IInterface::asBinder(bp));
203 writeSurfaceToParcel( const sp<SurfaceControl>& control, Parcel* parcel) argument
/frameworks/av/camera/
H A DCameraMetadata.cpp449 // See CameraMetadata::writeToParcel for parcel data layout diagram and explanation.
534 * Below is the camera metadata parcel layout:
624 status_t CameraMetadata::readFromParcel(const Parcel *parcel) { argument
626 ALOGV("%s: parcel = %p", __FUNCTION__, parcel);
630 if (parcel == NULL) {
631 ALOGE("%s: parcel is null", __FUNCTION__);
642 res = CameraMetadata::readFromParcel(*parcel, &buffer);
645 ALOGE("%s: Failed to read from parcel. Metadata is unchanged.",
656 status_t CameraMetadata::writeToParcel(Parcel *parcel) cons
[all...]
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityServiceInfo.java705 public void writeToParcel(Parcel parcel, int flagz) { argument
706 parcel.writeInt(eventTypes);
707 parcel.writeStringArray(packageNames);
708 parcel.writeInt(feedbackType);
709 parcel.writeLong(notificationTimeout);
710 parcel.writeInt(flags);
711 parcel.writeString(mId);
712 parcel.writeParcelable(mResolveInfo, 0);
713 parcel.writeString(mSettingsActivityName);
714 parcel
719 initFromParcel(Parcel parcel) argument
[all...]
/frameworks/base/core/java/android/content/
H A DSyncRequest.java137 public void writeToParcel(Parcel parcel, int flags) { argument
138 parcel.writeBundle(mExtras);
139 parcel.writeLong(mSyncFlexTimeSecs);
140 parcel.writeLong(mSyncRunTimeSecs);
141 parcel.writeInt((mIsPeriodic ? 1 : 0));
142 parcel.writeInt((mDisallowMetered ? 1 : 0));
143 parcel.writeInt((mIsAuthority ? 1 : 0));
144 parcel.writeInt((mIsExpedited? 1 : 0));
145 parcel.writeParcelable(mAccountToSync, flags);
146 parcel
[all...]
/frameworks/base/core/java/android/os/
H A DBinder.java527 static void checkParcel(IBinder obj, int code, Parcel parcel, String msg) { argument
528 if (CHECK_PARCEL_SIZE && parcel.dataSize() >= 800*1024) {
537 sb.append(parcel.dataSize());
539 parcel.setDataPosition(0);
540 sb.append(parcel.readInt());
542 sb.append(parcel.readInt());
544 sb.append(parcel.readInt());
H A DBundle.java1127 * @param parcel The parcel to copy this bundle to.
1130 public void writeToParcel(Parcel parcel, int flags) { argument
1131 final boolean oldAllowFds = parcel.pushAllowFds((mFlags & FLAG_ALLOW_FDS) != 0);
1133 super.writeToParcelInner(parcel, flags);
1135 parcel.restoreAllowFds(oldAllowFds);
1142 * @param parcel The parcel to overwrite this bundle from.
1144 public void readFromParcel(Parcel parcel) { argument
1145 super.readFromParcelInner(parcel);
[all...]
H A DBaseBundle.java68 // A parcel cannot be obtained during compile-time initialization. Put the
69 // empty parcel into an inner class that can be initialized separately. This
1379 * @param parcel The parcel to copy this bundle to.
1381 void writeToParcelInner(Parcel parcel, int flags) { argument
1390 parcel.writeInt(0);
1393 parcel.writeInt(length);
1394 parcel.writeInt(BUNDLE_MAGIC);
1395 parcel.appendFrom(parcelledData, 0, length);
1400 parcel
1424 readFromParcelInner(Parcel parcel) argument
1431 readFromParcelInner(Parcel parcel, int length) argument
[all...]
/frameworks/base/core/java/android/os/storage/
H A DStorageVolume.java422 public void writeToParcel(Parcel parcel, int flags) { argument
423 parcel.writeString(mId);
424 parcel.writeInt(mStorageId);
425 parcel.writeString(mPath.toString());
426 parcel.writeString(mDescription);
427 parcel.writeInt(mPrimary ? 1 : 0);
428 parcel.writeInt(mRemovable ? 1 : 0);
429 parcel.writeInt(mEmulated ? 1 : 0);
430 parcel.writeLong(mMtpReserveSize);
431 parcel
[all...]
H A DVolumeInfo.java169 public VolumeInfo(Parcel parcel) { argument
170 id = parcel.readString();
171 type = parcel.readInt();
172 if (parcel.readInt() != 0) {
173 disk = DiskInfo.CREATOR.createFromParcel(parcel);
177 partGuid = parcel.readString();
178 mountFlags = parcel.readInt();
179 mountUserId = parcel.readInt();
180 state = parcel.readInt();
181 fsType = parcel
521 writeToParcel(Parcel parcel, int flags) argument
[all...]
/frameworks/base/core/java/android/print/
H A DPrinterCapabilitiesInfo.java225 private PrinterCapabilitiesInfo(Parcel parcel) { argument
226 mMinMargins = Preconditions.checkNotNull(readMargins(parcel));
227 readMediaSizes(parcel);
228 readResolutions(parcel);
230 mColorModes = parcel.readInt();
234 mDuplexModes = parcel.readInt();
238 readDefaults(parcel);
249 public void writeToParcel(Parcel parcel, int flags) { argument
250 writeMargins(mMinMargins, parcel);
251 writeMediaSizes(parcel);
363 writeMediaSizes(Parcel parcel) argument
375 readMediaSizes(Parcel parcel) argument
385 writeResolutions(Parcel parcel) argument
397 readResolutions(Parcel parcel) argument
407 writeMargins(Margins margins, Parcel parcel) argument
416 readMargins(Parcel parcel) argument
420 readDefaults(Parcel parcel) argument
427 writeDefaults(Parcel parcel) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp408 Parcel* parcel = parcelForJavaObject(env, parcelObj); local
409 if (parcel == NULL) {
418 surfaceShim.readFromParcel(parcel, /*nameAlreadyRead*/true);
449 Parcel* parcel = parcelForJavaObject(env, parcelObj); local
450 if (parcel == NULL) {
461 surfaceShim.writeToParcel(parcel, /*nameAlreadyWritten*/true);
/frameworks/base/media/java/android/media/
H A DMetadata.java253 // After a successful parsing, set the parcel with the serialized metadata.
257 // the record's payload in the parcel.
289 * @param parcel With the serialized records.
290 * @param bytesLeft How many bytes in the parcel should be processed.
293 private boolean scanAllRecords(Parcel parcel, int bytesLeft) { argument
299 final int start = parcel.dataPosition();
301 final int size = parcel.readInt();
310 final int metadataId = parcel.readInt();
325 mKeyToPosMap.put(metadataId, parcel.dataPosition());
328 final int metadataType = parcel
385 parse(Parcel parcel) argument
[all...]
/frameworks/native/include/binder/
H A DParcel.h67 status_t appendFrom(const Parcel *parcel,
123 // Take a UTF8 encoded string, convert to UTF16, write it to the parcel.
170 // Place a native_handle into the parcel (the native_handle's file-
176 // Place a file descriptor into the parcel. The given fd must remain
177 // valid for the lifetime of the parcel.
181 // Place a file descriptor into the parcel. A dup of the fd is made, which
182 // will be closed once the parcel is destroyed.
185 // Place a file descriptor into the parcel. This will not affect the
187 // created, and will be closed when the parcel is destroyed.
191 // Place a vector of file desciptors into the parcel
763 operator <<(TextOutput& to, const Parcel& parcel) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp598 sp<AMessage> AMessage::FromParcel(const Parcel &parcel, size_t maxNestingLevel) { argument
599 int32_t what = parcel.readInt32();
603 msg->mNumItems = static_cast<size_t>(parcel.readInt32());
612 const char *name = parcel.readCString();
619 item->mType = static_cast<Type>(parcel.readInt32());
625 item->u.int32Value = parcel.readInt32();
631 item->u.int64Value = parcel.readInt64();
637 item->u.sizeValue = static_cast<size_t>(parcel.readInt32());
643 item->u.floatValue = parcel.readFloat();
649 item->u.doubleValue = parcel
[all...]
/frameworks/base/core/java/android/app/
H A DPendingIntent.java245 * Listener for observing when pending intents are written to a parcel.
251 * Called when a pending intent is written to a parcel.
254 * @param parcel The parcel to which it was written.
255 * @param flags The parcel flags when it was written.
257 void onMarshaled(PendingIntent intent, Parcel parcel, int flags); argument
264 * Registers an listener for pending intents being written to a parcel.
/frameworks/base/core/java/android/database/
H A DCursorWindow.java60 private static native long nativeCreateFromParcel(Parcel parcel); argument
62 private static native void nativeWriteToParcel(long windowPtr, Parcel parcel); argument
/frameworks/base/core/java/android/net/
H A DNetworkStats.java221 public NetworkStats(Parcel parcel) { argument
222 elapsedRealtime = parcel.readLong();
223 size = parcel.readInt();
224 capacity = parcel.readInt();
225 iface = parcel.createStringArray();
226 uid = parcel.createIntArray();
227 set = parcel.createIntArray();
228 tag = parcel.createIntArray();
229 roaming = parcel.createIntArray();
230 rxBytes = parcel
[all...]

Completed in 866 milliseconds

123456