Home
last modified time | relevance | path

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

12345678910>>...184

/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/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/src/trace_processor/importers/ftrace/
Dftrace_parser.h41 void ParseGenericFtrace(int64_t timestamp,
46 int64_t timestamp,
51 void ParseSchedSwitch(uint32_t cpu, int64_t timestamp, protozero::ConstBytes);
52 void ParseSchedWakeup(int64_t timestamp, protozero::ConstBytes);
53 void ParseSchedWaking(int64_t timestamp, protozero::ConstBytes);
54 void ParseSchedProcessFree(int64_t timestamp, protozero::ConstBytes);
55 void ParseCpuFreq(int64_t timestamp, protozero::ConstBytes);
56 void ParseGpuFreq(int64_t timestamp, protozero::ConstBytes);
57 void ParseCpuIdle(int64_t timestamp, protozero::ConstBytes);
58 void ParsePrint(int64_t timestamp, uint32_t pid, protozero::ConstBytes);
[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/python/google-api-python-client/docs/dyn/
Dtoolresults_v1beta3firstparty.projects.histories.executions.html126 …"creationTime": { # A Timestamp represents a point in time independent of any time zone or calenda…
134 # Example 1: Compute Timestamp from POSIX `time()`.
136 # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
138 # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
142 … # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
144 # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
148 …poch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) …
150 # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
154 …# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis …
158 # Example 5: Compute Timestamp from current time in Python.
[all …]
Dtagmanager_v2.accounts.containers.environments.html113 …"authorizationTimestamp": { # A Timestamp represents a point in time independent of any time zone …
121 # Example 1: Compute Timestamp from POSIX `time()`.
123 # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
125 # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
129 … # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
131 # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
135 …poch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) …
137 # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
141 …# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis …
145 # Example 5: Compute Timestamp from current time in Python.
[all …]
Dtoolresults_v1beta3.projects.histories.executions.steps.testCases.html155 …"creationTime": { # A Timestamp represents a point in time independent of any time zone or local c…
165 # Example 1: Compute Timestamp from POSIX `time()`.
167 # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
169 # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
173 … # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
175 # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
179 …poch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) …
181 # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
185 …# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis …
189 # Example 5: Compute Timestamp from current time in Python.
[all …]
Dtoolresults_v1beta3.projects.histories.executions.steps.perfSampleSeries.samples.html79 … in order to split up a large request payload - duplicates and existing timestamp entries will be …
82 …llowed 5000 - The response token indicates the last returned PerfSample timestamp - When the resul…
89 … in order to split up a large request payload - duplicates and existing timestamp entries will be …
105Timestamp represents a point in time independent of any time zone or local calendar, encoded as a …
113 # Example 1: Compute Timestamp from POSIX `time()`.
115 # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
117 # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
121 … # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
123 # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
127 …poch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) …
[all …]
Dtoolresults_v1beta3firstparty.projects.histories.executions.steps.perfSampleSeries.samples.html79 … in order to split up a large request payload - duplicates and existing timestamp entries will be …
82 …llowed 5000 - The response token indicates the last returned PerfSample timestamp - When the resul…
89 … in order to split up a large request payload - duplicates and existing timestamp entries will be …
105Timestamp represents a point in time independent of any time zone or calendar, represented as seco…
109 # Example 1: Compute Timestamp from POSIX `time()`.
111 # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
113 # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
117 … # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
119 # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
123 …poch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) …
[all …]
Dtoolresults_v1beta3.projects.histories.executions.html148 …s related to Timestamp in that the difference between two Timestamp values is a Duration and it ca…
154 # Timestamp start = ...; Timestamp end = ...; Duration duration = ...;
160 # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
162 # Timestamp start = ...; Duration duration = ...; Timestamp end = ...;
192 …"creationTime": { # A Timestamp represents a point in time independent of any time zone or local c…
204 # Example 1: Compute Timestamp from POSIX `time()`.
206 # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
208 # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
212 … # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);
214 # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
[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/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/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/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/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/golang-protobuf/ptypes/timestamp/
Dtimestamp.pb.go2 // source: google/protobuf/timestamp.proto
4 package timestamp package
23 // A Timestamp represents a point in time independent of any time zone or local
39 // Example 1: Compute Timestamp from POSIX `time()`.
41 // Timestamp timestamp;
42 // timestamp.set_seconds(time(NULL));
43 // timestamp.set_nanos(0);
45 // Example 2: Compute Timestamp from POSIX `gettimeofday()`.
50 // Timestamp timestamp;
51 // timestamp.set_seconds(tv.tv_sec);
[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/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/golang-protobuf/ptypes/
Dtimestamp.go34 // This file implements operations on google.protobuf.Timestamp.
41 tspb "github.com/golang/protobuf/ptypes/timestamp"
45 // Seconds field of the earliest valid Timestamp.
48 // Seconds field just after the latest valid Timestamp.
53 // validateTimestamp determines whether a Timestamp is valid.
54 // A valid timestamp represents a time in the range
58 // If the Timestamp is valid, validateTimestamp returns nil.
62 // Every valid Timestamp can be represented by a time.Time, but the converse is not true.
63 func validateTimestamp(ts *tspb.Timestamp) error { argument
65 return errors.New("timestamp: nil Timestamp")
[all …]

12345678910>>...184