Home
last modified time | relevance | path

Searched refs:Timestamp (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dtimestamp.pb.cc41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, seconds_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, nanos_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
47 Timestamp::default_instance_, in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
52 sizeof(Timestamp), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, _internal_metadata_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, _is_default_instance_)); in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
69 Timestamp_descriptor_, &Timestamp::default_instance()); in protobuf_RegisterTypes()
75 delete Timestamp::default_instance_; in protobuf_ShutdownFile_google_2fprotobuf_2ftimestamp_2eproto()
95 Timestamp::default_instance_ = new Timestamp(); in protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto()
96 Timestamp::default_instance_->InitAsDefaultInstance(); in protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto()
[all …]
Dtimestamp.pb.h40 class Timestamp; variable
44 class LIBPROTOBUF_EXPORT Timestamp : public ::google::protobuf::Message /* @@protoc_insertion_point…
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 …]
Dtimestamp.proto44 // A Timestamp represents a point in time independent of any time zone
56 // Example 1: Compute Timestamp from POSIX `time()`.
58 // Timestamp timestamp;
62 // Example 2: Compute Timestamp from POSIX `gettimeofday()`.
67 // Timestamp timestamp;
71 // Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
79 // Timestamp timestamp;
83 // Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
87 // Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
91 // Example 5: Compute Timestamp from current time in Python.
[all …]
Dduration.proto46 // or "month". It is related to Timestamp in that the difference between
47 // two Timestamp values is a Duration and it can be added or subtracted
48 // from a Timestamp. Range is approximately +-10,000 years.
52 // Timestamp start = ...;
53 // Timestamp end = ...;
67 // Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
69 // Timestamp start = ...;
71 // Timestamp end = ...;
Dunittest_well_known_types.proto31 google.protobuf.Timestamp timestamp_field = 8;
55 repeated google.protobuf.Timestamp timestamp_field = 8;
78 google.protobuf.Timestamp timestamp_field = 8;
103 map<int32,google.protobuf.Timestamp> timestamp_field = 8;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dtime_util.h51 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 …]
Dtime_util.cc44 using google::protobuf::Timestamp;
62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized()
75 Timestamp result; in CreateNormalized()
152 string TimeUtil::ToString(const Timestamp& timestamp) { in ToString()
156 bool TimeUtil::FromString(const string& value, Timestamp* timestamp) { in FromString()
162 *timestamp = CreateNormalized<Timestamp>(seconds, nanos); in FromString()
166 Timestamp TimeUtil::GetCurrentTime() { in GetCurrentTime()
170 return CreateNormalized<Timestamp>(seconds, nanos); in GetCurrentTime()
173 Timestamp TimeUtil::GetEpoch() { return Timestamp(); } in GetEpoch()
292 Timestamp TimeUtil::NanosecondsToTimestamp(int64 nanos) { in NanosecondsToTimestamp()
[all …]
Dtime_util_test.cc44 using google::protobuf::Timestamp;
50 Timestamp begin, end; in TEST()
61 Timestamp time = TimeUtil::NanosecondsToTimestamp(-1); in TEST()
92 Timestamp begin, end; in TEST()
345 Timestamp begin, end; in TEST()
354 Timestamp t1 = begin + d / 4; in TEST()
355 Timestamp t2 = end - d / 4; in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DTimestamp.cs34 …typeof(global::Google.Protobuf.WellKnownTypes.Timestamp), global::Google.Protobuf.WellKnownTypes.T… in TimestampReflection()
95 public sealed partial class Timestamp : pb::IMessage<Timestamp> { class
96 …ivate static readonly pb::MessageParser<Timestamp> _parser = new pb::MessageParser<Timestamp>(() =…
98 public static pb::MessageParser<Timestamp> Parser { get { return _parser; } }
111 public Timestamp() { in Timestamp() method in Google.Protobuf.WellKnownTypes.Timestamp
118 public Timestamp(Timestamp other) : this() { in Timestamp() method in Google.Protobuf.WellKnownTypes.Timestamp
124 public Timestamp Clone() { in Clone()
125 return new Timestamp(this); in Clone()
163 return Equals(other as Timestamp); in Equals()
167 public bool Equals(Timestamp other) { in Equals()
[all …]
DTimestampPartial.cs39 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()
DTimeExtensions.cs48 public static Timestamp ToTimestamp(this DateTime dateTime) in ToTimestamp()
50 return Timestamp.FromDateTime(dateTime); in ToTimestamp()
61 public static Timestamp ToTimestamp(this DateTimeOffset dateTimeOffset) in ToTimestamp()
63 return Timestamp.FromDateTimeOffset(dateTimeOffset); in ToTimestamp()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java34 import com.google.protobuf.Timestamp;
73 public static String toString(Timestamp timestamp) { in toString()
90 public static Timestamp parseTimestamp(String value) throws ParseException { in parseTimestamp()
129 public static Timestamp createTimestampFromMillis(long milliseconds) { in createTimestampFromMillis()
153 public static long toMillis(Timestamp timestamp) { in toMillis()
175 public static Timestamp createTimestampFromMicros(long microseconds) { in createTimestampFromMicros()
199 public static long toMicros(Timestamp timestamp) { in toMicros()
221 public static Timestamp createTimestampFromNanos(long nanoseconds) { in createTimestampFromNanos()
241 public static long toNanos(Timestamp timestamp) { in toNanos()
261 public static Timestamp getCurrentTime() { in getCurrentTime()
[all …]
DTimestamps.java34 import com.google.protobuf.Timestamp;
87 public static boolean isValid(Timestamp timestamp) { in isValid()
137 public static String toString(Timestamp timestamp) { in toString()
165 public static Timestamp parse(String value) throws ParseException { in parse()
220 public static Timestamp fromMillis(long milliseconds) { in fromMillis()
233 public static long toMillis(Timestamp timestamp) { in toMillis()
241 public static Timestamp fromMicros(long microseconds) { in fromMicros()
254 public static long toMicros(Timestamp timestamp) { in toMicros()
262 public static Timestamp fromNanos(long nanoseconds) { in fromNanos()
270 public static long toNanos(Timestamp timestamp) { in toNanos()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/
DTimeUtilTest.java34 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;
88 public ParseTimestampThread(String[] strings, Timestamp[] values) { in ParseTimestampThread()
97 Timestamp result; in run()
[all …]
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.h246 class Timestamp {
248 Timestamp() in Timestamp() function
251 Timestamp(int64_t position, int64_t nanoseconds) in Timestamp() function
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs336 Assert.AreEqual(WrapInQuotes(expected), new Timestamp { Nanos = nanos }.ToString()); in TimestampStandalone()
351 [TestCase(1, Timestamp.MaxNanos + 1)]
352 [TestCase(Timestamp.UnixSecondsAtBclMaxValue + 1, 0)]
353 [TestCase(Timestamp.UnixSecondsAtBclMinValue - 1, 0)]
356 var timestamp = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in TimestampStandalone_NonNormalized()
363 var message = new TestWellKnownTypes { TimestampField = new Timestamp() }; in TimestampField()
470 … JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Timestamp.Descriptor))); in AnyWellKnownType()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/
DTypeRegistryTest.cs48 AssertDescriptorAbsent(registry, Timestamp.Descriptor); in CreateWithFileDescriptor()
81 AssertDescriptorPresent(registry, Timestamp.Descriptor); in DuplicateFiles()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimplePlayer.h38 typedef struct Timestamp { struct
41 } Timestamp; argument
263 Timestamp timestamps[MAX_TIMESTAMPS];
343 Timestamp *timestamp = &sineData->timestamps[sineData->timestampCount]; in SimplePlayerDataCallbackProc()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonParser.cs74 …{ Timestamp.Descriptor.FullName, (parser, message, tokenizer) => MergeTimestamp(message, tokenizer…
806 Timestamp timestamp = Timestamp.FromDateTime(parsed); in MergeTimestamp()
845 …if (timestamp.Seconds < Timestamp.UnixSecondsAtBclMinValue || timestamp.Seconds > Timestamp.UnixSe… in MergeTimestamp()
850 …message.Descriptor.Fields[Timestamp.SecondsFieldNumber].Accessor.SetValue(message, timestamp.Secon… in MergeTimestamp()
851 … message.Descriptor.Fields[Timestamp.NanosFieldNumber].Accessor.SetValue(message, timestamp.Nanos); in MergeTimestamp()
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_protocol.h287 using Timestamp = int64_t; member
290 PDX_REMOTE_METHOD(Wait, kOpWait, Timestamp(Void));
291 PDX_REMOTE_METHOD(GetLastTimestamp, kOpGetLastTimestamp, Timestamp(Void));
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/
DTimestamp.pbobjc.m17 #import <Protobuf/Timestamp.pbobjc.h>
19 #import "google/protobuf/Timestamp.pbobjc.h"
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp164 Timestamp timestamp(*positionFrames, *timeNanos); in getFreeRunningPosition()
188 Timestamp timestamp = mAtomicStreamTimestamp.read(); in getHardwareTimestamp()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/testdata/
Dtimestamp_duration.proto31 // Proto to test proto3 Timestamp and Duration.
41 google.protobuf.Timestamp ts = 1;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBWellKnownTypes.h41 #import <Protobuf/Timestamp.pbobjc.h>

123