当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.readFloat方法代码示例

本文整理汇总了Java中android.os.Parcel.readFloat方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readFloat方法的具体用法?Java Parcel.readFloat怎么用?Java Parcel.readFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.readFloat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: HistoryData

import android.os.Parcel; //导入方法依赖的package包/类
protected HistoryData(Parcel in) {
    this.age = in.readInt();
    this.id = in.readLong();
    this.testShort = (short) in.readInt();
    this.testByte = in.readByte();
    this.testBoolean = in.readByte() != 0;
    this.testFloat = in.readFloat();
    this.testDouble = in.readDouble();
    this.testChar = (char) in.readInt();
    this.testLONG = (Long) in.readValue(Long.class.getClassLoader());
    this.testDOUBLE = (Double) in.readValue(Double.class.getClassLoader());
    this.testCharacter = (Character) in.readSerializable();
    this.testBOOLEAN = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.testSHORT = (Short) in.readValue(Short.class.getClassLoader());
    this.name = in.readString();
    this.data = in.readParcelable(ResultData.class.getClassLoader());
    this.datas = in.createTypedArrayList(ResultData.CREATOR);
    this.testArrayResultData = in.createTypedArray(ResultData.CREATOR);
    this.testArrayInt = in.createIntArray();
    this.testArrayInteger = (Integer[]) in.readArray(Integer[].class.getClassLoader());
}
 
开发者ID:LightSun,项目名称:data-mediator,代码行数:22,代码来源:HistoryData.java

示例2: FoodRecord

