Home
last modified time | relevance | path

Searched full:timestamp (Results 1 – 25 of 5534) sorted by relevance

12345678910>>...222

/external/opencensus-java/api/src/test/java/io/opencensus/common/
DTimestampTest.java27 /** Unit tests for {@link Timestamp}. */
34 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()
[all …]
/external/webrtc/api/units/
Dtimestamp_unittest.cc13 #include "api/units/timestamp.h"
20 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()
[all …]
/external/webrtc/system_wrappers/source/
Drtp_to_ntp_estimator_unittest.cc30 uint32_t timestamp = 0; in TEST() local
32 estimator.UpdateMeasurements(ntp_sec, ntp_frac, timestamp, &new_sr)); in TEST()
34 timestamp -= kTimestampTicksPerMs; in TEST()
36 // but there will be huge rtp timestamp jump, e.g. old_timestamp = 0, in TEST()
39 estimator.UpdateMeasurements(ntp_sec, ntp_frac, timestamp, &new_sr)); in TEST()
47 uint32_t timestamp = 0xFFFFFFFE; in TEST() local
49 estimator.UpdateMeasurements(ntp_sec, ntp_frac, timestamp, &new_sr)); in TEST()
51 timestamp += 2 * kTimestampTicksPerMs; in TEST()
53 estimator.UpdateMeasurements(ntp_sec, ntp_frac, timestamp, &new_sr)); in TEST()
55 timestamp -= kTimestampTicksPerMs; in TEST()
[all …]
/external/perfetto/src/trace_processor/importers/ftrace/
Dftrace_parser.h40 void ParseGenericFtrace(int64_t timestamp,
45 int64_t timestamp,
50 void ParseSchedSwitch(uint32_t cpu, int64_t timestamp, protozero::ConstBytes);
51 void ParseSchedWakeup(int64_t timestamp, uint32_t pid, protozero::ConstBytes);
52 void ParseSchedWaking(int64_t timestamp, uint32_t pid, protozero::ConstBytes);
53 void ParseSchedProcessFree(int64_t timestamp, protozero::ConstBytes);
54 void ParseCpuFreq(int64_t timestamp, protozero::ConstBytes);
55 void ParseGpuFreq(int64_t timestamp, protozero::ConstBytes);
56 void ParseCpuIdle(int64_t timestamp, protozero::ConstBytes);
57 void ParsePrint(int64_t timestamp, uint32_t pid, protozero::ConstBytes);
[all …]
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimestamps.java41 import com.google.protobuf.Timestamp;
51 * Utilities to help create/manipulate {@code protobuf/timestamp.proto}. All operations throw an
52 * {@link IllegalArgumentException} if the input(s) are not {@linkplain #isValid(Timestamp) valid}.
56 // Timestamp for "0001-01-01T00:00:00Z"
59 // Timestamp for "9999-12-31T23:59:59Z"
68 /** A constant holding the minimum valid {@link Timestamp}, {@code 0001-01-01T00:00:00Z}. */
69 public static final Timestamp MIN_VALUE =
70 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MIN).setNanos(0).build();
73 * A constant holding the maximum valid {@link Timestamp}, {@code 9999-12-31T23:59:59.999999999Z}.
75 public static final Timestamp MAX_VALUE =
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java20 import java.sql.Timestamp;
29 * JUnit Testcase for the java.sql.Timestamp class
34 static class MockTimestamp extends Timestamp {
137 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testTimestamplong()
138 // The Timestamp should have been created in testTimestamplong()
141 Timestamp mockTimestamp = new MockTimestamp(TIME_TEST1); in testTimestamplong()
174 Timestamp theTimestamp = new Timestamp(element[0], element[1], in testTimestampintintintintintintint()
176 assertNotNull("Timestamp not generated: ", theTimestamp); in testTimestampintintintintintintint()
183 new Timestamp(element[0], element[1], element[2], element[3], in testTimestampintintintintintintint()
200 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testSetTimelong()
[all …]
/external/perfetto/test/trace_processor/network/
Dnetperf_metric.textproto5 timestamp: 99999900
13 timestamp: 99999920
20 timestamp: 99999930
28 timestamp: 99999940
35 timestamp: 99999945
42 timestamp: 100000000
50 timestamp: 100000000
57 timestamp: 100000000
65 timestamp: 100090000
77 timestamp: 100100000
[all …]
/external/tcpdump/tests/
Dntp-v.out5 Reference Timestamp: 0.000000000
6 Originator Timestamp: 0.000000000
7 Receive Timestamp: 0.000000000
8 Transmit Timestamp: 2763234513.007738396 (1987-07-25T21:08:33Z)
9 Originator - Receive Timestamp: 0.000000000
10 Originator - Transmit Timestamp: 2763234513.007738396 (1987-07-25T21:08:33Z)
17 Reference Timestamp: 0.000000000
18 Originator Timestamp: 2763234513.007738396 (1987-07-25T21:08:33Z)
19 Receive Timestamp: 3706870329.516015118 (2017-06-19T14:12:09Z)
20 Transmit Timestamp: 3706870329.516074047 (2017-06-19T14:12:09Z)
[all …]
/external/protobuf/src/google/protobuf/
Dtimestamp.pb.cc2 // source: google/protobuf/timestamp.proto
4 #include <google/protobuf/timestamp.pb.h>
21 ::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)},
60 "\n\037google/protobuf/timestamp.proto\022\017googl"
[all …]
Dtimestamp.pb.h2 // source: google/protobuf/timestamp.proto
58 class Timestamp; variable
63 …<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_…
69 class PROTOBUF_EXPORT Timestamp :
70 …_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
72 Timestamp();
73 virtual ~Timestamp();
75 Timestamp(const Timestamp& from);
76 Timestamp(Timestamp&& from) noexcept in Timestamp() function
77 : Timestamp() { in Timestamp()
[all …]
/external/webrtc/api/transport/
Dnetwork_types.h21 #include "api/units/timestamp.h"
48 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();
[all …]
/external/protobuf/src/google/protobuf/util/
Dtime_util.h31 // Defines utilities for the Timestamp and Duration well known types.
53 #include <google/protobuf/timestamp.pb.h>
61 // Utility functions for Timestamp and Duration.
63 typedef google::protobuf::Timestamp Timestamp; typedef
67 // The min/max Timestamp/Duration values we support.
76 // Converts Timestamp to/from RFC 3339 date string format.
81 // Note that Timestamp can only represent time from
83 // a Timestamp outside of this range is undefined behavior.
91 static std::string ToString(const Timestamp& timestamp);
92 static bool FromString(const std::string& value, Timestamp* timestamp);
[all …]
/external/webrtc/modules/video_coding/codecs/vp8/
Ddefault_temporal_layers_unittest.cc151 uint32_t timestamp = 0; variable
156 Vp8FrameConfig tl_config = tl.NextFrameConfig(0, timestamp);
160 tl.OnEncodeDone(0, timestamp, kDefaultBytesPerFrame, is_keyframe,
169 timestamp += 3000;
208 unsigned int timestamp = 0; variable
212 Vp8FrameConfig tl_config = tl.NextFrameConfig(0, timestamp);
216 tl.OnEncodeDone(0, timestamp, kDefaultBytesPerFrame, is_keyframe,
225 timestamp += 3000;
253 unsigned int timestamp = 0; in TEST_F() local
257 Vp8FrameConfig tl_config = tl.NextFrameConfig(0, timestamp); in TEST_F()
[all …]
/external/webrtc/modules/congestion_controller/goog_cc/
Dsend_side_bandwidth_estimation.h26 #include "api/units/timestamp.h"
39 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);
[all …]
/external/golang-protobuf/types/known/timestamppb/
Dtimestamp_test.go33 want *tspb.Timestamp
35 {in: time.Time{}, want: &tspb.Timestamp{Seconds: -62135596800, Nanos: 0}},
36 {in: time.Unix(0, 0), want: &tspb.Timestamp{Seconds: 0, Nanos: 0}},
37 {in: time.Unix(math.MinInt64, 0), want: &tspb.Timestamp{Seconds: math.MinInt64, Nanos: 0}},
38 …{in: time.Unix(math.MaxInt64, 1e9-1), want: &tspb.Timestamp{Seconds: math.MaxInt64, Nanos: 1e9 - 1…
39 …{in: time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC), want: &tspb.Timestamp{Seconds: minTimestamp, Nanos:…
40 …{in: time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC).Add(-time.Nanosecond), want: &tspb.Timestamp{Seconds…
41 …{in: time.Date(9999, 12, 31, 23, 59, 59, 1e9-1, time.UTC), want: &tspb.Timestamp{Seconds: maxTimes…
42 …12, 31, 23, 59, 59, 1e9-1, time.UTC).Add(+time.Nanosecond), want: &tspb.Timestamp{Seconds: maxTime…
43 …{in: time.Date(1961, 1, 26, 0, 0, 0, 0, time.UTC), want: &tspb.Timestamp{Seconds: -281836800, Nano…
[all …]
Dtimestamp.pb.go32 // source: google/protobuf/timestamp.proto
34 // Package timestamppb contains generated types for google/protobuf/timestamp.proto.
36 // The Timestamp message represents a timestamp,
42 // The AsTime method can be used to convert a Timestamp message to a
55 // invalid Timestamps per the documented limitations in timestamp.proto,
65 // The timestamppb.New function can be used to construct a Timestamp message
69 // ... // make use of ts as a *timestamppb.Timestamp
71 // In order to construct a Timestamp representing the current time, use Now:
74 // ... // make use of ts as a *timestamppb.Timestamp
86 // A Timestamp represents a point in time independent of any time zone or local
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DTimedValueQueue.java43 * Associates the specified value with the specified timestamp. All new values should have a
44 * greater timestamp than the previously added values. Otherwise all values are removed before
47 public synchronized void add(long timestamp, V value) { in add() argument
48 clearBufferOnTimeDiscontinuity(timestamp); in add()
50 addUnchecked(timestamp, value); in add()
66 * Returns the value with the greatest timestamp which is less than or equal to the given
67 * timestamp. Removes all older values and the returned one from the buffer.
69 * @param timestamp The timestamp value.
70 * @return The value with the greatest timestamp which is less than or equal to the given
71 * timestamp or null if there is no such value.
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java34 * <p>Use {@code Tracing.getClock().now()} to get the current timestamp since epoch
41 public abstract class Timestamp implements Comparable<Timestamp> { class
43 Timestamp() {} in Timestamp() method in Timestamp
46 * Creates a new timestamp from given seconds and nanoseconds.
53 * @return new {@code Timestamp} with specified fields.
57 public static Timestamp create(long seconds, int nanos) { in create()
77 * Creates a new timestamp from the given milliseconds.
79 * @param epochMilli the timestamp represented in milliseconds since epoch.
80 * @return new {@code Timestamp} with specified fields.
82 * represented by {@code Timestamp}.
[all …]
/external/rust/crates/env_logger/src/fmt/humantime/
Dextern_impl.rs15 /// Get a [`Timestamp`] for the current date and time in UTC.
19 /// Include the current timestamp with the log record:
27 /// let ts = buf.timestamp();
33 /// [`Timestamp`]: struct.Timestamp.html
34 pub fn timestamp(&self) -> Timestamp { in timestamp() argument
35 Timestamp { in timestamp()
41 /// Get a [`Timestamp`] for the current date and time in UTC with full
43 pub fn timestamp_seconds(&self) -> Timestamp { in timestamp_seconds() argument
44 Timestamp { in timestamp_seconds()
50 /// Get a [`Timestamp`] for the current date and time in UTC with
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/
DTimedValueQueue.java43 * Associates the specified value with the specified timestamp. All new values should have a
44 * greater timestamp than the previously added values. Otherwise all values are removed before
47 public synchronized void add(long timestamp, V value) { in add() argument
48 clearBufferOnTimeDiscontinuity(timestamp); in add()
50 addUnchecked(timestamp, value); in add()
72 * Returns the value with the greatest timestamp which is less than or equal to the given
73 * timestamp. Removes all older values and the returned one from the buffer.
75 * @param timestamp The timestamp value.
76 * @return The value with the greatest timestamp which is less than or equal to the given
77 * timestamp or null if there is no such value.
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DTimedValueQueue.java43 * Associates the specified value with the specified timestamp. All new values should have a
44 * greater timestamp than the previously added values. Otherwise all values are removed before
47 public synchronized void add(long timestamp, V value) { in add() argument
48 clearBufferOnTimeDiscontinuity(timestamp); in add()
50 addUnchecked(timestamp, value); in add()
72 * Returns the value with the greatest timestamp which is less than or equal to the given
73 * timestamp. Removes all older values and the returned one from the buffer.
75 * @param timestamp The timestamp value.
76 * @return The value with the greatest timestamp which is less than or equal to the given
77 * timestamp or null if there is no such value.
[all …]
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DTimestampPartial.cs39 public partial class Timestamp : ICustomDiagnosticMessage, IComparable<Timestamp> class
55 …/// Returns the difference between one <see cref="Timestamp"/> and another, as a <see cref="Durati…
57 /// <param name="lhs">The timestamp to subtract from. Must not be null.</param>
58 /// <param name="rhs">The timestamp to subtract. Must not be null.</param>
60 public static Duration operator -(Timestamp lhs, Timestamp rhs) in operator -()
71 …/// Adds a <see cref="Duration"/> to a <see cref="Timestamp"/>, to obtain another <c>Timestamp</c>.
73 /// <param name="lhs">The timestamp to add the duration to. Must not be null.</param>
75 /// <returns>The result of adding the duration to the timestamp.</returns>
76 public static Timestamp operator +(Timestamp lhs, Duration rhs) in operator +()
87 … Subtracts a <see cref="Duration"/> from a <see cref="Timestamp"/>, to obtain another <c>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/webrtc/test/network/
Dcross_traffic.h21 #include "api/units/timestamp.h"
45 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_) =
[all …]
/external/webrtc/modules/audio_coding/neteq/
Dtimestamp_scaler_unittest.cc36 // Test both sides of the timestamp wrap-around. in TEST()
37 for (uint32_t timestamp = 0xFFFFFFFF - 5; timestamp != 5; ++timestamp) { in TEST() local
38 // Scale to internal timestamp. in TEST()
39 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType)); in TEST()
41 EXPECT_EQ(timestamp, scaler.ToExternal(timestamp)); in TEST()
58 // Test both sides of the timestamp wrap-around. in TEST()
63 for (uint32_t timestamp = start_timestamp; timestamp != 5 * kStep; in TEST() local
64 timestamp += kStep) { in TEST()
65 // Scale to internal timestamp. in TEST()
66 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType)); in TEST()
[all …]

12345678910>>...222