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

The following examples show how to use android.os.Parcel#readDouble() . 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
Source Project: AssistantBySDK   File: BaiduAddress.java    License: Apache License 2.0 6 votes vote down vote up
public BaiduAddress(Parcel s) {
    this.id = s.readLong();
    this.address = s.readString();
    this.city = s.readString();
    this.created = new Date(s.readLong());
    this.disable = s.readInt();
    long t = s.readLong();
    this.favoritedTime = t == 0 ? null : new Date(t);
    this.hasCaterDetails = s.readInt();
    this.isPano = s.readInt();
    this.latitude = s.readDouble();
    this.longitude = s.readDouble();
    this.name = s.readString();
    this.searchKeyWord = s.readString();
    this.phoneNum = s.readString();
    this.postCode = s.readString();
    this.type = s.readInt();
    this.uid = s.readString();
    this.remark = s.readString();

    this.sid = s.readString();
    this.timestamp = s.readLong();
    this.recyle = s.readInt();
    this.synced = s.readInt() == 1;
}
 
Example 2
private ParcelablePOI(Parcel source) {
    poiName = source.readString();
    fullName = source.readString();
    osmType = source.readString();
    poiClassName = source.readString();
    poiClassType = source.readString();
    id = source.readLong();
    lat = source.readDouble();
    lon = source.readDouble();

    //read tags Map
    final int N = source.readInt();
    for (int i = 0; i < N; i++) {
        String key = source.readString();
        String value = source.readString();
        tags.put(key, value);
    }
}
 
Example 3
Source Project: biermacht   File: MashProfile.java    License: Apache License 2.0 6 votes vote down vote up
public MashProfile(Parcel p) {
  name = p.readString();
  version = p.readInt();
  grainTemp = p.readDouble();

  mashSteps = new ArrayList<MashStep>();
  p.readTypedList(mashSteps, MashStep.CREATOR);

  // Beer XML 1.0 Optional Fields ===================================
  // ================================================================
  tunTemp = p.readDouble();
  spargeTemp = p.readDouble();
  pH = p.readDouble();
  tunWeight = p.readDouble();
  tunSpecificHeat = p.readDouble();
  notes = p.readString();
  equipAdj = (p.readInt() > 0 ? true : false);

  // Custom Fields ==================================================
  // ================================================================
  id = p.readLong();
  ownerId = p.readLong();
  mashType = p.readString();
  spargeType = p.readString();
  // Don't read recipe because it recurses.
}
 
Example 4
Source Project: leanback-assistant   File: Movie.java    License: Apache License 2.0 6 votes vote down vote up
private Movie(Parcel in) {
    id = in.readInt();
    title = in.readString();
    description = in.readString();
    cardImage = in.readString();
    backgroundImage = in.readString();
    videoUrl = in.readString();
    contentType = in.readString();
    live = in.readInt() == 1;
    width = in.readInt();
    height = in.readInt();
    audioChannelConfig = in.readString();
    purchasePrice = in.readString();
    rentalPrice = in.readString();
    ratingStyle = in.readInt();
    ratingScore = in.readDouble();
    productionYear = in.readInt();
    duration = in.readInt();
}
 
Example 5
@Override
public AddressData createFromParcel(Parcel in) {
  //noinspection ConstantConditions
  return new AddressData(in.readDouble(),
                         in.readDouble(),
                         in.readString());
}
 
Example 6
Source Project: AndroidSchool   File: Movie.java    License: Apache License 2.0 5 votes vote down vote up
public Movie(Parcel in) {
    mId = in.readInt();
    mPosterPath = in.readString();
    mOverview = in.readString();
    mTitle = in.readString();
    mReleasedDate = in.readString();
    mVoteAverage = in.readDouble();

    boolean[] values = new boolean[1];
    in.readBooleanArray(values);
    mIsFavourite = values[0];
}
 
Example 7
Source Project: cordova-social-vk   File: VKApiPlace.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Creates a Place instance from Parcel.
 */
