Java Code Examples for android.os.Parcel#readLong()

The following examples show how to use android.os.Parcel#readLong() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpliceScheduleCommand.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
private Event(Parcel in) {
  this.spliceEventId = in.readLong();
  this.spliceEventCancelIndicator = in.readByte() == 1;
  this.outOfNetworkIndicator = in.readByte() == 1;
  this.programSpliceFlag = in.readByte() == 1;
  int componentSpliceListLength = in.readInt();
  ArrayList<ComponentSplice> componentSpliceList = new ArrayList<>(componentSpliceListLength);
  for (int i = 0; i < componentSpliceListLength; i++) {
    componentSpliceList.add(ComponentSplice.createFromParcel(in));
  }
  this.componentSpliceList = Collections.unmodifiableList(componentSpliceList);
  this.utcSpliceTime = in.readLong();
  this.autoReturn = in.readByte() == 1;
  this.breakDurationUs = in.readLong();
  this.uniqueProgramId = in.readInt();
  this.availNum = in.readInt();
  this.availsExpected = in.readInt();
}
 
Example 2
Source File: Token.java    From alpha-wallet-android with MIT License 6 votes vote down vote up
protected Token(Parcel in) {
    tokenInfo = in.readParcelable(TokenInfo.class.getClassLoader());
    balance = new BigDecimal(in.readString());
    updateBlancaTime = in.readLong();
    int readType = in.readInt();
    shortNetworkName = in.readString();
    pendingBalance = new BigDecimal(in.readString());
    tokenWallet = in.readString();
    lastBlockCheck = in.readLong();
    lastTxCheck = in.readLong();
    lastTxUpdate = in.readLong();
    lastTxTime = in.readLong();
    hasTokenScript = in.readByte() == 1;
    nameWeight = in.readInt();
    ticker = in.readParcelable(TokenTicker.class.getClassLoader());
    functionAvailabilityMap = in.readHashMap(List.class.getClassLoader());

    balanceChanged = false;
    if (readType <= ContractType.CREATION.ordinal())
    {
        contractType = ContractType.values()[readType];
    }
}
 
Example 3
Source File: DMBean.java    From iBeebo with GNU General Public License v3.0 6 votes vote down vote up
public DMBean createFromParcel(Parcel in) {
    DMBean dmBean = new DMBean();
    dmBean.id = in.readLong();

    dmBean.idstr = in.readString();
    dmBean.created_at = in.readString();
    dmBean.text = in.readString();
    dmBean.sender_id = in.readString();
    dmBean.recipient_id = in.readString();
    dmBean.sender_screen_name = in.readString();
    dmBean.recipient_screen_name = in.readString();
    dmBean.mid = in.readString();
    dmBean.source = in.readString();
    dmBean.status_id = in.readString();
    dmBean.geo = in.readString();

    dmBean.mills = in.readLong();

    dmBean.sender = in.readParcelable(UserBean.class.getClassLoader());
    dmBean.recipient = in.readParcelable(UserBean.class.getClassLoader());

    return dmBean;
}
 
Example 4
Source File: HackerNewsItem.java    From materialistic with Apache License 2.0 5 votes vote down vote up
@Synthetic
HackerNewsItem(Parcel source) {
    id = source.readLong();
    title = source.readString();
    time = source.readLong();
    by = source.readString();
    kids = source.createLongArray();
    url = source.readString();
    text = source.readString();
    type = source.readString();
    favorite = source.readInt() != 0;
    descendants = source.readInt();
    score = source.readInt();
    favorite = source.readInt() == 1;
    viewed = source.readInt() == 1;
    localRevision = source.readInt();
    level = source.readInt();
    dead = source.readInt() == 1;
    deleted = source.readInt() == 1;
    collapsed = source.readInt() == 1;
    contentExpanded = source.readInt() == 1;
    rank = source.readInt();
    lastKidCount = source.readInt();
    hasNewDescendants = source.readInt() == 1;
    parent = source.readLong();
    voted = source.readInt() == 1;
    pendingVoted = source.readInt() == 1;
    next = source.readLong();
    previous = source.readLong();
}
 
