private PrintJobInfo(@NonNull Parcel parcel) {
    mId = parcel.readParcelable(null);
    mLabel = parcel.readString();
    mPrinterId = parcel.readParcelable(null);
    mPrinterName = parcel.readString();
    mState = parcel.readInt();
    mAppId = parcel.readInt();
    mTag = parcel.readString();
    mCreationTime = parcel.readLong();
    mCopies = parcel.readInt();
    Parcelable[] parcelables = parcel.readParcelableArray(null);
    if (parcelables != null) {
      mPageRanges = new PageRange[parcelables.length];
      for (int i = 0; i < parcelables.length; i++) {
        mPageRanges[i] = (PageRange) parcelables[i];
      }
    }
    mAttributes = (PrintAttributes) parcel.readParcelable(null);
    mDocumentInfo = (PrintDocumentInfo) parcel.readParcelable(null);
    mProgress = parcel.readFloat();
    mStatus = parcel.readCharSequence();
    mStatusRes = parcel.readInt();
    mStatusResAppPackageName = parcel.readCharSequence();
    mCanceling = (parcel.readInt() == 1);
    mAdvancedOptions = parcel.readBundle();

    if (mAdvancedOptions != null) {
      Preconditions.checkArgument(!mAdvancedOptions.containsKey(null));
    }
  }
 protected ImageInfo(Parcel in) {
   mRect = in.readParcelable(RectF.class.getClassLoader());
   mLocalRect = in.readParcelable(RectF.class.getClassLoader());
   mImgRect = in.readParcelable(RectF.class.getClassLoader());
   mWidgetRect = in.readParcelable(RectF.class.getClassLoader());
   mScale = in.readFloat();
 }
Example #3
0
 private UserContact(Parcel in) {
   this.id = in.readLong();
   this.userId = in.readString();
   this.labelCode = in.readString();
   this.nickname = in.readString();
   this.mobile = in.readString();
   this.remarkName = in.readString();
   this.gender = in.readInt();
   this.birthday = in.readLong();
   this.age = in.readInt();
   this.constellation = in.readInt();
   this.province = in.readString();
   this.city = in.readString();
   this.school = in.readString();
   this.height = in.readInt();
   this.job = in.readString();
   this.signature = in.readString();
   this.avatar = in.readString();
   this.avatarThumb = in.readString();
   this.labels = in.createTypedArray(UserLabel.CREATOR);
   this.location = in.readParcelable(LocationInfo.class.getClassLoader());
   this.appearanceFace = in.readString();
   this.theme = in.readParcelable(UserTheme.class.getClassLoader());
   this.albumPhotos = in.createTypedArray(AlbumPhoto.CREATOR);
   this.labelStories = in.createTypedArray(LabelStory.CREATOR);
   this.interestTypes = in.createTypedArray(InterestType.CREATOR);
   this.userTags = in.createTypedArray(UserTag.CREATOR);
   this.visitorCount = in.readInt();
   this.myPhotoTotal = in.readInt();
 }
Example #4
0
 private Group(Parcel in) {
   creator = in.readString();
   description = in.readString();
   email = in.readString();
   gid = in.readString();
   icon = in.readString();
   icon34 = in.readString();
   icon50 = in.readString();
   icon68 = in.readString();
   name = in.readString();
   nid = in.readString();
   office = in.readString();
   parent_id = in.readString();
   pic = in.readString();
   pic_big = in.readString();
   pic_cover = in.readParcelable(Cover.class.getClassLoader());
   pic_small = in.readString();
   pic_square = in.readString();
   privacy = in.readString();
   recent_news = in.readString();
   update_time = in.readString();
   venue = in.readParcelable(Location.class.getClassLoader());
   website = in.readString();
   administrator = in.readByte() == 1;
   unread = in.readInt();
 }
Example #5
0
 public Appointment(Parcel in) {
   this.appointmentId = in.readString();
   this.appointmentDate = new Date(this.appointmentDate.getTime());
   this.reasonForVisit = in.readString();
   this.physician = in.readParcelable(Physician.class.getClassLoader());
   this.person = in.readParcelable(Person.class.getClassLoader());
 }
