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

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

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

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();
}

相关文章

Parcel类方法