Example usage for android.os Parcel readLong

List of usage examples for android.os Parcel readLong

Introduction

In this page you can find the example usage for android.os Parcel readLong.

Prototype

public final long readLong() 

Source Link

Document

Read a long integer value from the parcel at the current dataPosition().

Usage

From source file:com.amossys.hooker.common.InterceptEvent.java

/**
 * Constructor which will be used to read in the Parcel.
 * @param in//from  ww w  .  j a  v  a  2 s  . c o  m
 */
private InterceptEvent(Parcel in) {
    idEvent = UUID.fromString(in.readString());
    IDXP = in.readString();
    timestamp = in.readLong();
    relativeTimestamp = in.readLong();
    hookerName = in.readString();
    intrusiveLevel = in.readInt();
    instanceID = in.readInt();
    packageName = in.readString();
    className = in.readString();
    methodName = in.readString();

    readParametersList(in);
    readReturnsEntry(in);
    readDataMap(in);
}

From source file:com.vk.sdk.api.model.VKApiWikiPage.java

/**
 * Creates a WikiPage instance from Parcel.
 *//*from   w  w w. java2  s.  c o  m*/
public VKApiWikiPage(Parcel in) {
    this.id = in.readInt();
    this.group_id = in.readInt();
    this.creator_id = in.readInt();
    this.title = in.readString();
    this.source = in.readString();
    this.current_user_can_edit = in.readByte() != 0;
    this.current_user_can_edit_access = in.readByte() != 0;
    this.who_can_view = in.readInt();
    this.who_can_edit = in.readInt();
    this.editor_id = in.readInt();
    this.edited = in.readLong();
    this.created = in.readLong();
    this.parent = in.readString();
    this.parent2 = in.readString();
}

From source file:tv.yatse.plugin.avreceiver.api.PluginCustomCommand.java

private void readFromParcel(Parcel in) {
    int version = in.readInt();
    if (version >= 1) {
        mId = in.readLong();
        mColor = in.readInt();//ww  w .j a v  a 2s  . c  om
        mDescription = in.readString();
        mDisplayOrder = in.readInt();
        mIcon = in.readString();
        mParam1 = in.readString();
        mParam2 = in.readString();
        mParam3 = in.readString();
        mParam4 = in.readString();
        mParam5 = in.readString();
        mReadOnly = in.readInt() == 1;
        mSource = in.readString();
        mTitle = in.readString();
        mType = in.readInt();
        mUniqueId = in.readString();
    }
}

From source file:com.tdispatch.passenger.model.BookingData.java

private BookingData(Parcel in) {
    setLocalId(in.readLong());
    setPk(in.readString());//from   www.j av a  2  s. com
    setBookingKey(in.readString());
    setDriverPk(in.readString());
    setPickupDate(in.readString());
    setPickupLocation((LocationData) in.readParcelable(LocationData.class.getClassLoader()));
    setDropoffLocation((LocationData) in.readParcelable(LocationData.class.getClassLoader()));
    setPassengerCount(in.readInt());
    setLuggageCount(in.readInt());
    setFlightNumber(in.readString());
    setDistanceKm(in.readDouble());
    setDistanceMiles(in.readDouble());
    setCustomerName(in.readString());
    setCustomerPhone(in.readString());
    setExtraInfo(in.readString());
    setPaymentStatus(in.readString());
    setPaymentMethod(in.readInt());
    setPrepaid((in.readByte() == 1));
    setCost(in.readString());
    setTotalCost(in.readString());
    setCabOfficeName(in.readString());
    setCabOfficeSlug(in.readString());
    setType(in.readInt());
    setReceiptUrl(in.readString());

    setJson(in.readString());

    int wpCount = in.readInt();
    for (int i = 0; i < wpCount; i++) {
        LocationData ld = (LocationData) in.readParcelable(LocationData.class.getClassLoader());
        mWayPoints.add(ld);
    }
}

From source file:com.rc.droid_stalker.components.NetworkStats.java

public NetworkStats(Parcel parcel) {
    elapsedRealtime = parcel.readLong();
    size = parcel.readInt();//from  ww  w .j  a  v a  2s. c  om
    iface = parcel.createStringArray();
    uid = parcel.createIntArray();
    set = parcel.createIntArray();
    tag = parcel.createIntArray();
    rxBytes = parcel.createLongArray();
    rxPackets = parcel.createLongArray();
    txBytes = parcel.createLongArray();
    txPackets = parcel.createLongArray();
    operations = parcel.createLongArray();
}

From source file:fr.free.nrw.commons.Media.java

