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

The following are Jave code examples for showing how to use readLong() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: airgram   File: MediaFormat.java   View Source Code Vote up 6 votes
MediaFormat(Parcel in) {
  trackId = in.readString();
  mimeType = in.readString();
  bitrate = in.readInt();
  maxInputSize = in.readInt();
  durationUs = in.readLong();
  width = in.readInt();
  height = in.readInt();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  channelCount = in.readInt();
  sampleRate = in.readInt();
  language = in.readString();
  subsampleOffsetUs = in.readLong();
  initializationData = new ArrayList<>();
  in.readList(initializationData, null);
  adaptive = in.readInt() == 1;
  maxWidth = in.readInt();
  maxHeight = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
}
 
Example 2
Project: Phoenix-for-VK   File: Document.java   View Source Code Vote up 6 votes
protected Document(Parcel in) {
    super(in);
    id = in.readInt();
    ownerId = in.readInt();
    title = in.readString();
    size = in.readLong();
    ext = in.readString();
    url = in.readString();
    date = in.readLong();
    //noinspection ResourceType
    type = in.readInt();
    accessKey = in.readString();
    photoPreview = in.readParcelable(PhotoSizes.class.getClassLoader());
    videoPreview = in.readParcelable(VideoPreview.class.getClassLoader());
    graffiti = in.readParcelable(Graffiti.class.getClassLoader());
}
 
Example 3
Project: MyCalendar   File: DrawItem.java   View Source Code Vote up 6 votes
protected DrawItem(Parcel in) {
    this.draw_item_id = in.readLong();
    this.location_id = (Integer) in.readValue(Integer.class.getClassLoader());
    this.draw_item_title = in.readString();
    this.draw_item_content = in.readString();
    this.draw_item_text_color = in.readInt();
    this.draw_item_background_color = in.readInt();
    this.draw_item_time_star = in.readInt();
    this.draw_item_time_end = in.readInt();
    this.draw_item_time_remind = in.readInt();
    int tmpDraw_item_status = in.readInt();
    this.draw_item_status = tmpDraw_item_status == -1 ? null : EventStatus.values()[tmpDraw_item_status];
    this.draw_item_status_reason_change = in.readString();
    this.draw_item_is_all_day = in.readByte() != 0;
    int tmpDraw_item_type = in.readInt();
    this.draw_item_type = tmpDraw_item_type == -1 ? null : EventType.values()[tmpDraw_item_type];
    this.draw_item_parent_id = in.readString();
}
 
Example 4
Project: mvvm-template   File: CommentEvent.java   View Source Code Vote up 6 votes
private CommentEvent(Parcel in) {
    this.id = in.readLong();
    this.user = in.readParcelable(User.class.getClassLoader());
    this.url = in.readString();
    this.body = in.readString();
    this.bodyHtml = in.readString();
    this.htmlUrl = in.readString();
    long tmpCreatedAt = in.readLong();
    this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
    long tmpUpdatedAt = in.readLong();
    this.updatedAt = tmpUpdatedAt == -1 ? null : new Date(tmpUpdatedAt);
    this.position = in.readInt();
    this.line = in.readInt();
    this.path = in.readString();
    this.commitId = in.readString();
    this.repoId = in.readString();
    this.login = in.readString();
    this.gistId = in.readString();
    this.issueId = in.readString();
    this.pullRequestId = in.readString();
    this.reactions = in.readParcelable(ReactionsModel.class.getClassLoader());
}
 
Example 5
Project: Phoenix-for-VK   File: Poll.java   View Source Code Vote up 5 votes
protected Poll(Parcel in) {
    super(in);
    id = in.readInt();
    ownerId = in.readInt();
    creationTime = in.readLong();
    question = in.readString();
    voteCount = in.readInt();
    myAnswerId = in.readInt();
    anonymous = in.readByte() != 0;
    answers = in.createTypedArrayList(Answer.CREATOR);
    board = in.readByte() != 0;
}
 
Example 6
Project: HeroVideo-master   File: MediaPlayerActivity.java   View Source Code Vote up 5 votes
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 7
Project: Phoenix-for-VK   File: Banned.java   View Source Code Vote up 5 votes
private Info(Parcel in) {
    date = in.readLong();
    reason = in.readInt();
    comment = in.readString();
    endDate = in.readLong();
    commentVisible = in.readByte() != 0;
}
 