public VKApiPlace(Parcel in) {
    this.id = in.readInt();
    this.title = in.readString();
    this.latitude = in.readDouble();
    this.longitude = in.readDouble();
    this.created = in.readLong();
    this.checkins = in.readInt();
    this.updated = in.readLong();
    this.country_id = in.readInt();
    this.city_id = in.readInt();
    this.address = in.readString();
}
 
Example 8
Source Project: Simpler   File: Draft.java    License: Apache License 2.0 5 votes vote down vote up
protected Draft(Parcel in) {
    this.id = in.readInt();
    this.uid = in.readString();
    this.content = in.readString();
    this.photoList = new ArrayList<Photo>();
    in.readList(this.photoList, Photo.class.getClassLoader());
    this.latitude = in.readDouble();
    this.longitude = in.readDouble();
    this.isEnableGeo = in.readByte() != 0;
    this.isLocation = in.readByte() != 0;
    this.addrStr = in.readString();
    this.menuId = in.readInt();
    this.groupId = in.readString();
    this.groupName = in.readString();
}
 
Example 9
private PaymentServices(Parcel in) {
    id = in.readInt();
    short_name = in.readString();
    name = in.readString();
    if(types==null)
        types = new ArrayList<PaymentType>();
    in.readList(types, PaymentType.class.getClassLoader());
    price = in.readDouble();
    currency=in.readString();
    taxRate=in.readDouble();
    sign= in.readString();
    service_id= in.readString();
    inapp_secret= in.readString();
}
 
Example 10
Source Project: GoogleDirectionLibrary   File: Waypoint.java    License: Apache License 2.0 4 votes vote down vote up
protected Waypoint(Parcel in) {
    location = in.readParcelable(Coordination.class.getClassLoader());
    index = in.readInt();
    interpolation = in.readDouble();
}
 
Example 11
private PitchDifference(Parcel in) {
    Tuning tuning = MainActivity.getCurrentTuning();
    closest = tuning.findNote(in.readString());
    deviation = in.readDouble();
}
 
Example 12
private Point(Parcel in) {
	latitude = in.readDouble();
	longitude = in.readDouble();
}
 
Example 13
public void readFromParcel(Parcel in)
{
    x = in.readDouble();
    y = in.readDouble();
}
 
Example 14
private static Double readDoubleIfNotNull(Parcel parcel) {
  return parcel.readByte() == 0 ? null : parcel.readDouble();
}
 
Example 15
Source Project: Easer   File: LatLong.java    License: GNU General Public License v3.0 4 votes vote down vote up
protected LatLong(Parcel in) {
    latitude = in.readDouble();
    longitude = in.readDouble();
}
 
Example 16
Source Project: Nibo   File: NiboSelectedPlace.java    License: MIT License 4 votes vote down vote up
protected NiboSelectedPlace(Parcel in) {
    latitude = in.readDouble();
    longitude = in.readDouble();
    placeId = in.readString();
    placeAddress = in.readString();
}
 
Example 17
Source Project: EasyWayLocation   File: EasyWayLocation.java    License: Apache License 2.0 4 votes vote down vote up
private Point(Parcel in) {
    latitude = in.readDouble();
    longitude = in.readDouble();
}
 
Example 18
Source Project: osmdroid   File: LabelledGeoPoint.java    License: Apache License 2.0 4 votes vote down vote up
private LabelledGeoPoint(final Parcel in) {
    super(in.readDouble(), in.readDouble(), in.readDouble());
    this.setLabel(in.readString());
}
 
Example 19
/**
 * Constructor called from {@link #CREATOR}
 */
private GridItemRecord(Parcel in) {
    column = in.readInt();
    heightRatio = in.readDouble();
    isHeaderFooter = in.readByte() == 1;
}
 
Example 20
Source Project: postman   File: DoubleParcelableAdapter.java    License: MIT License 4 votes vote down vote up
@Override
public DoubleParcelableAdapter createFromParcel(Parcel source) {
    return new DoubleParcelableAdapter(source.readDouble());
}