Java Code Examples for com.google.android.exoplayer2.util.Util#writeBoolean()

The following examples show how to use com.google.android.exoplayer2.util.Util#writeBoolean() . 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: DefaultTrackSelector.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  writeSelectionOverridesToParcel(dest, selectionOverrides);
  dest.writeSparseBooleanArray(rendererDisabledFlags);
  dest.writeString(preferredAudioLanguage);
  dest.writeString(preferredTextLanguage);
  Util.writeBoolean(dest, selectUndeterminedTextLanguage);
  dest.writeInt(disabledTextTrackSelectionFlags);
  Util.writeBoolean(dest, forceLowestBitrate);
  Util.writeBoolean(dest, allowMixedMimeAdaptiveness);
  Util.writeBoolean(dest, allowNonSeamlessAdaptiveness);
  dest.writeInt(maxVideoWidth);
  dest.writeInt(maxVideoHeight);
  dest.writeInt(maxVideoBitrate);
  Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary);
  Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary);
  dest.writeInt(viewportWidth);
  dest.writeInt(viewportHeight);
  Util.writeBoolean(dest, viewportOrientationMayChange);
  dest.writeInt(tunnelingAudioSessionId);
}
 
Example 2
Source File: DefaultTrackSelector.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  writeSelectionOverridesToParcel(dest, selectionOverrides);
  dest.writeSparseBooleanArray(rendererDisabledFlags);
  dest.writeString(preferredAudioLanguage);
  dest.writeString(preferredTextLanguage);
  Util.writeBoolean(dest, selectUndeterminedTextLanguage);
  dest.writeInt(disabledTextTrackSelectionFlags);
  Util.writeBoolean(dest, forceLowestBitrate);
  Util.writeBoolean(dest, allowMixedMimeAdaptiveness);
  Util.writeBoolean(dest, allowNonSeamlessAdaptiveness);
  dest.writeInt(maxVideoWidth);
  dest.writeInt(maxVideoHeight);
  dest.writeInt(maxVideoBitrate);
  Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary);
  Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary);
  dest.writeInt(viewportWidth);
  dest.writeInt(viewportHeight);
  Util.writeBoolean(dest, viewportOrientationMayChange);
  dest.writeInt(tunnelingAudioSessionId);
}
 
Example 3
Source File: ColorInfo.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(colorSpace);
  dest.writeInt(colorRange);
  dest.writeInt(colorTransfer);
  Util.writeBoolean(dest, hdrStaticInfo != null);
  if (hdrStaticInfo != null) {
    dest.writeByteArray(hdrStaticInfo);
  }
}
 
Example 4
Source File: IcyHeaders.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(bitrate);
  dest.writeString(genre);
  dest.writeString(name);
  dest.writeString(url);
  Util.writeBoolean(dest, isPublic);
  dest.writeInt(metadataInterval);
}
 
Example 5
Source File: DefaultTrackSelector.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  super.writeToParcel(dest, flags);
  // Video
  dest.writeInt(maxVideoWidth);
  dest.writeInt(maxVideoHeight);
  dest.writeInt(maxVideoFrameRate);
  dest.writeInt(maxVideoBitrate);
  Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary);
  Util.writeBoolean(dest, allowVideoMixedMimeTypeAdaptiveness);
  Util.writeBoolean(dest, allowVideoNonSeamlessAdaptiveness);
  dest.writeInt(viewportWidth);
  dest.writeInt(viewportHeight);
  Util.writeBoolean(dest, viewportOrientationMayChange);
  // Audio
  dest.writeInt(maxAudioChannelCount);
  dest.writeInt(maxAudioBitrate);
  Util.writeBoolean(dest, exceedAudioConstraintsIfNecessary);
  Util.writeBoolean(dest, allowAudioMixedMimeTypeAdaptiveness);
  Util.writeBoolean(dest, allowAudioMixedSampleRateAdaptiveness);
  Util.writeBoolean(dest, allowAudioMixedChannelCountAdaptiveness);
  // General
  Util.writeBoolean(dest, forceLowestBitrate);
  Util.writeBoolean(dest, forceHighestSupportedBitrate);
  Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary);
  dest.writeInt(tunnelingAudioSessionId);
  // Overrides
  writeSelectionOverridesToParcel(dest, selectionOverrides);
  dest.writeSparseBooleanArray(rendererDisabledFlags);
}
 
