private PurchaseParams(Parcel paramParcel) { this.docid = ((Common.Docid) ParcelableProto.getProtoFromParcel(paramParcel)); this.docidStr = paramParcel.readString(); this.document = ((Document) paramParcel.readParcelable(Document.class.getClassLoader())); this.offerType = paramParcel.readInt(); this.offerId = paramParcel.readString(); this.appVersionCode = paramParcel.readInt(); this.appTitle = paramParcel.readString(); this.appContinueUrl = paramParcel.readString(); Boolean localBoolean; if (paramParcel.readByte() != 0) { if (paramParcel.readByte() != 0) { localBoolean = Boolean.TRUE; } } for (this.appEverExternallyHosted = localBoolean; ; this.appEverExternallyHosted = null) { this.appInstallLocation = paramParcel.readInt(); this.voucherId = paramParcel.readString(); this.inAppPurchaseInfo = ((Purchase.InAppPurchaseInfo) ParcelableProto.getProtoFromParcel(paramParcel)); this.callingPackage = paramParcel.readString(); this.indirectProvisioningType = paramParcel.readInt(); return; localBoolean = Boolean.FALSE; break; } }
public ScoreUpdate(Parcel in) { matchId = in.readInt(); team1 = in.readString(); team2 = in.readString(); scoret1s1 = in.readString(); scoret1s2 = in.readString(); scoret2s1 = in.readString(); scoret2s2 = in.readString(); innsPlay = in.readByte(); playingTeam = in.readString(); playingOver = in.readString(); playingScore = in.readString(); batsman1 = in.readString(); batsman2 = in.readString(); batsman1score = in.readString(); batsman2score = in.readString(); bowler = in.readString(); bowlerEco = in.readString(); place = in.readString(); matchInfo = in.readString(); date = in.readString(); status = in.readString(); error = in.readByte() == 0 ? false : true; }
protected WeekdaysDataSource(Parcel in) { this.mDataSource = new ArrayList<>(); in.readList(this.mDataSource, List.class.getClassLoader()); this.locale = (Locale) in.readSerializable(); this.mAttachId = in.readInt(); this.mWeekdayLayoutId = in.readInt(); this.mWeekdayViewId = in.readInt(); this.mBackgroundColor = in.readInt(); this.mTextColorSelected = in.readInt(); this.mTextColorUnselected = in.readInt(); this.mSelectedColor = in.readInt(); this.mUnselectedColor = in.readInt(); this.mIsVisible = in.readByte() != 0; this.mFillWidth = in.readByte() != 0; this.mIsAllDaysSelected = in.readByte() != 0; this.mFirstDayOfWeek = in.readInt(); this.mTextDrawableType = in.readInt(); this.mNumberOfLetters = in.readInt(); this.mViewWidth = in.readInt(); this.mViewHeight = in.readInt(); this.mViewMargin = in.readInt(); this.mViewGravity = in.readInt(); this.mLayoutPadding = in.readInt(); this.mNestedScrollEnable = in.readByte() != 0; }
/** * Constructor * * @param source Parcelable source */ public PresenceInfo(Parcel source) { this.timestamp = source.readLong(); this.status = source.readString(); this.freetext = source.readString(); byte flag = source.readByte(); if (flag > 0) { this.favoriteLink = FavoriteLink.CREATOR.createFromParcel(source); } else { this.favoriteLink = null; } flag = source.readByte(); if (flag > 0) { this.photo = PhotoIcon.CREATOR.createFromParcel(source); } else { this.photo = null; } flag = source.readByte(); if (flag > 0) { this.geoloc = Geoloc.CREATOR.createFromParcel(source); } else { this.geoloc = null; } }
public ParcelXmlCommandResult createFromParcel(Parcel parcel) { int type = parcel.readInt(); String statusMessage = parcel.readString(); String serialNumber = parcel.readString(); int batteryStatus = parcel.readInt(); int batteryMv = parcel.readInt(); boolean batteryCharging = parcel.readByte() == 1; boolean externalPower = parcel.readByte() == 1; BluetoothInformation btInfo = new BluetoothInformation(); btInfo.bTReconnectRequired = parcel.readByte() == 1; btInfo.bluetoothName = parcel.readString(); btInfo.oldBluetoothName = parcel.readString(); XMLCommandResult result = new XMLCommandResult( type, btInfo, statusMessage, serialNumber, batteryStatus, batteryMv, batteryCharging, externalPower); return new ParcelXmlCommandResult(result); }
public Style(Parcel parcel) { mType = Type.values()[parcel.readInt()]; if (mType == Type.BUTTON) { mButtonText = parcel.readString(); mButtonTextSize = parcel.readFloat(); mButtonTextColor = parcel.readInt(); mButtonResource = parcel.readInt(); mButtonDividerResource = parcel.readInt(); mButtonTypeface = parcel.readInt(); mClickListenerTag = parcel.readString(); } boolean hasIcon = parcel.readByte() != 0; if (hasIcon) { mIconResource = parcel.readInt(); mIconPosition = IconPosition.values()[parcel.readInt()]; } mDismissListenerTag = parcel.readString(); mAnimations = Animations.values()[parcel.readInt()]; mText = parcel.readString(); mTypeface = parcel.readInt(); mDuration = parcel.readInt(); mTextColor = parcel.readInt(); mTextSize = parcel.readFloat(); isIndeterminate = parcel.readByte() != 0; mBackgroundResource = parcel.readInt(); isTouchDismissable = parcel.readByte() != 0; isSwipeDismissable = parcel.readByte() != 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; }
protected Item(Parcel in) { title = in.readString(); viewItemURL = in.readString(); galleryURL = in.readString(); pictureURLSuperSize = in.readString(); convertedCurrentPrice = in.readString(); shippingServiceCost = in.readString(); conditionDisplayName = in.readString(); listingType = in.readString(); location = in.readString(); categoryName = in.readString(); topRatedListing = in.readByte() != 0; sellerUserName = in.readString(); feedbackScore = in.readString(); positiveFeedbackPercent = in.readString(); feedbackRatingStar = in.readString(); topRatedSeller = in.readByte() != 0; sellerStoreName = in.readString(); sellerStoreURL = in.readString(); shippingType = in.readString(); shipToLocations = in.readString(); expeditedShipping = in.readByte() != 0; oneDayShippingAvailable = in.readByte() != 0; returnsAccepted = in.readByte() != 0; handlingTime = in.readString(); }
public GalleryImage(Parcel source) { hash = source.readString(); account_url = source.readString(); title = source.readString(); score = source.readInt(); starting_score = source.readInt(); virality = source.readFloat(); size = source.readInt(); views = source.readLong(); is_hot = source.readByte() == 1; is_album = source.readByte() == 1; album_cover = source.readString(); mimetype = source.readString(); ext = source.readString(); width = source.readInt(); height = source.readInt(); ups = source.readInt(); downs = source.readInt(); points = source.readInt(); reddit = source.readString(); bandwidth = source.readString(); timestamp = source.readString(); hot_datetime = source.readString(); source.readList(images, AlbumImages.class.getClassLoader()); }
public LocalSearch(Parcel in) { mName = in.readString(); mPredefined = (in.readByte() == 1); mManualSearch = (in.readByte() == 1); mAccountUuids.addAll(in.createStringArrayList()); mConditions = in.readParcelable(LocalSearch.class.getClassLoader()); mLeafSet = (mConditions == null) ? null : mConditions.getLeafSet(); }
protected TrackedSectionsViewState(Parcel in) { this.isRefreshing = in.readByte() != 0; int tmpLayoutType = in.readInt(); this.layoutType = tmpLayoutType == -1 ? LayoutType.LIST : LayoutType.values()[tmpLayoutType]; this.data = in.createTypedArrayList(NSection.CREATOR); this.snackBarShowing = in.readByte() != 0; this.errorMessage = in.readString(); }
@Override protected void readFromParcel(Parcel in) { super.readFromParcel(in); sendNotification = in.readByte() != 0; notificationText = in.readString(); sendContent = in.readByte() != 0; content = in.readString(); contentUrl = in.readString(); metadata = in.readBundle(); }
protected Comment(Parcel in) { this.by = in.readString(); this.body = in.readString(); this.time = in.readString(); this.hideChildren = in.readByte() != 0; this.isHidden = in.readByte() != 0; this.toBeHidden = in.readByte() != 0; this.hiddenChildren = in.readInt(); this.hierarchy = in.readInt(); }
protected ToDoItem(Parcel in) { this.id = in.readLong(); this.title = in.readString(); this.description = in.readString(); this.urgent = in.readByte() != 0; long tmpDueDate = in.readLong(); this.dueDate = tmpDueDate == -1 ? null : new Date(tmpDueDate); this.tags = in.readString(); this.done = in.readByte() != 0; this.order = in.readString(); }
protected BaseToonInfo(Parcel in) { this.id = in.readString(); this.title = in.readString(); this.image = in.readString(); this.updateDate = in.readString(); this.rate = in.readString(); this.adult = in.readByte() != 0; this.loginNeed = in.readByte() != 0; int tmpStatus = in.readInt(); this.status = tmpStatus == -1 ? null : Status.values()[tmpStatus]; }
@Test public void testReadWriteMultipleBytes() { for (byte i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; ++i) { parcel.writeByte(i); } for (byte i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; ++i) { assertThat(parcel.readByte()).isEqualTo(i); } // now try to read past the number of items written and see what happens assertThat(parcel.readByte()).isEqualTo((byte) 0); }
private UploadNotificationConfig(Parcel in) { iconResourceID = in.readInt(); title = in.readString(); inProgress = in.readString(); completed = in.readString(); error = in.readString(); autoClearOnSuccess = in.readByte() == 1; clearOnAction = in.readByte() == 1; ringToneEnabled = in.readByte() == 1; clickIntent = in.readParcelable(Intent.class.getClassLoader()); }
// orphaned legacy method public WifiP2pInfo createFromParcel(Parcel in) { WifiP2pInfo info = new WifiP2pInfo(); info.groupFormed = (in.readByte() == 1); info.isGroupOwner = (in.readByte() == 1); if (in.readByte() == 1) { try { info.groupOwnerAddress = InetAddress.getByAddress(in.createByteArray()); } catch (UnknownHostException e) { } } return info; }
SavedState(Parcel in) { super(in); numColumns = in.readInt(); requestedColumnWidth = in.readInt(); requestedColumnCount = in.readInt(); requestedVerticalSpacing = in.readInt(); requestedHorizontalSpacing = in.readInt(); defaultPadding = in.readInt(); debugging = in.readByte() == 1; allowReordering = in.readByte() == 1; adapterState = in.readParcelable(loader); }
@Override public ProcessedNotification createFromParcel(Parcel parcel) { ProcessedNotification notification = new ProcessedNotification(); notification.id = parcel.readInt(); notification.prevId = parcel.readInt(); notification.textChunks = (List<byte[]>) parcel.readValue(getClass().getClassLoader()); notification.vibrated = parcel.readByte() == 1; notification.nextChunkToSend = parcel.readInt(); notification.nativeNotification = parcel.readByte() == 1; notification.source = (PebbleNotification) parcel.readValue(getClass().getClassLoader()); return notification; }
public ShareCardInfo(Parcel paramParcel) { field_card_id = paramParcel.readString(); field_card_tp_id = paramParcel.readString(); field_from_username = paramParcel.readString(); field_status = paramParcel.readInt(); field_share_time = paramParcel.readLong(); field_local_updateTime = paramParcel.readLong(); field_updateTime = paramParcel.readLong(); field_updateSeq = paramParcel.readLong(); field_block_mask = paramParcel.readLong(); field_end_time = paramParcel.readLong(); field_categoryType = paramParcel.readInt(); field_itemIndex = paramParcel.readInt(); int k = paramParcel.readInt(); int i; if (k > 0) { field_dataInfoData = new byte[k]; i = 0; while (i < k) { field_dataInfoData[i] = paramParcel.readByte(); i += 1; } } k = paramParcel.readInt(); if (k > 0) { field_cardTpInfoData = new byte[k]; i = 0; while (i < k) { field_cardTpInfoData[i] = paramParcel.readByte(); i += 1; } } k = paramParcel.readInt(); if (k > 0) { field_shareInfoData = new byte[k]; i = 0; while (i < k) { field_shareInfoData[i] = paramParcel.readByte(); i += 1; } } k = paramParcel.readInt(); if (k > 0) { field_shopInfoData = new byte[k]; i = j; while (i < k) { field_shopInfoData[i] = paramParcel.readByte(); i += 1; } } }
private WheelSavedState(Parcel in) { super(in); this.mProgress = in.readFloat(); this.mTargetProgress = in.readFloat(); this.isSpinning = in.readByte() != 0; this.spinSpeed = in.readFloat(); this.barWidth = in.readInt(); this.barColor = in.readInt(); this.rimWidth = in.readInt(); this.rimColor = in.readInt(); this.circleRadius = in.readInt(); this.linearProgress = in.readByte() != 0; this.fillRadius = in.readByte() != 0; }
private Post(Parcel in) { this.id = in.readLong(); this.author = in.readString(); this.avatarUrl = in.readString(); long tmpPostDate = in.readLong(); this.postDate = tmpPostDate == -1 ? null : new Date(tmpPostDate); long tmpLastEditionDate = in.readLong(); this.lastEditionDate = tmpLastEditionDate == -1 ? null : new Date(tmpLastEditionDate); this.isFromModerators = in.readByte() != 0; this.isDeleted = in.readByte() != 0; this.quoteCount = in.readInt(); this.htmlContent = in.readString(); this.topicPagesCount = in.readInt(); }
public Favorite(Parcel in) { amount = in.readString(); description = in.readString(); type = in.readString(); id = in.readString(); location = in.readString(); myHash = in.readString(); idFromServer = in.readString(); deleted = in.readByte() == 1; updatedAt = in.readString(); syncBit = in.readString(); fileUploaded = in.readByte() == 1; fileToDownload = in.readByte() == 1; fileUpdatedAt = in.readString(); };
/*Part of Parcelable interface. When unpacking a parcel, the program fills data fields in the order laid out below. */ private Article(Parcel in) { article_ID = in.readInt(); title = in.readString(); body = in.readString(); desc = in.readString(); genre = in.readString(); is_Top = in.readByte() != 0; has_Image = in.readByte() != 0; viewed = in.readByte() != 0; has_Thumb = in.readByte() != 0; image_ID = in.readInt(); image_URL = in.readString(); thumb_URL = in.readString(); categories = in.createStringArray(); }
protected Poll(Parcel in) { id = in.readInt(); title = in.readString(); text = in.readString(); startTime = in.readLong(); stopTime = in.readLong(); author = in.readString(); if (in.readByte() == 0x01) { options = new ArrayList<PollOption>(); in.readList(options, PollOption.class.getClassLoader()); } else { options = null; } isVotingEnabled = in.readByte() != 0x00; votedOption = in.readInt(); }
public Hero(Parcel parcel) { mOwner = Player.CURRENT; // Log.v(TAG, "load"); // general mName = parcel.readString(); mIsFavourite = parcel.readByte() > 0; mHealthPoint = parcel.readFloat(); mCharm = parcel.readFloat(); mOffensivePoint = parcel.readFloat(); mDefensivePoint = parcel.readFloat(); mPicture = parcel.readInt(); // statistics mTotalOffensivePoint = parcel.readFloat(); mTotalDefensivePoint = parcel.readFloat(); mTotalDrunkCharm = parcel.readFloat(); mTotalKills = parcel.readInt(); mTotalDeaths = parcel.readInt(); mTotalAttacks = parcel.readInt(); mTotalDefences = parcel.readInt(); mTotalBattles = parcel.readInt(); sHeroRepository.add(this); notifyChanged(); }
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(); }
public CatCmdMessage(Parcel in) { mCmdDet = in.readParcelable(null); mTextMsg = in.readParcelable(null); mMenu = in.readParcelable(null); mInput = in.readParcelable(null); mLoadIconFailed = (in.readByte() == 1); switch (getCmdType()) { case LAUNCH_BROWSER: mBrowserSettings = new BrowserSettings(); mBrowserSettings.url = in.readString(); mBrowserSettings.mode = LaunchBrowserMode.values()[in.readInt()]; break; case PLAY_TONE: mToneSettings = in.readParcelable(null); break; case SET_UP_CALL: mCallSettings = new CallSettings(); mCallSettings.confirmMsg = in.readParcelable(null); mCallSettings.callMsg = in.readParcelable(null); break; case SET_UP_EVENT_LIST: mSetupEventListSettings = new SetupEventListSettings(); int length = in.readInt(); mSetupEventListSettings.eventList = new int[length]; for (int i = 0; i < length; i++) { mSetupEventListSettings.eventList[i] = in.readInt(); } break; default: break; } }
protected Extensions(Parcel in) { this.isHub = in.readByte() != 0; this.occupancyData = in.readParcelable(OccupancyData.class.getClassLoader()); this.deviations = new ArrayList<Deviation>(); in.readList(this.deviations, Deviation.class.getClassLoader()); this.lineColour = in.readString(); }