Example #6
0
 protected GameField(Parcel in) {
   super(in);
   this.currentKalah = in.readParcelable(Kalah.class.getClassLoader());
   this.otherKalah = in.readParcelable(Kalah.class.getClassLoader());
   this.currentHoles = Utils.toTypedList(in.readArray(Hole.class.getClassLoader()));
   this.otherHoles = Utils.toTypedList(in.readArray(Hole.class.getClassLoader()));
 }
Example #7
0
 private Quiz(Parcel in) {
   this.id = in.readLong();
   this.title = in.readString();
   this.mobile_url = in.readString();
   this.html_url = in.readString();
   this.description = in.readString();
   this.quiz_type = in.readString();
   this.lock_info = in.readParcelable(LockInfo.class.getClassLoader());
   this.assignment = in.readParcelable(Assignment.class.getClassLoader());
   this.permissions = in.readParcelable(QuizPermission.class.getClassLoader());
   this.allowed_attempts = in.readInt();
   this.question_count = in.readInt();
   this.points_possible = in.readDouble();
   this.due_at = in.readString();
   this.time_limit = in.readInt();
   this.access_code = in.readString();
   this.ip_filter = in.readString();
   this.locked_for_user = in.readByte() != 0;
   this.lock_explanation = in.readString();
   this.hide_results = in.readString();
   this.unlock_at = in.readString();
   this.one_time_results = in.readByte() != 0;
   this.lock_at = in.readString();
   in.readStringArray(this.question_types);
   this.has_access_code = in.readByte() != 0;
 }
 private Printer(Parcel in) {
   uuid = in.readString();
   type = in.readParcelable(getClass().getClassLoader());
   name = in.readString();
   ip = in.readString();
   mac = in.readString();
   category = in.readParcelable(getClass().getClassLoader());
 }
 private ThreadParticipant(Parcel paramParcel)
 {
   this.a = ((ParticipantInfo)paramParcel.readParcelable(ParticipantInfo.class.getClassLoader()));
   this.b = paramParcel.readString();
   this.c = ((NotificationSetting)paramParcel.readParcelable(NotificationSetting.class.getClassLoader()));
   this.d = paramParcel.readLong();
   this.e = paramParcel.readString();
 }
Example #10
0
  public SessionState(Parcel parcel) {
    instance = parcel.readInt();
    bookmark = parcel.readParcelable(null);
    openUri = parcel.readParcelable(null);

    Bitmap bitmap = parcel.readParcelable(null);
    surface = new BitmapDrawable(bitmap);
  }
 private Member(Parcel in) {
   mRawContactId = in.readLong();
   mContactId = in.readLong();
   mLookupUri = in.readParcelable(getClass().getClassLoader());
   mLookupKey = in.readString();
   mDisplayName = in.readString();
   mPhotoUri = in.readParcelable(getClass().getClassLoader());
 }
Example #12
0
 private MediaItem(Parcel source) {
   uriCropped = source.readParcelable(Uri.class.getClassLoader());
   uriOrigin = source.readParcelable(Uri.class.getClassLoader());
   //        byte[] cacheBytes = source.createByteArray();
   //        cache = BitmapFactory.decodeByteArray(cacheBytes, 0, cacheBytes.length);
   type = source.readInt();
   isChecked = (boolean) source.readValue(Boolean.class.getClassLoader());
 }
Example #13
0
 public ChatMessage(Parcel in) {
   mFrom = in.readString();
   mTo = in.readString();
   mResult = CMActionResult.valueOf(in.readString());
   mDataTalk = in.readParcelable(SAndroidUtil.getClassLoader());
   mFriendCardXmlInfo = in.readParcelable(SAndroidUtil.getClassLoader());
   mIsShowTime = in.readInt();
   mDisplayTime = in.readString();
 }
Example #14
0
    protected Builder(Parcel in) {
      mStyleId = in.readInt();
      mContentViewId = in.readInt();
      mTitle = (CharSequence) in.readParcelable(null);
      mPositive = (CharSequence) in.readParcelable(null);
      mNegative = (CharSequence) in.readParcelable(null);
      mNeutral = (CharSequence) in.readParcelable(null);

      onReadFromParcel(in);
    }
Example #15
0
 protected Route(Parcel in) {
   name = in.readString();
   price = in.readString();
   distance = in.readParcelable(getClass().getClassLoader());
   duration = in.readParcelable(getClass().getClassLoader());
   startLocation = in.readParcelable(getClass().getClassLoader());
   endLocation = in.readParcelable(getClass().getClassLoader());
   points = in.readString();
   address = in.readString();
 }
 private TypeaheadPlace(Parcel paramParcel)
 {
   this.a = paramParcel.readString();
   this.b = paramParcel.readString();
   this.f = paramParcel.readArrayList(String.class.getClassLoader());
   this.g = ((GraphQLAddress)paramParcel.readParcelable(GraphQLAddress.class.getClassLoader()));
   this.c = paramParcel.readFloat();
   this.d = paramParcel.readString();
   this.e = ((GraphQLLocation)paramParcel.readParcelable(GraphQLLocation.class.getClassLoader()));
 }
  private AssetsAndQuantity(Parcel sourceParcel) {
    mUneditedAsset = sourceParcel.readParcelable(Asset.class.getClassLoader());

    if (sourceParcel.readByte() == TRUE_AS_BYTE) {
      mEditedAsset = sourceParcel.readParcelable(Asset.class.getClassLoader());
    }

    mQuantity = sourceParcel.readInt();
    mEditedForProductId = sourceParcel.readString();
  }
 protected WorkOrderData(Parcel in) {
   this.work_order = in.readParcelable(WorkOrder.class.getClassLoader());
   this.send_contact = in.readParcelable(SendContact.class.getClassLoader());
   this.receive_contact = in.readParcelable(ReceiveContact.class.getClassLoader());
   this.cargo = in.readParcelable(Cargo.class.getClassLoader());
   this.cargo_details = in.createTypedArrayList(CargoDetail.CREATOR);
   this.tasks = in.createTypedArrayList(Task.CREATOR);
   this.work_order_charges = in.createTypedArrayList(Charge.CREATOR);
   this.work_order_exceptions = in.createTypedArrayList(WorkOrderException.CREATOR);
 }
 public void readFromParcel(Parcel source) {
   final ClassLoader loader = getClass().getClassLoader();
   final int size = source.readInt();
   mValues = source.<ValuesDelta>readParcelable(loader);
   mContactsQueryUri = source.<Uri>readParcelable(loader);
   for (int i = 0; i < size; i++) {
     final ValuesDelta child = source.<ValuesDelta>readParcelable(loader);
     this.addEntry(child);
   }
 }
Example #20
0
  private ActivityStatus(Parcel in) {
    super();

    mRecognition = in.readParcelable(ActivityRecognitionResult.class.getClassLoader());

    mTime = in.readLong();

    mElapsedRealtime = in.readLong();

    mProbability = in.readParcelable(DetectedActivity.class.getClassLoader());
  }
  public void readFromParcel(Parcel in) {
    mName = in.readString();
    mDefaultGroup = (Boolean) in.readValue(null);
    mSoundOverride = in.readParcelable(null);
    mRingerOverride = in.readParcelable(null);

    mSoundMode = Mode.valueOf(Mode.class, in.readString());
    mRingerMode = Mode.valueOf(Mode.class, in.readString());
    mVibrateMode = Mode.valueOf(Mode.class, in.readString());
    mLightsMode = Mode.valueOf(Mode.class, in.readString());
  }
 /**
  * Create {@link XingAddress} from {@link Parcel}
  *
  * @param in Input {@link Parcel}
  */
 private XingAddress(Parcel in) {
   mCity = in.readString();
   mCountry = in.readString();
   mEmail = in.readString();
   mFax = in.readParcelable(XingPhone.class.getClassLoader());
   mMobilePhone = in.readParcelable(XingPhone.class.getClassLoader());
   mPhone = in.readParcelable(XingPhone.class.getClassLoader());
   mProvince = in.readString();
   mStreet = in.readString();
   mZipCode = in.readString();
 }
 LineItem(Parcel parcel) {
   mProductId = parcel.readString();
   mDescription = parcel.readString();
   mShippingCost =
       (MultipleCurrencyAmount)
           parcel.readParcelable(MultipleCurrencyAmount.class.getClassLoader());
   mQuantity = parcel.readInt();
   mProductCost =
       (MultipleCurrencyAmount)
           parcel.readParcelable(MultipleCurrencyAmount.class.getClassLoader());
 }
 protected FoursquareVenue(Parcel in) {
   id = in.readString();
   name = in.readString();
   url = in.readString();
   contact = in.readParcelable(Contact.class.getClassLoader());
   location = in.readParcelable(Location.class.getClassLoader());
   hereNow = in.readParcelable(HereNow.class.getClassLoader());
   statuses = in.readArrayList(UserReport.class.getClassLoader());
   categories = in.readArrayList(Category.class.getClassLoader());
   verified = in.readByte() != 0x00;
   iconUrl = in.readString();
 }
