Java Code Examples for android.os.Parcel#readInt()

The following examples show how to use android.os.Parcel#readInt() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
/** {@hide} */
public SessionInfo(Parcel source) {
    sessionId = source.readInt();
    installerPackageName = source.readString();
    resolvedBaseCodePath = source.readString();
    progress = source.readFloat();
    sealed = source.readInt() != 0;
    active = source.readInt() != 0;

    mode = source.readInt();
    installReason = source.readInt();
    sizeBytes = source.readLong();
    appPackageName = source.readString();
    appIcon = source.readParcelable(null);
    appLabel = source.readString();

    installLocation = source.readInt();
    originatingUri = source.readParcelable(null);
    originatingUid = source.readInt();
    referrerUri = source.readParcelable(null);
    grantedRuntimePermissions = source.readStringArray();
    installFlags = source.readInt();
}
 
Example 2
Source Project: weekdays-buttons-bar   File: WeekdaysDataItem.java    License: MIT License 5 votes vote down vote up
protected WeekdaysDataItem(Parcel in) {

        this.position = in.readInt();
        this.calendarId = in.readInt();
        this.label = in.readString();
        this.numberOfLetters = in.readInt();
        this.selected = in.readByte() != 0;
        this.textDrawableType = in.readInt();
    }
 
Example 3
/**
 * Creates a University instance from Parcel.
 */
public VKApiUniversity(Parcel in) {
    this.id = in.readInt();
    this.country_id = in.readInt();
    this.city_id = in.readInt();
    this.name = in.readString();
    this.faculty = in.readString();
    this.faculty_name = in.readString();
    this.chair = in.readInt();
    this.chair_name = in.readString();
    this.graduation = in.readInt();
    this.education_form = in.readString();
    this.education_status = in.readString();
}
 
Example 4
Source Project: android-beacon-library   File: Region.java    License: Apache License 2.0 5 votes vote down vote up
protected Region(Parcel in) {
    mUniqueId = in.readString();
    mBluetoothAddress = in.readString();
    int size = in.readInt();
    mIdentifiers = new ArrayList<Identifier>(size);
    for (int i = 0; i < size; i++) {
        String identifierString = in.readString();
        if (identifierString == null) {
            mIdentifiers.add(null);
        } else {
            Identifier identifier = Identifier.parse(identifierString);
            mIdentifiers.add(identifier);
        }
    }
}
 
Example 5
protected LightSwitchProxyModel(Parcel in) {
    this.dimPercent = in.readInt();
    this.colorTemp = in.readInt();
    this.on = in.readByte() != 0;
    this.supportsColorTemp = in.readByte() != 0;
    this.supportsOnOff = in.readByte() != 0;
    this.supportsDim = in.readByte() != 0;
}
 
Example 6
Source Project: SweetMusicPlayer   File: Song.java    License: Apache License 2.0 5 votes vote down vote up
protected Song(Parcel in) {
    this.content = in.readString();
    this.copy_type = in.readString();
    this.toneid = in.readString();
    this.info = in.readString();
    this.all_rate = in.readString();
    this.resource_type = in.readInt();
    this.relate_status = in.readInt();
    this.has_mv_mobile = in.readInt();
    this.song_id = in.readString();
    this.title = in.readString();
    this.ting_uid = in.readString();
    this.author = in.readString();
    this.album_id = in.readString();
    this.album_title = in.readString();
    this.is_first_publish = in.readInt();
    this.havehigh = in.readInt();
    this.charge = in.readInt();
    this.has_mv = in.readInt();
    this.learn = in.readInt();
    this.song_source = in.readString();
    this.piao_id = in.readString();
    this.korean_bb_song = in.readString();
    this.resource_type_ext = in.readString();
    this.artist_id = in.readString();
    this.all_artist_id = in.readString();
    this.lrclink = in.readString();
    this.data_source = in.readInt();
    this.cluster_id = in.readInt();
    this.bitrate = in.readParcelable(Bitrate.class.getClassLoader());
    this.songinfo = in.readParcelable(SongInfo.class.getClassLoader());
}
 