Example 5
Source File: RecordCaseInfo.java    From SoloPi with Apache License 2.0 5 votes vote down vote up
protected RecordCaseInfo(Parcel in) {
    this.id = (Long) in.readValue(Long.class.getClassLoader());
    this.caseName = in.readString();
    this.caseDesc = in.readString();
    this.targetAppPackage = in.readString();
    this.targetAppLabel = in.readString();
    this.recordMode = in.readString();
    this.advanceSettings = in.readString();
    this.operationLog = in.readString();
    this.priority = in.readInt();
    this.gmtCreate = in.readLong();
    this.gmtModify = in.readLong();
}
 
Example 6
Source File: Linker.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public LibInfo(Parcel in) {
    mLoadAddress = in.readLong();
    mLoadSize = in.readLong();
    mRelroStart = in.readLong();
    mRelroSize = in.readLong();
    ParcelFileDescriptor fd = in.readFileDescriptor();
    mRelroFd = fd.detachFd();
}
 
Example 7
Source File: MediaPlayerActivity.java    From HeroVideo-master with Apache License 2.0 5 votes vote down vote up
private Config(Parcel in) {
    scaleType = in.readString();
    fullScreenOnly = in.readByte() != 0;
    defaultRetryTime = in.readLong();
    title = in.readString();
    url = in.readString();
    showNavIcon = in.readByte() != 0;
}
 
Example 8
Source File: VKApiVideo.java    From cordova-social-vk with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a Video instance from Parcel.
 */
public VKApiVideo(Parcel in) {
    this.id = in.readInt();
    this.owner_id = in.readInt();
    this.album_id = in.readInt();
    this.title = in.readString();
    this.description = in.readString();
    this.duration = in.readInt();
    this.link = in.readString();
    this.date = in.readLong();
    this.views = in.readInt();
    this.player = in.readString();
    this.photo_130 = in.readString();
    this.photo_320 = in.readString();
    this.photo_640 = in.readString();
    this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader());
    this.access_key = in.readString();
    this.comments = in.readInt();
    this.can_comment = in.readByte() != 0;
    this.can_repost = in.readByte() != 0;
    this.user_likes = in.readByte() != 0;
    this.repeat = in.readByte() != 0;
    this.likes = in.readInt();
    this.privacy_view = in.readInt();
    this.privacy_comment = in.readInt();
    this.mp4_240 = in.readString();
    this.mp4_360 = in.readString();
    this.mp4_480 = in.readString();
    this.mp4_720 = in.readString();
    this.mp4_1080 = in.readString();
    this.external = in.readString();
}
 
Example 9
Source File: BudgetCreditSync.java    From fingen with Apache License 2.0 5 votes vote down vote up
protected BudgetCreditSync(Parcel in) {
    super(in);
    this.mYear = in.readInt();
    this.mMonth = in.readInt();
    this.mCreditID = in.readLong();
    this.mAmount = in.readDouble();
}
 
Example 10
Source File: Book.java    From FriendBook with GNU General Public License v3.0 5 votes vote down vote up
protected Book(Parcel in) {
    this.id = in.readString();
    this.coverUrl = in.readString();
    this.name = in.readString();
    this.describe = in.readString();
    this.author = in.readString();
    this.isFinished = in.readByte() != 0;
    this.bookTypeId = in.readInt();
    this.bookTypeName = in.readString();
    this.bookWordNum = in.readLong();
    this.clickNum = in.readLong();
    this.collectionNum = in.readLong();
    this.recommendNum = in.readLong();
    this.createDateTime = in.readString();
}
 
Example 11
Source File: DashboardTile.java    From HeadsUp with GNU General Public License v2.0 5 votes vote down vote up
private DashboardTile(Parcel in) {
    id = in.readLong();
    titleRes = in.readInt();
    title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    summaryRes = in.readInt();
    summary = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    iconRes = in.readInt();
    fragment = in.readString();
    fragmentArguments = in.readBundle();
    if (in.readInt() != 0) {
        intent = Intent.CREATOR.createFromParcel(in);
    }
    extras = in.readBundle();
}
 
