Lines Matching refs:parsed_value
263 bool AidlConstantValue::ParseIntegral(const string& value, int64_t* parsed_value, in ParseIntegral() argument
265 if (parsed_value == nullptr || parsed_type == nullptr) { in ParseIntegral()
286 *parsed_value = static_cast<int32_t>(rawValue32); in ParseIntegral()
289 *parsed_value = static_cast<int64_t>(rawValue64); in ParseIntegral()
292 *parsed_value = 0; in ParseIntegral()
299 if (!android::base::ParseInt<int64_t>(value_substr, parsed_value)) { in ParseIntegral()
300 *parsed_value = 0; in ParseIntegral()
309 if (*parsed_value <= INT8_MAX && *parsed_value >= INT8_MIN) { in ParseIntegral()
311 } else if (*parsed_value <= INT32_MAX && *parsed_value >= INT32_MIN) { in ParseIntegral()
324 int64_t parsed_value = 0; in Integral() local
325 bool success = ParseIntegral(value, &parsed_value, &parsed_type); in Integral()
330 return new AidlConstantValue(location, parsed_type, parsed_value, value); in Integral()
460 double parsed_value; in ValueString() local
461 if (!android::base::ParseDouble(stripped_value, &parsed_value)) { in ValueString()
466 return decorator(type, std::to_string(parsed_value)); in ValueString()
469 float parsed_value; in ValueString() local
470 if (!android::base::ParseFloat(stripped_value, &parsed_value)) { in ValueString()
475 return decorator(type, std::to_string(parsed_value) + "f"); in ValueString()
829 int64_t parsed_value, const string& checked_value) in AidlConstantValue() argument
834 final_value_(parsed_value) { in AidlConstantValue()