Example 6
Source File: TrackSelectionParameters.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  // Audio
  dest.writeString(preferredAudioLanguage);
  // Text
  dest.writeString(preferredTextLanguage);
  dest.writeInt(preferredTextRoleFlags);
  Util.writeBoolean(dest, selectUndeterminedTextLanguage);
  dest.writeInt(disabledTextTrackSelectionFlags);
}
 
Example 7
Source File: ColorInfo.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(colorSpace);
  dest.writeInt(colorRange);
  dest.writeInt(colorTransfer);
  Util.writeBoolean(dest, hdrStaticInfo != null);
  if (hdrStaticInfo != null) {
    dest.writeByteArray(hdrStaticInfo);
  }
}
 
Example 8
Source File: IcyHeaders.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(bitrate);
  dest.writeString(genre);
  dest.writeString(name);
  dest.writeString(url);
  Util.writeBoolean(dest, isPublic);
  dest.writeInt(metadataInterval);
}
 
Example 9
Source File: DefaultTrackSelector.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  super.writeToParcel(dest, flags);
  // Video
  dest.writeInt(maxVideoWidth);
  dest.writeInt(maxVideoHeight);
  dest.writeInt(maxVideoFrameRate);
  dest.writeInt(maxVideoBitrate);
  Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary);
  Util.writeBoolean(dest, allowVideoMixedMimeTypeAdaptiveness);
  Util.writeBoolean(dest, allowVideoNonSeamlessAdaptiveness);
  dest.writeInt(viewportWidth);
  dest.writeInt(viewportHeight);
  Util.writeBoolean(dest, viewportOrientationMayChange);
  // Audio
  dest.writeInt(maxAudioChannelCount);
  dest.writeInt(maxAudioBitrate);
  Util.writeBoolean(dest, exceedAudioConstraintsIfNecessary);
  Util.writeBoolean(dest, allowAudioMixedMimeTypeAdaptiveness);
  Util.writeBoolean(dest, allowAudioMixedSampleRateAdaptiveness);
  Util.writeBoolean(dest, allowAudioMixedChannelCountAdaptiveness);
  // General
  Util.writeBoolean(dest, forceLowestBitrate);
  Util.writeBoolean(dest, forceHighestSupportedBitrate);
  Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary);
  dest.writeInt(tunnelingAudioSessionId);
  // Overrides
  writeSelectionOverridesToParcel(dest, selectionOverrides);
  dest.writeSparseBooleanArray(rendererDisabledFlags);
}
 
Example 10
Source File: TrackSelectionParameters.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  // Audio
  dest.writeString(preferredAudioLanguage);
  // Text
  dest.writeString(preferredTextLanguage);
  dest.writeInt(preferredTextRoleFlags);
  Util.writeBoolean(dest, selectUndeterminedTextLanguage);
  dest.writeInt(disabledTextTrackSelectionFlags);
}
 
Example 11
Source File: Format.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(id);
  dest.writeString(label);
  dest.writeString(containerMimeType);
  dest.writeString(sampleMimeType);
  dest.writeString(codecs);
  dest.writeInt(bitrate);
  dest.writeInt(maxInputSize);
  dest.writeInt(width);
  dest.writeInt(height);
  dest.writeFloat(frameRate);
  dest.writeInt(rotationDegrees);
  dest.writeFloat(pixelWidthHeightRatio);
  Util.writeBoolean(dest, projectionData != null);
  if (projectionData != null) {
    dest.writeByteArray(projectionData);
  }
  dest.writeInt(stereoMode);
  dest.writeParcelable(colorInfo, flags);
  dest.writeInt(channelCount);
  dest.writeInt(sampleRate);
  dest.writeInt(pcmEncoding);
  dest.writeInt(encoderDelay);
  dest.writeInt(encoderPadding);
  dest.writeInt(selectionFlags);
  dest.writeString(language);
  dest.writeInt(accessibilityChannel);
  dest.writeLong(subsampleOffsetUs);
  int initializationDataSize = initializationData.size();
  dest.writeInt(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    dest.writeByteArray(initializationData.get(i));
  }
  dest.writeParcelable(drmInitData, 0);
  dest.writeParcelable(metadata, 0);
}
 