Example #25
0
  public OVChipTransitData(Parcel parcel) {
    mTrips = new OVChipTrip[parcel.readInt()];
    parcel.readTypedArray(mTrips, OVChipTrip.CREATOR);

    mSubscriptions = new OVChipSubscription[parcel.readInt()];
    parcel.readTypedArray(mSubscriptions, OVChipSubscription.CREATOR);

    mIndex = parcel.readParcelable(OVChipIndex.class.getClassLoader());
    mPreamble = parcel.readParcelable(OVChipPreamble.class.getClassLoader());
    mInfo = parcel.readParcelable(OVChipInfo.class.getClassLoader());
    mCredit = parcel.readParcelable(OVChipCredit.class.getClassLoader());
  }
Example #26
0
 /** {@inheritDoc} */
 @Override
 public TYPE createFromParcel(Parcel source) {
   TYPE model;
   try {
     model = cls.newInstance();
   } catch (IllegalAccessException | InstantiationException e) {
     throw new RuntimeException(e);
   }
   model.setValues = source.readParcelable(ContentValues.class.getClassLoader());
   model.values = source.readParcelable(ContentValues.class.getClassLoader());
   return model;
 }
Example #27
0
 private MapParcelable(android.os.Parcel parcel) {
   int size = parcel.readInt();
   if (size < 0) {
     contents = null;
   } else {
     contents = new HashMap<Object, Object>();
     for (int i = 0; (i < size); i++) {
       Parcelable key = parcel.readParcelable(MapParcelable.class.getClassLoader());
       Parcelable value = parcel.readParcelable(MapParcelable.class.getClassLoader());
       contents.put(Parcels.unwrap(key), Parcels.unwrap(value));
     }
   }
 }
 private SavedState(Parcel in) {
   super(in);
   color = in.readInt();
   dateTextAppearance = in.readInt();
   weekDayTextAppearance = in.readInt();
   showOtherDates = in.readInt() == 1;
   ClassLoader loader = CalendarDay.class.getClassLoader();
   minDate = in.readParcelable(loader);
   maxDate = in.readParcelable(loader);
   selectedDate = in.readParcelable(loader);
   firstDayOfWeek = in.readInt();
   tileSizePx = in.readInt();
   topbarVisible = in.readInt() == 1;
 }
Example #29
0
 public Observation(Parcel parcel) {
   id = parcel.readInt();
   publidate = parcel.readLong();
   lat = parcel.readDouble();
   lng = parcel.readDouble();
   distance = parcel.readDouble();
   nom = parcel.readString();
   description = parcel.readString();
   nb_commentaires = parcel.readInt();
   observateur = parcel.readParcelable(Observateur.class.getClassLoader());
   notes = parcel.readParcelable(Notes.class.getClassLoader());
   photos = new ArrayList<>();
   parcel.readList(photos, getClass().getClassLoader());
 }
  private ConditionsTreeNode(Parcel in) {
    mValue = Operator.values()[in.readInt()];
    mCondition = in.readParcelable(ConditionsTreeNode.class.getClassLoader());
    mLeft = in.readParcelable(ConditionsTreeNode.class.getClassLoader());
    mRight = in.readParcelable(ConditionsTreeNode.class.getClassLoader());
    mParent = null;

    if (mLeft != null) {
      mLeft.mParent = this;
    }

    if (mRight != null) {
      mRight.mParent = this;
    }
  }