Home
last modified time | relevance | path

Searched refs:hasValue (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/external/protobuf/csharp/src/Google.Protobuf/
DExtensionValue.cs48 private bool hasValue; field in Google.Protobuf.ExtensionValue
60 if (!hasValue) in CalculateSize()
71 hasValue = hasValue, in Clone()
83 && hasValue.Equals((other as ExtensionValue<T>).hasValue) in Equals()
93 hash = hash * 31 + hasValue.GetHashCode(); in GetHashCode()
102 hasValue = true; in MergeFrom()
111 if (extensionValue.hasValue) in MergeFrom()
113 hasValue |= codec.FieldMerger(ref field, extensionValue.field); in MergeFrom()
120 if (hasValue) in WriteTo()
135 hasValue = true; in SetValue()
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsMapContainingValueTest.java11 import static org.hamcrest.collection.IsMapContaining.hasValue;
17 return hasValue("foo"); in createMatcher()
21 assertDescription("map containing [ANYTHING->\"a\"]", hasValue("a")); in testHasReadableDescription()
26 assertMismatchDescription("map was []", hasValue(1), map); in testDoesNotMatchEmptyMap()
33 assertMatches("Singleton map", hasValue(1), map); in testMatchesSingletonMapContainingValue()
42 assertMatches("hasValue 1", hasValue(1), map); in testMatchesMapContainingValue()
43 assertMatches("hasValue 3", hasValue(3), map); in testMatchesMapContainingValue()
44 assertMismatchDescription("map was [<a=1>, <b=2>, <c=3>]", hasValue(4), map); in testMatchesMapContainingValue()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAnyTest.cpp27 EXPECT_FALSE(A.hasValue()); in TEST()
31 EXPECT_TRUE(B.hasValue()); in TEST()
35 EXPECT_TRUE(C.hasValue()); in TEST()
39 EXPECT_TRUE(D.hasValue()); in TEST()
44 EXPECT_TRUE(E.hasValue()); in TEST()
51 EXPECT_TRUE(B.hasValue()); in TEST()
52 EXPECT_TRUE(F.hasValue()); in TEST()
59 EXPECT_FALSE(C.hasValue()); in TEST()
60 EXPECT_TRUE(G.hasValue()); in TEST()
66 EXPECT_TRUE(A.hasValue()); in TEST()
[all …]
DStatisticTest.cpp83 EXPECT_EQ(S1.hasValue(), true); in TEST()
84 EXPECT_EQ(S2.hasValue(), false); in TEST()
99 EXPECT_EQ(S1.hasValue(), true); in TEST()
100 EXPECT_EQ(S2.hasValue(), true); in TEST()
126 EXPECT_EQ(S1.hasValue(), false); in TEST()
127 EXPECT_EQ(S2.hasValue(), false); in TEST()
144 EXPECT_EQ(S1.hasValue(), true); in TEST()
145 EXPECT_EQ(S2.hasValue(), true); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/BinaryFormat/
DDwarfTest.cpp151 EXPECT_TRUE(RefSize.hasValue()); in TEST()
152 EXPECT_TRUE(AddrSize.hasValue()); in TEST()
159 EXPECT_TRUE(RefSize.hasValue()); in TEST()
160 EXPECT_TRUE(AddrSize.hasValue()); in TEST()
166 EXPECT_TRUE(RefSize.hasValue()); in TEST()
171 EXPECT_TRUE(RefSize.hasValue()); in TEST()
176 EXPECT_TRUE(RefSize.hasValue()); in TEST()
182 EXPECT_TRUE(RefSize.hasValue()); in TEST()
187 EXPECT_TRUE(RefSize.hasValue()); in TEST()
192 EXPECT_TRUE(RefSize.hasValue()); in TEST()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DStringTrieBuilder.java266 hasValue=true; in ValueNode()
270 assert(!hasValue); in setValue()
271 hasValue=true; in setValue()
275 hasValue=true; in setFinalValue()
281 if(hasValue) { in hashCode()
295 return hasValue==o.hasValue && (!hasValue || value==o.value); in equals()
312 protected boolean hasValue; field in StringTrieBuilder.ValueNode
383 if(hasValue) { in add()
410 if(hasValue) { in add()
414 hasValue=false; in add()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTrieBuilder.java267 hasValue=true; in ValueNode()
271 assert(!hasValue); in setValue()
272 hasValue=true; in setValue()
276 hasValue=true; in setFinalValue()
282 if(hasValue) { in hashCode()
296 return hasValue==o.hasValue && (!hasValue || value==o.value); in equals()
313 protected boolean hasValue; field in StringTrieBuilder.ValueNode
384 if(hasValue) { in add()
411 if(hasValue) { in add()
415 hasValue=false; in add()
[all …]
/external/llvm/lib/Analysis/
DCFLSteensAliasAnalysis.cpp180 if (RetInfo.hasValue()) in FunctionInfo()
189 if (ParamInfo.hasValue()) in FunctionInfo()
265 assert(Iter->second.hasValue()); in ensureCached()
272 if (FunInfo.hasValue()) in getAliasSummary()
289 if (!MaybeFnA.hasValue() && !MaybeFnB.hasValue()) { in query()
297 if (MaybeFnA.hasValue()) { in query()
299 assert((!MaybeFnB.hasValue() || *MaybeFnB == *MaybeFnA) && in query()
307 assert(MaybeInfo.hasValue()); in query()
311 if (!MaybeA.hasValue()) in query()
315 if (!MaybeB.hasValue()) in query()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DAnalyzerOptions.cpp145 if (!V.hasValue()) in getBooleanOption()
260 if (!AlwaysInlineSize.hasValue()) in getAlwaysInlineSize()
266 if (!MaxInlinableSize.hasValue()) { in getMaxInlinableSize()
287 if (!GraphTrimInterval.hasValue()) in getGraphTrimInterval()
293 if (!MaxTimesInlineLarge.hasValue()) in getMaxTimesInlineLarge()
299 if (!MinCFGSizeTreatFunctionsAsLarge.hasValue()) in getMinCFGSizeTreatFunctionsAsLarge()
306 if (!MaxNodesPerTopLevelFunction.hasValue()) { in getMaxNodesPerTopLevelFunction()
337 if (!InlineLambdas.hasValue()) in shouldInlineLambdas()
343 if (!WidenLoops.hasValue()) in shouldWidenLoops()
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp26 EXPECT_TRUE(Value.hasValue()); in TEST()
39 EXPECT_TRUE(Value.hasValue()); in TEST()
47 EXPECT_TRUE(Value.hasValue()); in TEST()
77 EXPECT_TRUE(Value.hasValue()); in TEST()
83 EXPECT_TRUE(Value.hasValue()); in TEST()
94 EXPECT_TRUE(Value.hasValue()); in TEST()
99 EXPECT_FALSE(Value.hasValue()); in TEST()
/external/llvm/lib/DebugInfo/PDB/Raw/
DInfoStreamBuilder.cpp32 if (!Ver.hasValue()) in build()
35 if (!Sig.hasValue()) in build()
38 if (!Age.hasValue()) in build()
41 if (!Guid.hasValue()) in build()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DProcessTest.cpp37 EXPECT_TRUE(val.hasValue()); in TEST()
44 EXPECT_FALSE(val.hasValue()); in TEST()
53 EXPECT_TRUE(val.hasValue()); in TEST()
60 EXPECT_TRUE(val.hasValue()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/
DDWARFDebugInfoTest.cpp253 EXPECT_TRUE(BlockDataOpt.hasValue()); in TestAllForms()
261 EXPECT_TRUE(BlockDataOpt.hasValue()); in TestAllForms()
269 EXPECT_TRUE(BlockDataOpt.hasValue()); in TestAllForms()
277 EXPECT_TRUE(BlockDataOpt.hasValue()); in TestAllForms()
287 EXPECT_TRUE(BlockDataOpt.hasValue()); in TestAllForms()
1458 EXPECT_FALSE(toString(FormValOpt).hasValue()); in TEST()
1459 EXPECT_FALSE(toUnsigned(FormValOpt).hasValue()); in TEST()
1460 EXPECT_FALSE(toReference(FormValOpt).hasValue()); in TEST()
1461 EXPECT_FALSE(toSigned(FormValOpt).hasValue()); in TEST()
1462 EXPECT_FALSE(toAddress(FormValOpt).hasValue()); in TEST()
[all …]
/external/turbine/javatests/com/google/turbine/options/
DTurbineOptionsTest.java83 assertThat(options.output()).hasValue("out.jar"); in exhaustiveArgs()
95 assertThat(options.outputDeps()).hasValue("out.jdeps"); in exhaustiveArgs()
96 assertThat(options.targetLabel()).hasValue("//java/com/google/test"); in exhaustiveArgs()
97 assertThat(options.injectingRuleKind()).hasValue("foo_library"); in exhaustiveArgs()
120 assertThat(options.targetLabel()).hasValue("//java/com/google/test"); in strictJavaDepsArgs()
209 assertThat(options.targetLabel()).hasValue("//custom/label"); in paramsFile()
223 assertThat(options.targetLabel()).hasValue("@other-repo//foo:local-jam"); in escapedExternalRepositoryLabel()
311 assertThat(options.release()).hasValue("7"); in releaseJavacopts()
/external/llvm/unittests/Support/
DProcessTest.cpp37 EXPECT_TRUE(val.hasValue()); in TEST()
44 EXPECT_FALSE(val.hasValue()); in TEST()
52 EXPECT_TRUE(val.hasValue()); in TEST()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DOptional.h125 bool hasValue() const { return hasVal; } in hasValue() function
133 return hasValue() ? getValue() : std::forward<U>(value); in getValueOr()
142 return hasValue() ? std::move(getValue()) : std::forward<U>(value); in getValueOr()
157 return X.hasValue() == Y.hasValue();
169 return X.hasValue() < Y.hasValue();
212 return X.hasValue();
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCFLSteensAliasAnalysis.cpp167 if (RetInfo.hasValue()) in FunctionInfo()
176 if (ParamInfo.hasValue()) in FunctionInfo()
252 assert(Iter->second.hasValue()); in ensureCached()
259 if (FunInfo.hasValue()) in getAliasSummary()
295 assert(MaybeInfo.hasValue()); in query()
299 if (!MaybeA.hasValue()) in query()
303 if (!MaybeB.hasValue()) in query()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DConstraintManager.h42 return Val.hasValue() && Val.getValue(); in isConstrainedTrue()
47 return Val.hasValue() && !Val.getValue(); in isConstrainedFalse()
52 return Val.hasValue(); in isConstrained()
58 return !Val.hasValue(); in isUnderconstrained()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DOptional.h183 bool hasValue() const { return Storage.hasVal; }
191 return hasValue() ? getValue() : std::forward<U>(value);
200 return hasValue() ? std::move(getValue()) : std::forward<U>(value);
214 return X.hasValue() == Y.hasValue();
226 return X.hasValue() < Y.hasValue();
269 return X.hasValue();
/external/icu/icu4c/source/common/
Dstringtriebuilder.cpp88 UBool hasValue=FALSE; in writeNode() local
97 hasValue=TRUE; in writeNode()
129 return writeValueAndType(hasValue, value, type); in writeNode()
212 UBool hasValue=FALSE; in makeNode() local
220 hasValue=TRUE; in makeNode()
247 if(hasValue && node!=NULL) { in makeNode()
425 return hasValue==o.hasValue && (!hasValue || value==o.value); in operator ==()
611 offset=builder.writeValueAndType(hasValue, value, length-1); in write()
614 offset=builder.writeValueAndType(hasValue, value, 0); in write()
/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java59 assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO); in testGetIfPresent()
60 assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA); in testGetIfPresent()
61 assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); in testGetIfPresent()
67 assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO); in testGetIfPresent()
68 assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA); in testGetIfPresent()
69 assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); in testGetIfPresent()
/external/guava/android/guava-tests/test/com/google/common/base/
DEnumsTest.java59 assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO); in testGetIfPresent()
60 assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA); in testGetIfPresent()
61 assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); in testGetIfPresent()
67 assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO); in testGetIfPresent()
68 assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA); in testGetIfPresent()
69 assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); in testGetIfPresent()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMapEntry.java248 private boolean hasValue; field in MapEntry.Builder
254 private Builder(Metadata<K, V> metadata, K key, V value, boolean hasKey, boolean hasValue) { in Builder() argument
259 this.hasValue = hasValue; in Builder()
284 this.hasValue = true; in setValue()
290 this.hasValue = false; in clearValue()
410 return field.getNumber() == 1 ? hasKey : hasValue; in hasField()
442 return new Builder(metadata, key, value, hasKey, hasValue); in clone()
/external/python/pyasn1-modules/tests/
Dtest_rfc4055.py49 assert not asn1Object['parameters'].hasValue()
75 assert asn1Object['parameters'].hasValue()
102 assert not asn1Object['parameters'].hasValue()
128 assert asn1Object['parameters'].hasValue()
157 assert asn1Object['parameters'].hasValue()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCharsTrieTest.java342 if(!result.hasValue() || result!=trie.current() || value!=trie.getValue()) { in Test37LargeTrie()
731 int firstValue=firstResult.hasValue() ? trie.getValue() : -1; in checkFirst()
735 firstValue!=(firstResult.hasValue() ? trie.getValue() : -1) || in checkFirst()
745 firstValue=firstResult.hasValue() ? trie.getValue() : -1; in checkFirst()
749 firstValue!=(firstResult.hasValue() ? trie.getValue() : -1) || in checkFirst()
765 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext()
805 if(!result.hasValue()) { in checkNext()
858 if(resultAtState.hasValue()) { in checkNextWithState()
866 (resultAtState.hasValue() && valueAtState!=trie.getValue()) in checkNextWithState()
870 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
[all …]

12345678910>>...14