Home
last modified time | relevance | path

Searched refs:FromValue (Results 1 – 17 of 17) sorted by relevance

/external/libbrillo/brillo/
Dvalue_conversion_test.cc51 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST()
54 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST()
57 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST()
62 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST()
65 EXPECT_TRUE(FromValue(*ParseValue("true"), &actual)); in TEST()
68 EXPECT_FALSE(FromValue(*ParseValue("0"), &actual)); in TEST()
69 EXPECT_FALSE(FromValue(*ParseValue("1"), &actual)); in TEST()
74 EXPECT_TRUE(FromValue(*ParseValue("12.5"), &actual)); in TEST()
77 EXPECT_TRUE(FromValue(*ParseValue("-0.1"), &actual)); in TEST()
80 EXPECT_TRUE(FromValue(*ParseValue("17"), &actual)); in TEST()
[all …]
Dvalue_conversion.h35 inline bool FromValue(const base::Value& in_value, bool* out_value) { in FromValue() function
39 inline bool FromValue(const base::Value& in_value, int* out_value) { in FromValue() function
43 inline bool FromValue(const base::Value& in_value, double* out_value) { in FromValue() function
47 inline bool FromValue(const base::Value& in_value, std::string* out_value) { in FromValue() function
51 inline bool FromValue(const base::Value& in_value, in FromValue() function
56 inline bool FromValue(const base::Value& in_value, in FromValue() function
61 BRILLO_EXPORT bool FromValue(const base::Value& in_value,
63 BRILLO_EXPORT bool FromValue(const base::Value& in_value,
67 bool FromValue(const base::Value& in_value,
71 bool FromValue(const base::Value& in_value, std::vector<T, Alloc>* out_value) { in FromValue() function
[all …]
Dvalue_conversion.cc22 bool FromValue(const base::Value& in_value, in FromValue() function
31 bool FromValue(const base::Value& in_value, in FromValue() function
/external/webrtc/rtc_base/units/
Dunit_base_unittest.cc21 using UnitBase::FromValue;
65 constexpr TestUnit kTestUnitValue = TestUnit::FromValue(kValue); in TEST()
78 EXPECT_EQ(TestUnit::FromValue(value).ToValue<int64_t>(), value); in TEST()
85 EXPECT_EQ(TestUnit::FromValue(kValue).ToKilo(), kValue / 1000); in TEST()
170 EXPECT_EQ(TestUnit::FromValue(kValue).ToKilo<double>(), kKiloDouble); in TEST()
173 EXPECT_EQ(TestUnit::FromValue(kValue).ToValue<double>(), kValueDouble); in TEST()
174 EXPECT_EQ(TestUnit::FromValue(kValueDouble).ToValue<int64_t>(), kValue); in TEST()
176 EXPECT_NEAR(TestUnit::FromValue(kValue).ToMilli<double>(), kMilliDouble, 1); in TEST()
190 EXPECT_TRUE(TestUnit::FromValue(kPlusInfinity).IsPlusInfinity()); in TEST()
191 EXPECT_TRUE(TestUnit::FromValue(kMinusInfinity).IsMinusInfinity()); in TEST()
[all …]
Dunit_base.h96 static constexpr Unit_T FromValue(T value) { in FromValue() function
106 static constexpr Unit_T FromValue(T value) { in FromValue() function
113 return FromValue(rtc::dchecked_cast<int64_t>(value)); in FromValue()
131 return FromValue(value * denominator); in FromFraction()
243 return UnitBase<Unit_T>::FromValue(this->ToValue() + other.ToValue());
255 return UnitBase<Unit_T>::FromValue(this->ToValue() - other.ToValue());
272 return UnitBase<Unit_T>::FromValue(
276 return UnitBase<Unit_T>::FromValue(std::round(this->ToValue() * scalar));
279 return UnitBase<Unit_T>::FromValue(this->ToValue() * scalar);
282 return UnitBase<Unit_T>::FromValue(this->ToValue() * scalar);
/external/pigweed/pw_tokenizer/
Ddecode.cc200 return DecodedArg::FromValue(text_.c_str(), value.c_str(), 1 + size, status); in DecodeString()
225 return DecodedArg::FromValue( in DecodeInteger()
228 return DecodedArg::FromValue(text_.c_str(), value, bytes); in DecodeInteger()
240 return DecodedArg::FromValue(text_.c_str(), value, sizeof(value)); in DecodeFloatingPoint()
/external/webrtc/api/units/
Dfrequency.h32 return FromValue(value); in MilliHertz()
Ddata_size.h30 return FromValue(value); in Bytes()
Ddata_rate.h37 return FromValue(value); in BitsPerSec()
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Ddecode.h80 static DecodedArg FromValue(const char* format_string,
245 DecodedArg DecodedArg::FromValue(const char* format, in FromValue() function
/external/llvm-project/clang/lib/AST/
DASTImporter.cpp403 Expected<APValue> ImportAPValue(const APValue &FromValue);
8844 llvm::Expected<APValue> ASTImporter::Import(const APValue &FromValue) { in Import() argument
8846 return Importer.ImportAPValue(FromValue); in Import()
8980 ASTNodeImporter::ImportAPValue(const APValue &FromValue) { in ImportAPValue() argument
8989 switch (FromValue.getKind()) { in ImportAPValue()
8997 Result = FromValue; in ImportAPValue()
9002 Result.setVectorUninit(FromValue.getVectorLength()); in ImportAPValue()
9003 ImportLoop(((const APValue::Vec *)(const char *)&FromValue.Data)->Elts, in ImportAPValue()
9004 Elts.data(), FromValue.getVectorLength()); in ImportAPValue()
9008 Result.MakeArray(FromValue.getArrayInitializedElts(), in ImportAPValue()
[all …]
/external/llvm-project/clang/include/clang/AST/
DASTImporter.h512 llvm::Expected<APValue> Import(const APValue &FromValue);
/external/llvm/lib/IR/
DAsmWriter.cpp1042 bool FromValue = false);
2021 bool FromValue) { in WriteAsOperandInternal() argument
2047 assert((FromValue || !isa<LocalAsMetadata>(V)) && in WriteAsOperandInternal()
/external/llvm-project/llvm/lib/Transforms/Utils/
DLocal.cpp1812 Value *FromValue = CI->getOperand(0); in salvageDebugInfoImpl() local
1813 unsigned FromTypeBitSize = FromValue->getType()->getScalarSizeInBits(); in salvageDebugInfoImpl()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLocal.cpp1694 Value *FromValue = CI->getOperand(0); in salvageDebugInfoImpl() local
1695 unsigned FromTypeBitSize = FromValue->getType()->getScalarSizeInBits(); in salvageDebugInfoImpl()
/external/llvm-project/llvm/lib/IR/
DAsmWriter.cpp1295 bool FromValue = false);
2498 bool FromValue) { in WriteAsOperandInternal() argument
2535 assert((FromValue || !isa<LocalAsMetadata>(V)) && in WriteAsOperandInternal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAsmWriter.cpp1251 bool FromValue = false);
2309 bool FromValue) { in WriteAsOperandInternal() argument
2346 assert((FromValue || !isa<LocalAsMetadata>(V)) && in WriteAsOperandInternal()