/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | AnyTest.cpp | 27 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 …]
|
D | StatisticTest.cpp | 83 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/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/ |
D | IsMapContainingValueTest.java | 11 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/BinaryFormat/ |
D | DwarfTest.cpp | 151 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/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | StringTrieBuilder.java | 267 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/icu/android_icu4j/src/main/java/android/icu/util/ |
D | StringTrieBuilder.java | 266 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/llvm/lib/Analysis/ |
D | CFLSteensAliasAnalysis.cpp | 180 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/ |
D | AnalyzerOptions.cpp | 145 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/ |
D | VariantValueTest.cpp | 26 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/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/ |
D | DWARFDebugInfoTest.cpp | 253 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/llvm/lib/DebugInfo/PDB/Raw/ |
D | InfoStreamBuilder.cpp | 32 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/ |
D | ProcessTest.cpp | 37 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/turbine/javatests/com/google/turbine/options/ |
D | TurbineOptionsTest.java | 83 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/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | Optional.h | 125 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/ |
D | CFLSteensAliasAnalysis.cpp | 167 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/llvm/unittests/Support/ |
D | ProcessTest.cpp | 37 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-7.0/llvm/include/llvm/ADT/ |
D | Optional.h | 183 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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ConstraintManager.h | 42 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/icu/icu4c/source/common/ |
D | stringtriebuilder.cpp | 88 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/llvm/include/llvm/ADT/ |
D | Optional.h | 125 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() 164 return !X.hasValue();
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | CharsTrieTest.java | 345 if(!result.hasValue() || result!=trie.current() || value!=trie.getValue()) { in Test37LargeTrie() 712 int firstValue=firstResult.hasValue() ? trie.getValue() : -1; in checkFirst() 716 firstValue!=(firstResult.hasValue() ? trie.getValue() : -1) || in checkFirst() 726 firstValue=firstResult.hasValue() ? trie.getValue() : -1; in checkFirst() 730 firstValue!=(firstResult.hasValue() ? trie.getValue() : -1) || in checkFirst() 746 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext() 786 if(!result.hasValue()) { in checkNext() 839 if(resultAtState.hasValue()) { in checkNextWithState() 847 (resultAtState.hasValue() && valueAtState!=trie.getValue()) in checkNextWithState() 851 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | CharsTrieTest.java | 342 if(!result.hasValue() || result!=trie.current() || value!=trie.getValue()) { in Test37LargeTrie() 709 int firstValue=firstResult.hasValue() ? trie.getValue() : -1; in checkFirst() 713 firstValue!=(firstResult.hasValue() ? trie.getValue() : -1) || in checkFirst() 723 firstValue=firstResult.hasValue() ? trie.getValue() : -1; in checkFirst() 727 firstValue!=(firstResult.hasValue() ? trie.getValue() : -1) || in checkFirst() 743 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext() 783 if(!result.hasValue()) { in checkNext() 836 if(resultAtState.hasValue()) { in checkNextWithState() 844 (resultAtState.hasValue() && valueAtState!=trie.getValue()) in checkNextWithState() 848 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | TypeRecordMapping.cpp | 85 assert(!TypeKind.hasValue() && "Already in a type mapping!"); in visitTypeBegin() 86 assert(!MemberKind.hasValue() && "Already in a member mapping!"); in visitTypeBegin() 101 assert(TypeKind.hasValue() && "Not in a type mapping!"); in visitTypeEnd() 102 assert(!MemberKind.hasValue() && "Still in a member mapping!"); in visitTypeEnd() 111 assert(TypeKind.hasValue() && "Not in a type mapping!"); in visitMemberBegin() 112 assert(!MemberKind.hasValue() && "Already in a member mapping!"); in visitMemberBegin() 127 assert(TypeKind.hasValue() && "Not in a type mapping!"); in visitMemberEnd() 128 assert(MemberKind.hasValue() && "Not in a member mapping!"); in visitMemberEnd()
|
D | SymbolSerializer.cpp | 28 assert(!CurrentSymbol.hasValue() && "Already in a symbol mapping!"); in visitSymbolBegin() 43 assert(CurrentSymbol.hasValue() && "Not in a symbol mapping!"); in visitSymbolEnd()
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFDebugInfoEntry.cpp | 166 if (Ref.hasValue()) { in dumpAttribute() 265 return Result.hasValue() ? Result.getValue() : FailValue; in getAttributeValueAsString() 274 return Result.hasValue() ? Result.getValue() : FailValue; in getAttributeValueAsAddress() 283 return Result.hasValue() ? Result.getValue() : FailValue; in getAttributeValueAsUnsignedConstant() 292 return Result.hasValue() ? Result.getValue() : FailValue; in getAttributeValueAsReference() 301 return Result.hasValue() ? Result.getValue() : FailValue; in getAttributeValueAsSectionOffset()
|