/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/ |
D | MediaPeriodQueue.java | 69 private final Timeline.Period period; field in MediaPeriodQueue 95 period = new Timeline.Period(); in MediaPeriodQueue() 407 timeline.getPeriodByUid(info.id.periodUid, period); in getUpdatedMediaPeriodInfo() 411 : period.getAdGroupTimeUs(id.nextAdGroupIndex); in getUpdatedMediaPeriodInfo() 414 ? period.getAdDurationUs(id.adGroupIndex, id.adIndexInAdGroup) in getUpdatedMediaPeriodInfo() 416 ? period.getDurationUs() in getUpdatedMediaPeriodInfo() 420 ? period.isServerSideInsertedAdGroup(id.adGroupIndex) in getUpdatedMediaPeriodInfo() 422 && period.isServerSideInsertedAdGroup(id.nextAdGroupIndex)); in getUpdatedMediaPeriodInfo() 449 timeline, periodUid, positionUs, windowSequenceNumber, window, period); in resolveMediaPeriodIdForAds() 471 Timeline.Period period) { in resolveMediaPeriodIdForAds() argument [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | Sonic.java | 248 for (int period = minPeriod; period <= maxPeriod; period++) { in findPitchPeriodInRange() 250 for (int i = 0; i < period; i++) { in findPitchPeriodInRange() 252 short pVal = samples[position + period + i]; in findPitchPeriodInRange() 258 if (diff * bestPeriod < minDiff * period) { in findPitchPeriodInRange() 260 bestPeriod = period; in findPitchPeriodInRange() 262 if (diff * worstPeriod > maxDiff * period) { in findPitchPeriodInRange() 264 worstPeriod = period; in findPitchPeriodInRange() 296 int period; in findPitchPeriod() local 300 period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod); in findPitchPeriod() 303 period = findPitchPeriodInRange(downSampleBuffer, 0, minPeriod / skip, maxPeriod / skip); in findPitchPeriod() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | Sonic.java | 248 for (int period = minPeriod; period <= maxPeriod; period++) { in findPitchPeriodInRange() 250 for (int i = 0; i < period; i++) { in findPitchPeriodInRange() 252 short pVal = samples[position + period + i]; in findPitchPeriodInRange() 258 if (diff * bestPeriod < minDiff * period) { in findPitchPeriodInRange() 260 bestPeriod = period; in findPitchPeriodInRange() 262 if (diff * worstPeriod > maxDiff * period) { in findPitchPeriodInRange() 264 worstPeriod = period; in findPitchPeriodInRange() 296 int period; in findPitchPeriod() local 300 period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod); in findPitchPeriod() 303 period = findPitchPeriodInRange(downSampleBuffer, 0, minPeriod / skip, maxPeriod / skip); in findPitchPeriod() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/ |
D | MediaPeriodQueue.java | 67 private final Timeline.Period period; field in MediaPeriodQueue 94 period = new Timeline.Period(); in MediaPeriodQueue() 406 timeline.getPeriodByUid(info.id.periodUid, period); in getUpdatedMediaPeriodInfo() 410 : period.getAdGroupTimeUs(id.nextAdGroupIndex); in getUpdatedMediaPeriodInfo() 413 ? period.getAdDurationUs(id.adGroupIndex, id.adIndexInAdGroup) in getUpdatedMediaPeriodInfo() 415 ? period.getDurationUs() in getUpdatedMediaPeriodInfo() 419 ? period.isServerSideInsertedAdGroup(id.adGroupIndex) in getUpdatedMediaPeriodInfo() 421 && period.isServerSideInsertedAdGroup(id.nextAdGroupIndex)); in getUpdatedMediaPeriodInfo() 448 timeline, periodUid, positionUs, windowSequenceNumber, period); in resolveMediaPeriodIdForAds() 456 @Nullable MediaPeriodHolder period = playing; in notifyQueueUpdate() local [all …]
|
/external/rust/crates/tokio/src/time/ |
D | interval.rs | 74 pub fn interval(period: Duration) -> Interval { in interval() 75 assert!(period > Duration::new(0, 0), "`period` must be non-zero."); in interval() 76 internal_interval_at(Instant::now(), period, trace::caller_location()) in interval() 109 pub fn interval_at(start: Instant, period: Duration) -> Interval { in interval_at() 110 assert!(period > Duration::new(0, 0), "`period` must be non-zero."); in interval_at() 111 internal_interval_at(start, period, trace::caller_location()) in interval_at() 117 period: Duration, in internal_interval_at() 142 period, in internal_interval_at() 341 fn next_timeout(&self, timeout: Instant, now: Instant, period: Duration) -> Instant { in next_timeout() 343 Self::Burst => timeout + period, in next_timeout() [all …]
|
/external/fmtlib/test/fuzzing/ |
D | chrono-duration.cc | 25 void invoke_outer(const uint8_t* data, size_t size, int period) { in invoke_outer() argument 39 switch (period) { in invoke_outer() 92 const auto period = data[1]; in LLVMFuzzerTestOneInput() local 98 invoke_outer<char>(data, size, period); in LLVMFuzzerTestOneInput() 101 invoke_outer<signed char>(data, size, period); in LLVMFuzzerTestOneInput() 104 invoke_outer<unsigned char>(data, size, period); in LLVMFuzzerTestOneInput() 107 invoke_outer<short>(data, size, period); in LLVMFuzzerTestOneInput() 110 invoke_outer<unsigned short>(data, size, period); in LLVMFuzzerTestOneInput() 113 invoke_outer<int>(data, size, period); in LLVMFuzzerTestOneInput() 116 invoke_outer<unsigned int>(data, size, period); in LLVMFuzzerTestOneInput() [all …]
|
/external/sonic/ |
D | Sonic.java | 525 for(int period = minPeriod; period <= maxPeriod; period++) { in findPitchPeriodInRange() 527 for(int i = 0; i < period; i++) { in findPitchPeriodInRange() 529 short pVal = samples[position + period + i]; in findPitchPeriodInRange() 535 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange() 537 bestPeriod = period; in findPitchPeriodInRange() 539 if(diff*worstPeriod > maxDiff*period) { in findPitchPeriodInRange() 541 worstPeriod = period; in findPitchPeriodInRange() 552 int period, in prevPeriodBetter() argument 588 int period, retPeriod; in findPitchPeriod() local 595 … period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod, minDiff, maxDiff); in findPitchPeriod() [all …]
|
D | sonic.c | 617 int period, bestPeriod = 0, worstPeriod = 255; in findPitchPeriodInRange() local 622 for(period = minPeriod; period <= maxPeriod; period++) { in findPitchPeriodInRange() 625 p = samples + period; in findPitchPeriodInRange() 626 for(i = 0; i < period; i++) { in findPitchPeriodInRange() 635 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange() 637 bestPeriod = period; in findPitchPeriodInRange() 639 if(diff*worstPeriod > maxDiff*period) { in findPitchPeriodInRange() 641 worstPeriod = period; in findPitchPeriodInRange() 653 int period, in prevPeriodBetter() argument 692 int period; in findPitchPeriod() local [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/ads/ |
D | SinglePeriodAdTimeline.java | 45 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument 46 timeline.getPeriod(periodIndex, period, setIds); in getPeriod() 48 period.durationUs == C.TIME_UNSET ? adPlaybackState.contentDurationUs : period.durationUs; in getPeriod() 49 period.set( in getPeriod() 50 period.id, in getPeriod() 51 period.uid, in getPeriod() 52 period.windowIndex, in getPeriod() 54 period.getPositionInWindowUs(), in getPeriod() 56 period.isPlaceholder); in getPeriod() 57 return period; in getPeriod()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/ads/ |
D | SinglePeriodAdTimeline.java | 45 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument 46 timeline.getPeriod(periodIndex, period, setIds); in getPeriod() 48 period.durationUs == C.TIME_UNSET ? adPlaybackState.contentDurationUs : period.durationUs; in getPeriod() 49 period.set( in getPeriod() 50 period.id, in getPeriod() 51 period.uid, in getPeriod() 52 period.windowIndex, in getPeriod() 54 period.getPositionInWindowUs(), in getPeriod() 56 period.isPlaceholder); in getPeriod() 57 return period; in getPeriod()
|
/external/libtextclassifier/abseil-cpp/absl/base/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/profiling/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/openscreen/third_party/abseil/src/absl/base/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/cronet/third_party/abseil-cpp/absl/profiling/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/tensorflow/third_party/absl/abseil-cpp/absl/profiling/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/abseil-cpp/absl/profiling/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/angle/third_party/abseil-cpp/absl/profiling/internal/ |
D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), Eq(0)); in TEST() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/ |
D | TimelineTest.java | 160 Timeline.Period period = new Timeline.Period(); in periodEquals() local 161 assertThat(period).isEqualTo(new Timeline.Period()); in periodEquals() 165 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 169 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 173 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 177 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 181 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 184 period.id = new Object(); in periodEquals() 185 period.uid = new Object(); in periodEquals() 186 period.windowIndex = 1; in periodEquals() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/ |
D | TimelineTest.java | 159 Timeline.Period period = new Timeline.Period(); in periodEquals() local 160 assertThat(period).isEqualTo(new Timeline.Period()); in periodEquals() 164 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 168 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 172 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 176 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 180 assertThat(period).isNotEqualTo(otherPeriod); in periodEquals() 183 period.id = new Object(); in periodEquals() 184 period.uid = new Object(); in periodEquals() 185 period.windowIndex = 1; in periodEquals() [all …]
|
/external/rust/crates/memchr/src/memmem/ |
D | twoway.rs | 90 (min_suffix.period, min_suffix.pos) in new() 92 (max_suffix.period, max_suffix.pos) in new() 117 Shift::Small { period } => { in find() 118 self.find_small_imp(pre, haystack, needle, period) in find() 157 period: usize, in find_small_imp() 193 pos += period; in find_small_imp() 194 shift = needle.len() - period; in find_small_imp() 257 (min_suffix.period, min_suffix.pos) in new() 259 (max_suffix.period, max_suffix.pos) in new() 287 Shift::Small { period } => { in rfind() [all …]
|
/external/webrtc/modules/audio_processing/agc2/rnn_vad/ |
D | pitch_search_internal.cc | 249 RTC_DCHECK_GE(last.period, 0); in IsAlternativePitchStrongerThanInitial() 250 RTC_DCHECK_GE(initial.period, 0); in IsAlternativePitchStrongerThanInitial() 251 RTC_DCHECK_GE(alternative.period, 0); in IsAlternativePitchStrongerThanInitial() 256 if (std::abs(alternative.period - last.period) <= 1) { in IsAlternativePitchStrongerThanInitial() 260 } else if (std::abs(alternative.period - last.period) == 2 && in IsAlternativePitchStrongerThanInitial() 261 initial.period > in IsAlternativePitchStrongerThanInitial() 274 if (alternative.period < 3 * kMinPitch24kHz) { in IsAlternativePitchStrongerThanInitial() 277 } else if (alternative.period < 2 * kMinPitch24kHz) { in IsAlternativePitchStrongerThanInitial() 421 int period; in ComputeExtendedPitchPeriod48kHz() member 437 best_pitch.period = in ComputeExtendedPitchPeriod48kHz() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_query_hw.c | 87 assert(!hq->period); in resume_query() 89 hq->period = slab_alloc_st(&batch->ctx->sample_period_pool); in resume_query() 90 list_inithead(&hq->period->list); in resume_query() 91 hq->period->start = get_sample(batch, ring, hq->base.type); in resume_query() 93 hq->period->end = NULL; in resume_query() 103 assert(hq->period && !hq->period->end); in pause_query() 105 hq->period->end = get_sample(batch, ring, hq->base.type); in pause_query() 106 list_addtail(&hq->period->list, &hq->periods); in pause_query() 107 hq->period = NULL; in pause_query() 113 struct fd_hw_sample_period *period, *s; in destroy_periods() local [all …]
|
/external/openthread/src/core/mac/ |
D | data_poll_sender.cpp | 196 uint32_t period = GetDefaultPollPeriod(); in GetKeepAlivePollPeriod() local 200 period = OT_MIN(period, mExternalPollPeriod); in GetKeepAlivePollPeriod() 203 return period; in GetKeepAlivePollPeriod() 505 uint32_t period = GetDefaultPollPeriod(); in CalculatePollPeriod() local 509 period = OT_MIN(period, kAttachDataPollPeriod); in CalculatePollPeriod() 514 period = OT_MIN(period, kRetxPollPeriod); in CalculatePollPeriod() 519 period = OT_MIN(period, kFastPollPeriod); in CalculatePollPeriod() 524 period = OT_MIN(period, mExternalPollPeriod); in CalculatePollPeriod() 527 if (period == 0) in CalculatePollPeriod() 529 period = kMinPollPeriod; in CalculatePollPeriod() [all …]
|
/external/proguard/src/proguard/gui/splash/ |
D | SawToothTiming.java | 30 private final long period; field in SawToothTiming 39 public SawToothTiming(long period, long phase) in SawToothTiming() argument 41 this.period = period; in SawToothTiming() 51 return (double)((time + phase) % period) / (double)period; in getTiming()
|