/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | time_util.cc | 59 T CreateNormalized(int64 seconds, int64 nanos); 62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() argument 64 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized() 65 seconds += nanos / kNanosPerSecond; in CreateNormalized() 66 nanos = nanos % kNanosPerSecond; in CreateNormalized() 69 if (nanos < 0) { in CreateNormalized() 71 nanos += kNanosPerSecond; in CreateNormalized() 77 result.set_nanos(static_cast<int32>(nanos)); in CreateNormalized() 82 Duration CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() argument 84 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized() [all …]
|
D | time_util.h | 101 static Duration NanosecondsToDuration(int64 nanos); 123 static Timestamp NanosecondsToTimestamp(int64 nanos); 183 return d1.nanos() < d2.nanos(); 197 return d1.seconds() == d2.seconds() && d1.nanos() == d2.nanos(); 206 result.set_nanos(-d.nanos()); 250 return t1.nanos() < t2.nanos(); 264 return t1.seconds() == t2.seconds() && t1.nanos() == t2.nanos();
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/ |
D | Durations.java | 76 public static boolean isValid(long seconds, long nanos) { in isValid() argument 80 if (nanos < -999999999L || nanos >= NANOS_PER_SECOND) { in isValid() 83 if (seconds < 0 || nanos < 0) { in isValid() 84 if (seconds > 0 || nanos > 0) { in isValid() 95 private static void checkValid(long seconds, int nanos) { in checkValid() argument 96 if (!isValid(seconds, nanos)) { in checkValid() 101 + "Nanos must have the same sign as seconds", seconds, nanos)); in checkValid() 118 int nanos = duration.getNanos(); in toString() local 119 checkValid(seconds, nanos); in toString() 122 if (seconds < 0 || nanos < 0) { in toString() [all …]
|
D | Timestamps.java | 100 public static boolean isValid(long seconds, long nanos) { in isValid() argument 104 if (nanos < 0 || nanos >= NANOS_PER_SECOND) { in isValid() 114 private static void checkValid(long seconds, int nanos) { in checkValid() argument 115 if (!isValid(seconds, nanos)) { in checkValid() 120 seconds, nanos)); in checkValid() 139 int nanos = timestamp.getNanos(); in toString() local 140 checkValid(seconds, nanos); in toString() 146 if (nanos != 0) { in toString() 148 result.append(formatNanos(nanos)); in toString() 191 int nanos = nanoValue.isEmpty() ? 0 : parseNanos(nanoValue); in parse() local [all …]
|
D | TimeUtil.java | 334 int nanos = (int) ((result - seconds) * 1000000000); in multiply() local 335 return normalizedDuration(seconds, nanos); in multiply() 378 int nanos = value.remainder(new BigInteger(String.valueOf(NANOS_PER_SECOND))).intValue(); in createDurationFromBigInteger() local 379 return normalizedDuration(seconds, nanos); in createDurationFromBigInteger() 382 private static Duration normalizedDuration(long seconds, int nanos) { in normalizedDuration() argument 383 if (nanos <= -NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND) { in normalizedDuration() 384 seconds += nanos / NANOS_PER_SECOND; in normalizedDuration() 385 nanos %= NANOS_PER_SECOND; in normalizedDuration() 387 if (seconds > 0 && nanos < 0) { in normalizedDuration() 388 nanos += NANOS_PER_SECOND; in normalizedDuration() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | well_known_types.py | 106 nanos = self.nanos % _NANOS_PER_SECOND 107 total_sec = self.seconds + (self.nanos - nanos) // _NANOS_PER_SECOND 113 if (nanos % 1e9) == 0: 117 if (nanos % 1e6) == 0: 119 return result + '.%03dZ' % (nanos / 1e6) 120 if (nanos % 1e3) == 0: 122 return result + '.%06dZ' % (nanos / 1e3) 124 return result + '.%09dZ' % nanos 162 nanos = round(float('0.' + nano_value) * 1e9) 164 nanos = 0 [all …]
|
D | well_known_types_test.py | 78 message.nanos = 0 80 message.nanos = 10000000 82 message.nanos = 10000 84 message.nanos = 10 88 message.nanos = 0 92 message.nanos = 999999999 102 self.assertEqual(100000000, message.nanos) 106 self.assertEqual(0, message.nanos) 112 message.nanos = 0 114 message.nanos = 10000000 [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | time_test.cc | 181 int32 nanos; in TEST() local 182 ASSERT_TRUE(ParseTime("0001-01-01T00:00:00Z", &seconds, &nanos)); in TEST() 183 EXPECT_EQ("0001-01-01T00:00:00Z", FormatTime(seconds, nanos)); in TEST() 184 ASSERT_TRUE(ParseTime("9999-12-31T23:59:59.999999999Z", &seconds, &nanos)); in TEST() 185 EXPECT_EQ("9999-12-31T23:59:59.999999999Z", FormatTime(seconds, nanos)); in TEST() 188 ASSERT_TRUE(ParseTime("1970-01-01T00:00:00-08:00", &seconds, &nanos)); in TEST() 189 EXPECT_EQ("1970-01-01T08:00:00Z", FormatTime(seconds, nanos)); in TEST() 190 ASSERT_TRUE(ParseTime("1970-01-01T00:00:00+08:00", &seconds, &nanos)); in TEST() 191 EXPECT_EQ("1969-12-31T16:00:00Z", FormatTime(seconds, nanos)); in TEST() 194 ASSERT_TRUE(ParseTime("1970-01-01T00:00:00.01Z", &seconds, &nanos)); in TEST() [all …]
|
D | time.cc | 133 string FormatNanos(int32 nanos) { in FormatNanos() argument 134 if (nanos % kNanosPerMillisecond == 0) { in FormatNanos() 135 return StringPrintf("%03d", nanos / kNanosPerMillisecond); in FormatNanos() 136 } else if (nanos % kNanosPerMicrosecond == 0) { in FormatNanos() 137 return StringPrintf("%06d", nanos / kNanosPerMicrosecond); in FormatNanos() 139 return StringPrintf("%09d", nanos); in FormatNanos() 170 const char* ParseNanos(const char* data, int32* nanos) { in ParseNanos() argument 189 *nanos = value; in ParseNanos() 264 void GetCurrentTime(int64* seconds, int32* nanos) { in GetCurrentTime() argument 268 *nanos = 0; in GetCurrentTime() [all …]
|
D | time.h | 57 void LIBPROTOBUF_EXPORT GetCurrentTime(int64* seconds, int32* nanos); 66 string LIBPROTOBUF_EXPORT FormatTime(int64 seconds, int32 nanos); 69 bool LIBPROTOBUF_EXPORT ParseTime(const string& value, int64* seconds, int32* nanos);
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ |
D | GPBWellKnownTypes.m | 38 int32_t nanos) { 39 return seconds + (NSTimeInterval)nanos / 1e9; 45 NSTimeInterval nanos = modf(time, &seconds); 46 nanos *= 1e9; 48 return (int32_t)nanos; 60 int32_t nanos = SecondsAndNanosFromTimeIntervalSince1970( 63 self.nanos = nanos; 77 return TimeIntervalSince1970FromSecondsAndNanos(self.seconds, self.nanos); 82 int32_t nanos = 85 self.nanos = nanos; [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | duration.proto | 57 // duration.nanos = end.nanos - start.nanos; 59 // if (duration.seconds < 0 && duration.nanos > 0) { 61 // duration.nanos -= 1000000000; 62 // } else if (durations.seconds > 0 && duration.nanos < 0) { 64 // duration.nanos += 1000000000; 74 // end.nanos = start.nanos + duration.nanos; 76 // if (end.nanos < 0) { 78 // end.nanos += 1000000000; 79 // } else if (end.nanos >= 1000000000) { 81 // end.nanos -= 1000000000; [all …]
|
D | duration.pb.cc | 268 if (this->nanos() != 0) { in SerializeWithCachedSizes() 269 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nanos(), output); in SerializeWithCachedSizes() 284 if (this->nanos() != 0) { in InternalSerializeWithCachedSizesToArray() 285 …target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->nanos(), target); in InternalSerializeWithCachedSizesToArray() 304 if (this->nanos() != 0) { in ByteSize() 307 this->nanos()); in ByteSize() 341 if (from.nanos() != 0) { in MergeFrom() 342 set_nanos(from.nanos()); in MergeFrom() 405 ::google::protobuf::int32 Duration::nanos() const { in nanos() function in google::protobuf::Duration
|
D | timestamp.pb.cc | 282 if (this->nanos() != 0) { in SerializeWithCachedSizes() 283 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nanos(), output); in SerializeWithCachedSizes() 298 if (this->nanos() != 0) { in InternalSerializeWithCachedSizesToArray() 299 …target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->nanos(), target); in InternalSerializeWithCachedSizesToArray() 318 if (this->nanos() != 0) { in ByteSize() 321 this->nanos()); in ByteSize() 355 if (from.nanos() != 0) { in MergeFrom() 356 set_nanos(from.nanos()); in MergeFrom() 431 ::google::protobuf::int32 Timestamp::nanos() const { in nanos() function in google::protobuf::Timestamp
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | DurationPartial.cs | 109 int nanos = (int) (ticks % TimeSpan.TicksPerSecond) * NanosecondsPerTick; in FromTimeSpan() 110 return new Duration { Seconds = seconds, Nanos = nanos }; in FromTimeSpan() 249 internal static void AppendNanoseconds(StringBuilder builder, int nanos) in AppendNanoseconds() argument 251 if (nanos != 0) in AppendNanoseconds() 255 if (nanos % 1000000 == 0) in AppendNanoseconds() 257 builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture)); in AppendNanoseconds() 259 else if (nanos % 1000 == 0) in AppendNanoseconds() 261 builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture)); in AppendNanoseconds() 265 builder.Append(nanos.ToString("d9", CultureInfo.InvariantCulture)); in AppendNanoseconds()
|
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/ |
D | RemoteRenderSessionAdapter.java | 60 public void setSystemTimeNanos(long nanos) { in setSystemTimeNanos() argument 61 mDelegate.setSystemTimeNanos(nanos); in setSystemTimeNanos() 65 public void setSystemBootTimeNanos(long nanos) { in setSystemBootTimeNanos() argument 66 mDelegate.setSystemBootTimeNanos(nanos); in setSystemBootTimeNanos() 70 public void setElapsedFrameTimeNanos(long nanos) { in setElapsedFrameTimeNanos() argument 71 mDelegate.setElapsedFrameTimeNanos(nanos); in setElapsedFrameTimeNanos()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CaptureCollector.java | 321 long nanos = unit.toNanos(timeout); in queueRequest() local 337 if (nanos <= 0) { in queueRequest() 340 nanos = mIsEmpty.awaitNanos(nanos); in queueRequest() 347 if (nanos <= 0) { in queueRequest() 350 nanos = mNotFull.awaitNanos(nanos); in queueRequest() 374 long nanos = unit.toNanos(timeout); in waitForEmpty() local 379 if (nanos <= 0) { in waitForEmpty() 382 nanos = mIsEmpty.awaitNanos(nanos); in waitForEmpty() 399 long nanos = unit.toNanos(timeout); in waitForPreviewsEmpty() local 404 if (nanos <= 0) { in waitForPreviewsEmpty() [all …]
|
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/ |
D | RemoteRenderSessionAdapter.java | 56 public void setSystemTimeNanos(long nanos) { in setSystemTimeNanos() argument 58 mDelegate.setSystemTimeNanos(nanos); in setSystemTimeNanos() 65 public void setSystemBootTimeNanos(long nanos) { in setSystemBootTimeNanos() argument 67 mDelegate.setSystemBootTimeNanos(nanos); in setSystemBootTimeNanos() 74 public void setElapsedFrameTimeNanos(long nanos) { in setElapsedFrameTimeNanos() argument 76 mDelegate.setElapsedFrameTimeNanos(nanos); in setElapsedFrameTimeNanos()
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | System_Delegate.java | 45 public static void setNanosTime(long nanos) { in setNanosTime() argument 46 mNanosTime.set(nanos); in setNanosTime() 49 public static void setBootTimeNanos(long nanos) { in setBootTimeNanos() argument 50 mBootNanosTime.set(nanos); in setBootTimeNanos()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | BridgeRenderSession.java | 132 public void setSystemTimeNanos(long nanos) { in setSystemTimeNanos() argument 133 System_Delegate.setNanosTime(nanos); in setSystemTimeNanos() 137 public void setSystemBootTimeNanos(long nanos) { in setSystemBootTimeNanos() argument 138 System_Delegate.setBootTimeNanos(nanos); in setSystemBootTimeNanos() 142 public void setElapsedFrameTimeNanos(long nanos) { in setElapsedFrameTimeNanos() argument 144 mSession.setElapsedFrameTimeNanos(nanos); in setElapsedFrameTimeNanos()
|
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/ |
D | RemoteRenderSession.java | 38 void setSystemTimeNanos(long nanos) throws RemoteException; in setSystemTimeNanos() argument 40 void setSystemBootTimeNanos(long nanos) throws RemoteException; in setSystemBootTimeNanos() argument 42 void setElapsedFrameTimeNanos(long nanos) throws RemoteException; in setElapsedFrameTimeNanos() argument
|
/frameworks/base/tools/preload/ |
D | Operation.java | 110 private static int nanosToMicros(long nanos) { in nanosToMicros() argument 111 long micros = nanos / 1000; in nanosToMicros() 114 throw new RuntimeException("Integer overflow: " + nanos); in nanosToMicros()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/ |
D | Timestamp.pbobjc.m | 51 @dynamic nanos; 55 int32_t nanos; 75 .name = "nanos", 79 .offset = (uint32_t)offsetof(GPBTimestamp__storage_, nanos),
|
D | Duration.pbobjc.m | 51 @dynamic nanos; 55 int32_t nanos; 75 .name = "nanos", 79 .offset = (uint32_t)offsetof(GPBDuration__storage_, nanos),
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/ |
D | protostream_objectwriter.cc | 95 StringPiece* nanos) { in SplitSecondsAndNanos() argument 99 *nanos = input.substr(idx + 1); in SplitSecondsAndNanos() 102 *nanos = StringPiece(); in SplitSecondsAndNanos() 109 int32* nanos) { in GetNanosFromStringPiece() argument 110 *nanos = 0; in GetNanosFromStringPiece() 172 *nanos = i_nanos * conversion; in GetNanosFromStringPiece() 879 int32 nanos; in RenderTimestamp() local 881 &nanos)) { in RenderTimestamp() 887 ow->ProtoWriter::RenderDataPiece("nanos", DataPiece(nanos)); in RenderTimestamp() 943 int32 nanos = 0; in RenderDuration() local [all …]
|