本文整理了Java中android.os.Parcel.createBooleanArray()
方法的一些代码示例,展示了Parcel.createBooleanArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.createBooleanArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:createBooleanArray
暂无
代码示例来源:origin: johncarl81/parceler
@Override
public Boolean nullSafeFromParcel(Parcel parcel) {
return parcel.createBooleanArray()[0];
}
代码示例来源:origin: thoughtbot/expandable-recycler-view
protected CheckedExpandableGroup(Parcel in) {
super(in);
selectedChildren = in.createBooleanArray();
}
代码示例来源:origin: eclipse/paho.mqtt.android
ParcelableMqttMessage(Parcel parcel) {
super(parcel.createByteArray());
setQos(parcel.readInt());
boolean[] flags = parcel.createBooleanArray();
setRetained(flags[0]);
setDuplicate(flags[1]);
messageId = parcel.readString();
}
代码示例来源:origin: codezjx/AndLinker
@Override
public boolean[] createFromParcel(Parcel in) {
return in.createBooleanArray();
}
代码示例来源:origin: org.parceler/parceler-api
@Override
public Boolean nullSafeFromParcel(Parcel parcel) {
return parcel.createBooleanArray()[0];
}
代码示例来源:origin: fennifith/Alarmio
protected AlarmData(Parcel in) {
id = in.readInt();
name = in.readString();
time = Calendar.getInstance();
time.setTimeInMillis(in.readLong());
isEnabled = in.readByte() != 0;
days = in.createBooleanArray();
isVibrate = in.readByte() != 0;
if (in.readByte() == 1)
sound = SoundData.fromString(in.readString());
}
代码示例来源:origin: henrichg/PhoneProfilesPlus
private RecurrenceModel(Parcel in) {
this.recurrenceState = in.readInt();
this.freq = in.readInt();
this.interval = in.readInt();
this.end = in.readInt();
this.endDate = new Time();
this.endDate.year = in.readInt();
this.endDate.month = in.readInt();
this.endDate.monthDay = in.readInt();
this.endCount = in.readInt();
this.weeklyByDayOfWeek = in.createBooleanArray();
this.monthlyRepeat = in.readInt();
this.monthlyByMonthDay = in.readInt();
this.monthlyByDayOfWeek = in.readInt();
this.monthlyByNthDayOfWeek = in.readInt();
this.forceHideSwitchButton = in.readByte() != 0;
}
代码示例来源:origin: org.eclipse.paho/org.eclipse.paho.android.service
ParcelableMqttMessage(Parcel parcel) {
super(parcel.createByteArray());
setQos(parcel.readInt());
boolean[] flags = parcel.createBooleanArray();
setRetained(flags[0]);
setDuplicate(flags[1]);
messageId = parcel.readString();
}
代码示例来源:origin: dc297/mqttclpro
ParcelableMqttMessage(Parcel parcel) {
super(parcel.createByteArray());
setQos(parcel.readInt());
boolean[] flags = parcel.createBooleanArray();
setRetained(flags[0]);
setDuplicate(flags[1]);
messageId = parcel.readString();
}
内容来源于网络,如有侵权,请联系作者删除!