/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan() 44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan() 58 Assert.AreEqual(new Duration { Seconds = 2, Nanos = 100000000 }, in Addition() 59 … new Duration { Seconds = 1, Nanos = 600000000 } + new Duration { Nanos = 500000000 }); in Addition() 60 Assert.AreEqual(new Duration { Seconds = -2, Nanos = -100000000 }, in Addition() 61 … new Duration { Seconds = -1, Nanos = -600000000 } + new Duration { Nanos = -500000000 }); in Addition() 62 Assert.AreEqual(new Duration { Seconds = 1, Nanos = 100000000 }, in Addition() 63 … new Duration { Seconds = 1, Nanos = 600000000 } + new Duration { Nanos = -500000000 }); in Addition() 66 Assert.AreEqual(new Duration { Seconds = 1 }, in Addition() 67 … new Duration { Seconds = 1, Nanos = -500000000 } + new Duration { Nanos = 500000000 }); in Addition() [all …]
|
D | TimestampTest.cs | 45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime() 46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); 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() 71 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_OutOfRange() 83 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_ValidBoundaries() 97 Timestamp t1 = new Timestamp { Seconds = 10000, Nanos = 5000 }; in Arithmetic() [all …]
|
/external/golang-protobuf/ptypes/ |
D | duration_test.go | 55 {&durpb.Duration{Seconds: 0, Nanos: 0}, true, true, 0}, 57 {&durpb.Duration{Seconds: 100, Nanos: 0}, true, true, 100 * time.Second}, 58 {&durpb.Duration{Seconds: -100, Nanos: 0}, true, true, -100 * time.Second}, 59 {&durpb.Duration{Seconds: 100, Nanos: 987}, true, true, 100*time.Second + 987}, 60 {&durpb.Duration{Seconds: -100, Nanos: -987}, true, true, -(100*time.Second + 987)}, 62 …{&durpb.Duration{Seconds: maxGoSeconds, Nanos: int32(math.MaxInt64 - 1e9*maxGoSeconds)}, true, tru… 64 …{&durpb.Duration{Seconds: minGoSeconds, Nanos: int32(math.MinInt64 - 1e9*minGoSeconds)}, true, tru… 66 {&durpb.Duration{Seconds: -100, Nanos: 987}, false, false, 0}, 67 {&durpb.Duration{Seconds: 100, Nanos: -987}, false, false, 0}, 68 {&durpb.Duration{Seconds: math.MinInt64, Nanos: 0}, false, false, 0}, [all …]
|
D | timestamp_test.go | 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)}, 72 {&tspb.Timestamp{Seconds: 1296000000, Nanos: 0}, true, utcDate(2011, 1, 26)}, [all …]
|
D | duration.go | 60 if d.Seconds < minSeconds || d.Seconds > maxSeconds { 67 if (d.Seconds < 0 && d.Nanos > 0) || (d.Seconds > 0 && d.Nanos < 0) { 80 d := time.Duration(p.Seconds) * time.Second 81 if int64(d/time.Second) != p.Seconds { 99 Seconds: secs,
|
D | timestamp.go | 67 if ts.Seconds < minValidSeconds { 70 if ts.Seconds >= maxValidSeconds { 97 t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC() 115 Seconds: t.Unix(),
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | Timestamp.cs | 132 public long Seconds { property in Google.Protobuf.WellKnownTypes.Timestamp 166 if (Seconds != other.Seconds) return false; in Equals() 173 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode() 183 if (Seconds != 0L) { in WriteTo() 185 output.WriteInt64(Seconds); in WriteTo() 195 if (Seconds != 0L) { in CalculateSize() 196 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); in CalculateSize() 208 if (other.Seconds != 0L) { in MergeFrom() 209 Seconds = other.Seconds; in MergeFrom() 224 Seconds = input.ReadInt64(); in MergeFrom()
|
D | Duration.cs | 119 public long Seconds { property in Google.Protobuf.WellKnownTypes.Duration 155 if (Seconds != other.Seconds) return false; in Equals() 162 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode() 172 if (Seconds != 0L) { in WriteTo() 174 output.WriteInt64(Seconds); in WriteTo() 184 if (Seconds != 0L) { in CalculateSize() 185 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); in CalculateSize() 197 if (other.Seconds != 0L) { in MergeFrom() 198 Seconds = other.Seconds; in MergeFrom() 213 Seconds = input.ReadInt64(); in MergeFrom()
|
D | TimestampPartial.cs | 66 return Duration.Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos); in operator -() 82 return Normalize(lhs.Seconds + rhs.Seconds, lhs.Nanos + rhs.Nanos); in operator +() 98 return Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos); in operator -() 116 if (!IsNormalized(Seconds, Nanos)) in ToDateTime() 120 return UnixEpoch.AddSeconds(Seconds).AddTicks(Nanos / Duration.NanosecondsPerTick); in ToDateTime() 155 …return new Timestamp { Seconds = secondsSinceBclEpoch - BclSecondsAtUnixEpoch, Nanos = nanoseconds… in FromDateTime() 184 return new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in Normalize() 238 return ToJson(Seconds, Nanos, true); in ToDiagnosticString()
|
D | DurationPartial.cs | 89 if (!IsNormalized(Seconds, Nanos)) in ToTimeSpan() 93 long ticks = Seconds * TimeSpan.TicksPerSecond + Nanos / NanosecondsPerTick; in ToTimeSpan() 110 return new Duration { Seconds = seconds, Nanos = nanos }; in FromTimeSpan() 124 return Normalize(-value.Seconds, -value.Nanos); in operator -() 140 return Normalize(lhs.Seconds + rhs.Seconds, lhs.Nanos + rhs.Nanos); in operator +() 156 return Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos); in operator -() 182 return new Duration { Seconds = seconds, Nanos = nanoseconds }; in Normalize() 241 return ToJson(Seconds, Nanos, true); in ToDiagnosticString()
|
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/ |
D | duration.go | 60 if d.Seconds < minSeconds || d.Seconds > maxSeconds { 67 if (d.Seconds < 0 && d.Nanos > 0) || (d.Seconds > 0 && d.Nanos < 0) { 80 d := time.Duration(p.Seconds) * time.Second 81 if int64(d/time.Second) != p.Seconds { 99 Seconds: secs,
|
D | timestamp.go | 67 if ts.Seconds < minValidSeconds { 70 if ts.Seconds >= maxValidSeconds { 97 t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC() 117 Seconds: seconds,
|
/external/golang-protobuf/jsonpb/ |
D | jsonpb_test.go | 476 {"Duration", marshaler, &pb.KnownTypes{Dur: &durpb.Duration{Seconds: 3}}, `{"dur":"3s"}`}, 477 …{"Duration", marshaler, &pb.KnownTypes{Dur: &durpb.Duration{Seconds: 3, Nanos: 1e6}}, `{"dur":"3.0… 478 …{"Duration beyond float64 precision", marshaler, &pb.KnownTypes{Dur: &durpb.Duration{Seconds: 1000… 479 …{"negative Duration", marshaler, &pb.KnownTypes{Dur: &durpb.Duration{Seconds: -123, Nanos: -456}},… 493 …{"Timestamp", marshaler, &pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 14e8, Nanos: 21e6}}, `{"ts":"… 494 …{"Timestamp", marshaler, &pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 14e8, Nanos: 0}}, `{"ts":"201… 552 {&pb.KnownTypes{Dur: &durpb.Duration{Seconds: 1, Nanos: 0}}, false}, 553 {&pb.KnownTypes{Dur: &durpb.Duration{Seconds: -1, Nanos: 0}}, false}, 554 {&pb.KnownTypes{Dur: &durpb.Duration{Seconds: 1, Nanos: -1}}, true}, 555 {&pb.KnownTypes{Dur: &durpb.Duration{Seconds: -1, Nanos: 1}}, true}, [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneAliasTest.java | 53 Zone.Seconds seconds = new Zone.Seconds(); in TestAliases() 97 Zone.Seconds diffDate = new Zone.Seconds(); in TestDifferences() 187 Zone.Seconds diffDate = new Zone.Seconds(); 233 public static class Seconds { class in TimeZoneAliasTest.Zone 307 public int findOffsetOrdering(Zone other, Seconds dateDiffFound) { in findOffsetOrdering() 347 private Seconds diffDateReturn = new Seconds();
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneAliasTest.java | 50 Zone.Seconds seconds = new Zone.Seconds(); in TestAliases() 94 Zone.Seconds diffDate = new Zone.Seconds(); in TestDifferences() 184 Zone.Seconds diffDate = new Zone.Seconds(); 230 public static class Seconds { class in TimeZoneAliasTest.Zone 304 public int findOffsetOrdering(Zone other, Seconds dateDiffFound) { in findOffsetOrdering() 344 private Seconds diffDateReturn = new Seconds();
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerUtil.cpp | 98 void SetTimer(int Seconds) { in SetTimer() argument 99 struct itimerval T {{Seconds, 0}, {Seconds, 0}}; in SetTimer() 248 void SleepSeconds(int Seconds) { in SleepSeconds() argument 249 std::this_thread::sleep_for(std::chrono::seconds(Seconds)); in SleepSeconds()
|
D | FuzzerInternal.h | 106 void SetTimer(int Seconds); 131 void SleepSeconds(int Seconds); 395 size_t Seconds = secondsSinceProcessStartUp(); in execPerSec() local 396 return Seconds ? TotalNumberOfRuns / Seconds : 0; in execPerSec()
|
D | FuzzerLoop.cpp | 230 size_t Seconds = in AlarmCallback() local 232 if (Seconds == 0) in AlarmCallback() 235 Printf("AlarmCallback %zd\n", Seconds); in AlarmCallback() 236 if (Seconds >= (size_t)Options.UnitTimeoutSec) { in AlarmCallback() 237 Printf("ALARM: working on the last Unit for %zd seconds\n", Seconds); in AlarmCallback() 242 Seconds); in AlarmCallback()
|
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/timestamp/ |
D | timestamp.pb.go | 103 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` member 141 return m.Seconds
|
/external/golang-protobuf/ptypes/duration/ |
D | duration.pb.go | 87 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` member 129 return m.Seconds
|
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/duration/ |
D | duration.pb.go | 85 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` member 125 return m.Seconds
|
/external/golang-protobuf/ptypes/timestamp/ |
D | timestamp.pb.go | 107 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` member 147 return m.Seconds
|
/external/tensorflow/tensorflow/core/util/proto/ |
D | proto_utils.h | 66 proto.set_seconds(absl::IDivDuration(duration, absl::Seconds(1), &duration)); in ToDurationProto() 74 return absl::Seconds(proto.seconds()) + absl::Nanoseconds(proto.nanos()); in FromDurationProto()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Timer.cpp | 121 using Seconds = std::chrono::duration<double, std::ratio<1>>; in getCurrentTime() typedef 134 Result.WallTime = Seconds(now.time_since_epoch()).count(); in getCurrentTime() 135 Result.UserTime = Seconds(user).count(); in getCurrentTime() 136 Result.SystemTime = Seconds(sys).count(); in getCurrentTime()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | Timer.cpp | 115 using Seconds = std::chrono::duration<double, std::ratio<1>>; in getCurrentTime() typedef 128 Result.WallTime = Seconds(now.time_since_epoch()).count(); in getCurrentTime() 129 Result.UserTime = Seconds(user).count(); in getCurrentTime() 130 Result.SystemTime = Seconds(sys).count(); in getCurrentTime()
|