/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | TimestampTest.java | 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() 55 Timestamp.create(315576000001L, 0); in create_SecondsTooHigh() [all …]
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TimestampTest.java | 20 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/protobuf/src/google/protobuf/ |
D | timestamp.pb.cc | 40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, seconds_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, nanos_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 46 Timestamp::default_instance_, in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 51 sizeof(Timestamp), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, _internal_metadata_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, _is_default_instance_)); in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 67 Timestamp_descriptor_, &Timestamp::default_instance()); in protobuf_RegisterTypes() 73 delete Timestamp::default_instance_; in protobuf_ShutdownFile_google_2fprotobuf_2ftimestamp_2eproto() 92 Timestamp::default_instance_ = new Timestamp(); in protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto() 93 Timestamp::default_instance_->InitAsDefaultInstance(); in protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto() [all …]
|
D | timestamp.pb.h | 40 class Timestamp; variable 44 class LIBPROTOBUF_EXPORT Timestamp : public ::google::protobuf::Message { 46 Timestamp(); 47 virtual ~Timestamp(); 49 Timestamp(const Timestamp& from); 51 inline Timestamp& operator=(const Timestamp& from) { 61 static const Timestamp& default_instance(); 63 void UnsafeArenaSwap(Timestamp* other); 64 void Swap(Timestamp* other); 68 inline Timestamp* New() const { return New(NULL); } in New() [all …]
|
/external/protobuf/src/google/protobuf/util/ |
D | time_util.h | 51 typedef google::protobuf::Timestamp Timestamp; typedef 79 static string ToString(const Timestamp& timestamp); 80 static bool FromString(const string& value, Timestamp* timestamp); 95 static Timestamp GetCurrentTime(); 97 static Timestamp GetEpoch(); 123 static Timestamp NanosecondsToTimestamp(int64 nanos); 124 static Timestamp MicrosecondsToTimestamp(int64 micros); 125 static Timestamp MillisecondsToTimestamp(int64 millis); 126 static Timestamp SecondsToTimestamp(int64 seconds); 132 static int64 TimestampToNanoseconds(const Timestamp& timestamp); [all …]
|
D | time_util.cc | 44 using google::protobuf::Timestamp; 62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() 75 Timestamp result; in CreateNormalized() 145 string TimeUtil::ToString(const Timestamp& timestamp) { in ToString() 149 bool TimeUtil::FromString(const string& value, Timestamp* timestamp) { in FromString() 155 *timestamp = CreateNormalized<Timestamp>(seconds, nanos); in FromString() 159 Timestamp TimeUtil::GetCurrentTime() { in GetCurrentTime() 163 return CreateNormalized<Timestamp>(seconds, nanos); in GetCurrentTime() 166 Timestamp TimeUtil::GetEpoch() { return Timestamp(); } in GetEpoch() 285 Timestamp TimeUtil::NanosecondsToTimestamp(int64 nanos) { in NanosecondsToTimestamp() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | TimestampTest.cs | 45 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/syzkaller/vendor/github.com/golang/protobuf/ptypes/timestamp/ |
D | timestamp.pb.go | 99 type Timestamp struct { struct 114 func (m *Timestamp) Reset() { *m = Timestamp{} } argument 115 func (m *Timestamp) String() string { return proto.CompactTextString(m) } argument 116 func (*Timestamp) ProtoMessage() {} argument 117 func (*Timestamp) Descriptor() ([]byte, []int) { argument 120 func (*Timestamp) XXX_WellKnownType() string { return "Timestamp" } argument 121 func (m *Timestamp) XXX_Unmarshal(b []byte) error { argument 124 func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { argument 127 func (dst *Timestamp) XXX_Merge(src proto.Message) { argument 130 func (m *Timestamp) XXX_Size() int { argument [all …]
|
/external/golang-protobuf/ptypes/timestamp/ |
D | timestamp.pb.go | 103 type Timestamp struct { struct 118 func (m *Timestamp) Reset() { *m = Timestamp{} } argument 119 func (m *Timestamp) String() string { return proto.CompactTextString(m) } argument 120 func (*Timestamp) ProtoMessage() {} argument 121 func (*Timestamp) Descriptor() ([]byte, []int) { argument 125 func (*Timestamp) XXX_WellKnownType() string { return "Timestamp" } argument 127 func (m *Timestamp) XXX_Unmarshal(b []byte) error { argument 130 func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { argument 133 func (m *Timestamp) XXX_Merge(src proto.Message) { argument 136 func (m *Timestamp) XXX_Size() int { argument [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | Timestamp.cs | 35 …typeof(global::Google.Protobuf.WellKnownTypes.Timestamp), global::Google.Protobuf.WellKnownTypes.T… in TimestampReflection() 97 public sealed partial class Timestamp : pb::IMessage<Timestamp> { class 98 …ivate static readonly pb::MessageParser<Timestamp> _parser = new pb::MessageParser<Timestamp>(() =… 99 public static pb::MessageParser<Timestamp> Parser { get { return _parser; } } 109 public Timestamp() { in Timestamp() method in Google.Protobuf.WellKnownTypes.Timestamp 115 public Timestamp(Timestamp other) : this() { in Timestamp() method in Google.Protobuf.WellKnownTypes.Timestamp 120 public Timestamp Clone() { in Clone() 121 return new Timestamp(this); in Clone() 156 return Equals(other as Timestamp); in Equals() 159 public bool Equals(Timestamp other) { in Equals() [all …]
|
D | TimestampPartial.cs | 39 public partial class Timestamp : ICustomDiagnosticMessage 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()
|
/external/golang-protobuf/ptypes/ |
D | timestamp_test.go | 44 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 …]
|
D | timestamp.go | 63 func validateTimestamp(ts *tspb.Timestamp) error { argument 90 func Timestamp(ts *tspb.Timestamp) (time.Time, error) { func 103 func TimestampNow() *tspb.Timestamp { 113 func TimestampProto(t time.Time) (*tspb.Timestamp, error) { 114 ts := &tspb.Timestamp{ 126 func TimestampString(ts *tspb.Timestamp) string { argument 127 t, err := Timestamp(ts)
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MutableViewData.java | 32 import io.opencensus.common.Timestamp; 63 @VisibleForTesting static final Timestamp ZERO_TIMESTAMP = Timestamp.create(0, 0); 78 static MutableViewData create(final View view, final Timestamp start) { in create() 92 abstract Metric toMetric(Timestamp now, State state); in toMetric() 96 TagContext context, double value, Timestamp timestamp, Map<String, String> attachments); in record() 99 abstract ViewData toViewData(Timestamp now, State state); in toViewData() 106 abstract void resumeStatsCollection(Timestamp now); in resumeStatsCollection() 110 private Timestamp start; 116 private CumulativeMutableViewData(View view, Timestamp start) { in CumulativeMutableViewData() 130 Metric toMetric(Timestamp now, State state) { in toMetric() [all …]
|
/external/opencensus-java/testing/src/test/java/io/opencensus/testing/common/ |
D | TestClockTest.java | 22 import io.opencensus.common.Timestamp; 34 TestClock clock = TestClock.create(Timestamp.create(1, 2)); in setAndGetTime() 35 assertThat(clock.now()).isEqualTo(Timestamp.create(1, 2)); in setAndGetTime() 36 clock.setTime(Timestamp.create(3, 4)); in setAndGetTime() 37 assertThat(clock.now()).isEqualTo(Timestamp.create(3, 4)); in setAndGetTime() 42 TestClock clock = TestClock.create(Timestamp.create(1, 500 * 1000 * 1000)); in advanceTime() 44 assertThat(clock.now()).isEqualTo(Timestamp.create(4, 100 * 1000 * 1000)); in advanceTime() 49 TestClock clock = TestClock.create(Timestamp.create(10, 1)); in measureElapsedTime() 51 clock.setTime(Timestamp.create(11, 5)); in measureElapsedTime() 58 TestClock.create(Timestamp.create(Long.MAX_VALUE / NUM_NANOS_PER_SECOND + 1, 0)); in catchOverflow() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
D | ViewDataTest.java | 27 import io.opencensus.common.Timestamp; 66 Timestamp start = Timestamp.fromMillis(1000); in testCumulativeViewData() 67 Timestamp end = Timestamp.fromMillis(2000); in testCumulativeViewData() 79 Timestamp end = Timestamp.fromMillis(2000); in testIntervalViewData() 99 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000))), in testViewDataEquals() 103 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000)))) in testViewDataEquals() 108 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(3000)))) in testViewDataEquals() 110 ViewData.create(intervalView, ENTRIES, IntervalData.create(Timestamp.fromMillis(2000))), in testViewDataEquals() 111 ViewData.create(intervalView, ENTRIES, IntervalData.create(Timestamp.fromMillis(2000)))) in testViewDataEquals() 116 IntervalData.create(Timestamp.fromMillis(2000)))) in testViewDataEquals() [all …]
|
/external/opencensus-java/testing/src/main/java/io/opencensus/testing/common/ |
D | TestClock.java | 22 import io.opencensus.common.Timestamp; 36 private Timestamp currentTime = validateNanos(Timestamp.create(1493419949, 223123456)); 58 public static TestClock create(Timestamp time) { in create() 70 public synchronized void setTime(Timestamp time) { in setTime() 85 public synchronized Timestamp now() { in now() 94 private static Timestamp validateNanos(Timestamp time) { in validateNanos() 100 private static long getNanos(Timestamp time) { in getNanos()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | ViewManagerImplTest.java | 26 import io.opencensus.common.Timestamp; 303 clock.setTime(Timestamp.create(1, 2)); in testRecordCumulative() 309 clock.setTime(Timestamp.create(3, 4)); in testRecordCumulative() 313 .isEqualTo(CumulativeData.create(Timestamp.create(1, 2), Timestamp.create(3, 4))); in testRecordCumulative() 420 clock.setTime(Timestamp.fromMillis(startTimeMillis)); in testRecordInterval() 432 clock.setTime(Timestamp.fromMillis(startTimeMillis + i * MILLIS_PER_SECOND)); in testRecordInterval() 436 clock.setTime(Timestamp.fromMillis(startTimeMillis + 8 * MILLIS_PER_SECOND)); in testRecordInterval() 445 clock.setTime(Timestamp.fromMillis(startTimeMillis + 11 * MILLIS_PER_SECOND)); in testRecordInterval() 452 clock.setTime(Timestamp.fromMillis(startTimeMillis + 12 * MILLIS_PER_SECOND)); in testRecordInterval() 456 clock.setTime(Timestamp.fromMillis(startTimeMillis + 17 * MILLIS_PER_SECOND)); in testRecordInterval() [all …]
|
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | Timestamp.java | 41 public abstract class Timestamp implements Comparable<Timestamp> { class 43 Timestamp() {} in Timestamp() method in Timestamp 57 public static Timestamp create(long seconds, int nanos) { in create() 85 public static Timestamp fromMillis(long epochMilli) { in fromMillis() 118 public Timestamp addNanos(long nanosToAdd) { in addNanos() 129 public Timestamp addDuration(Duration duration) { in addDuration() 141 public Duration subtractTimestamp(Timestamp timestamp) { in subtractTimestamp() 163 public int compareTo(Timestamp otherTimestamp) { in compareTo() 172 private Timestamp plus(long secondsToAdd, long nanosToAdd) { in plus() 185 private static Timestamp ofEpochSecond(long epochSecond, long nanoAdjustment) { in ofEpochSecond()
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 34 import com.google.protobuf.Timestamp; 47 Timestamp start = TimeUtil.parseTimestamp("0001-01-01T00:00:00Z"); in testTimestampStringFormat() 48 Timestamp end = TimeUtil.parseTimestamp("9999-12-31T23:59:59.999999999Z"); in testTimestampStringFormat() 56 Timestamp value = TimeUtil.parseTimestamp("1970-01-01T00:00:00Z"); in testTimestampStringFormat() 67 value = Timestamp.newBuilder().setNanos(10).build(); in testTimestampStringFormat() 69 value = Timestamp.newBuilder().setNanos(10000).build(); in testTimestampStringFormat() 71 value = Timestamp.newBuilder().setNanos(10000000).build(); in testTimestampStringFormat() 86 private final Timestamp[] values; 87 public ParseTimestampThread(String[] strings, Timestamp[] values) { in ParseTimestampThread() 96 Timestamp result; in run() [all …]
|
/external/tcpdump/tests/ |
D | lspping-fec-ldp-v.out | 13 Sender Timestamp: Receiver Timestamp: no timestamp 24 Sender Timestamp: Receiver Timestamp: 40 Sender Timestamp: Receiver Timestamp: no timestamp 51 Sender Timestamp: Receiver Timestamp: 60 Sender Timestamp: Receiver Timestamp: no timestamp 71 Sender Timestamp: Receiver Timestamp: 80 Sender Timestamp: Receiver Timestamp: no timestamp 91 Sender Timestamp: Receiver Timestamp: 100 Sender Timestamp: Receiver Timestamp: no timestamp 111 Sender Timestamp: Receiver Timestamp:
|
D | lspping-fec-rsvp-v.out | 9 Sender Timestamp: Receiver Timestamp: no timestamp 21 Sender Timestamp: Receiver Timestamp: 30 Sender Timestamp: Receiver Timestamp: no timestamp 42 Sender Timestamp: Receiver Timestamp: 51 Sender Timestamp: Receiver Timestamp: no timestamp 63 Sender Timestamp: Receiver Timestamp: 72 Sender Timestamp: Receiver Timestamp: no timestamp 84 Sender Timestamp: Receiver Timestamp: 93 Sender Timestamp: Receiver Timestamp: no timestamp 105 Sender Timestamp: Receiver Timestamp:
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/ |
D | BinaryHolder.h | 101 TimestampTy Timestamp; member 103 KeyTy() : Filename(), Timestamp() {} in KeyTy() 104 KeyTy(StringRef Filename, TimestampTy Timestamp) in KeyTy() 105 : Filename(Filename.str()), Timestamp(Timestamp) {} in KeyTy() 109 Error load(StringRef Filename, TimestampTy Timestamp, bool Verbose = false); 112 TimestampTy Timestamp, 122 getObjectEntry(StringRef Filename, TimestampTy Timestamp = TimestampTy()); 155 K.Timestamp.time_since_epoch().count())); 160 return LHS.Filename == RHS.Filename && LHS.Timestamp == RHS.Timestamp;
|
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/ |
D | timestamp.go | 63 func validateTimestamp(ts *tspb.Timestamp) error { argument 90 func Timestamp(ts *tspb.Timestamp) (time.Time, error) { func 103 func TimestampNow() *tspb.Timestamp { 113 func TimestampProto(t time.Time) (*tspb.Timestamp, error) { 116 ts := &tspb.Timestamp{ 128 func TimestampString(ts *tspb.Timestamp) string { argument 129 t, err := Timestamp(ts)
|
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/ |
D | SocketData.java | 96 com.google.protobuf.Timestamp.Builder subBuilder = null; in SocketData() 100 …lastLocalStreamCreatedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), exten… in SocketData() 109 com.google.protobuf.Timestamp.Builder subBuilder = null; in SocketData() 113 …lastRemoteStreamCreatedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), exte… in SocketData() 122 com.google.protobuf.Timestamp.Builder subBuilder = null; in SocketData() 126 …lastMessageSentTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionReg… in SocketData() 135 com.google.protobuf.Timestamp.Builder subBuilder = null; in SocketData() 139 …lastMessageReceivedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensio… in SocketData() 294 private com.google.protobuf.Timestamp lastLocalStreamCreatedTimestamp_; 314 public com.google.protobuf.Timestamp getLastLocalStreamCreatedTimestamp() { in getLastLocalStreamCreatedTimestamp() [all …]
|