本文整理了Java中android.os.Parcel.writeBooleanArray()
方法的一些代码示例,展示了Parcel.writeBooleanArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.writeBooleanArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:writeBooleanArray
暂无
代码示例来源:origin: johncarl81/parceler
@Override
public void nullSafeToParcel(Boolean input, Parcel parcel) {
parcel.writeBooleanArray(new boolean[]{input});
}
};
代码示例来源:origin: johncarl81/parceler
@Override
public void toParcel(boolean[] array, Parcel parcel) {
if (array == null) {
parcel.writeInt(NULL);
} else {
parcel.writeInt(array.length);
parcel.writeBooleanArray(array);
}
}
代码示例来源:origin: stackoverflow.com
dest.writeBooleanArray(values);
代码示例来源:origin: thoughtbot/expandable-recycler-view
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeBooleanArray(selectedChildren);
}
代码示例来源:origin: eclipse/paho.mqtt.android
/**
* Writes the contents of this object to a parcel
*
* @param parcel
* The parcel to write the data to.
* @param flags
* this parameter is ignored
*/
@Override
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeByteArray(getPayload());
parcel.writeInt(getQos());
parcel.writeBooleanArray(new boolean[]{isRetained(), isDuplicate()});
parcel.writeString(messageId);
}
代码示例来源:origin: org.parceler/parceler-api
@Override
public void nullSafeToParcel(Boolean input, Parcel parcel) {
parcel.writeBooleanArray(new boolean[]{input});
}
};
代码示例来源:origin: codezjx/AndLinker
@Override
public void writeToParcel(Parcel dest, int flags, boolean[] val) {
dest.writeBooleanArray(val);
}
代码示例来源:origin: org.parceler/parceler-api
@Override
public void toParcel(boolean[] array, Parcel parcel) {
if (array == null) {
parcel.writeInt(NULL);
} else {
parcel.writeInt(array.length);
parcel.writeBooleanArray(array);
}
}
代码示例来源:origin: Cleveroad/LoopBar
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeInt(mCurrentItemPosition);
parcel.writeInt(mSelectionGravity);
parcel.writeInt(mScrollMode);
parcel.writeBooleanArray(new boolean[]{mIsInfinite});
parcel.writeInt(mAdapterSize);
}
}
代码示例来源:origin: zendesk/belvedere
@Override
public void writeToParcel(@NonNull final Parcel dest, final int flags) {
dest.writeInt(requestCode);
dest.writeParcelable(intent, flags);
dest.writeString(permission);
dest.writeBooleanArray(new boolean[]{isAvailable});
dest.writeInt(target);
}
代码示例来源:origin: SecUSo/privacy-friendly-sudoku
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(row);
dest.writeInt(col);
dest.writeInt(value);
dest.writeInt(size);
dest.writeInt(fixed ? 1 : 0);
dest.writeInt(noteCount);
dest.writeBooleanArray(notes);
}
代码示例来源:origin: andforce/iBeebo
@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
Bundle bundle = new Bundle();
bundle.putSerializable("ids", ids);
bundle.putSerializable("type", type);
out.writeBundle(bundle);
out.writeBooleanArray(new boolean[]{this.disappear, this.visible});
}
代码示例来源:origin: ArturVasilov/AndroidSchool
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(mId);
parcel.writeString(mPosterPath);
parcel.writeString(mOverview);
parcel.writeString(mTitle);
parcel.writeString(mReleasedDate);
parcel.writeDouble(mVoteAverage);
parcel.writeBooleanArray(new boolean[]{mIsFavourite});
}
代码示例来源:origin: fennifith/Alarmio
@Override
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeInt(id);
parcel.writeString(name);
parcel.writeLong(time.getTimeInMillis());
parcel.writeByte((byte) (isEnabled ? 1 : 0));
parcel.writeBooleanArray(days);
parcel.writeByte((byte) (isVibrate ? 1 : 0));
parcel.writeByte((byte) (sound != null ? 1 : 0));
if (sound != null)
parcel.writeString(sound.toString());
}
代码示例来源:origin: andforce/iBeebo
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(access_token);
dest.writeLong(expires_time);
dest.writeInt(navigationPosition);
// uname cookie
dest.writeString(uname);
dest.writeString(pwd);
dest.writeString(cookie);
dest.writeString(access_token_hack);
dest.writeLong(expires_time_hack);
dest.writeString(gsid);
// end
dest.writeBooleanArray(new boolean[]{
this.black_magic
});
dest.writeParcelable(info, flags);
}
代码示例来源:origin: henrichg/PhoneProfilesPlus
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(recurrenceState);
dest.writeInt(freq);
dest.writeInt(interval);
dest.writeInt(end);
dest.writeInt(endDate.year);
dest.writeInt(endDate.month);
dest.writeInt(endDate.monthDay);
dest.writeInt(endCount);
dest.writeBooleanArray(weeklyByDayOfWeek);
dest.writeInt(monthlyRepeat);
dest.writeInt(monthlyByMonthDay);
dest.writeInt(monthlyByDayOfWeek);
dest.writeInt(monthlyByNthDayOfWeek);
dest.writeByte((byte) (forceHideSwitchButton ? 1 : 0));
}
代码示例来源:origin: andforce/iBeebo
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeParcelable(scaledBitmapRect, flags);
dest.writeParcelable(imageViewEntireRect, flags);
dest.writeParcelable(imageViewVisibleRect, flags);
dest.writeInt(type);
dest.writeBooleanArray(new boolean[]{
isTotalVisible
});
dest.writeBooleanArray(new boolean[]{
isTotalInvisible
});
dest.writeBooleanArray(new boolean[]{
isScreenPortrait
});
dest.writeFloat(thumbnailWidthHeightRatio);
dest.writeInt(thumbnailWidth);
dest.writeInt(thumbnailHeight);
dest.writeInt(widgetWidth);
dest.writeInt(widgetHeight);
dest.writeFloat(clipByParentRectTop);
dest.writeFloat(clipByParentRectBottom);
dest.writeFloat(clipByParentRectLeft);
dest.writeFloat(clipByParentRectRight);
}
代码示例来源:origin: stackoverflow.com
dest.writeBooleanArray(new boolean[]{galleryPicker, gallery});
代码示例来源:origin: org.eclipse.paho/org.eclipse.paho.android.service
/**
* Writes the contents of this object to a parcel
*
* @param parcel
* The parcel to write the data to.
* @param flags
* this parameter is ignored
*/
@Override
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeByteArray(getPayload());
parcel.writeInt(getQos());
parcel.writeBooleanArray(new boolean[]{isRetained(), isDuplicate()});
parcel.writeString(messageId);
}
代码示例来源:origin: dc297/mqttclpro
/**
* Writes the contents of this object to a parcel
*
* @param parcel
* The parcel to write the data to.
* @param flags
* this parameter is ignored
*/
@Override
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeByteArray(getPayload());
parcel.writeInt(getQos());
parcel.writeBooleanArray(new boolean[]{isRetained(), isDuplicate()});
parcel.writeString(messageId);
}
内容来源于网络,如有侵权,请联系作者删除!