Home
last modified time | relevance | path

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

12345678910>>...398

/external/webrtc/logging/rtc_event_log/events/
Dlogged_rtp_rtcp.h19 #include "api/units/timestamp.h"
34 LoggedRtpPacket(Timestamp timestamp, in LoggedRtpPacket()
38 : timestamp(timestamp), in LoggedRtpPacket()
43 int64_t log_time_us() const { return timestamp.us(); } in log_time_us()
44 int64_t log_time_ms() const { return timestamp.ms(); } in log_time_ms()
45 Timestamp log_time() const { return timestamp; } in log_time()
47 Timestamp timestamp; member
55 LoggedRtpPacketIncoming(Timestamp timestamp, in LoggedRtpPacketIncoming()
59 : rtp(timestamp, header, header_length, total_length) {} in LoggedRtpPacketIncoming()
60 int64_t log_time_us() const { return rtp.timestamp.us(); } in log_time_us()
[all …]
/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/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/
DTimestampTest.java35 /** Unit tests for {@link com.google.cloud.Timestamp}. */
50 assertThat(Timestamp.MIN_VALUE.getSeconds()).isEqualTo(-62135596800L); in minValue()
51 assertThat(Timestamp.MIN_VALUE.getNanos()).isEqualTo(0); in minValue()
59 java.sql.Timestamp expectedMin = new java.sql.Timestamp(calendar.getTimeInMillis()); in maxValue()
62 assertThat(Timestamp.MAX_VALUE.getSeconds()).isEqualTo(calendar.getTimeInMillis() / 1000L); in maxValue()
63 assertThat(Timestamp.MAX_VALUE.getNanos()).isEqualTo(999999999); in maxValue()
68 Timestamp timestamp = Timestamp.ofTimeMicroseconds(TEST_TIME_MICROSECONDS); in ofMicroseconds() local
69 assertThat(timestamp.getSeconds()).isEqualTo(TEST_TIME_MICROSECONDS / 1000000L); in ofMicroseconds()
70 assertThat(timestamp.getNanos()).isEqualTo(TEST_TIME_MICROSECONDS % 1000000L * 1000); in ofMicroseconds()
75 Timestamp timestamp = Timestamp.of(TEST_DATE); in ofDate() local
[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/android_onboarding/java/com/android/onboarding/nodes/
DOnboardingEvent.kt13 override val timestamp: Instant constant
54 * At [timestamp], a target [android.app.Activity] with id [nodeId] has been launched from
72 override val timestamp: Instant = Instant.now(), constant in com.android.onboarding.nodes.OnboardingEvent.ActivityNodeExecutedDirectly
79 timestamp: Instant = Instant.now(),
86 timestamp = timestamp,
98 .setTimestamp(timestamp.toEpochMilli()) in serialize()
107 timestamp: Instant?, in fromProto()
114 timestamp = timestamp ?: Instant.ofEpochMilli(proto.timestamp), in fromProto()
121 * At [timestamp], an [android.app.Activity] with id [nodeId] is using the [nodeName] contract to in fromProto()
131 override val timestamp: Instant = Instant.now(), in fromProto() constant in com.android.onboarding.nodes.OnboardingEvent.ActivityNodeValidating
[all …]
/external/perfetto/test/trace_processor/diff_tests/metrics/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/cronet/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimestampsTest.java39 import com.google.protobuf.Timestamp;
67 private static final Timestamp TIMESTAMP = timestamp(1409130915, 111000000); field in TimestampsTest
68 private static final Timestamp ZERO_TIMESTAMP = timestamp(0, 0);
69 private static final Timestamp ONE_OF_TIMESTAMP = timestamp(-1, 999000000);
71 private static final Timestamp INVALID_MAX =
72 Timestamp.newBuilder().setSeconds(Long.MAX_VALUE).setNanos(Integer.MAX_VALUE).build();
73 private static final Timestamp INVALID_MIN =
74 Timestamp.newBuilder().setSeconds(Long.MIN_VALUE).setNanos(Integer.MIN_VALUE).build();
109 Timestamp start = Timestamps.parse("0001-01-01T00:00:00Z"); in testTimestampStringFormat()
110 Timestamp end = Timestamps.parse("9999-12-31T23:59:59.999999999Z"); in testTimestampStringFormat()
[all …]
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimestampsTest.java39 import com.google.protobuf.Timestamp;
67 private static final Timestamp TIMESTAMP = timestamp(1409130915, 111000000); field in TimestampsTest
68 private static final Timestamp ZERO_TIMESTAMP = timestamp(0, 0);
69 private static final Timestamp ONE_OF_TIMESTAMP = timestamp(-1, 999000000);
71 private static final Timestamp INVALID_MAX =
72 Timestamp.newBuilder().setSeconds(Long.MAX_VALUE).setNanos(Integer.MAX_VALUE).build();
73 private static final Timestamp INVALID_MIN =
74 Timestamp.newBuilder().setSeconds(Long.MIN_VALUE).setNanos(Integer.MIN_VALUE).build();
109 Timestamp start = Timestamps.parse("0001-01-01T00:00:00Z"); in testTimestampStringFormat()
110 Timestamp end = Timestamps.parse("9999-12-31T23:59:59.999999999Z"); in testTimestampStringFormat()
[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 {
153 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testTimestamplong()
154 // The Timestamp should have been created in testTimestamplong()
157 Timestamp mockTimestamp = new MockTimestamp(TIME_TEST1); in testTimestamplong()
190 Timestamp theTimestamp = new Timestamp(element[0], element[1], in testTimestampintintintintintintint()
192 assertNotNull("Timestamp not generated: ", theTimestamp); in testTimestampintintintintintintint()
199 new Timestamp(element[0], element[1], element[2], element[3], in testTimestampintintintintintintint()
216 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testSetTimelong()
[all …]
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimestamps.java43 import com.google.protobuf.Timestamp;
54 * Utilities to help create/manipulate {@code protobuf/timestamp.proto}. All operations throw an
55 * {@link IllegalArgumentException} if the input(s) are not {@linkplain #isValid(Timestamp) valid}.
59 // Timestamp for "0001-01-01T00:00:00Z"
62 // Timestamp for "9999-12-31T23:59:59Z"
71 /** A constant holding the minimum valid {@link Timestamp}, {@code 0001-01-01T00:00:00Z}. */
72 public static final Timestamp MIN_VALUE =
73 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MIN).setNanos(0).build();
76 * A constant holding the maximum valid {@link Timestamp}, {@code 9999-12-31T23:59:59.999999999Z}.
78 public static final Timestamp MAX_VALUE =
[all …]
/external/cronet/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimestamps.java43 import com.google.protobuf.Timestamp;
54 * Utilities to help create/manipulate {@code protobuf/timestamp.proto}. All operations throw an
55 * {@link IllegalArgumentException} if the input(s) are not {@linkplain #isValid(Timestamp) valid}.
59 // Timestamp for "0001-01-01T00:00:00Z"
62 // Timestamp for "9999-12-31T23:59:59Z"
71 /** A constant holding the minimum valid {@link Timestamp}, {@code 0001-01-01T00:00:00Z}. */
72 public static final Timestamp MIN_VALUE =
73 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MIN).setNanos(0).build();
76 * A constant holding the maximum valid {@link Timestamp}, {@code 9999-12-31T23:59:59.999999999Z}.
78 public static final Timestamp MAX_VALUE =
[all …]
/external/perfetto/src/trace_processor/importers/ftrace/
Dftrace_parser.h63 void ParseGenericFtrace(int64_t timestamp,
68 int64_t timestamp,
73 void ParseSchedSwitch(uint32_t cpu, int64_t timestamp, protozero::ConstBytes);
74 void ParseSchedWaking(int64_t timestamp, uint32_t pid, protozero::ConstBytes);
75 void ParseSchedProcessFree(int64_t timestamp, protozero::ConstBytes);
76 void ParseCpuFreq(int64_t timestamp, protozero::ConstBytes);
77 void ParseCpuFreqThrottle(int64_t timestamp, protozero::ConstBytes);
78 void ParseGpuFreq(int64_t timestamp, protozero::ConstBytes);
79 void ParseKgslGpuFreq(int64_t timestamp, protozero::ConstBytes);
80 void ParseCpuIdle(int64_t timestamp, protozero::ConstBytes);
[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/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/
DTimestamp.java35 * Represents a timestamp with nanosecond precision. Timestamps cover the range [0001-01-01,
38 * <p>{@code Timestamp} instances are immutable.
40 public final class Timestamp implements Comparable<Timestamp>, Serializable { class
44 /** The smallest legal timestamp ("0001-01-01T00:00:00Z"). */
45 public static final Timestamp MIN_VALUE = new Timestamp(-62135596800L, 0);
47 /** The largest legal timestamp ("9999-12-31T23:59:59Z"). */
48 public static final Timestamp MAX_VALUE =
49 new Timestamp(253402300799L, (int) TimeUnit.SECONDS.toNanos(1) - 1);
65 private Timestamp(long seconds, int nanos) { in Timestamp() method in Timestamp
77 * @throws IllegalArgumentException if the timestamp is outside the representable range
[all …]
/external/webrtc/api/transport/
Dnetwork_types.h21 #include "api/units/timestamp.h"
47 Timestamp at_time = Timestamp::PlusInfinity();
61 Timestamp at_time = Timestamp::PlusInfinity();
72 Timestamp at_time = Timestamp::PlusInfinity();
80 Timestamp at_time = Timestamp::PlusInfinity();
104 Timestamp send_time = Timestamp::PlusInfinity();
123 Timestamp send_time = Timestamp::MinusInfinity();
124 Timestamp receive_time = Timestamp::PlusInfinity();
131 Timestamp receive_time = Timestamp::PlusInfinity();
136 Timestamp receive_time = Timestamp::PlusInfinity();
[all …]
/external/cronet/third_party/protobuf/src/google/protobuf/util/
Dtime_util.h31 // Defines utilities for the Timestamp and Duration well known types.
54 #include <google/protobuf/timestamp.pb.h>
63 // Utility functions for Timestamp and Duration.
65 typedef google::protobuf::Timestamp Timestamp; typedef
69 // The min/max Timestamp/Duration values we support.
78 // Converts Timestamp to/from RFC 3339 date string format.
83 // Note that Timestamp can only represent time from
85 // a Timestamp outside of this range is undefined behavior.
93 static std::string ToString(const Timestamp& timestamp);
94 static bool FromString(const std::string& value, Timestamp* timestamp);
[all …]
/external/protobuf/src/google/protobuf/util/
Dtime_util.h31 // Defines utilities for the Timestamp and Duration well known types.
54 #include <google/protobuf/timestamp.pb.h>
63 // Utility functions for Timestamp and Duration.
65 typedef google::protobuf::Timestamp Timestamp; typedef
69 // The min/max Timestamp/Duration values we support.
78 // Converts Timestamp to/from RFC 3339 date string format.
83 // Note that Timestamp can only represent time from
85 // a Timestamp outside of this range is undefined behavior.
93 static std::string ToString(const Timestamp& timestamp);
94 static bool FromString(const std::string& value, Timestamp* timestamp);
[all …]
/external/cronet/third_party/protobuf/src/google/protobuf/
Dtimestamp.pb.cc2 // source: google/protobuf/timestamp.proto
4 #include <google/protobuf/timestamp.pb.h>
24 PROTOBUF_CONSTEXPR Timestamp::Timestamp( in Timestamp() function in Timestamp
33 Timestamp _instance;
44 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Timestamp, _internal_metadata_),
49 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Timestamp, seconds_),
50 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Timestamp, nanos_),
53 { 0, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::Timestamp)},
61 "\n\037google/protobuf/timestamp.proto\022\017googl"
71 "google/protobuf/timestamp.proto",
[all …]
Dtimestamp.pb.h2 // source: google/protobuf/timestamp.proto
48 class Timestamp; variable
53 …PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE…
59 class PROTOBUF_EXPORT Timestamp final :
60 …_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
62 inline Timestamp() : Timestamp(nullptr) {} in Timestamp() function
63 ~Timestamp() override;
64 explicit PROTOBUF_CONSTEXPR Timestamp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66 Timestamp(const Timestamp& from);
67 Timestamp(Timestamp&& from) noexcept in Timestamp() function
[all …]
/external/rust/crates/protobuf/src/well_known_types_util/
Dtimestamp.rs4 use crate::well_known_types::timestamp::Timestamp;
7 impl Timestamp { implementation
8 /// Unix epoch value of timestamp.
9 pub const UNIX_EPOCH: Timestamp = Timestamp {
15 /// Return current time as `Timestamp`.
16 pub fn now() -> Timestamp { in now()
17 Timestamp::from(SystemTime::now()) in now()
21 /// Convert from [`Timestamp`].
25 /// This function panics if given `SystemTime` is outside of `Timestamp` range.
26 impl From<SystemTime> for Timestamp { implementation
[all …]
/external/protobuf/src/google/protobuf/
Dtimestamp.pb.h2 // source: google/protobuf/timestamp.proto
48 class Timestamp; variable
53 …PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE…
59 class PROTOBUF_EXPORT Timestamp final :
60 …_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
62 inline Timestamp() : Timestamp(nullptr) {} in Timestamp() function
63 ~Timestamp() override;
64 explicit PROTOBUF_CONSTEXPR Timestamp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66 Timestamp(const Timestamp& from);
67 Timestamp(Timestamp&& from) noexcept in Timestamp() function
[all …]
Dtimestamp.pb.cc2 // source: google/protobuf/timestamp.proto
4 #include <google/protobuf/timestamp.pb.h>
24 PROTOBUF_CONSTEXPR Timestamp::Timestamp( in Timestamp() function in Timestamp
34 Timestamp _instance;
45 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Timestamp, _internal_metadata_),
50 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Timestamp, _impl_.seconds_),
51 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Timestamp, _impl_.nanos_),
54 { 0, -1, -1, sizeof(::PROTOBUF_NAMESPACE_ID::Timestamp)},
62 "\n\037google/protobuf/timestamp.proto\022\017googl"
72 "google/protobuf/timestamp.proto",
[all …]
/external/grpc-grpc/test/core/transport/chttp2/
Dwrite_size_policy_test.cc31 auto timestamp = [&time_cache](int i) { in TEST() local
32 time_cache.TestOnlySetNow(Timestamp::ProcessEpoch() + in TEST()
37 timestamp(10); in TEST()
39 timestamp(20); in TEST()
42 timestamp(30); in TEST()
44 timestamp(40); in TEST()
47 timestamp(50); in TEST()
49 timestamp(60); in TEST()
52 timestamp(70); in TEST()
54 timestamp(80); in TEST()
[all …]
/external/grpc-grpc/src/core/lib/gprpp/
Dtime.h37 uint64_t now = grpc_core::Timestamp::FromTimespecRoundDown( \
49 uint64_t now = grpc_core::Timestamp::FromTimespecRoundDown( \
87 // Timestamp represents a discrete point in time.
88 class Timestamp {
94 virtual Timestamp Now() = 0;
119 constexpr Timestamp() = default;
120 // Constructs a Timestamp from a gpr_timespec.
121 static Timestamp FromTimespecRoundDown(gpr_timespec t);
122 static Timestamp FromTimespecRoundUp(gpr_timespec t);
124 // Construct a Timestamp from a gpr_cycle_counter.
[all …]
/external/webrtc/modules/remote_bitrate_estimator/
Dpacket_arrival_map_test.cc30 map.AddPacket(42, Timestamp::Millis(10)); in TEST()
46 map.AddPacket(42, Timestamp::Zero()); in TEST()
47 map.AddPacket(45, Timestamp::Millis(11)); in TEST()
58 EXPECT_EQ(map.get(42), Timestamp::Zero()); in TEST()
59 EXPECT_LT(map.get(43), Timestamp::Zero()); in TEST()
60 EXPECT_LT(map.get(44), Timestamp::Zero()); in TEST()
61 EXPECT_EQ(map.get(45), Timestamp::Millis(11)); in TEST()
71 map.AddPacket(42, Timestamp::Zero()); in TEST()
72 map.AddPacket(45, Timestamp::Millis(11)); in TEST()
77 EXPECT_EQ(packet.arrival_time, Timestamp::Zero()); in TEST()
[all …]

12345678910>>...398