HomeSort by relevance Sort by last modified time
    Searched refs:Optional (Results 1 - 25 of 3607) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/Dialer/java/com/android/dialer/smartdial/map/
LatinSmartDialMap.java 21 import com.google.common.base.Optional;
48 * print "case '" + char + "': return Optional.of('" + unidecode(char) + "');"
57 Optional<Character> normalizeCharacter(char ch) {
59 return Optional.of(ch);
64 return Optional.of('a');
66 return Optional.of('a');
68 return Optional.of('a');
70 return Optional.of('a');
72 return Optional.of('a');
74 return Optional.of('a')
    [all...]
SmartDialMap.java 20 import com.google.common.base.Optional;
59 * <p>An {@link Optional#absent()} is returned if the provided character can't be mapped to a key
62 protected Optional<Byte> getDialpadIndex(char ch) {
64 return Optional.of((byte) (ch - '0'));
68 return Optional.of((byte) (getCharToKeyMap().get(ch) - '0'));
71 return Optional.absent();
80 * <p>An {@link Optional#absent()} is returned if the provided character can't be mapped to a key
83 protected Optional<Character> getDialpadNumericCharacter(char ch) {
85 ? Optional.of(getCharToKeyMap().get(ch))
86 : Optional.absent()
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
OptionalTest.java 32 * Unit test for {@link Optional}.
39 Optional<String> optionalName = Optional.absent();
44 assertEquals("training", Optional.of("training").get());
49 Optional.of(null);
56 Optional<String> optionalName = Optional.fromNullable("bob");
62 assertSame(Optional.absent(), Optional.fromNullable(null));
66 assertFalse(Optional.absent().isPresent())
74 Optional<String> optional = Optional.absent(); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/base/
OptionalTest.java 35 * Unit test for {@link Optional}.
42 Optional<String> optionalName = Optional.absent();
47 assertEquals("training", Optional.of("training").get());
52 Optional.of(null);
59 Optional<String> optionalName = Optional.fromNullable("bob");
65 assertSame(Optional.absent(), Optional.fromNullable(null));
69 assertFalse(Optional.absent().isPresent())
77 Optional<String> optional = Optional.absent(); local
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
24 class Optional {
28 explicit Optional() : x(), hasVal(false) {}
29 Optional(const T &y) : x(y), hasVal(true) {}
31 static inline Optional create(const T* y) {
32 return y ? Optional(*y) : Optional();
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/platform/dalvik/
DalvikModule.java 19 import com.google.common.base.Optional;
29 * <p>The {@link DalvikPlatform} is optional as it is only available when running on Android.
36 public static Optional<DalvikPlatform> provideOptionalPlatform() {
38 return Optional.of(new DalvikPlatform());
40 return Optional.absent();
  /external/pdfium/xfa/fxfa/parser/
cxfa_margin.h 22 Optional<float> TryLeftInset() const;
23 Optional<float> TryTopInset() const;
24 Optional<float> TryRightInset() const;
25 Optional<float> TryBottomInset() const;
  /system/chre/util/include/chre/util/
optional.h 25 * This container keeps track of an optional object. The container is similar to
26 * std::optional introduced in C++17.
29 class Optional {
31 // Per the standard, a program that instantiates template optional for a
34 "Optional references are not allowed");
37 * Default constructs the optional object with no initial value.
39 Optional() = default;
42 * Constructs an optional instance with an initial value.
46 Optional(const ObjectType& object);
49 * Constructs an optional instance with an initial value by moving it
    [all...]
optional_impl.h 23 #include "chre/util/optional.h"
28 Optional<ObjectType>::Optional(const ObjectType& object) {
34 Optional<ObjectType>::Optional(ObjectType&& object) {
40 bool Optional<ObjectType>::has_value() const {
45 void Optional<ObjectType>::reset() {
53 ObjectType& Optional<ObjectType>::value() {
58 const ObjectType& Optional<ObjectType>::value() const {
63 Optional<ObjectType>& Optional<ObjectType>::operator=(ObjectType&& other)
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
ValidationType.java 18 import com.google.common.base.Optional;
30 Optional<Diagnostic.Kind> diagnosticKind() {
33 return Optional.of(Diagnostic.Kind.ERROR);
35 return Optional.of(Diagnostic.Kind.WARNING);
37 return Optional.absent();
  /external/llvm/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
29 class Optional {
35 Optional(NoneType) : hasVal(false) {}
36 explicit Optional() : hasVal(false) {}
37 Optional(const T &y) : hasVal(true) {
40 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OptionalTest.java 23 import java.util.Optional;
34 assertSame(Optional.<Integer>empty(), Optional.<String>empty());
35 assertSame(Optional.<String>empty(), Optional.<String>empty());
37 // Note that we assert here that the empty() optional is the same instance
38 // as Optional.ofNullable(null). This allows us to avoid having to write tests
40 assertSame(Optional.<String>empty(), Optional.ofNullable(null));
44 Optional<String> empty = Optional.empty()
    [all...]
  /external/webrtc/webrtc/base/
optional.h 21 // Simple std::experimental::optional-wannabe. It either contains a T or not.
27 // A moved-from Optional<T> may only be destroyed, and assigned to if T allows
31 // Examples of good places to use Optional:
36 // Optional<int> cell_number; // Empty if not currently incarcerated.
41 // return an Optional<size_t> (the index where it found the element, or
43 // return Optional<double> (the parsed number, or nothing if parsing failed).
45 // Examples of bad places to use Optional:
49 // Optional<size_t> so that it can return nothing in case the caller passed
55 // Optional<double> when parsing a single number as in the example above
60 // std::optional (and we're allowed to use it)
    [all...]
  /external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
Bound.java 5 import java.util.Optional;
43 public Optional<Instantiation> isAnInstantiation() {
44 return Optional.empty();
57 public Optional<ProperUpperBound> isProperUpperBound() {
58 return Optional.empty();
67 public Optional<ProperLowerBound> isProperLowerBound() {
68 return Optional.empty();
71 Optional<ProperLowerBound> isProperLowerBoundFor(InferenceVariable inferenceVariable) {
72 Optional<ProperLowerBound> partial = isProperLowerBound();
76 return Optional.empty()
    [all...]
  /external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
NodeWithTraversableScope.java 26 import java.util.Optional;
36 * An optional scope is returned directly.
37 * A required scope is returned in an "Optional", but will never be empty.
39 Optional<Expression> traverseScope();
  /external/javaparser/javaparser-core/src/main/java/com/github/javaparser/metamodel/
AnnotationDeclarationMetaModel.java 3 import java.util.Optional;
7 AnnotationDeclarationMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
BlockCommentMetaModel.java 3 import java.util.Optional;
7 BlockCommentMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
CharLiteralExprMetaModel.java 3 import java.util.Optional;
7 CharLiteralExprMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
DoubleLiteralExprMetaModel.java 3 import java.util.Optional;
7 DoubleLiteralExprMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
EmptyStmtMetaModel.java 3 import java.util.Optional;
7 EmptyStmtMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
IntegerLiteralExprMetaModel.java 3 import java.util.Optional;
7 IntegerLiteralExprMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
JavadocCommentMetaModel.java 3 import java.util.Optional;
7 JavadocCommentMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
LineCommentMetaModel.java 3 import java.util.Optional;
7 LineCommentMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
LongLiteralExprMetaModel.java 3 import java.util.Optional;
7 LongLiteralExprMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {
MarkerAnnotationExprMetaModel.java 3 import java.util.Optional;
7 MarkerAnnotationExprMetaModel(Optional<BaseNodeMetaModel> superBaseNodeMetaModel) {

Completed in 195 milliseconds

1 2 3 4 5 6 7 8 91011>>