Parcel readLong - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Parcel readLong method.

This code example shows how to use the following methods:readDouble, readInt, readLong, readString
 
    public Phone() {} 
 
    // Parcelable management 
    private Phone(Parcel in) {
        serverId = in.readLong();
        name = in.readString();
        manufacturer = in.readString();
        androidVersion = in.readString();
        screenSize = in.readDouble();
        price = in.readInt();
    } 
 
    public int describeContents() { 
        return 0; 
    } 
 
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(serverId);
        dest.writeString(name);
8
CodeRank
This code example shows how to use the following methods:createIntArray, readInt, readLong, readString, readStringList
    public RssFeed() { 
    } 
 
    // Parcelable management 
    private RssFeed(final Parcel in) {
        title = in.readString();
        link = in.readString();
        description = in.readString();
 
        pubDate = in.readLong();
        lastBuildDate = in.readLong();
 
        language = in.readString();
        copyright = in.readString();
        generator = in.readString();
 
        imageWebsiteLink = in.readString();
        imageTitle = in.readString();
        imageUrl = in.readString();
        imageWidth = in.readInt();

8
CodeRank
This code example shows how to use the following methods:createStringArrayList, readInt, readLong, readParcelable, readString
    public static final Parcelable.Creator<VpnConfig> CREATOR =
            new Parcelable.Creator<VpnConfig>() { 
        @Override 
        public VpnConfig createFromParcel(Parcel in) { 
            VpnConfig config = new VpnConfig(); 
            config.user = in.readString(); 
            config.interfaze = in.readString(); 
            config.session = in.readString(); 
            config.mtu = in.readInt(); 
            config.addresses = in.readString(); 
            config.routes = in.readString(); 
            config.dnsServers = in.createStringArrayList(); 
            config.searchDomains = in.createStringArrayList(); 
            config.configureIntent = in.readParcelable(null); 
            config.startTime = in.readLong(); 
            return config; 
        } 
 
        @Override 
        public VpnConfig[] newArray(int size) { 
8
CodeRank
This code example shows how to use the following methods:readInt, readLong, readString
    this.relayPort  = relayPort;
    this.sessionId  = sessionId;
  } 
 
  public SessionDescriptor(Parcel in) {
    this.relayPort  = in.readInt();
    this.sessionId  = in.readLong();
    this.serverName = in.readString();
  } 
 
  public String getFullServerName() {
    return serverName + Release.SERVER_ROOT;
  } 
 
  @Override 
  public boolean equals(Object other) {
    if (other == null)                         return false;
    if (!(other instanceof SessionDescriptor)) return false;
 
    SessionDescriptor that = (SessionDescriptor)other;
8
CodeRank
This code example shows how to use the following methods:readLong, readString
     * @param source 
     *            Parcel to save to. 
     * @throws IOException 
     */ 
    public void readFromParcel(Parcel source) throws IOException {
        id = source.readString();
        transactionId = source.readLong();
    } 
 
} 
8
CodeRank
This code example shows how to use the following methods:readDouble, readInt, readLong, readString
 
    public Phone() {} 
 
    // Parcelable management 
    private Phone(Parcel in) {
        serverId = in.readLong();
        name = in.readString();
        manufacturer = in.readString();
        androidVersion = in.readString();
        screenSize = in.readDouble();
        price = in.readInt();
    } 
 
    public int describeContents() { 
        return 0; 
    } 
 
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(serverId);
        dest.writeString(name);
8
CodeRank
This code example shows how to use the following methods:readInt, readLong, readParcelable, readString
        /** 
         * Helper for making subclasses parcelable. 
         */ 
        protected void readFromParcel(Parcel p) {
            final ClassLoader loader = getClass().getClassLoader();
            type = p.readInt();
            label = p.readString();
            data = p.readString();
            uri = p.readParcelable(loader);
            id = p.readLong();
            maxLines = p.readInt();
            mimetype = p.readString();
        } 
    } 
 
    ContactEntryAdapter(Context context, ArrayList<ArrayList<E>> sections, boolean separators) {
        mContext = context;
        mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        mSections = sections;
        mSeparators = separators;
7
CodeRank
This code example shows how to use the following methods:readByteArray, readDouble, readInt, readLong, readParcelable
	ACtxHistoryAttribute(final ACtxAttributeIdentifier attrId, 
			final Date lastModified, final Date lastUpdated,
			final String stringValue, final Integer integerValue,
			final Double doubleValue, final byte[] binaryValue,
			final CtxAttributeValueType valueType, final String valueMetric) {
		 
		super(attrId);
		super.setLastModified(lastModified);
		this.lastUpdated = lastUpdated;
		this.stringValue = stringValue;
		this.integerValue = integerValue;
		this.doubleValue = doubleValue;
		this.binaryValue = binaryValue;
		this.valueType = valueType;
		this.valueMetric = valueMetric;
	} 
	 
	/** 
	 * Making class Parcelable 
	 */ 

7
CodeRank
This code example shows how to use the following methods:readLong, readString
        bgTime = op.getBackgroundTime();
        bgOps = op.getBackgroundOps();
    } 
 
    RunResult(Parcel source) {
        name = source.readString();
        fgLongName = source.readString();
        bgLongName = source.readString();
        fgTime = source.readLong();
        fgOps = source.readLong();
        bgTime = source.readLong();
        bgOps = source.readLong();
    } 
 
    float getFgMsPerOp() { 
        return fgOps != 0 ? (fgTime / (float)fgOps) : 0;
    } 
 
    float getBgMsPerOp() { 
        return bgOps != 0 ? (bgTime / (float)bgOps) : 0;
7
CodeRank
This code example shows how to use the following methods:readInt, readLong, readString
 
    // pretty much just forward the constructor from parcelable to our main 
    // loading constructor 
    @SuppressWarnings("CastToConcreteClass") 
    public CommandResult(Parcel inParcel) {
        this(inParcel.readLong(),
                inParcel.readInt(),
                inParcel.readString(),
                inParcel.readString(),
                inParcel.readLong());
    } 
 
    public boolean success() { 
        return (mExitValue == 0);
    } 
 
    public long getEndTime() { 
        return mEndTime;
    } 
 
7
CodeRank

Related Parcel readLong Questions & Answers:

readLong Method Overview
Read a long integer value from the parcel at the current dataPosition().
See Code Examples for other Android Parcel Methods: