本文整理了Java中android.os.Parcel.readSparseBooleanArray()
方法的一些代码示例,展示了Parcel.readSparseBooleanArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.readSparseBooleanArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称: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);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!