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

The following examples show how to use android.os.Parcel#readInt() . 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 check out the related API usage on the sidebar.
Example 1
Source File: PackageInstaller.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
/** {@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 File: WeekdaysDataItem.java    From weekdays-buttons-bar with 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
Source File: LuhnCard.java    From Luhn with 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 4
Source File: VKApiUniversity.java    From cordova-social-vk with Apache License 2.0 5 votes vote down vote up
/**
 * 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 5
Source File: Region.java    From android-beacon-library with 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 6
Source File: LightSwitchProxyModel.java    From arcusandroid with Apache License 2.0 5 votes vote down vote up
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 7
Source File: Song.java    From SweetMusicPlayer with 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 8
Source File: Suggestion.java    From android_9.0.0_r45 with 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 9
Source File: Fragment.java    From droidel with 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 10
Source File: GActivityBuilder.java    From grouter-android with Apache License 2.0 5 votes vote down vote up
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 11
Source File: NodeBean.java    From RunMap with 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 12
Source File: ClickCounter.java    From ud867 with MIT License 4 votes vote down vote up
private ClickCounter(Parcel parcel) {
    count = parcel.readInt();
}
 
Example 13
Source File: LockPatternView.java    From android-lockpattern with Apache License 2.0 4 votes vote down vote up
private Cell(Parcel in) {
    column = in.readInt();
    row = in.readInt();
}
 
Example 14
Source File: LinePageIndicator.java    From WayHoo with Apache License 2.0 4 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    currentPage = in.readInt();
}
 
Example 15
Source File: OvalGuideRenderer.java    From deltachat-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public @NonNull OvalGuideRenderer createFromParcel(@NonNull Parcel in) {
  return new OvalGuideRenderer(in.readInt());
}
 
Example 16
Source File: NavigationTabBar.java    From NavigationTabBar with Apache License 2.0 4 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    index = in.readInt();
}
 
Example 17
Source File: Emojicon.java    From emojicon with 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 18
Source File: MessageBar.java    From MessageBar with 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 19
Source File: BackstackFrame.java    From fragnums with 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 20
Source File: ViewButtonColor.java    From FairEmail with GNU General Public License v3.0 4 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    color = in.readInt();
}