/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/ |
D | MediaCodecInfo.java | 329 Format oldFormat, Format newFormat, boolean isNewFormatComplete) { in isSeamlessAdaptationSupported() argument 331 return oldFormat.sampleMimeType.equals(newFormat.sampleMimeType) in isSeamlessAdaptationSupported() 332 && oldFormat.rotationDegrees == newFormat.rotationDegrees in isSeamlessAdaptationSupported() 334 || (oldFormat.width == newFormat.width && oldFormat.height == newFormat.height)) in isSeamlessAdaptationSupported() 335 && ((!isNewFormatComplete && newFormat.colorInfo == null) in isSeamlessAdaptationSupported() 336 || Util.areEqual(oldFormat.colorInfo, newFormat.colorInfo)); in isSeamlessAdaptationSupported() 339 || !oldFormat.sampleMimeType.equals(newFormat.sampleMimeType) in isSeamlessAdaptationSupported() 340 || oldFormat.channelCount != newFormat.channelCount in isSeamlessAdaptationSupported() 341 || oldFormat.sampleRate != newFormat.sampleRate) { in isSeamlessAdaptationSupported() 348 MediaCodecUtil.getCodecProfileAndLevel(newFormat); in isSeamlessAdaptationSupported()
|
D | MediaCodecRenderer.java | 1372 Format newFormat = Assertions.checkNotNull(formatHolder.format); in onInputFormatChanged() local 1374 inputFormat = newFormat; in onInputFormatChanged() 1388 && maybeRequiresSecureDecoder(sourceDrmSession, newFormat)) in onInputFormatChanged() 1397 switch (canKeepCodec(codec, codecInfo, codecFormat, newFormat)) { in onInputFormatChanged() 1402 codecFormat = newFormat; in onInputFormatChanged() 1419 && newFormat.width == codecFormat.width in onInputFormatChanged() 1420 && newFormat.height == codecFormat.height); in onInputFormatChanged() 1421 codecFormat = newFormat; in onInputFormatChanged() 1429 codecFormat = newFormat; in onInputFormatChanged() 1545 MediaCodec codec, MediaCodecInfo codecInfo, Format oldFormat, Format newFormat) { in canKeepCodec() argument
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MessageFormat.java | 718 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument 726 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentIndex() 750 public void setFormatByArgumentName(String argumentName, Format newFormat) { in setFormatByArgumentName() argument 757 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentName() 780 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument 784 setCustomArgStartFormat(partIndex, newFormat); in setFormat() 2229 Format newFormat = null; in createAppropriateFormat() local 2235 newFormat = NumberFormat.getInstance(ulocale); in createAppropriateFormat() 2238 newFormat = NumberFormat.getCurrencyInstance(ulocale); in createAppropriateFormat() 2241 newFormat = NumberFormat.getPercentInstance(ulocale); in createAppropriateFormat() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MessageFormat.java | 675 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument 683 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentIndex() 706 public void setFormatByArgumentName(String argumentName, Format newFormat) { in setFormatByArgumentName() argument 713 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentName() 735 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument 739 setCustomArgStartFormat(partIndex, newFormat); in setFormat() 2157 Format newFormat = null; in createAppropriateFormat() local 2163 newFormat = NumberFormat.getInstance(ulocale); in createAppropriateFormat() 2166 newFormat = NumberFormat.getCurrencyInstance(ulocale); in createAppropriateFormat() 2169 newFormat = NumberFormat.getPercentInstance(ulocale); in createAppropriateFormat() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | MediaCodecAudioRenderer.java | 318 MediaCodec codec, MediaCodecInfo codecInfo, Format oldFormat, Format newFormat) { in canKeepCodec() argument 324 if (getCodecMaxInputSize(codecInfo, newFormat) > codecMaxInputSize in canKeepCodec() 327 || newFormat.encoderDelay != 0 in canKeepCodec() 328 || newFormat.encoderPadding != 0) { in canKeepCodec() 331 oldFormat, newFormat, /* isNewFormatComplete= */ true)) { in canKeepCodec() 333 } else if (canKeepCodecWithFlush(oldFormat, newFormat)) { in canKeepCodec() 350 protected boolean canKeepCodecWithFlush(Format oldFormat, Format newFormat) { in canKeepCodecWithFlush() argument 354 return Util.areEqual(oldFormat.sampleMimeType, newFormat.sampleMimeType) in canKeepCodecWithFlush() 355 && oldFormat.channelCount == newFormat.channelCount in canKeepCodecWithFlush() 356 && oldFormat.sampleRate == newFormat.sampleRate in canKeepCodecWithFlush() [all …]
|
D | DecoderAudioRenderer.java | 328 protected boolean canKeepCodec(Format oldFormat, Format newFormat) { in canKeepCodec() argument 641 Format newFormat = Assertions.checkNotNull(formatHolder.format); in onInputFormatChanged() local 644 inputFormat = newFormat; in onInputFormatChanged()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | PlaybackStatsListener.java | 987 private void maybeUpdateVideoFormat(EventTime eventTime, @Nullable Format newFormat) { in maybeUpdateVideoFormat() argument 988 if (Util.areEqual(currentVideoFormat, newFormat)) { in maybeUpdateVideoFormat() 992 if (newFormat != null) { in maybeUpdateVideoFormat() 993 if (initialVideoFormatHeight == C.LENGTH_UNSET && newFormat.height != Format.NO_VALUE) { in maybeUpdateVideoFormat() 994 initialVideoFormatHeight = newFormat.height; in maybeUpdateVideoFormat() 996 if (initialVideoFormatBitrate == C.LENGTH_UNSET && newFormat.bitrate != Format.NO_VALUE) { in maybeUpdateVideoFormat() 997 initialVideoFormatBitrate = newFormat.bitrate; in maybeUpdateVideoFormat() 1000 currentVideoFormat = newFormat; in maybeUpdateVideoFormat() 1006 private void maybeUpdateAudioFormat(EventTime eventTime, @Nullable Format newFormat) { in maybeUpdateAudioFormat() argument 1007 if (Util.areEqual(currentAudioFormat, newFormat)) { in maybeUpdateAudioFormat() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SampleQueue.java | 792 private void onFormatResult(Format newFormat, FormatHolder outputFormatHolder) { in onFormatResult() argument 793 outputFormatHolder.format = newFormat; in onFormatResult() 796 downstreamFormat = newFormat; in onFormatResult() 797 @Nullable DrmInitData newDrmInitData = newFormat.drmInitData; in onFormatResult() 810 playbackLooper, MimeTypes.getTrackType(newFormat.sampleMimeType)); in onFormatResult()
|
/external/icu/icu4c/source/i18n/ |
D | msgfmt.cpp | 660 Format* newFormat = NULL; in setFormats() local 662 newFormat = newFormats[formatNumber]->clone(); in setFormats() 663 if (newFormat == NULL) { in setFormats() 667 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats() 680 MessageFormat::adoptFormat(int32_t n, Format *newFormat) { in adoptFormat() argument 681 LocalPointer<Format> p(newFormat); in adoptFormat() 736 MessageFormat::setFormat(int32_t n, const Format& newFormat) { in setFormat() argument 743 Format* new_format = newFormat.clone(); in setFormat() 780 const Format& newFormat, in setFormat() argument 793 Format* new_format = newFormat.clone(); in setFormat() [all …]
|
D | smpdtfmt.cpp | 2103 const SharedNumberFormat *newFormat = createSharedNumberFormat(fmt.orphan()); in adoptNumberFormat() local 2104 if (newFormat == NULL) { in adoptNumberFormat() 2114 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat() 2120 newFormat, fSharedNumberFormatters[patternCharIndex]); in adoptNumberFormat() 2122 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat()
|
/external/exoplayer/tree/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/ |
D | SsManifestTest.java | 106 formats[i][j] = newFormat(i + "." + j); in newFormats() 116 private static Format newFormat(String id) { in newFormat() method in SsManifestTest
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/ |
D | MediaCodecVideoRenderer.java | 560 MediaCodec codec, MediaCodecInfo codecInfo, Format oldFormat, Format newFormat) { in canKeepCodec() argument 562 oldFormat, newFormat, /* isNewFormatComplete= */ true) in canKeepCodec() 563 && newFormat.width <= codecMaxValues.width in canKeepCodec() 564 && newFormat.height <= codecMaxValues.height in canKeepCodec() 565 && getMaxInputSize(codecInfo, newFormat) <= codecMaxValues.inputSize) { in canKeepCodec() 566 return oldFormat.initializationDataEquals(newFormat) in canKeepCodec()
|
D | DecoderVideoRenderer.java | 380 Format newFormat = Assertions.checkNotNull(formatHolder.format); in onInputFormatChanged() local 382 inputFormat = newFormat; in onInputFormatChanged()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateTimeGeneratorTest.java | 666 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString() local 667 newFormat.setTimeZone(testTimeZone); in TestReplacingZoneString() 668 String formatted = newFormat.format(testDate); in TestReplacingZoneString() 671 newFormat.parse(formatted, calendar, parsePosition); in TestReplacingZoneString()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateTimeGeneratorTest.java | 669 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString() local 670 newFormat.setTimeZone(testTimeZone); in TestReplacingZoneString() 671 String formatted = newFormat.format(testDate); in TestReplacingZoneString() 674 newFormat.parse(formatted, calendar, parsePosition); in TestReplacingZoneString()
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 1767 NumberFormat.Builder newFormat = NumberFormat.newBuilder(); 1768 newFormat.mergeFrom(formattingPattern); 1770 newFormat.setPattern("(\\d+)(.*)"); 1772 newFormat.setFormat("$1$2"); 1778 return formatNsnUsingPattern(rawInput, newFormat, PhoneNumberFormat.NATIONAL);
|
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 1803 NumberFormat.Builder newFormat = NumberFormat.newBuilder(); 1804 newFormat.mergeFrom(formattingPattern); 1806 newFormat.setPattern("(\\d+)(.*)"); 1808 newFormat.setFormat("$1$2"); 1814 return formatNsnUsingPattern(rawInput, newFormat, PhoneNumberFormat.NATIONAL);
|