/external/libbrillo/brillo/ |
D | value_conversion_test.cc | 51 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 …]
|
D | value_conversion.h | 35 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 …]
|
D | value_conversion.cc | 22 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/ |
D | unit_base_unittest.cc | 21 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 …]
|
D | unit_base.h | 96 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/ |
D | decode.cc | 200 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/ |
D | frequency.h | 32 return FromValue(value); in MilliHertz()
|
D | data_size.h | 30 return FromValue(value); in Bytes()
|
D | data_rate.h | 37 return FromValue(value); in BitsPerSec()
|
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/ |
D | decode.h | 80 static DecodedArg FromValue(const char* format_string, 245 DecodedArg DecodedArg::FromValue(const char* format, in FromValue() function
|
/external/llvm-project/clang/lib/AST/ |
D | ASTImporter.cpp | 403 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/ |
D | ASTImporter.h | 512 llvm::Expected<APValue> Import(const APValue &FromValue);
|
/external/llvm/lib/IR/ |
D | AsmWriter.cpp | 1042 bool FromValue = false); 2021 bool FromValue) { in WriteAsOperandInternal() argument 2047 assert((FromValue || !isa<LocalAsMetadata>(V)) && in WriteAsOperandInternal()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 1812 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/ |
D | Local.cpp | 1694 Value *FromValue = CI->getOperand(0); in salvageDebugInfoImpl() local 1695 unsigned FromTypeBitSize = FromValue->getType()->getScalarSizeInBits(); in salvageDebugInfoImpl()
|
/external/llvm-project/llvm/lib/IR/ |
D | AsmWriter.cpp | 1295 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/ |
D | AsmWriter.cpp | 1251 bool FromValue = false); 2309 bool FromValue) { in WriteAsOperandInternal() argument 2346 assert((FromValue || !isa<LocalAsMetadata>(V)) && in WriteAsOperandInternal()
|