Example 12
Source File: Categories.java    From Woocommerce-Android-Client with MIT License 5 votes vote down vote up
protected Categories(Parcel in) {
    id = in.readLong();
    name = in.readString();
    slug = in.readString();
    parent_id = in.readInt();
    description = in.readString();
    display = in.readString();
    image = in.readString();
    count = in.readInt();
}
 
Example 13
Source File: ImageModel.java    From StatusSaver-for-Whatsapp with Apache License 2.0 5 votes vote down vote up
private ImageModel(Parcel in) {
    String[] data = new String[2];
    in.readStringArray(data);
    fileName = data[0];
    completePath = data[1];
    lastModified = in.readLong();
    savedLocally= in.readInt() != 0;
}
 
Example 14
Source File: ImageItem.java    From ImagePicker with Apache License 2.0 5 votes vote down vote up
protected ImageItem(Parcel in) {
    this.name = in.readString();
    this.path = in.readString();
    this.size = in.readLong();
    this.width = in.readInt();
    this.height = in.readInt();
    this.mimeType = in.readString();
    this.addTime = in.readLong();
}
 
Example 15
Source File: LocalMediaFolder.java    From PictureSelector with Apache License 2.0 5 votes vote down vote up
protected LocalMediaFolder(Parcel in) {
    this.bucketId = in.readLong();
    this.name = in.readString();
    this.firstImagePath = in.readString();
    this.imageNum = in.readInt();
    this.checkedNum = in.readInt();
    this.isChecked = in.readByte() != 0;
    this.ofAllType = in.readInt();
    this.isCameraFolder = in.readByte() != 0;
    this.data = in.createTypedArrayList(LocalMedia.CREATOR);
    this.currentDataPage = in.readInt();
    this.isHasMore = in.readByte() != 0;
}
 
Example 16
Source File: PrivateCommand.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
private PrivateCommand(Parcel in) {
  ptsAdjustment = in.readLong();
  identifier = in.readLong();
  commandBytes = new byte[in.readInt()];
  in.readByteArray(commandBytes);
}
 
Example 17
Source File: SendRequestTest.java    From mytracks with Apache License 2.0 4 votes vote down vote up
/**
 * Tests {@link SendRequest#writeToParcel(Parcel, int)}.
 */
public void testWriteToParcel() {
  sendRequest = new SendRequest(4);
  sendRequest.setSendDrive(true);
  sendRequest.setSendMaps(true);
  sendRequest.setSendFusionTables(true);
  sendRequest.setSendSpreadsheets(true);
  sendRequest.setDriveSync(true);
  sendRequest.setDriveSharePublic(true);
  sendRequest.setDriveShareEmails(DRIVE_SHARE_EMAILS);
  Account accountNew = new Account(ACCOUNTNAME + "2", ACCOUNTYPE + "2");
  sendRequest.setAccount(accountNew);
  sendRequest.setMapsSuccess(true);
  sendRequest.setDriveSuccess(true);
  sendRequest.setFusionTablesSuccess(true);
  sendRequest.setSpreadsheetsSuccess(true);
  sendRequest.setShareUrl(SHARE_URL);
  Parcel parcel = Parcel.obtain();
  parcel.setDataPosition(0);
  sendRequest.writeToParcel(parcel, 1);
  parcel.setDataPosition(0);
  long trackId = parcel.readLong();
  boolean sendDrive = parcel.readByte() == 1;
  boolean sendMaps = parcel.readByte() == 1;
  boolean sendFusionTables = parcel.readByte() == 1;
  boolean sendSpreadsheets = parcel.readByte() == 1;
  boolean driveSync = parcel.readByte() == 1;
  boolean driveSharePublic = parcel.readByte() == 1;
  String driveShareEmails = parcel.readString();
  Parcelable account = parcel.readParcelable(null);
  boolean driveSuccess = parcel.readByte() == 1;
  boolean mapsSuccess = parcel.readByte() == 1;
  boolean fusionTablesSuccess = parcel.readByte() == 1;
  boolean spreadsheetsSuccess = parcel.readByte() == 1;
  String shareUrl = parcel.readString();
  assertEquals(4, trackId);
  assertTrue(sendDrive);
  assertTrue(sendMaps);
  assertTrue(sendFusionTables);
  assertTrue(sendSpreadsheets);
  assertTrue(driveSync);
  assertTrue(driveSharePublic);
  assertEquals(DRIVE_SHARE_EMAILS, driveShareEmails);
  assertEquals(accountNew, account);
  assertTrue(driveSuccess);
  assertTrue(mapsSuccess);
  assertTrue(fusionTablesSuccess);
  assertTrue(spreadsheetsSuccess);
  assertEquals(SHARE_URL, shareUrl);
}
 