Example 8
Project: Ghost-Android   File: Tag.java   View Source Code Vote up 5 votes
protected Tag(Parcel in) {
    this.id = in.readString();
    this.name = in.readString();
    this.slug = in.readString();
    this.description = in.readString();
    this.image = in.readString();
    this.hidden = in.readByte() != 0;
    this.metaTitle = in.readString();
    this.metaDescription = in.readString();
    long tmpCreatedAt = in.readLong();
    this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
    long tmpUpdatedAt = in.readLong();
    this.updatedAt = tmpUpdatedAt == -1 ? null : new Date(tmpUpdatedAt);
}
 
Example 9
Project: Inflix   File: Video.java   View Source Code Vote up 5 votes
protected Video(Parcel in) {
    id = in.readString();
    iso6391 = in.readString();
    iso31661 = in.readString();
    key = in.readString();
    name = in.readString();
    site = in.readString();
    size = in.readLong();
    type = in.readString();
}
 
Example 10
Project: android_ui   File: CalendarView.java   View Source Code Vote up 5 votes
/**
 * Called from {@link #CREATOR} to create an instance of CalendarDataSet form the given parcel
 * <var>source</var>.
 *
 * @param source Parcel with data for the new instance.
 */
CalendarDataSet(Parcel source) {
	this.calendar = (Calendar) source.readSerializable();
	this.dateMin = source.readLong();
	this.dateMax = source.readLong();
	this.startingYear = source.readInt();
	this.startingMonth = source.readInt();
	this.months = source.readInt();
}
 
Example 11
Project: Phoenix-for-VK   File: Video.java   View Source Code Vote up 5 votes
protected Video(Parcel in) {
    super(in);
    id = in.readInt();
    ownerId = in.readInt();
    albumId = in.readInt();
    title = in.readString();
    description = in.readString();
    link = in.readString();
    date = in.readLong();
    addingDate = in.readLong();
    views = in.readInt();
    player = in.readString();
    photo130 = in.readString();
    photo320 = in.readString();
    photo800 = in.readString();
    accessKey = in.readString();
    commentsCount = in.readInt();
    canComment = in.readByte() != 0;
    canRepost = in.readByte() != 0;
    userLikes = in.readByte() != 0;
    likesCount = in.readInt();
    mp4link240 = in.readString();
    mp4link360 = in.readString();
    mp4link480 = in.readString();
    mp4link720 = in.readString();
    mp4link1080 = in.readString();
    externalLink = in.readString();
    platform = in.readString();
    repeat = in.readByte() != 0;
    duration = in.readInt();
    privacyView = in.readParcelable(SimplePrivacy.class.getClassLoader());
    privacyComment = in.readParcelable(SimplePrivacy.class.getClassLoader());
    canEdit = in.readByte() != 0;
    canAdd = in.readByte() != 0;
}
 
Example 12
Project: OpenHub   File: Repository.java   View Source Code Vote up 5 votes
protected Repository(Parcel in) {
    this.id = in.readInt();
    this.name = in.readString();
    this.fullName = in.readString();
    this.repPrivate = in.readByte() != 0;
    this.htmlUrl = in.readString();
    this.description = in.readString();
    this.language = in.readString();
    this.owner = in.readParcelable(User.class.getClassLoader());
    this.defaultBranch = in.readString();
    long tmpCreatedAt = in.readLong();
    this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
    long tmpUpdatedAt = in.readLong();
    this.updatedAt = tmpUpdatedAt == -1 ? null : new Date(tmpUpdatedAt);
    long tmpPushedAt = in.readLong();
    this.pushedAt = tmpPushedAt == -1 ? null : new Date(tmpPushedAt);
    this.gitUrl = in.readString();
    this.sshUrl = in.readString();
    this.cloneUrl = in.readString();
    this.svnUrl = in.readString();
    this.size = in.readInt();
    this.stargazersCount = in.readInt();
    this.watchersCount = in.readInt();
    this.forksCount = in.readInt();
    this.openIssuesCount = in.readInt();
    this.subscribersCount = in.readInt();
    this.fork = in.readByte() != 0;
    this.parent = in.readParcelable(Repository.class.getClassLoader());
    this.permissions = in.readParcelable(RepositoryPermissions.class.getClassLoader());
    this.hasIssues = in.readByte() != 0;
    this.hasProjects = in.readByte() != 0;
    this.hasDownloads = in.readByte() != 0;
    this.hasWiki = in.readByte() != 0;
    this.hasPages = in.readByte() != 0;
    this.sinceStargazersCount = in.readInt();
    int tmpTrendingSince = in.readInt();
    this.since = tmpTrendingSince == -1 ? null : TrendingSince.values()[tmpTrendingSince];
}
 
