android.os.Parcel.readSparseBooleanArray()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中android.os.Parcel.readSparseBooleanArray()方法的一些代码示例,展示了Parcel.readSparseBooleanArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.readSparseBooleanArray()方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:readSparseBooleanArray

Parcel.readSparseBooleanArray介绍

[英]Read and return a new SparseBooleanArray object from the parcel at the current dataPosition(). Returns null if the previously written list object was null.
[中]从当前dataPosition()处的地块读取并返回新的SparseBooleanArray对象。如果之前写入的列表对象为null,则返回null。

代码示例

代码示例来源:origin: johncarl81/parceler

@Override
public SparseBooleanArray nullSafeFromParcel(Parcel parcel) {
  return parcel.readSparseBooleanArray();
}

代码示例来源:origin: ZieIony/Carbon

private SavedState(Parcel in) {
  Parcelable superState = in.readParcelable(ExpandableRecyclerView.class.getClassLoader());
  this.superState = superState != null ? superState : EMPTY_STATE;
  this.stateToSave = in.readSparseBooleanArray();
}

代码示例来源:origin: google/ExoPlayer

/* package */ Parameters(Parcel in) {
 this.selectionOverrides = readSelectionOverrides(in);
 this.rendererDisabledFlags = in.readSparseBooleanArray();
 this.preferredAudioLanguage = in.readString();
 this.preferredTextLanguage = in.readString();
 this.selectUndeterminedTextLanguage = Util.readBoolean(in);
 this.disabledTextTrackSelectionFlags = in.readInt();
 this.forceLowestBitrate = Util.readBoolean(in);
 this.forceHighestSupportedBitrate = Util.readBoolean(in);
 this.allowMixedMimeAdaptiveness = Util.readBoolean(in);
 this.allowNonSeamlessAdaptiveness = Util.readBoolean(in);
 this.maxVideoWidth = in.readInt();
 this.maxVideoHeight = in.readInt();
 this.maxVideoFrameRate = in.readInt();
 this.maxVideoBitrate = in.readInt();
 this.exceedVideoConstraintsIfNecessary = Util.readBoolean(in);
 this.exceedRendererCapabilitiesIfNecessary = Util.readBoolean(in);
 this.viewportWidth = in.readInt();
 this.viewportHeight = in.readInt();
 this.viewportOrientationMayChange = Util.readBoolean(in);
 this.tunnelingAudioSessionId = in.readInt();
}

代码示例来源:origin: org.parceler/parceler-api

@Override
public SparseBooleanArray nullSafeFromParcel(Parcel parcel) {
  return parcel.readSparseBooleanArray();
}

代码示例来源:origin: cbeyls/fosdem-companion-android

SavedState(Parcel in) {
  checkedItemCount = in.readInt();
  checkStates = in.readSparseBooleanArray();
  final int n = in.readInt();
  if (n >= 0) {
    checkedIdStates = new LongSparseArray<>(n);
    for (int i = 0; i < n; i++) {
      final long key = in.readLong();
      final int value = in.readInt();
      checkedIdStates.append(key, value);
    }
  }
}

相关文章

Parcel类方法