import android.os.Parcel; //导入方法依赖的package包/类
protected FoodRecord(Parcel in) {
    boolean z = true;
    this.id = in.readInt();
    this.food_name = in.readString();
    this.record_on = in.readString();
    this.code = in.readString();
    this.time_type = in.readInt();
    this.amount = in.readFloat();
    this.calory = in.readFloat();
    this.food_unit_id = in.readInt();
    this.unit_name = in.readString();
    this.health_light = in.readInt();
    this.thumb_img_url = in.readString();
    if (in.readByte() == (byte) 0) {
        z = false;
    }
    this.isChecked = z;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:19,代码来源:FoodRecord.java

示例3: MediaFormat

import android.os.Parcel; //导入方法依赖的package包/类
MediaFormat(Parcel in) {
  trackId = in.readString();
  mimeType = in.readString();
  bitrate = in.readInt();
  maxInputSize = in.readInt();
  durationUs = in.readLong();
  width = in.readInt();
  height = in.readInt();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  channelCount = in.readInt();
  sampleRate = in.readInt();
  language = in.readString();
  subsampleOffsetUs = in.readLong();
  initializationData = new ArrayList<>();
  in.readList(initializationData, null);
  adaptive = in.readInt() == 1;
  maxWidth = in.readInt();
  maxHeight = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:24,代码来源:MediaFormat.java

示例4: MapLoadEvent

import android.os.Parcel; //导入方法依赖的package包/类
private MapLoadEvent(Parcel in) {
  event = in.readString();
  created = in.readString();
  userId = in.readString();
  model = in.readString();
  operatingSystem = in.readString();
  resolution = in.readByte() == 0x00 ? null : in.readFloat();
  accessibilityFontScale = in.readByte() == 0x00 ? null : in.readFloat();
  orientation = in.readString();
  batteryLevel = in.readByte() == 0x00 ? null : in.readInt();
  byte pluggedInVal = in.readByte();
  pluggedIn = pluggedInVal == 0x02 ? null : pluggedInVal != 0x00;
  carrier = in.readString();
  cellularNetworkType = in.readString();
  byte wifiVal = in.readByte();
  wifi = wifiVal == 0x02 ? null : wifiVal != 0x00;
}
 
开发者ID:mapbox,项目名称:mapbox-events-android,代码行数:18,代码来源:MapLoadEvent.java

示例5: PlaybackStateCompat

import android.os.Parcel; //导入方法依赖的package包/类
private PlaybackStateCompat(Parcel in) {
    this.mState = in.readInt();
    this.mPosition = in.readLong();
    this.mSpeed = in.readFloat();
    this.mUpdateTime = in.readLong();
    this.mBufferedPosition = in.readLong();
    this.mActions = in.readLong();
    this.mErrorMessage = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    this.mCustomActions = in.createTypedArrayList(CustomAction.CREATOR);
    this.mActiveItemId = in.readLong();
    this.mExtras = in.readBundle();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:13,代码来源:PlaybackStateCompat.java

示例6: FreshDownloadStatus

import android.os.Parcel; //导入方法依赖的package包/类
protected FreshDownloadStatus(Parcel in) {
    super(in);
    int tmpStatus = in.readInt();
    this.status = tmpStatus == -1 ? null : STATUS.values()[tmpStatus];
    this.progress = in.readFloat();
    this.radius = in.readFloat();
    this.circular_color = in.readInt();
    this.circular_progress_color = in.readInt();
    this.circular_width = in.readFloat();
    this.mProgressTextSize = in.readFloat();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:FreshDownloadView.java

示例7: Ring

import android.os.Parcel; //导入方法依赖的package包/类
protected Ring(Parcel in) {
    this.strokeInset = in.readFloat();
    this.strokeWidth = in.readFloat();
    this.ringCenterRadius = in.readFloat();
    this.start = in.readFloat();
    this.end = in.readFloat();
    this.sweep = in.readFloat();
    this.sweeping = in.readFloat();
    this.starting = in.readFloat();
    this.ending = in.readFloat();
    this.color = in.readInt();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:13,代码来源:LoadingView.java

示例8: SavedState

import android.os.Parcel; //导入方法依赖的package包/类
private SavedState(Parcel in) {
    super(in);

    isSlidingEnable = in.readByte() == 1;
    expendThreshold = in.readFloat();
    collapseThreshold = in.readFloat();
}
 
开发者ID:woxingxiao,项目名称:SlidingUpPanelLayout,代码行数:8,代码来源:SlidingUpPanelLayout.java

示例9: WeightPhoto

import android.os.Parcel; //导入方法依赖的package包/类
protected WeightPhoto(Parcel in) {
    this.id = in.readInt();
    this.record_on = in.readString();
    this.weight = in.readFloat();
    this.photo_url = in.readString();
    this.thumb_photo_url = in.readString();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:WeightPhoto.java

示例10: SessionInfo

import android.os.Parcel; //导入方法依赖的package包/类
protected SessionInfo(Parcel in) {
    this.sessionId = in.readInt();
    this.installerPackageName = in.readString();
    this.resolvedBaseCodePath = in.readString();
    this.progress = in.readFloat();
    this.sealed = in.readByte() != 0;
    this.active = in.readByte() != 0;
    this.mode = in.readInt();
    this.sizeBytes = in.readLong();
    this.appPackageName = in.readString();
    this.appIcon = in.readParcelable(Bitmap.class.getClassLoader());
    this.appLabel = in.readString();
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:14,代码来源:SessionInfo.java

示例11: WheelSavedState

import android.os.Parcel; //导入方法依赖的package包/类
private WheelSavedState(Parcel in) {
    super(in);
    this.mProgress = in.readFloat();
    this.mTargetProgress = in.readFloat();
    this.isSpinning = in.readByte() != 0;
    this.spinSpeed = in.readFloat();
    this.barWidth = in.readInt();
    this.barColor = in.readInt();
    this.rimWidth = in.readInt();
    this.rimColor = in.readInt();
    this.circleRadius = in.readInt();
    this.linearProgress = in.readByte() != 0;
    this.fillRadius = in.readByte() != 0;
}
 
开发者ID:teisun,项目名称:SunmiUI,代码行数:15,代码来源:ProgressWheel.java

示例12: SavedState

import android.os.Parcel; //导入方法依赖的package包/类
private SavedState(Parcel in) {
    super(in);
    this.settings = in.readParcelable(MaterialViewPagerSettings.class.getClassLoader());
    this.yOffset = in.readFloat();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:MaterialViewPager.java

示例13: MainDTO

import android.os.Parcel; //导入方法依赖的package包/类
protected MainDTO(Parcel in) {
    this.temp = in.readFloat();
    this.pressure = in.readFloat();
    this.humidity = in.readInt();
}
 
开发者ID:farukydnn,项目名称:WeatherPlus,代码行数:6,代码来源:MainDTO.java

示例14: CropImageOptions

import android.os.Parcel; //导入方法依赖的package包/类
/**
 * Create object from parcel.
 */
protected CropImageOptions(Parcel in) {
    cropShape = CropImageView.CropShape.values()[in.readInt()];
    snapRadius = in.readFloat();
    touchRadius = in.readFloat();
    guidelines = CropImageView.Guidelines.values()[in.readInt()];
    scaleType = CropImageView.ScaleType.values()[in.readInt()];
    showCropOverlay = in.readByte() != 0;
    showProgressBar = in.readByte() != 0;
    autoZoomEnabled = in.readByte() != 0;
    multiTouchEnabled = in.readByte() != 0;
    maxZoom = in.readInt();
    initialCropWindowPaddingRatio = in.readFloat();
    fixAspectRatio = in.readByte() != 0;
    aspectRatioX = in.readInt();
    aspectRatioY = in.readInt();
    borderLineThickness = in.readFloat();
    borderLineColor = in.readInt();
    borderCornerThickness = in.readFloat();
    borderCornerOffset = in.readFloat();
    borderCornerLength = in.readFloat();
    borderCornerColor = in.readInt();
    guidelinesThickness = in.readFloat();
    guidelinesColor = in.readInt();
    backgroundColor = in.readInt();
    minCropWindowWidth = in.readInt();
    minCropWindowHeight = in.readInt();
    minCropResultWidth = in.readInt();
    minCropResultHeight = in.readInt();
    maxCropResultWidth = in.readInt();
    maxCropResultHeight = in.readInt();
    activityTitle = in.readString();
    activityMenuIconColor = in.readInt();
    outputUri = in.readParcelable(Uri.class.getClassLoader());
    outputCompressFormat = Bitmap.CompressFormat.valueOf(in.readString());
    outputCompressQuality = in.readInt();
    outputRequestWidth = in.readInt();
    outputRequestHeight = in.readInt();
    outputRequestSizeOptions = CropImageView.RequestSizeOptions.values()[in.readInt()];
    noOutputImage = in.readByte() != 0;
    initialCropWindowRectangle = in.readParcelable(Rect.class.getClassLoader());
    initialRotation = in.readInt();
    allowRotation = in.readByte() != 0;
    allowFlipping = in.readByte() != 0;
    allowCounterRotation = in.readByte() != 0;
    rotationDegrees = in.readInt();
    flipHorizontally = in.readByte() != 0;
    flipVertically = in.readByte() != 0;
}
 
开发者ID:garretyoder,项目名称:Cluttr,代码行数:52,代码来源:CropImageOptions.java

示例15: PathPoint

import android.os.Parcel; //导入方法依赖的package包/类
public PathPoint(Parcel parcel) {
    x = parcel.readFloat();
    y = parcel.readFloat();
    fraction = parcel.readFloat();
    radian = parcel.readDouble();
}
 
开发者ID:qinwenbo114,项目名称:CircleMenu,代码行数:7,代码来源:PathPoint.java


注:本文中的android.os.Parcel.readFloat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。