Example 12
Source File: ColorInfo.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(colorSpace);
  dest.writeInt(colorRange);
  dest.writeInt(colorTransfer);
  Util.writeBoolean(dest, hdrStaticInfo != null);
  if (hdrStaticInfo != null) {
    dest.writeByteArray(hdrStaticInfo);
  }
}
 
Example 13
Source File: Format.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(id);
  dest.writeString(label);
  dest.writeString(containerMimeType);
  dest.writeString(sampleMimeType);
  dest.writeString(codecs);
  dest.writeInt(bitrate);
  dest.writeInt(maxInputSize);
  dest.writeInt(width);
  dest.writeInt(height);
  dest.writeFloat(frameRate);
  dest.writeInt(rotationDegrees);
  dest.writeFloat(pixelWidthHeightRatio);
  Util.writeBoolean(dest, projectionData != null);
  if (projectionData != null) {
    dest.writeByteArray(projectionData);
  }
  dest.writeInt(stereoMode);
  dest.writeParcelable(colorInfo, flags);
  dest.writeInt(channelCount);
  dest.writeInt(sampleRate);
  dest.writeInt(pcmEncoding);
  dest.writeInt(encoderDelay);
  dest.writeInt(encoderPadding);
  dest.writeInt(selectionFlags);
  dest.writeString(language);
  dest.writeInt(accessibilityChannel);
  dest.writeLong(subsampleOffsetUs);
  int initializationDataSize = initializationData.size();
  dest.writeInt(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    dest.writeByteArray(initializationData.get(i));
  }
  dest.writeParcelable(drmInitData, 0);
  dest.writeParcelable(metadata, 0);
}
 
Example 14
Source File: ColorInfo.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(colorSpace);
  dest.writeInt(colorRange);
  dest.writeInt(colorTransfer);
  Util.writeBoolean(dest, hdrStaticInfo != null);
  if (hdrStaticInfo != null) {
    dest.writeByteArray(hdrStaticInfo);
  }
}
 
Example 15
Source File: IcyHeaders.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(bitrate);
  dest.writeString(genre);
  dest.writeString(name);
  dest.writeString(url);
  Util.writeBoolean(dest, isPublic);
  dest.writeInt(metadataInterval);
}
 
Example 16
Source File: DefaultTrackSelector.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  super.writeToParcel(dest, flags);
  // Video
  dest.writeInt(maxVideoWidth);
  dest.writeInt(maxVideoHeight);
  dest.writeInt(maxVideoFrameRate);
  dest.writeInt(maxVideoBitrate);
  Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary);
  Util.writeBoolean(dest, allowVideoMixedMimeTypeAdaptiveness);
  Util.writeBoolean(dest, allowVideoNonSeamlessAdaptiveness);
  dest.writeInt(viewportWidth);
  dest.writeInt(viewportHeight);
  Util.writeBoolean(dest, viewportOrientationMayChange);
  // Audio
  dest.writeInt(maxAudioChannelCount);
  dest.writeInt(maxAudioBitrate);
  Util.writeBoolean(dest, exceedAudioConstraintsIfNecessary);
  Util.writeBoolean(dest, allowAudioMixedMimeTypeAdaptiveness);
  Util.writeBoolean(dest, allowAudioMixedSampleRateAdaptiveness);
  Util.writeBoolean(dest, allowAudioMixedChannelCountAdaptiveness);
  // General
  Util.writeBoolean(dest, forceLowestBitrate);
  Util.writeBoolean(dest, forceHighestSupportedBitrate);
  Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary);
  dest.writeInt(tunnelingAudioSessionId);
  // Overrides
  writeSelectionOverridesToParcel(dest, selectionOverrides);
  dest.writeSparseBooleanArray(rendererDisabledFlags);
}
 
Example 17
Source File: TrackSelectionParameters.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(preferredAudioLanguage);
  dest.writeString(preferredTextLanguage);
  dest.writeInt(preferredTextRoleFlags);
  Util.writeBoolean(dest, selectUndeterminedTextLanguage);
  dest.writeInt(disabledTextTrackSelectionFlags);
}
 
