Home
last modified time | relevance | path

Searched refs:FromTicks (Results 1 – 16 of 16) sorted by relevance

/external/openscreen/cast/streaming/
Drtp_time_unittest.cc22 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 …]
Dpacket_receive_stats_tracker_unittest.cc27 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()
Drtp_packet_parser_unittest.cc38 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()
Drtcp_common_unittest.cc126 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()
Dsender_report_unittest.cc90 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(1350000), in TEST_F()
125 original.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(5); in TEST_F()
Drtcp_common.cc139 const int64_t jitter_ticks = jitter / RtpTimeDelta::FromTicks(1); in AppendFields()
235 RtpTimeDelta::FromTicks(ConsumeField<uint32_t>(&buffer)); in ParseOne()
Dframe_collector_unittest.cc24 RtpTimeTicks() + RtpTimeDelta::FromTicks(90000);
51 part.rtp_timestamp = kSomeRtpTimestamp + (RtpTimeDelta::FromTicks(200) * i); in TEST()
Dsender_unittest.cc107 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()
Drtp_packetizer_unittest.cc49 frame.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(987); in CreateFrame()
Drtp_time.h146 static constexpr RtpTimeDelta FromTicks(int64_t ticks) { in FromTicks() function
Dcompound_rtcp_parser_unittest.cc100 EXPECT_EQ(RtpTimeDelta::FromTicks(170), block.jitter); in TEST_F()
Dcompound_rtcp_builder_unittest.cc87 original.jitter = RtpTimeDelta::FromTicks(4); in TEST_F()
/external/openscreen/cast/standalone_sender/
Dstreaming_opus_encoder.cc137 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/
DDurationTest.cs47 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/
DDurationTest.cs47 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/
DDurationPartial.cs94 return TimeSpan.FromTicks(ticks); in ToTimeSpan()