readArray ( )源码实例Demo

android.os.Parcel#readArray ( )源码实例Demo

下面列出了android.os.Parcel#readArray ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

private ERC875ContractTransaction(Parcel in) {
    address = in.readString();
    name = in.readString();
    balance = in.readString();
    symbol = in.readString();
    int typeCode = in.readInt();
    if (typeCode >= TransactionType.ILLEGAL_VALUE.ordinal()) typeCode = TransactionType.ILLEGAL_VALUE.ordinal();
    operation = TransactionType.values()[typeCode];
    type = in.readInt();
    otherParty = in.readString();
    int arrayCount = in.readInt();
    indices = new ArrayList<>();
    if (arrayCount > 0)
    {
        Object[] readObjArray = in.readArray(Object.class.getClassLoader());

        for (Object o : readObjArray)
        {
            Integer val = (Integer) o;
            indices.add(val);
        }
    }
}
 
源代码2 项目: alpha-wallet-android   文件: ERC721Ticket.java
private ERC721Ticket(Parcel in) {
    super(in);
    balanceArray = new ArrayList<>();
    int objSize = in.readInt();
    int interfaceOrdinal = in.readInt();
    contractType = ContractType.values()[interfaceOrdinal];
    if (objSize > 0)
    {
        Object[] readObjArray = in.readArray(Object.class.getClassLoader());
        for (Object o : readObjArray)
        {
            BigInteger val = (BigInteger)o;
            balanceArray.add(val);
        }
    }
}
 
源代码3 项目: alpha-wallet-android   文件: Ticket.java
private Ticket(Parcel in) {
    super(in);
    balanceArray = new ArrayList<>();
    int objSize = in.readInt();
    int interfaceOrdinal = in.readInt();
    contractType = ContractType.values()[interfaceOrdinal];
    if (objSize > 0)
    {
        Object[] readObjArray = in.readArray(Object.class.getClassLoader());
        for (Object o : readObjArray)
        {
            BigInteger val = (BigInteger)o;
            balanceArray.add(val);
        }
    }
}
 
源代码4 项目: data-mediator   文件: HistoryData.java
protected HistoryData(Parcel in) {
    this.age = in.readInt();
    this.id = in.readLong();
    this.testShort = (short) in.readInt();
    this.testByte = in.readByte();
    this.testBoolean = in.readByte() != 0;
    this.testFloat = in.readFloat();
    this.testDouble = in.readDouble();
    this.testChar = (char) in.readInt();
    this.testLONG = (Long) in.readValue(Long.class.getClassLoader());
    this.testDOUBLE = (Double) in.readValue(Double.class.getClassLoader());
    this.testCharacter = (Character) in.readSerializable();
    this.testBOOLEAN = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.testSHORT = (Short) in.readValue(Short.class.getClassLoader());
    this.name = in.readString();
    this.data = in.readParcelable(ResultData.class.getClassLoader());
    this.datas = in.createTypedArrayList(ResultData.CREATOR);
    this.testArrayResultData = in.createTypedArray(ResultData.CREATOR);
    this.testArrayInt = in.createIntArray();
    this.testArrayInteger = (Integer[]) in.readArray(Integer[].class.getClassLoader());
}
 
源代码5 项目: Mobilyzer   文件: RRCTask.java
protected RRCDesc(Parcel in) {
      super(in);
//      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      echoHost = in.readString();
      target = in.readString();
      MIN = in.readInt();
      MAX = in.readInt();
      port = in.readInt();
      size = in.readInt();
      sizeGranularity = in.readInt();
      DNS = in.readByte() != 0;
      HTTP = in.readByte() != 0;
      TCP = in.readByte() != 0;
      RRC = in.readByte() != 0;
      SIZES = in.readByte() != 0;
      RESULT_VISIBILITY = in.readByte() != 0;
      GIVEUP_THRESHHOLD = in.readInt();
      Object[] temp = in.readArray(Integer.class.getClassLoader());
      times = Arrays.copyOf(temp, temp.length, Integer[].class);
    }
 
源代码6 项目: Cake-VPN   文件: LogItem.java
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();


}
 
源代码7 项目: SimpleOpenVpn-Android   文件: LogItem.java
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();
}
 
源代码8 项目: alpha-wallet-android   文件: TicketRangeParcel.java
private TicketRangeParcel(Parcel in)
{
    Object[] readObjArray = in.readArray(Object.class.getClassLoader());
    List tIds = new ArrayList<>();
    tIds.addAll(Arrays.asList(readObjArray));

    boolean isChecked = in.readInt() == 1;

    String contractAddress = in.readString();

    range = new TicketRange(tIds, contractAddress, isChecked);
}
 
源代码9 项目: Cybernet-VPN   文件: LogItem.java
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();
}
 
源代码10 项目: EasyVPN-Free   文件: LogItem.java
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();
}
 
源代码11 项目: android   文件: VpnStatus.java
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();
}
 
源代码12 项目: android-test   文件: ParcelableResult.java
private ParcelableResult(Parcel in) {
  this.failures = new ArrayList<>();
  Object[] failures = in.readArray(ParcelableFailure[].class.getClassLoader());
  for (Object failure : failures) {
    this.failures.add((ParcelableFailure) failure);
  }
}
 
源代码13 项目: bitmask_android   文件: LogItem.java
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();
}
 
源代码14 项目: AppOpsX   文件: ClassCaller.java
protected ClassCaller(Parcel in) {
    this.packageName = in.readString();
    this.className = in.readString();
    this.sParamsType = in.createStringArray();
    this.params = in.readArray(Object[].class.getClassLoader());
}
 
源代码15 项目: AppOpsX   文件: SystemServiceCaller.java
protected SystemServiceCaller(Parcel in) {
    this.serviceName = in.readString();
    this.methodName = in.readString();
    this.sParamsType = in.createStringArray();
    this.params = in.readArray(Object[].class.getClassLoader());
}
 
源代码16 项目: island   文件: MethodInvocation.java
private MethodInvocation(final Parcel in) {
	clazz = in.readString();
	args = in.readArray(getClass().getClassLoader());
}
 
源代码评论
动弹
沙发等你来抢
 方法所在类
 同类方法