Example 18
Source File: Format.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(id);
  dest.writeString(label);
  dest.writeInt(selectionFlags);
  dest.writeInt(roleFlags);
  dest.writeInt(bitrate);
  dest.writeString(codecs);
  dest.writeParcelable(metadata, 0);
  // Container specific.
  dest.writeString(containerMimeType);
  // Elementary stream specific.
  dest.writeString(sampleMimeType);
  dest.writeInt(maxInputSize);
  int initializationDataSize = initializationData.size();
  dest.writeInt(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    dest.writeByteArray(initializationData.get(i));
  }
  dest.writeParcelable(drmInitData, 0);
  dest.writeLong(subsampleOffsetUs);
  // Video specific.
  dest.writeInt(width);
  dest.writeInt(height);
  dest.writeFloat(frameRate);
  dest.writeInt(rotationDegrees);
  dest.writeFloat(pixelWidthHeightRatio);
  Util.writeBoolean(dest, projectionData != null);
  if (projectionData != null) {
    dest.writeByteArray(projectionData);
  }
  dest.writeInt(stereoMode);
  dest.writeParcelable(colorInfo, flags);
  // Audio specific.
  dest.writeInt(channelCount);
  dest.writeInt(sampleRate);
  dest.writeInt(pcmEncoding);
  dest.writeInt(encoderDelay);
  dest.writeInt(encoderPadding);
  // Audio and text specific.
  dest.writeString(language);
  dest.writeInt(accessibilityChannel);
}
 
Example 19
Source File: Format.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(id);
  dest.writeString(label);
  dest.writeInt(selectionFlags);
  dest.writeInt(roleFlags);
  dest.writeInt(bitrate);
  dest.writeString(codecs);
  dest.writeParcelable(metadata, 0);
  // Container specific.
  dest.writeString(containerMimeType);
  // Elementary stream specific.
  dest.writeString(sampleMimeType);
  dest.writeInt(maxInputSize);
  int initializationDataSize = initializationData.size();
  dest.writeInt(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    dest.writeByteArray(initializationData.get(i));
  }
  dest.writeParcelable(drmInitData, 0);
  dest.writeLong(subsampleOffsetUs);
  // Video specific.
  dest.writeInt(width);
  dest.writeInt(height);
  dest.writeFloat(frameRate);
  dest.writeInt(rotationDegrees);
  dest.writeFloat(pixelWidthHeightRatio);
  Util.writeBoolean(dest, projectionData != null);
  if (projectionData != null) {
    dest.writeByteArray(projectionData);
  }
  dest.writeInt(stereoMode);
  dest.writeParcelable(colorInfo, flags);
  // Audio specific.
  dest.writeInt(channelCount);
  dest.writeInt(sampleRate);
  dest.writeInt(pcmEncoding);
  dest.writeInt(encoderDelay);
  dest.writeInt(encoderPadding);
  // Audio and text specific.
  dest.writeString(language);
  dest.writeInt(accessibilityChannel);
}
 
Example 20
Source File: Format.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(id);
  dest.writeString(label);
  dest.writeInt(selectionFlags);
  dest.writeInt(roleFlags);
  dest.writeInt(bitrate);
  dest.writeString(codecs);
  dest.writeParcelable(metadata, 0);
  // Container specific.
  dest.writeString(containerMimeType);
  // Elementary stream specific.
  dest.writeString(sampleMimeType);
  dest.writeInt(maxInputSize);
  int initializationDataSize = initializationData.size();
  dest.writeInt(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    dest.writeByteArray(initializationData.get(i));
  }
  dest.writeParcelable(drmInitData, 0);
  dest.writeLong(subsampleOffsetUs);
  // Video specific.
  dest.writeInt(width);
  dest.writeInt(height);
  dest.writeFloat(frameRate);
  dest.writeInt(rotationDegrees);
  dest.writeFloat(pixelWidthHeightRatio);
  Util.writeBoolean(dest, projectionData != null);
  if (projectionData != null) {
    dest.writeByteArray(projectionData);
  }
  dest.writeInt(stereoMode);
  dest.writeParcelable(colorInfo, flags);
  // Audio specific.
  dest.writeInt(channelCount);
  dest.writeInt(sampleRate);
  dest.writeInt(pcmEncoding);
  dest.writeInt(encoderDelay);
  dest.writeInt(encoderPadding);
  // Audio and text specific.
  dest.writeString(language);
  dest.writeInt(accessibilityChannel);
}