Home
last modified time | relevance | path

Searched refs:Seconds (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 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 …]
DTimestampTest.cs45 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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DDuration.cs124 public long Seconds { property in Google.Protobuf.WellKnownTypes.Duration
163 if (Seconds != other.Seconds) return false; in Equals()
171 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode()
183 if (Seconds != 0L) { in WriteTo()
185 output.WriteInt64(Seconds); in WriteTo()
196 if (Seconds != 0L) { in CalculateSize()
197 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); in CalculateSize()
210 if (other.Seconds != 0L) { in MergeFrom()
211 Seconds = other.Seconds; in MergeFrom()
227 Seconds = input.ReadInt64(); in MergeFrom()
DTimestamp.cs137 public long Seconds { property in Google.Protobuf.WellKnownTypes.Timestamp
174 if (Seconds != other.Seconds) return false; in Equals()
182 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode()
194 if (Seconds != 0L) { in WriteTo()
196 output.WriteInt64(Seconds); in WriteTo()
207 if (Seconds != 0L) { in CalculateSize()
208 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); in CalculateSize()
221 if (other.Seconds != 0L) { in MergeFrom()
222 Seconds = other.Seconds; in MergeFrom()
238 Seconds = input.ReadInt64(); in MergeFrom()
DTimestampPartial.cs66 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()
DDurationPartial.cs89 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()
/frameworks/rs/script_api/include/
Drs_time.rsh30 * rs_time_t: Seconds since January 1, 1970
49 …int tm_sec; // Seconds after the minute. This ranges from 0 to 59, but possibly up to 60 for leap …
89 * rsTime: Seconds since January 1, 1970
99 * Returns: Seconds since the Epoch, -1 if there's an error.
/frameworks/rs/script_api/
Drs_time.spec27 summary: Seconds since January 1, 1970
79 summary: Seconds since January 1, 1970
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonParser.cs842 timestamp += new Duration { Nanos = nanosToAdd, Seconds = secondsToAdd }; in MergeTimestamp()
845 …if (timestamp.Seconds < Timestamp.UnixSecondsAtBclMinValue || timestamp.Seconds > Timestamp.UnixSe… in MergeTimestamp()
850 …sage.Descriptor.Fields[Timestamp.SecondsFieldNumber].Accessor.SetValue(message, timestamp.Seconds); in MergeTimestamp()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs356 var timestamp = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in TimestampStandalone_NonNormalized()
393 … var json = JsonFormatter.Default.Format(new Duration { Seconds = seconds, Nanos = nanoseconds }); in DurationStandalone()
402 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in DurationStandalone_NonNormalized()