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

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

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

Parcel.writeSparseBooleanArray介绍

暂无

代码示例

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

@Override
  public void nullSafeToParcel(SparseBooleanArray input, Parcel parcel) {
    parcel.writeSparseBooleanArray(input);
  }
};

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

@Override
public void writeToParcel(@NonNull Parcel out, int flags) {
  out.writeParcelable(superState, flags);
  out.writeSparseBooleanArray(this.stateToSave);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
 writeSelectionOverridesToParcel(dest, selectionOverrides);
 dest.writeSparseBooleanArray(rendererDisabledFlags);
 dest.writeString(preferredAudioLanguage);
 dest.writeString(preferredTextLanguage);
 Util.writeBoolean(dest, selectUndeterminedTextLanguage);
 dest.writeInt(disabledTextTrackSelectionFlags);
 Util.writeBoolean(dest, forceLowestBitrate);
 Util.writeBoolean(dest, forceHighestSupportedBitrate);
 Util.writeBoolean(dest, allowMixedMimeAdaptiveness);
 Util.writeBoolean(dest, allowNonSeamlessAdaptiveness);
 dest.writeInt(maxVideoWidth);
 dest.writeInt(maxVideoHeight);
 dest.writeInt(maxVideoFrameRate);
 dest.writeInt(maxVideoBitrate);
 Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary);
 Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary);
 dest.writeInt(viewportWidth);
 dest.writeInt(viewportHeight);
 Util.writeBoolean(dest, viewportOrientationMayChange);
 dest.writeInt(tunnelingAudioSessionId);
}

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

@Override
  public void nullSafeToParcel(SparseBooleanArray input, Parcel parcel) {
    parcel.writeSparseBooleanArray(input);
  }
};

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

@Override
public void writeToParcel(Parcel out, int flags) {
  out.writeInt(checkedItemCount);
  out.writeSparseBooleanArray(checkStates);
  final int n = checkedIdStates != null ? checkedIdStates.size() : -1;
  out.writeInt(n);
  for (int i = 0; i < n; i++) {
    out.writeLong(checkedIdStates.keyAt(i));
    out.writeInt(checkedIdStates.valueAt(i));
  }
}

相关文章

Parcel类方法