@SuppressWarnings("unchecked")
public Media(Parcel in) {
    localUri = in.readParcelable(Uri.class.getClassLoader());
    thumbUrl = in.readString();// w w  w .  j  a  v a 2s.co  m
    imageUrl = in.readString();
    filename = in.readString();
    description = in.readString();
    dataLength = in.readLong();
    dateCreated = (Date) in.readSerializable();
    dateUploaded = (Date) in.readSerializable();
    creator = in.readString();
    tags = (HashMap<String, Object>) in.readSerializable();
    width = in.readInt();
    height = in.readInt();
    license = in.readString();
    if (categories != null) {
        in.readStringList(categories);
    }
    descriptions = in.readHashMap(ClassLoader.getSystemClassLoader());
}

From source file:com.owncloud.android.datamodel.OCFile.java

/**
 * Reconstruct from parcel//from  ww w . j  a v a2 s. c om
 *
 * @param source The source parcel
 */
private OCFile(Parcel source) {
    mId = source.readLong();
    mParentId = source.readLong();
    mLength = source.readLong();
    mCreationTimestamp = source.readLong();
    mModifiedTimestamp = source.readLong();
    mModifiedTimestampAtLastSyncForData = source.readLong();
    mRemotePath = source.readString();
    mLocalPath = source.readString();
    mMimeType = source.readString();
    try {
        mAvailableOfflineStatus = AvailableOfflineStatus.valueOf(source.readString());
    } catch (IllegalArgumentException x) {
        mAvailableOfflineStatus = AvailableOfflineStatus.NOT_AVAILABLE_OFFLINE;
    }
    mLastSyncDateForProperties = source.readLong();
    mLastSyncDateForData = source.readLong();
    mEtag = source.readString();
    mTreeEtag = source.readString();
    mSharedByLink = source.readInt() == 1;
    mPermissions = source.readString();
    mRemoteId = source.readString();
    mNeedsUpdateThumbnail = source.readInt() == 1;
    mIsDownloading = source.readInt() == 1;
    mEtagInConflict = source.readString();
    mSharedWithSharee = source.readInt() == 1;
    mPrivateLink = source.readString();

}

From source file:io.bunnyblue.noticedog.app.notifications.Notification.java

public Notification(Parcel in) {
    this.expandedInboxText = new ArrayList();
    this.people = new ArrayList();
    this.actions = new ArrayList();
    this.packageName = in.readString();
    this.id = in.readInt();
    this.tag = in.readString();
    this.key = in.readString();
    this.when = in.readLong();
    this.smallIcon = in.readInt();
    this.largeIcon = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.tickerText = in.readString();
    this.contentTitle = in.readString();
    this.contentText = in.readString();
    this.contentInfoText = in.readString();
    this.expandedLargeIconBig = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.expandedContentTitle = in.readString();
    this.expandedContentText = in.readString();
    in.readStringList(this.expandedInboxText);
    in.readList(this.people, Uri.class.getClassLoader());
    this.picture = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.priority = in.readInt();
    this.pendingLaunchIntent = (PendingIntent) in.readParcelable(PendingIntent.class.getClassLoader());
    in.readList(this.actions, Action.class.getClassLoader());
}

From source file:com.eTilbudsavis.etasdk.model.Shoppinglist.java

private Shoppinglist(Parcel in) {
    this.mErn = in.readString();
    this.mName = in.readString();
    this.mAccess = in.readString();
    long tmpMModified = in.readLong();
    this.mModified = tmpMModified == -1 ? null : new Date(tmpMModified);
    this.mPrevId = in.readString();
    this.mType = in.readString();
    this.mMeta = in.readString();
    this.mShares = (HashMap<String, Share>) in.readSerializable();
    this.mUserId = in.readInt();
    this.mSyncState = in.readInt();
}

From source file:com.nestapi.lib.API.Thermostat.java

private Thermostat(Parcel in) {
    super(in);/*from w  w w .ja  v a 2  s.  co  m*/
    mCanCool = readBoolean(in);
    mCanHeat = readBoolean(in);
    mIsUsingEmergencyHeat = readBoolean(in);
    mHasFan = readBoolean(in);
    mFanTimerTimeout = in.readString();
    mHasLeaf = readBoolean(in);
    mTemperatureScale = in.readString();
    mAwayTemperatureHighF = in.readLong();
    mAwayTemperatureHighC = in.readDouble();
    mAwayTemperatureLowF = in.readLong();
    mAwayTemperatureLowC = in.readDouble();
    mAmbientTemperatureF = in.readLong();
    mAmbientTemperatureC = in.readDouble();

    mFanTimerActive = readBoolean(in);
    mTargetTemperatureF = in.readLong();
    mTargetTemperatureC = in.readDouble();
    mTargetTemperatureHighF = in.readLong();
    mTargetTemperatureHighC = in.readDouble();
    mTargetTemperatureLowF = in.readLong();
    mTargetTemperatureLowC = in.readDouble();
    mHVACmode = (HVACMode) in.readSerializable();
}