Home
last modified time | relevance | path

Searched refs:OptionalInt (Results 1 – 15 of 15) sorted by relevance

/external/webrtc/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc30 struct OptionalInt : AbslOptionalInt { struct
34 bool AbslParseFlag(absl::string_view src, OptionalInt* flag, in AbslParseFlag()
44 std::string AbslUnparseFlag(const OptionalInt& flag) { in AbslUnparseFlag()
90 A(OptionalInt) \
/external/abseil-cpp/absl/flags/
Dflag_benchmark.cc30 struct OptionalInt : AbslOptionalInt { struct
34 bool AbslParseFlag(absl::string_view src, OptionalInt* flag, in AbslParseFlag()
44 std::string AbslUnparseFlag(const OptionalInt& flag) { in AbslUnparseFlag()
90 A(OptionalInt) \
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc37 struct OptionalInt : AbslOptionalInt { struct
41 bool AbslParseFlag(absl::string_view src, OptionalInt* flag, in AbslParseFlag()
51 std::string AbslUnparseFlag(const OptionalInt& flag) { in AbslUnparseFlag()
97 A(OptionalInt) \
/external/libtextclassifier/abseil-cpp/absl/flags/
Dflag_benchmark.cc37 struct OptionalInt : AbslOptionalInt { struct
41 bool AbslParseFlag(absl::string_view src, OptionalInt* flag, in AbslParseFlag()
51 std::string AbslUnparseFlag(const OptionalInt& flag) { in AbslUnparseFlag()
97 A(OptionalInt) \
/external/openscreen/third_party/abseil/src/absl/flags/
Dflag_benchmark.cc39 struct OptionalInt : AbslOptionalInt { struct
43 bool AbslParseFlag(absl::string_view src, OptionalInt* flag, in AbslParseFlag()
53 std::string AbslUnparseFlag(const OptionalInt& flag) { in AbslUnparseFlag()
99 A(OptionalInt) \
/external/angle/third_party/abseil-cpp/absl/flags/
Dflag_benchmark.cc39 struct OptionalInt : AbslOptionalInt { struct
43 bool AbslParseFlag(absl::string_view src, OptionalInt* flag, in AbslParseFlag()
53 std::string AbslUnparseFlag(const OptionalInt& flag) { in AbslUnparseFlag()
99 A(OptionalInt) \
188 struct Accumulator<OptionalInt> {
207 void Accumulate(bool& a, const OptionalInt& f) { a |= f.has_value(); } in Accumulate()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DTypeEncoder.java27 import java.util.OptionalInt;
426 OptionalInt importMarker = findImportMarker(); in rewrite()
491 private OptionalInt findImportMarker() { in findImportMarker()
494 return OptionalInt.of(token); in findImportMarker()
497 return OptionalInt.empty(); in findImportMarker()
DAutoValueOrOneOfProcessor.java56 import java.util.OptionalInt;
559 OptionalInt nullableAnnotationIndex = nullableAnnotationIndex(elementAnnotations); in nullableAnnotationFor()
568 private static OptionalInt nullableAnnotationIndex(List<? extends AnnotationMirror> annotations) { in nullableAnnotationIndex()
571 return OptionalInt.of(i); in nullableAnnotationIndex()
574 return OptionalInt.empty(); in nullableAnnotationIndex()
/external/guava/guava/src/com/google/common/collect/
DStreams.java30 import java.util.OptionalInt;
114 public static IntStream stream(OptionalInt optional) { in stream()
896 public static OptionalInt findLast(IntStream stream) {
899 return boxedLast.isPresent() ? OptionalInt.of(boxedLast.get()) : OptionalInt.empty();
/external/guava/guava-tests/test/com/google/common/collect/
DStreamsTest.java31 import java.util.OptionalInt;
161 assertThat(stream(OptionalInt.empty())).isEmpty(); in testStream_optionalInt()
162 assertThat(stream(OptionalInt.of(5))).containsExactly(5); in testStream_optionalInt()
/external/auto/value/userguide/
Dbuilders-howto.md292 it can be wrapped as either `Optional<Integer>` or `OptionalInt`, and likewise
313 introduced related classes in `java.util` called [`OptionalInt`],
315 example a property of type `OptionalInt` will default to `OptionalInt.empty()`
316 and you can set it with either `setFoo(OptionalInt)` or `setFoo(int)`.
340 [`OptionalInt`]: https://docs.oracle.com/javase/8/docs/api/java/util/OptionalInt.html
/external/guava/guava-testlib/src/com/google/common/testing/
DArbitraryInstances.java123 import java.util.OptionalInt;
215 .put(OptionalInt.class, OptionalInt.empty())
DFreshValueGenerator.java115 import java.util.OptionalInt;
552 private OptionalInt generateOptionalInt() { in generateOptionalInt()
553 return OptionalInt.of(generateInt()); in generateOptionalInt()
/external/guava/guava-testlib/test/com/google/common/testing/
DArbitraryInstancesTest.java106 import java.util.OptionalInt;
172 assertEquals(OptionalInt.empty(), ArbitraryInstances.get(OptionalInt.class)); in testGet_primitives()
DFreshValueGeneratorTest.java101 import java.util.OptionalInt;
470 assertFreshInstance(new TypeToken<OptionalInt>() {}); in testOptionalInt()