/external/protobuf/objectivec/google/protobuf/ |
H A D | Duration.pbobjc.h | 53 /// duration.nanos = end.nanos - start.nanos; 55 /// if (duration.seconds < 0 && duration.nanos > 0) { 57 /// duration.nanos -= 1000000000; 58 /// } else if (durations.seconds > 0 && duration.nanos < 0) { 60 /// duration.nanos += 1000000000; 70 /// end.nanos = start.nanos + duration.nanos; 91 @property(nonatomic, readwrite) int32_t nanos; variable [all...] |
H A D | Timestamp.pbobjc.h | 90 /// nanos = int((now - seconds) * 10**9) 91 /// timestamp = Timestamp(seconds=seconds, nanos=nanos) 100 /// second values with fractions must still have non-negative nanos values 103 @property(nonatomic, readwrite) int32_t nanos; variable
|
/external/guava/guava-bootstrap/src/java/util/concurrent/ |
H A D | AbstractExecutorService.java | 39 boolean timed, long nanos) 70 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); 74 nanos -= now - lastTime; 155 long nanos = unit.toNanos(timeout); 168 nanos -= now - lastTime; 170 if (nanos <= 0) 176 if (nanos <= 0) 179 f.get(nanos, TimeUnit.NANOSECONDS); 186 nanos -= now - lastTime; 38 doInvokeAny(Collection<? extends Callable<T>> tasks, boolean timed, long nanos) argument
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
H A D | FakeTicker.java | 43 private final AtomicLong nanos = new AtomicLong(); field in class:FakeTicker 53 nanos.addAndGet(nanoseconds); 70 return nanos.getAndAdd(autoIncrementStepNanos);
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
H A D | Stopwatch.java | 210 private static TimeUnit chooseUnit(long nanos) { argument 211 if (DAYS.convert(nanos, NANOSECONDS) > 0) { 214 if (HOURS.convert(nanos, NANOSECONDS) > 0) { 217 if (MINUTES.convert(nanos, NANOSECONDS) > 0) { 220 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { 223 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { 226 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) {
|
/external/protobuf/src/google/protobuf/stubs/ |
H A D | time_test.cc | 181 int32 nanos; local 182 ASSERT_TRUE(ParseTime("0001-01-01T00:00:00Z", &seconds, &nanos)); 183 EXPECT_EQ("0001-01-01T00:00:00Z", FormatTime(seconds, nanos)); 184 ASSERT_TRUE(ParseTime("9999-12-31T23:59:59.999999999Z", &seconds, &nanos)); 185 EXPECT_EQ("9999-12-31T23:59:59.999999999Z", FormatTime(seconds, nanos)); 188 ASSERT_TRUE(ParseTime("1970-01-01T00:00:00-08:00", &seconds, &nanos)); 189 EXPECT_EQ("1970-01-01T08:00:00Z", FormatTime(seconds, nanos)); 190 ASSERT_TRUE(ParseTime("1970-01-01T00:00:00+08:00", &seconds, &nanos)); 191 EXPECT_EQ("1969-12-31T16:00:00Z", FormatTime(seconds, nanos)); 194 ASSERT_TRUE(ParseTime("1970-01-01T00:00:00.01Z", &seconds, &nanos)); [all...] |
H A D | time.cc | 133 string FormatNanos(int32 nanos) { argument 134 if (nanos % kNanosPerMillisecond == 0) { 135 return StringPrintf("%03d", nanos / kNanosPerMillisecond); 136 } else if (nanos % kNanosPerMicrosecond == 0) { 137 return StringPrintf("%06d", nanos / kNanosPerMicrosecond); 139 return StringPrintf("%09d", nanos); 168 // Consumes the fractional parts of a second into nanos. For example, 169 // "010" will be parsed to 10000000 nanos. 170 const char* ParseNanos(const char* data, int32* nanos) { argument 189 *nanos 264 GetCurrentTime(int64* seconds, int32* nanos) argument 271 FormatTime(int64 seconds, int32 nanos) argument 285 ParseTime(const string& value, int64* seconds, int32* nanos) argument [all...] |
/external/slf4j/slf4j-ext/src/main/java/org/slf4j/profiler/ |
H A D | Util.java | 59 static public double convertToMicros(long nanos) { argument 60 return (double) nanos / NANOS_IN_ONE_MICROSECOND; 63 static public double convertToMillis(long nanos) { argument 64 return (double) nanos / NANOS_IN_ONE_MILLISECOND; 67 static public double convertToSeconds(long nanos) { argument 68 return ((double) nanos / NANOS_IN_ONE_SECOND); 76 static String durationInDurationUnitsAsStr(long nanos, DurationUnit durationUnit) { argument 80 buf.append(nanos); 83 double micros = convertToMicros(nanos); 87 double millis = convertToMillis(nanos); [all...] |
/external/guava/guava/src/com/google/common/base/ |
H A D | Stopwatch.java | 216 long nanos = elapsedNanos(); 218 TimeUnit unit = chooseUnit(nanos); 219 double value = (double) nanos / NANOSECONDS.convert(1, unit); 225 private static TimeUnit chooseUnit(long nanos) { argument 226 if (DAYS.convert(nanos, NANOSECONDS) > 0) { 229 if (HOURS.convert(nanos, NANOSECONDS) > 0) { 232 if (MINUTES.convert(nanos, NANOSECONDS) > 0) { 235 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { 238 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { 241 if (MICROSECONDS.convert(nanos, NANOSECOND [all...] |
/external/junit/src/main/java/org/junit/rules/ |
H A D | Stopwatch.java | 19 * private static void logInfo(Description description, String status, long nanos) { 22 * testName, status, TimeUnit.NANOSECONDS.toMicros(nanos))); 28 * protected void succeeded(long nanos, Description description) { 29 * logInfo(description, "succeeded", nanos); 33 * protected void failed(long nanos, Throwable e, Description description) { 34 * logInfo(description, "failed", nanos); 38 * protected void skipped(long nanos, AssumptionViolatedException e, Description description) { 39 * logInfo(description, "skipped", nanos); 43 * protected void finished(long nanos, Description description) { 44 * logInfo(description, "finished", nanos); 105 succeeded(long nanos, Description description) argument 111 failed(long nanos, Throwable e, Description description) argument 117 skipped(long nanos, AssumptionViolatedException e, Description description) argument 123 finished(long nanos, Description description) argument [all...] |
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
H A D | DurationPartial.cs | 109 int nanos = (int) (ticks % TimeSpan.TicksPerSecond) * NanosecondsPerTick; 110 return new Duration { Seconds = seconds, Nanos = nanos }; 218 "{{ \"@warning\": \"Invalid Duration\", \"seconds\": \"{0}\", \"nanos\": {1} }}", 249 internal static void AppendNanoseconds(StringBuilder builder, int nanos) argument 251 if (nanos != 0) 255 if (nanos % 1000000 == 0) 257 builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture)); 259 else if (nanos % 1000 == 0) 261 builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture)); 265 builder.Append(nanos [all...] |
/external/protobuf/src/google/protobuf/ |
H A D | duration.pb.h | 106 // optional int32 nanos = 2; 109 ::google::protobuf::int32 nanos() const; 149 // optional int32 nanos = 2; 153 inline ::google::protobuf::int32 Duration::nanos() const { function in class:google::protobuf::Duration 154 // @@protoc_insertion_point(field_get:google.protobuf.Duration.nanos) 160 // @@protoc_insertion_point(field_set:google.protobuf.Duration.nanos)
|
H A D | timestamp.pb.h | 116 // optional int32 nanos = 2; 119 ::google::protobuf::int32 nanos() const; 162 // optional int32 nanos = 2; 166 inline ::google::protobuf::int32 Timestamp::nanos() const { function in class:google::protobuf::Timestamp 167 // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos) 173 // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
|
H A D | duration.pb.cc | 86 "\n\005nanos\030\002 \001(\005B|\n\023com.google.protobufB\rDu" 230 // optional int32 nanos = 2; 274 // optional int32 nanos = 2; 275 if (this->nanos() != 0) { 276 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nanos(), output); 290 // optional int32 nanos = 2; 291 if (this->nanos() != 0) { 292 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->nanos(), target); 310 // optional int32 nanos = 2; 311 if (this->nanos() ! 408 ::google::protobuf::int32 Duration::nanos() const { function in class:google::protobuf::Duration [all...] |
H A D | timestamp.pb.cc | 86 "\022\r\n\005nanos\030\002 \001(\005B\201\001\n\023com.google.protobufB" 244 // optional int32 nanos = 2; 288 // optional int32 nanos = 2; 289 if (this->nanos() != 0) { 290 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nanos(), output); 304 // optional int32 nanos = 2; 305 if (this->nanos() != 0) { 306 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->nanos(), target); 324 // optional int32 nanos = 2; 325 if (this->nanos() ! 434 ::google::protobuf::int32 Timestamp::nanos() const { function in class:google::protobuf::Timestamp [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
H A D | RuntimeWorker.java | 75 long nanos = invokeTimeMethod(nextReps); 78 .value(Value.create(nanos, "ns")) 83 totalNanos += nanos; 94 @VisibleForTesting static long calculateTargetReps(long reps, long nanos, long targetNanos, argument 96 double targetReps = (((double) reps) / nanos) * targetNanos;
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | AbstractFuture.java | 264 V get(long nanos) throws TimeoutException, CancellationException, argument 268 if (!tryAcquireSharedNanos(-1, nanos)) {
|
H A D | Monitor.java | 1014 private boolean awaitNanos(Guard guard, long nanos, boolean signalBeforeWaiting) argument 1022 if (nanos < 0L) { 1025 nanos = guard.condition.awaitNanos(nanos);
|
H A D | MoreExecutors.java | 345 long nanos = unit.toNanos(timeout); 351 } else if (nanos <= 0) { 354 nanos = termination.awaitNanos(nanos); 673 Collection<? extends Callable<T>> tasks, boolean timed, long nanos) 708 f = futureQueue.poll(nanos, TimeUnit.NANOSECONDS); 713 nanos -= now - lastTime; 672 invokeAnyImpl(ListeningExecutorService executorService, Collection<? extends Callable<T>> tasks, boolean timed, long nanos) argument
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
H A D | JsonFormatterTest.cs | 332 public void TimestampStandalone(string expected, int nanos) argument 334 Assert.AreEqual(WrapInQuotes(expected), new Timestamp { Nanos = nanos }.ToString());
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
H A D | TimeUtil.java | 104 // Format the nanos part. 106 throw new IllegalArgumentException("Timestamp has invalid nanos value."); 145 // Parse seconds and nanos. 156 int nanos = nanoValue.isEmpty() ? 0 : parseNanos(nanoValue); 174 return normalizedTimestamp(seconds, nanos); 200 int nanos = duration.getNanos(); 201 if (seconds < 0 || nanos < 0) { 202 if (seconds > 0 || nanos > 0) { 204 "Invalid duration: seconds value and nanos value must have the same" 209 nanos 477 normalizedDuration(long seconds, int nanos) argument 496 normalizedTimestamp(long seconds, int nanos) argument 514 formatNanos(int nanos) argument [all...] |
/external/protobuf/src/google/protobuf/util/internal/ |
H A D | protostream_objectwriter.cc | 93 StringPiece* nanos) { 97 *nanos = input.substr(idx + 1); 100 *nanos = StringPiece(); 107 int32* nanos) { 108 *nanos = 0; 116 // 's_nanos' contains fractional seconds -- i.e. 'nanos' is equal to 118 // conversion to 'nanos', rather than a double, so that there is no 170 *nanos = i_nanos * conversion; 871 int32 nanos; local 873 &nanos)) { 92 SplitSecondsAndNanos(StringPiece input, StringPiece* seconds, StringPiece* nanos) argument 104 GetNanosFromStringPiece(StringPiece s_nanos, const char* parse_failure_message, const char* exceeded_limit_message, int32* nanos) argument 935 int32 nanos = 0; local [all...] |
H A D | protostream_objectsource.cc | 87 // Utility function to format nanos. 88 const string FormatNanos(uint32 nanos); 315 int32 nanos = p.second; local 322 if (nanos < 0 || nanos >= kNanosPerSecond) { 325 StrCat("Timestamp nanos exceeds limit for field: ", field_name)); 329 ::google::protobuf::internal::FormatTime(seconds, nanos)); 339 int32 nanos = p.second; local 346 if (nanos <= -kNanosPerSecond || nanos > 1023 uint32 nanos = 0; local 1095 FormatNanos(uint32 nanos) argument [all...] |
/external/protobuf/src/google/protobuf/util/ |
H A D | time_util.cc | 59 T CreateNormalized(int64 seconds, int64 nanos); 62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { argument 63 // Make sure nanos is in the range. 64 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { 65 seconds += nanos / kNanosPerSecond; 66 nanos = nanos % kNanosPerSecond; 68 // For Timestamp nanos should be in the range [0, 999999999] 69 if (nanos < 82 CreateNormalized(int64 seconds, int64 nanos) argument 106 FormatNanos(int32 nanos) argument 116 FormatTime(int64 seconds, int32 nanos) argument 120 ParseTime(const string& value, int64* seconds, int32* nanos) argument 124 CurrentTime(int64* seconds, int32* nanos) argument 151 int32 nanos; local 161 int32 nanos; local 171 int32 nanos = duration.nanos(); local 215 int64 nanos = strto64(nanos_part.c_str(), &end, 10); local 230 NanosecondsToDuration(int64 nanos) argument 285 NanosecondsToTimestamp(int64 nanos) argument 398 int32 nanos = static_cast<int32>(Uint128Low64(value % kNanosPerSecond)); local 413 int32 nanos = static_cast<int32>(Uint128Low64(value % kNanosPerSecond)); local 452 int32 nanos = static_cast<int32>((result - seconds) * kNanosPerSecond); local [all...] |
/external/robolectric/v3/libs/ |
H A D | sqlite4java-0.282.jar | META-INF/ META-INF/MANIFEST.MF com/ com/almworks/ com/almworks/sqlite4java/ javolution/ javolution/util/ javolution/ ... |