Home
last modified time | relevance | path

Searched refs:asBool (Results 1 – 25 of 28) sorted by relevance

12

/third_party/node/test/js-native-api/test_conversions/
Dtest.js12 assert.strictEqual(test.asBool(false), false);
13 assert.strictEqual(test.asBool(true), true);
14 assert.throws(() => test.asBool(undefined), boolExpected);
15 assert.throws(() => test.asBool(null), boolExpected);
16 assert.throws(() => test.asBool(Number.NaN), boolExpected);
17 assert.throws(() => test.asBool(0), boolExpected);
18 assert.throws(() => test.asBool(''), boolExpected);
19 assert.throws(() => test.asBool('0'), boolExpected);
20 assert.throws(() => test.asBool(1), boolExpected);
21 assert.throws(() => test.asBool('1'), boolExpected);
[all …]
/third_party/vk-gl-cts/framework/randomshaders/
DrsgVariableValue.cpp91 bool aMin = a.component(ndx).getMin().asBool(); in compareValueRangesAllTrue()
92 bool aMax = a.component(ndx).getMax().asBool(); in compareValueRangesAllTrue()
93 bool bMin = b.component(ndx).getMin().asBool(); in compareValueRangesAllTrue()
94 bool bMax = b.component(ndx).getMax().asBool(); in compareValueRangesAllTrue()
253 bool aMin = a.component(ndx).getMin().asBool(); in computeIntersection()
254 bool aMax = a.component(ndx).getMax().asBool(); in computeIntersection()
255 bool bMin = b.component(ndx).getMin().asBool(); in computeIntersection()
256 bool bMax = b.component(ndx).getMax().asBool(); in computeIntersection()
DrsgBinaryOps.cpp192 …dst.component(elemNdx).asBool(compNdx) = EvaluateLessThan()(a.component(elemNdx).asFloat(compNdx),… in evaluate()
423 ComputeValueRange()(state.getRandom(), dst.getMin().asBool(), dst.getMax().asBool(), in BinaryVecOp()
424 a.getMin().asBool(), a.getMax().asBool(), in BinaryVecOp()
425 b.getMin().asBool(), b.getMax().asBool()); in BinaryVecOp()
672 bool dstMin = valueRange.getMin().asBool(); in RelationalOp()
673 bool dstMax = valueRange.getMax().asBool(); in RelationalOp()
701 dst.asBool(compNdx) = EvaluateComp()(a.asFloat(compNdx), b.asFloat(compNdx)); in evaluate()
706 dst.asBool(compNdx) = EvaluateComp()(a.asInt(compNdx), b.asInt(compNdx)); in evaluate()
970 bool dstMin = valueRange.getMin().asBool(); in EqualityComparisonOp()
971 bool dstMax = valueRange.getMax().asBool(); in EqualityComparisonOp()
[all …]
DrsgUtils.cpp76 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue()
77 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue()
78 dst.component(ndx).asBool() = rnd.getInt(minVal, maxVal) == 1; in computeRandomValue()
197 valueRange.getMin().component(ndx).asBool() = minVal; in computeRandomValueRange()
198 valueRange.getMax().component(ndx).asBool() = maxVal; in computeRandomValueRange()
313 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRangeLengthSum()
314 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRangeLengthSum()
DrsgExecutionContext.cpp99 newValue.asBool(i) = oldValue.asBool(i) && value.asBool(i); in andExecutionMask()
158 if (mask.asBool(compNdx)) in assignMasked()
DrsgVariableValue.hpp103 bool asBool (void) const { DE_STATIC_ASSERT(Stride == 1); return m_value->boolVal; } in asBool() function in rsg::ConstStridedValueAccess
108 …bool asBool (int ndx) const { DE_ASSERT(de::inBounds(ndx, 0, Stride)); return m_value[n… in asBool() function in rsg::ConstStridedValueAccess
136 bool& asBool (void) { DE_STATIC_ASSERT(Stride == 1); return this->m_value->boolVal; } in asBool() function in rsg::StridedValueAccess
141 …bool& asBool (int ndx) { DE_ASSERT(de::inBounds(ndx, 0, Stride)); return this->m_value[n… in asBool() function in rsg::StridedValueAccess
155 StridedValueAccess& operator= (bool boolVal) { asBool() = boolVal; return *this; } in operator =()
DrsgStatement.cpp431 range.getMin().asBool() = false; in createNextChild()
432 range.getMax().asBool() = true; in createNextChild()
518 falseMask.asBool(i) = !trueMask.asBool(i); in execute()
DrsgExpression.cpp491 minVal = valueRange.getMin().component(0).asBool() ? 1 : 0; in BoolLiteral()
492 maxVal = valueRange.getMax().component(0).asBool() ? 1 : 0; in BoolLiteral()
499 access.asBool(ndx) = value; in BoolLiteral()
511 access.asBool(ndx) = customValue; in BoolLiteral()
530 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_BOOL)).asBool(0)); in tokenize()
615 …<> inline bool getValueAccessValue<bool> (ConstValueAccess access) { return access.asBool(); } in getValueAccessValue()
620 template<> inline bool& getValueAccessValue<bool> (ValueAccess access) { return access.asBool();… in getValueAccessValue()
/third_party/mesa3d/src/tool/pps/
Dpps_config.cc95 if (args["info"].asBool()) { in main()
99 if (args["dump"].asBool()) { in main()
125 if (args["groups"].asBool()) { in main()
129 if (args["counters"].asBool()) { in main()
/third_party/jsoncpp/src/test_lib_json/
Dmain.cpp537 JSONTEST_ASSERT_EQUAL(true, true_.asBool()); in JSONTEST_FIXTURE_LOCAL()
545 JSONTEST_ASSERT_EQUAL(false, false_.asBool()); in JSONTEST_FIXTURE_LOCAL()
602 JSONTEST_ASSERT_EQUAL(false, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
630 JSONTEST_ASSERT_EQUAL(false, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
658 JSONTEST_ASSERT_EQUAL(false, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
686 JSONTEST_ASSERT_EQUAL(false, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
714 JSONTEST_ASSERT_EQUAL(false, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
742 JSONTEST_ASSERT_EQUAL(false, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
769 JSONTEST_ASSERT_EQUAL(true, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
797 JSONTEST_ASSERT_EQUAL(true, val.asBool()); in JSONTEST_FIXTURE_LOCAL()
[all …]
/third_party/jsoncpp/src/lib_json/
Djson_writer.cpp406 document_ += valueToString(value.asBool()); in writeValue()
476 pushValue(valueToString(value.asBool())); in writeValue()
694 pushValue(valueToString(value.asBool())); in writeValue()
969 pushValue(valueToString(value.asBool())); in writeValue()
1166 const bool eyc = settings_["enableYAMLCompatibility"].asBool(); in newStreamWriter()
1167 const bool dnp = settings_["dropNullPlaceholders"].asBool(); in newStreamWriter()
1168 const bool usf = settings_["useSpecialFloats"].asBool(); in newStreamWriter()
1169 const bool emitUTF8 = settings_["emitUTF8"].asBool(); in newStreamWriter()
Djson_reader.cpp1897 bool collectComments = settings_["collectComments"].asBool(); in newCharReader()
1899 features.allowComments_ = settings_["allowComments"].asBool(); in newCharReader()
1900 features.allowTrailingCommas_ = settings_["allowTrailingCommas"].asBool(); in newCharReader()
1901 features.strictRoot_ = settings_["strictRoot"].asBool(); in newCharReader()
1903 settings_["allowDroppedNullPlaceholders"].asBool(); in newCharReader()
1904 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); in newCharReader()
1905 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); in newCharReader()
1910 features.failIfExtra_ = settings_["failIfExtra"].asBool(); in newCharReader()
1911 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); in newCharReader()
1912 features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool(); in newCharReader()
[all …]
/third_party/protobuf/conformance/third_party/jsoncpp/
Djsoncpp.cpp2108 bool collectComments = settings_["collectComments"].asBool(); in newCharReader()
2110 features.allowComments_ = settings_["allowComments"].asBool(); in newCharReader()
2111 features.strictRoot_ = settings_["strictRoot"].asBool(); in newCharReader()
2112 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); in newCharReader()
2113 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); in newCharReader()
2114 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); in newCharReader()
2116 features.failIfExtra_ = settings_["failIfExtra"].asBool(); in newCharReader()
2117 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); in newCharReader()
2118 features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool(); in newCharReader()
3212 bool Value::asBool() const { in asBool() function in Json::Value
[all …]
/third_party/spirv-headers/tools/buildHeaders/jsoncpp/dist/
Djsoncpp.cpp2082 bool collectComments = settings_["collectComments"].asBool(); in newCharReader()
2084 features.allowComments_ = settings_["allowComments"].asBool(); in newCharReader()
2085 features.strictRoot_ = settings_["strictRoot"].asBool(); in newCharReader()
2086 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); in newCharReader()
2087 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); in newCharReader()
2088 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); in newCharReader()
2090 features.failIfExtra_ = settings_["failIfExtra"].asBool(); in newCharReader()
2091 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); in newCharReader()
3180 bool Value::asBool() const { in asBool() function in Json::Value
4273 document_ += valueToString(value.asBool()); in writeValue()
[all …]
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/jsoncpp/dist/
Djsoncpp.cpp2082 bool collectComments = settings_["collectComments"].asBool(); in newCharReader()
2084 features.allowComments_ = settings_["allowComments"].asBool(); in newCharReader()
2085 features.strictRoot_ = settings_["strictRoot"].asBool(); in newCharReader()
2086 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); in newCharReader()
2087 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); in newCharReader()
2088 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); in newCharReader()
2090 features.failIfExtra_ = settings_["failIfExtra"].asBool(); in newCharReader()
2091 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); in newCharReader()
3180 bool Value::asBool() const { in asBool() function in Json::Value
4273 document_ += valueToString(value.asBool()); in writeValue()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/jsoncpp/dist/
Djsoncpp.cpp2082 bool collectComments = settings_["collectComments"].asBool(); in newCharReader()
2084 features.allowComments_ = settings_["allowComments"].asBool(); in newCharReader()
2085 features.strictRoot_ = settings_["strictRoot"].asBool(); in newCharReader()
2086 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); in newCharReader()
2087 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); in newCharReader()
2088 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); in newCharReader()
2090 features.failIfExtra_ = settings_["failIfExtra"].asBool(); in newCharReader()
2091 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); in newCharReader()
3180 bool Value::asBool() const { in asBool() function in Json::Value
4273 document_ += valueToString(value.asBool()); in writeValue()
[all …]
/third_party/jsoncpp/include/json/
Dvalue.h396 bool asBool() const;
657 template <> inline bool Value::as<bool>() const { return asBool(); }
/third_party/jsoncpp/src/jsontestrunner/
Dmain.cpp98 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); in printValueTree()
/third_party/jsoncpp/doc/
Djsoncpp.dox73 foo::setIndentUseSpace( root["indent"].get("use_space", true).asBool() );
/third_party/skia/third_party/externals/angle2/src/feature_support_util/
Dfeature_support_util.cpp674 bool useANGLE = jRule[kJsonUseANGLE].asBool(); in ReadRulesFromJsonString()
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderCase.cpp439 …case rsg::VariableType::TYPE_BOOL: message << (value.component(elementNdx).asBool() ? "true" : "… in operator <<()
/third_party/vk-gl-cts/framework/common/
DtcuVector.hpp152 Vector<bool, Size> asBool (void) const { return cast<bool>(); } in asBool() function in tcu::Vector
/third_party/flutter/skia/third_party/externals/angle2/src/feature_support_util/
Dfeature_support_util.cpp710 bool useANGLE = jRule[kJsonUseANGLE].asBool(); in ReadRulesFromJsonString()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/jsoncpp/dist/json/
Djson.h680 bool asBool() const;
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/jsoncpp/dist/json/
Djson.h680 bool asBool() const;

12