/external/openscreen/cast/streaming/ |
D | rtp_time_unittest.cc | 22 ASSERT_EQ(RtpTimeDelta(), RtpTimeDelta::FromTicks(0)); in TEST() 26 RtpTimeDelta::FromTicks(0).ToDuration<microseconds>(kTimebase)); in TEST() 29 ASSERT_EQ(RtpTimeDelta::FromTicks(480), in TEST() 31 ASSERT_EQ(RtpTimeDelta::FromTicks(96000), in TEST() 34 RtpTimeDelta::FromTicks(480).ToDuration<microseconds>(kTimebase)); in TEST() 36 RtpTimeDelta::FromTicks(96000).ToDuration<microseconds>(kTimebase)); in TEST() 41 RtpTimeDelta::FromTicks(0), in TEST() 44 RtpTimeDelta::FromTicks(1), in TEST() 47 RtpTimeDelta::FromTicks(2), in TEST() 50 RtpTimeDelta::FromTicks(3), in TEST() [all …]
|
D | packet_receive_stats_tracker_unittest.cc | 27 RtpTimeDelta::FromTicks(std::numeric_limits<int64_t>::max() - 42); in GetSentinel() 76 RtpTimeTicks() + RtpTimeDelta::FromTicks(42); in TEST() 97 RtpTimeTicks() + RtpTimeDelta::FromTicks(42); in TEST() 107 kFirstRtpTimestamp + RtpTimeDelta::FromTicks(kRtpVideoTimebase) * i, in TEST() 131 RtpTimeTicks() + RtpTimeDelta::FromTicks(99); in TEST() 144 kFirstRtpTimestamp + RtpTimeDelta::FromTicks(kRtpVideoTimebase) * i, in TEST() 162 RtpTimeTicks() + RtpTimeDelta::FromTicks(99); in TEST() 175 RtpTimeDelta::FromTicks(kRtpVideoTimebase) * (i * 2), in TEST()
|
D | rtp_packet_parser_unittest.cc | 38 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x09080706), in TEST() 75 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST() 113 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST() 151 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST() 192 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST()
|
D | rtcp_common_unittest.cc | 126 original.jitter = RtpTimeDelta::FromTicks(123); in TEST() 164 expected.jitter = RtpTimeDelta::FromTicks(123); in TEST() 179 another.jitter = expected.jitter + RtpTimeDelta::FromTicks(i - 2); in TEST()
|
D | sender_report_unittest.cc | 90 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(1350000), in TEST_F() 125 original.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(5); in TEST_F()
|
D | rtcp_common.cc | 139 const int64_t jitter_ticks = jitter / RtpTimeDelta::FromTicks(1); in AppendFields() 235 RtpTimeDelta::FromTicks(ConsumeField<uint32_t>(&buffer)); in ParseOne()
|
D | frame_collector_unittest.cc | 24 RtpTimeTicks() + RtpTimeDelta::FromTicks(90000); 51 part.rtp_timestamp = kSomeRtpTimestamp + (RtpTimeDelta::FromTicks(200) * i); in TEST()
|
D | sender_unittest.cc | 107 frame->rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(ticks); in OverrideRtpTimestamp() 405 RtpTimeTicks() + (RtpTimeDelta::FromTicks(kRtpTicksPerFrame) * in PopulateFrameWithDefaults() 509 RtpTimeTicks() + RtpTimeDelta::FromTicks(kRtpTicksPerFrame))); in TEST_F() 521 RtpTimeDelta::FromTicks(kRtpTicksPerFrame))); in TEST_F() 525 RtpTimeDelta::FromTicks(10 * kRtpTicksPerFrame))); in TEST_F()
|
D | rtp_packetizer_unittest.cc | 49 frame.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(987); in CreateFrame()
|
D | rtp_time.h | 146 static constexpr RtpTimeDelta FromTicks(int64_t ticks) { in FromTicks() function
|
D | compound_rtcp_parser_unittest.cc | 100 EXPECT_EQ(RtpTimeDelta::FromTicks(170), block.jitter); in TEST_F()
|
D | compound_rtcp_builder_unittest.cc | 87 original.jitter = RtpTimeDelta::FromTicks(4); in TEST_F()
|
/external/openscreen/cast/standalone_sender/ |
D | streaming_opus_encoder.cc | 137 frame_.rtp_timestamp += RtpTimeDelta::FromTicks(samples_per_cast_frame_); in EncodeAndSend() 147 codec_delay_ = RtpTimeDelta::FromTicks(lookahead).ToDuration<Clock::duration>( in UpdateCodecDelay() 167 frame_.rtp_timestamp + RtpTimeDelta::FromTicks(num_samples_queued_); in ResolveTimestampsAndMaybeSkip() 172 RtpTimeDelta::FromTicks(samples_per_cast_frame_) * in ResolveTimestampsAndMaybeSkip() 184 reference_time -= RtpTimeDelta::FromTicks(num_samples_queued_) in ResolveTimestampsAndMaybeSkip() 192 RtpTimeDelta::FromTicks(1).ToDuration<Clock::duration>(sample_rate()); in ResolveTimestampsAndMaybeSkip()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 47 Assert.AreEqual(TimeSpan.FromTicks(1), new Duration { Nanos = 100 }.ToTimeSpan()); in ToTimeSpan() 48 Assert.AreEqual(TimeSpan.FromTicks(-1), new Duration { Nanos = -100 }.ToTimeSpan()); in ToTimeSpan() 51 Assert.AreEqual(TimeSpan.FromTicks(2), new Duration { Nanos = 250 }.ToTimeSpan()); in ToTimeSpan() 52 Assert.AreEqual(TimeSpan.FromTicks(-2), new Duration { Nanos = -250 }.ToTimeSpan()); in ToTimeSpan() 96 …ew Duration { Nanos = Duration.NanosecondsPerTick }, Duration.FromTimeSpan(TimeSpan.FromTicks(1))); in FromTimeSpan()
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 47 Assert.AreEqual(TimeSpan.FromTicks(1), new Duration { Nanos = 100 }.ToTimeSpan()); in ToTimeSpan() 48 Assert.AreEqual(TimeSpan.FromTicks(-1), new Duration { Nanos = -100 }.ToTimeSpan()); in ToTimeSpan() 51 Assert.AreEqual(TimeSpan.FromTicks(2), new Duration { Nanos = 250 }.ToTimeSpan()); in ToTimeSpan() 52 Assert.AreEqual(TimeSpan.FromTicks(-2), new Duration { Nanos = -250 }.ToTimeSpan()); in ToTimeSpan() 96 …ew Duration { Nanos = Duration.NanosecondsPerTick }, Duration.FromTimeSpan(TimeSpan.FromTicks(1))); in FromTimeSpan()
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | DurationPartial.cs | 94 return TimeSpan.FromTicks(ticks); in ToTimeSpan()
|