Example 7
Source Project: droidel   File: Fragment.java    License: Apache License 2.0 5 votes vote down vote up
public FragmentState(Parcel in) {
    mClassName = in.readString();
    mIndex = in.readInt();
    mFromLayout = in.readInt() != 0;
    mFragmentId = in.readInt();
    mContainerId = in.readInt();
    mTag = in.readString();
    mRetainInstance = in.readInt() != 0;
    mDetached = in.readInt() != 0;
    mArguments = in.readBundle();
    mSavedFragmentState = in.readBundle();
}
 
Example 8
protected GActivityBuilder(Parcel in) {
    this.activityClass = in.readString();
    this.extras = in.readBundle(getClass().getClassLoader());
    this.data = in.readParcelable(Uri.class.getClassLoader());
    this.enterAnim = in.readInt();
    this.exitAnim = in.readInt();
    this.flags = in.readInt();
}
 
Example 9
Source Project: RunMap   File: NodeBean.java    License: Apache License 2.0 5 votes vote down vote up
protected NodeBean(Parcel in) {
    id = in.readInt();
    name = in.readString();
    title = in.readString();
    title_alternative = in.readString();
    url = in.readString();
    topics = in.readInt();
    avatar_mini = in.readString();
    avatar_normal = in.readString();
    avatar_large = in.readString();
}
 
Example 10
Source Project: android_9.0.0_r45   File: Suggestion.java    License: Apache License 2.0 5 votes vote down vote up
private Suggestion(Parcel in) {
    mId = in.readString();
    mTitle = in.readCharSequence();
    mSummary = in.readCharSequence();
    mIcon = in.readParcelable(Icon.class.getClassLoader());
    mFlags = in.readInt();
    mPendingIntent = in.readParcelable(PendingIntent.class.getClassLoader());
}
 
Example 11
Source Project: Luhn   File: LuhnCard.java    License: MIT License 5 votes vote down vote up
protected LuhnCard(Parcel in) {
    pan = in.readString();
    cardName = in.readString();
    expMonth = in.readInt();
    expYear = in.readInt();
    cvv = in.readString();
    pin = in.readString();
    expDate = in.readString();
}
 
Example 12
private SavedState(Parcel in) {
    super(in);
    color = in.readInt();
}
 
Example 13
Source Project: fragnums   File: BackstackFrame.java    License: Apache License 2.0 4 votes vote down vote up
@Override public BackstackFrame createFromParcel(Parcel source) {
  Screen screen = Screen.values()[source.readInt()];
  Bundle bundle = source.readBundle();
  SparseArray<Parcelable> viewState = bundle.getSparseParcelableArray("viewState");
  return new BackstackFrame(screen, viewState);
}
 
Example 14
Source Project: MessageBar   File: MessageBar.java    License: Apache License 2.0 4 votes vote down vote up
public Message(Parcel p) {
    mMessage = p.readString();
    mActionMessage = p.readString();
    mActionIcon = p.readInt();
    mToken = p.readParcelable(getClass().getClassLoader());
}
 
Example 15
Source Project: emojicon   File: Emojicon.java    License: Apache License 2.0 4 votes vote down vote up
public Emojicon(Parcel in) {
    this.icon = in.readInt();
    this.value = (char) in.readInt();
    this.emoji = in.readString();
}
 
Example 16
private SavedState(Parcel in) {
    super(in);
    index = in.readInt();
}
 
Example 17
@Override
public @NonNull OvalGuideRenderer createFromParcel(@NonNull Parcel in) {
  return new OvalGuideRenderer(in.readInt());
}
 
Example 18
Source Project: WayHoo   File: LinePageIndicator.java    License: Apache License 2.0 4 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    currentPage = in.readInt();
}
 
Example 19
private Cell(Parcel in) {
    column = in.readInt();
    row = in.readInt();
}
 
Example 20
Source Project: ud867   File: ClickCounter.java    License: MIT License 4 votes vote down vote up
private ClickCounter(Parcel parcel) {
    count = parcel.readInt();
}