Home
last modified time | relevance | path

Searched refs:Timestamp (Results 1 – 25 of 625) sorted by relevance

12345678910>>...25

/external/opencensus-java/api/src/test/java/io/opencensus/common/
DTimestampTest.java34 assertThat(Timestamp.create(24, 42).getSeconds()).isEqualTo(24); in timestampCreate()
35 assertThat(Timestamp.create(24, 42).getNanos()).isEqualTo(42); in timestampCreate()
36 assertThat(Timestamp.create(-24, 42).getSeconds()).isEqualTo(-24); in timestampCreate()
37 assertThat(Timestamp.create(-24, 42).getNanos()).isEqualTo(42); in timestampCreate()
38 assertThat(Timestamp.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in timestampCreate()
39 assertThat(Timestamp.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate()
40 assertThat(Timestamp.create(-315576000000L, 999999999).getSeconds()).isEqualTo(-315576000000L); in timestampCreate()
41 assertThat(Timestamp.create(-315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate()
48 Timestamp.create(-315576000001L, 0); in create_SecondsTooLow()
55 Timestamp.create(315576000001L, 0); in create_SecondsTooHigh()
[all …]
/external/webrtc/api/units/
Dtimestamp_unittest.cc20 constexpr Timestamp kTimestampInf = Timestamp::PlusInfinity(); in TEST()
24 constexpr Timestamp kTimestampSeconds = Timestamp::Seconds(kValue); in TEST()
25 constexpr Timestamp kTimestampMs = Timestamp::Millis(kValue); in TEST()
26 constexpr Timestamp kTimestampUs = Timestamp::Micros(kValue); in TEST()
41 EXPECT_EQ(Timestamp::Millis(kValue).ms(), kValue); in TEST()
42 EXPECT_EQ(Timestamp::Micros(kValue).us(), kValue); in TEST()
43 EXPECT_EQ(Timestamp::Seconds(kValue).seconds(), kValue); in TEST()
48 EXPECT_EQ(Timestamp::Micros(kValue).seconds(), kValue / 1000000); in TEST()
49 EXPECT_EQ(Timestamp::Millis(kValue).seconds(), kValue / 1000); in TEST()
50 EXPECT_EQ(Timestamp::Micros(kValue).ms(), kValue / 1000); in TEST()
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java20 import java.sql.Timestamp;
34 static class MockTimestamp extends Timestamp {
137 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testTimestamplong()
141 Timestamp mockTimestamp = new MockTimestamp(TIME_TEST1); in testTimestamplong()
174 Timestamp theTimestamp = new Timestamp(element[0], element[1], in testTimestampintintintintintintint()
183 new Timestamp(element[0], element[1], element[2], element[3], in testTimestampintintintintintintint()
200 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testSetTimelong()
219 Timestamp theTimestamp = new Timestamp(element); in testGetTime()
231 Timestamp theTimestamp = new Timestamp(TIME_ARRAY[i]); in testGetYear()
243 Timestamp theTimestamp = new Timestamp(TIME_ARRAY[i]); in testGetMonth()
[all …]
/external/webrtc/api/transport/
Dnetwork_types.h48 Timestamp at_time = Timestamp::PlusInfinity();
62 Timestamp at_time = Timestamp::PlusInfinity();
73 Timestamp at_time = Timestamp::PlusInfinity();
81 Timestamp at_time = Timestamp::PlusInfinity();
105 Timestamp send_time = Timestamp::PlusInfinity();
124 Timestamp send_time = Timestamp::MinusInfinity();
125 Timestamp receive_time = Timestamp::PlusInfinity();
132 Timestamp receive_time = Timestamp::PlusInfinity();
137 Timestamp receive_time = Timestamp::PlusInfinity();
143 Timestamp receive_time = Timestamp::PlusInfinity();
[all …]
/external/webrtc/modules/congestion_controller/goog_cc/
Dsend_side_bandwidth_estimation.h39 void UpdateDelayBasedEstimate(Timestamp at_time,
44 Timestamp at_time);
45 void OnRttBackoff(DataRate backoff_rate, Timestamp at_time);
51 Timestamp last_link_capacity_update_ = Timestamp::MinusInfinity();
59 void UpdatePropagationRtt(Timestamp at_time, TimeDelta propagation_rtt);
60 TimeDelta CorrectedRtt(Timestamp at_time) const;
68 Timestamp last_propagation_rtt_update_;
70 Timestamp last_packet_sent_;
87 void UpdateEstimate(Timestamp at_time);
89 void UpdatePropagationRtt(Timestamp at_time, TimeDelta propagation_rtt);
[all …]
Dsend_side_bandwidth_estimation_unittest.cc43 bwe.SetSendBitrate(DataRate::BitsPerSec(200000), Timestamp::Millis(now_ms)); in TestProbing()
49 Timestamp::Millis(now_ms)); in TestProbing()
50 bwe.UpdateRtt(TimeDelta::Millis(50), Timestamp::Millis(now_ms)); in TestProbing()
54 bwe.UpdateDelayBasedEstimate(Timestamp::Millis(now_ms), in TestProbing()
57 bwe.UpdateReceiverEstimate(Timestamp::Millis(now_ms), in TestProbing()
60 bwe.UpdateEstimate(Timestamp::Millis(now_ms)); in TestProbing()
66 bwe.UpdateDelayBasedEstimate(Timestamp::Millis(now_ms), in TestProbing()
69 bwe.UpdateReceiverEstimate(Timestamp::Millis(now_ms), in TestProbing()
72 bwe.UpdateEstimate(Timestamp::Millis(now_ms)); in TestProbing()
98 Timestamp::Millis(now_ms)); in TEST()
[all …]
/external/protobuf/src/google/protobuf/util/
Dtime_util.h63 typedef google::protobuf::Timestamp Timestamp; typedef
91 static std::string ToString(const Timestamp& timestamp);
92 static bool FromString(const std::string& value, Timestamp* timestamp);
107 static Timestamp GetCurrentTime();
109 static Timestamp GetEpoch();
135 static Timestamp NanosecondsToTimestamp(int64 nanos);
136 static Timestamp MicrosecondsToTimestamp(int64 micros);
137 static Timestamp MillisecondsToTimestamp(int64 millis);
138 static Timestamp SecondsToTimestamp(int64 seconds);
144 static int64 TimestampToNanoseconds(const Timestamp& timestamp);
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime()
46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); in FromAndToDateTime()
47 AssertRoundtrip(new Timestamp(), new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)); in FromAndToDateTime()
48 …AssertRoundtrip(new Timestamp { Nanos = 1000000}, new DateTime(1970, 1, 1, 0, 0, 0, 1, DateTimeKin… in FromAndToDateTime()
49 …AssertRoundtrip(new Timestamp { Seconds = -1, Nanos = 999000000 }, new DateTime(1969, 12, 31, 23, … in FromAndToDateTime()
50 …AssertRoundtrip(new Timestamp { Seconds = 3600 }, new DateTime(1970, 1, 1, 1, 0, 0, DateTimeKind.U… in FromAndToDateTime()
51 …AssertRoundtrip(new Timestamp { Seconds = -3600 }, new DateTime(1969, 12, 31, 23, 0, 0, DateTimeKi… in FromAndToDateTime()
57 … var t1 = new Timestamp { Seconds = 1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation()
60 … var t2 = new Timestamp { Seconds = -1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation()
65 [TestCase(Timestamp.UnixSecondsAtBclMinValue - 1, Timestamp.MaxNanos)]
[all …]
/external/protobuf/src/google/protobuf/
Dtimestamp.pb.cc21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Timestamp> _instance;
29 new (ptr) PROTOBUF_NAMESPACE_ID::Timestamp(); in InitDefaultsscc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto()
32 PROTOBUF_NAMESPACE_ID::Timestamp::InitAsDefaultInstance(); in InitDefaultsscc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto()
44 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Timestamp, _internal_metadata_),
48 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Timestamp, seconds_),
49 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Timestamp, nanos_),
52 { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Timestamp)},
87 void Timestamp::InitAsDefaultInstance() { in InitAsDefaultInstance()
89 class Timestamp::_Internal {
93 Timestamp::Timestamp() in Timestamp() function in Timestamp
[all …]
Dtimestamp.pb.h58 class Timestamp; variable
63 …<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_…
69 class PROTOBUF_EXPORT Timestamp :
72 Timestamp();
73 virtual ~Timestamp();
75 Timestamp(const Timestamp& from);
76 Timestamp(Timestamp&& from) noexcept in Timestamp() function
77 : Timestamp() { in Timestamp()
81 inline Timestamp& operator=(const Timestamp& from) {
85 inline Timestamp& operator=(Timestamp&& from) noexcept {
[all …]
/external/angle/src/common/
DPackedEGLEnums_autogen.cpp314 Timestamp FromEGLenum<Timestamp>(EGLenum from) in FromEGLenum()
319 return Timestamp::RequestedPresentTime; in FromEGLenum()
321 return Timestamp::RenderingCompleteTime; in FromEGLenum()
323 return Timestamp::CompositionLatchTime; in FromEGLenum()
325 return Timestamp::FirstCompositionStartTime; in FromEGLenum()
327 return Timestamp::LastCompositionStartTime; in FromEGLenum()
329 return Timestamp::FirstCompositionGPUFinishedTime; in FromEGLenum()
331 return Timestamp::DisplayPresentTime; in FromEGLenum()
333 return Timestamp::DequeueReadyTime; in FromEGLenum()
335 return Timestamp::ReadsDoneTime; in FromEGLenum()
[all …]
/external/webrtc/test/network/
Dcross_traffic.h45 void Process(Timestamp at_time);
55 Timestamp last_process_time_ RTC_GUARDED_BY(sequence_checker_) =
56 Timestamp::MinusInfinity();
57 Timestamp last_update_time_ RTC_GUARDED_BY(sequence_checker_) =
58 Timestamp::MinusInfinity();
59 Timestamp last_send_time_ RTC_GUARDED_BY(sequence_checker_) =
60 Timestamp::MinusInfinity();
79 void Process(Timestamp at_time);
88 Timestamp last_update_time_ RTC_GUARDED_BY(sequence_checker_) =
89 Timestamp::MinusInfinity();
[all …]
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DTimestampPartial.cs39 public partial class Timestamp : ICustomDiagnosticMessage, IComparable<Timestamp> class
60 public static Duration operator -(Timestamp lhs, Timestamp rhs) in operator -()
76 public static Timestamp operator +(Timestamp lhs, Duration rhs) in operator +()
92 public static Timestamp operator -(Timestamp lhs, Duration rhs) in operator -()
146 public static Timestamp FromDateTime(DateTime dateTime) in FromDateTime()
155 …return new Timestamp { Seconds = secondsSinceBclEpoch - BclSecondsAtUnixEpoch, Nanos = nanoseconds… in FromDateTime()
166 public static Timestamp FromDateTimeOffset(DateTimeOffset dateTimeOffset) in FromDateTimeOffset()
173 internal static Timestamp Normalize(long seconds, int nanoseconds) in Normalize()
184 return new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in Normalize()
233 public int CompareTo(Timestamp other) in CompareTo()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime()
46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); in FromAndToDateTime()
47 AssertRoundtrip(new Timestamp(), new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)); in FromAndToDateTime()
48 …AssertRoundtrip(new Timestamp { Nanos = 1000000}, new DateTime(1970, 1, 1, 0, 0, 0, 1, DateTimeKin… in FromAndToDateTime()
49 …AssertRoundtrip(new Timestamp { Seconds = -1, Nanos = 999000000 }, new DateTime(1969, 12, 31, 23, … in FromAndToDateTime()
50 …AssertRoundtrip(new Timestamp { Seconds = 3600 }, new DateTime(1970, 1, 1, 1, 0, 0, DateTimeKind.U… in FromAndToDateTime()
51 …AssertRoundtrip(new Timestamp { Seconds = -3600 }, new DateTime(1969, 12, 31, 23, 0, 0, DateTimeKi… in FromAndToDateTime()
57 … var t1 = new Timestamp { Seconds = 1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation()
60 … var t2 = new Timestamp { Seconds = -1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation()
65 [TestCase(Timestamp.UnixSecondsAtBclMinValue - 1, Timestamp.MaxNanos)]
[all …]
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimestamps.java41 import com.google.protobuf.Timestamp;
69 public static final Timestamp MIN_VALUE =
70 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MIN).setNanos(0).build();
75 public static final Timestamp MAX_VALUE =
76 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MAX).setNanos(999999999).build();
81 public static final Timestamp EPOCH = Timestamp.newBuilder().setSeconds(0).setNanos(0).build();
103 private static final Comparator<Timestamp> COMPARATOR =
104 new Comparator<Timestamp>() {
106 public int compare(Timestamp t1, Timestamp t2) {
119 public static Comparator<Timestamp> comparator() { in comparator()
[all …]
/external/webrtc/test/pc/e2e/analyzer/video/
Ddefault_video_quality_analyzer.h45 void AddEvent(Timestamp event_time);
52 Timestamp event_first_time_ = Timestamp::MinusInfinity();
53 Timestamp event_last_time_ = Timestamp::MinusInfinity();
240 FrameStats(Timestamp captured_time) : captured_time(captured_time) {} in FrameStats()
243 Timestamp captured_time;
244 Timestamp pre_encode_time = Timestamp::MinusInfinity();
245 Timestamp encoded_time = Timestamp::MinusInfinity();
247 Timestamp received_time = Timestamp::MinusInfinity();
248 Timestamp decode_start_time = Timestamp::MinusInfinity();
249 Timestamp decode_end_time = Timestamp::MinusInfinity();
[all …]
/external/golang-protobuf/ptypes/timestamp/
Dtimestamp.pb.go107 type Timestamp struct { struct
122 func (m *Timestamp) Reset() { *m = Timestamp{} } argument
123 func (m *Timestamp) String() string { return proto.CompactTextString(m) } argument
124 func (*Timestamp) ProtoMessage() {} argument
125 func (*Timestamp) Descriptor() ([]byte, []int) { argument
129 func (*Timestamp) XXX_WellKnownType() string { return "Timestamp" } argument
131 func (m *Timestamp) XXX_Unmarshal(b []byte) error { argument
134 func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { argument
137 func (m *Timestamp) XXX_Merge(src proto.Message) { argument
140 func (m *Timestamp) XXX_Size() int { argument
[all …]
/external/rust/crates/env_logger/src/fmt/humantime/
Dextern_impl.rs34 pub fn timestamp(&self) -> Timestamp { in timestamp() argument
35 Timestamp { in timestamp()
43 pub fn timestamp_seconds(&self) -> Timestamp { in timestamp_seconds() argument
44 Timestamp { in timestamp_seconds()
52 pub fn timestamp_millis(&self) -> Timestamp { in timestamp_millis() argument
53 Timestamp { in timestamp_millis()
61 pub fn timestamp_micros(&self) -> Timestamp { in timestamp_micros() argument
62 Timestamp { in timestamp_micros()
70 pub fn timestamp_nanos(&self) -> Timestamp { in timestamp_nanos() argument
71 Timestamp { in timestamp_nanos()
[all …]
/external/webrtc/modules/remote_bitrate_estimator/
Daimd_rate_control.h49 bool TimeToReduceFurther(Timestamp at_time,
52 bool InitialTimeToReduceFurther(Timestamp at_time) const;
56 DataRate Update(const RateControlInput* input, Timestamp at_time);
58 void SetEstimate(DataRate bitrate, Timestamp at_time);
76 void ChangeBitrate(const RateControlInput& input, Timestamp at_time);
79 DataRate MultiplicativeRateIncrease(Timestamp at_time,
80 Timestamp last_ms,
82 DataRate AdditiveRateIncrease(Timestamp at_time, Timestamp last_time) const;
83 void UpdateChangePeriod(Timestamp at_time);
84 void ChangeState(const RateControlInput& input, Timestamp at_time);
[all …]
/external/webrtc/modules/congestion_controller/rtp/
Dtransport_feedback_adapter.h32 Timestamp creation_time = Timestamp::MinusInfinity();
37 Timestamp receive_time = Timestamp::PlusInfinity();
63 Timestamp creation_time);
69 Timestamp feedback_receive_time);
80 Timestamp feedback_receive_time);
83 Timestamp last_send_time_ = Timestamp::MinusInfinity();
84 Timestamp last_untracked_send_time_ = Timestamp::MinusInfinity();
93 Timestamp current_offset_ = Timestamp::MinusInfinity();
/external/golang-protobuf/ptypes/
Dtimestamp_test.go44 ts *tspb.Timestamp
49 {&tspb.Timestamp{Seconds: 0, Nanos: 0}, true, utcDate(1970, 1, 1)},
51 {&tspb.Timestamp{Seconds: math.MinInt64, Nanos: math.MinInt32}, false,
54 {&tspb.Timestamp{Seconds: math.MinInt64, Nanos: 0}, false, time.Unix(math.MinInt64, 0).UTC()},
56 {&tspb.Timestamp{Seconds: minValidSeconds, Nanos: 0}, true, utcDate(1, 1, 1)},
59 {&tspb.Timestamp{Seconds: math.MaxInt64, Nanos: math.MaxInt32}, false,
62 {&tspb.Timestamp{Seconds: math.MaxInt64, Nanos: 1e9 - 1}, false,
65 {&tspb.Timestamp{Seconds: maxValidSeconds - 1, Nanos: 1e9 - 1}, true,
68 {&tspb.Timestamp{Seconds: maxValidSeconds, Nanos: 0}, false, time.Unix(maxValidSeconds, 0).UTC()},
70 {&tspb.Timestamp{Seconds: -281836800, Nanos: 0}, true, utcDate(1961, 1, 26)},
[all …]
/external/rust/crates/protobuf/src/well_known_types/
Dtimestamp.rs24 pub struct Timestamp { struct
35 impl<'a> ::std::default::Default for &'a Timestamp { argument
36 fn default() -> &'a Timestamp { in default()
37 <Timestamp as crate::Message>::default_instance() in default()
41 impl Timestamp { impl
42 pub fn new() -> Timestamp { in new()
77 impl crate::Message for Timestamp { implementation
160 fn new() -> Timestamp { in new()
161 Timestamp::new() in new()
170 |m: &Timestamp| { &m.seconds }, in descriptor_static()
[all …]
/external/webrtc/modules/pacing/
Dround_robin_packet_queue.h36 RoundRobinPacketQueue(Timestamp start_time,
41 Timestamp enqueue_time,
53 absl::optional<Timestamp> LeadingAudioPacketEnqueueTime() const;
55 Timestamp OldestEnqueueTime() const;
57 void UpdateQueueTime(Timestamp now);
58 void SetPauseState(bool paused, Timestamp now);
66 Timestamp enqueue_time,
68 std::multiset<Timestamp>::iterator enqueue_time_it,
78 Timestamp EnqueueTime() const;
83 std::multiset<Timestamp>::iterator EnqueueTimeIterator() const;
[all …]
Dbitrate_prober.h66 void CreateProbeCluster(DataRate bitrate, Timestamp now, int cluster_id);
72 Timestamp NextProbeTime(Timestamp now) const;
75 absl::optional<PacedPacketInfo> CurrentCluster(Timestamp now);
84 void ProbeSent(Timestamp now, DataSize size);
107 Timestamp created_at = Timestamp::MinusInfinity();
108 Timestamp started_at = Timestamp::MinusInfinity();
112 Timestamp CalculateNextProbeTime(const ProbeCluster& cluster) const;
122 Timestamp next_probe_time_;
/external/webrtc/api/test/network_emulation/
Dnetwork_emulation_interfaces.h31 Timestamp arrival_time,
50 Timestamp arrival_time;
77 Timestamp first_packet_received_time = Timestamp::PlusInfinity();
78 Timestamp last_packet_received_time = Timestamp::MinusInfinity();
94 Timestamp first_packet_sent_time = Timestamp::PlusInfinity();
95 Timestamp last_packet_sent_time = Timestamp::MinusInfinity();
147 Timestamp first_packet_received_time = Timestamp::PlusInfinity(); in FirstReceivedPacketSize()
161 Timestamp FirstPacketReceivedTime() const { in FirstPacketReceivedTime()
162 Timestamp first_packet_received_time = Timestamp::PlusInfinity(); in FirstPacketReceivedTime()
173 Timestamp LastPacketReceivedTime() const { in LastPacketReceivedTime()
[all …]

12345678910>>...25