Example 18
Source File: PackageInfo.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
private PackageInfo(Parcel source) {
    packageName = source.readString();
    splitNames = source.createStringArray();
    versionCode = source.readInt();
    versionCodeMajor = source.readInt();
    versionName = source.readString();
    baseRevisionCode = source.readInt();
    splitRevisionCodes = source.createIntArray();
    sharedUserId = source.readString();
    sharedUserLabel = source.readInt();
    int hasApp = source.readInt();
    if (hasApp != 0) {
        applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source);
    }
    firstInstallTime = source.readLong();
    lastUpdateTime = source.readLong();
    gids = source.createIntArray();
    activities = source.createTypedArray(ActivityInfo.CREATOR);
    receivers = source.createTypedArray(ActivityInfo.CREATOR);
    services = source.createTypedArray(ServiceInfo.CREATOR);
    providers = source.createTypedArray(ProviderInfo.CREATOR);
    instrumentation = source.createTypedArray(InstrumentationInfo.CREATOR);
    permissions = source.createTypedArray(PermissionInfo.CREATOR);
    requestedPermissions = source.createStringArray();
    requestedPermissionsFlags = source.createIntArray();
    signatures = source.createTypedArray(Signature.CREATOR);
    configPreferences = source.createTypedArray(ConfigurationInfo.CREATOR);
    reqFeatures = source.createTypedArray(FeatureInfo.CREATOR);
    featureGroups = source.createTypedArray(FeatureGroupInfo.CREATOR);
    installLocation = source.readInt();
    isStub = source.readInt() != 0;
    coreApp = source.readInt() != 0;
    requiredForAllUsers = source.readInt() != 0;
    restrictedAccountType = source.readString();
    requiredAccountType = source.readString();
    overlayTarget = source.readString();
    overlayCategory = source.readString();
    overlayPriority = source.readInt();
    mOverlayIsStatic = source.readBoolean();
    compileSdkVersion = source.readInt();
    compileSdkVersionCodename = source.readString();
    int hasSigningInfo = source.readInt();
    if (hasSigningInfo != 0) {
        signingInfo = SigningInfo.CREATOR.createFromParcel(source);
    }

    // The component lists were flattened with the redundant ApplicationInfo
    // instances omitted.  Distribute the canonical one here as appropriate.
    if (applicationInfo != null) {
        propagateApplicationInfo(applicationInfo, activities);
        propagateApplicationInfo(applicationInfo, receivers);
        propagateApplicationInfo(applicationInfo, services);
        propagateApplicationInfo(applicationInfo, providers);
    }
}
 
Example 19
Source File: BackupProgress.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
private BackupProgress(Parcel in) {
    bytesExpected = in.readLong();
    bytesTransferred = in.readLong();
}
 
Example 20
Source File: PrivateCommand.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
private PrivateCommand(Parcel in) {
  ptsAdjustment = in.readLong();
  identifier = in.readLong();
  commandBytes = new byte[in.readInt()];
  in.readByteArray(commandBytes);
}