Example 13
Project: Inflix   File: Media.java   View Source Code Vote up 5 votes
protected Media(Parcel in) {
    id = in.readLong();
    posterPath = in.readString();
    title = in.readString();
    name = in.readString();
    mediaType = in.readString();
}
 
Example 14
Project: VirtualHook   File: VUserInfo.java   View Source Code Vote up 5 votes
private VUserInfo(Parcel source) {
    id = source.readInt();
    name = source.readString();
    iconPath = source.readString();
    flags = source.readInt();
    serialNumber = source.readInt();
    creationTime = source.readLong();
    lastLoggedInTime = source.readLong();
    partial = source.readInt() != 0;
    profileGroupId = source.readInt();
    guestToRemove = source.readInt() != 0;
}
 
Example 15
Project: bridgefy-android-samples   File: Alert.java   View Source Code Vote up 4 votes
protected Alert(Parcel in) {
    this.id = in.readString();
    this.count = in.readInt();
    this.name = in.readString();
    this.date = in.readLong();
}
 
Example 16
Project: WeatherPlus   File: SysDTO.java   View Source Code Vote up 4 votes
protected SysDTO(Parcel in) {
    this.country = in.readString();
    this.sunrise = in.readLong();
    this.sunset = in.readLong();
}
 
Example 17
Project: RLibrary   File: LargeMessageSnapshot.java   View Source Code Vote up 4 votes
ProgressMessageSnapshot(Parcel in) {
    super(in);
    this.sofarBytes = in.readLong();
}
 
Example 18
Project: container   File: VAccountManagerService.java   View Source Code Vote up 4 votes
/**
 * Read all accounts from file.
 */
private void deserializeAllAccounts() {
	File accountFile = VEnvironment.getAccountConfigFile();
	refreshAuthenticatorCache(null);
	if (accountFile.exists()) {
		accountsByUserId.clear();
           Parcel dest = Parcel.obtain();
           try {
               FileInputStream is = new FileInputStream(accountFile);
               byte[] bytes = new byte[(int) accountFile.length()];
               int readLength = is.read(bytes);
               is.close();
               if (readLength != bytes.length) {
                   throw new IOException(String.format("Expect length %d, but got %d.", bytes.length, readLength));
               }
               dest.unmarshall(bytes, 0, bytes.length);
               dest.setDataPosition(0);
               dest.readInt(); // skip the magic
               int size = dest.readInt(); // the VAccount's size we need to read
               boolean invalid = false;
               while (size-- > 0) {
                   VAccount account = new VAccount(dest);
				VLog.d(TAG, "Reading account : " + account.type);
                   AuthenticatorInfo info = cache.authenticators.get(account.type);
                   if (info != null) {
                       List<VAccount> accounts = accountsByUserId.get(account.userId);
                       if (accounts == null) {
                           accounts = new ArrayList<>();
                           accountsByUserId.put(account.userId, accounts);
                       }
                       accounts.add(account);
                   } else {
                       invalid = true;
                   }
               }
               lastAccountChangeTime = dest.readLong();
               if (invalid) {
                   serializeAllAccounts();
               }
           } catch (Exception e) {
               e.printStackTrace();
           } finally {
               dest.recycle();
           }
	}
}
 
Example 19
Project: Phoenix-for-VK   File: LocalPhoto.java   View Source Code Vote up 4 votes
public LocalPhoto(Parcel in) {
    this.imageId = in.readLong();
    this.fullImageUri = Uri.parse(in.readString());
    this.selected = in.readInt() == 1;
    this.index = in.readInt();
}
 
Example 20
Project: AndroidMuseumBleManager   File: ScanSettingsCompat.java   View Source Code Vote up 4 votes
private ScanSettingsCompat(Parcel in) {
    mScanMode = in.readInt();
    mCallbackType = in.readInt();
    mReportDelayMillis = in.readLong();
}