Lines Matching refs:healthInfo
489 HalResult<HealthInfo> healthInfo; in TEST_P() local
491 healthInfo = {result, value}; in TEST_P()
495 {healthInfo.result, healthInfo.value.legacy.batteryStatus}, in TEST_P()
496 {healthInfo.result, healthInfo.value.legacy.batteryCurrent}, in TEST_P()
505 HalResult<HealthInfo> healthInfo; in TEST_P() local
507 healthInfo = {result, value}; in TEST_P()
510 {healthInfo.result, healthInfo.value.legacy.batteryStatus}, in TEST_P()
511 {healthInfo.result, healthInfo.value.batteryCurrentAverage}, in TEST_P()
521 HalResult<HealthInfo> healthInfo; in TEST_P() local
523 healthInfo = {result, value}; in TEST_P()
525 return IsBatteryCurrentSimilar({healthInfo.result, healthInfo.value.legacy.batteryStatus}, in TEST_P()
526 {healthInfo.result, healthInfo.value.legacy.batteryCurrent}, in TEST_P()
527 {healthInfo.result, healthInfo.value.batteryCurrentAverage}); in TEST_P()
594 HalResult<HealthInfo> healthInfo) { in IsBatteryStatusCorrect() argument
596 if (healthInfo.result != Result::SUCCESS) { in IsBatteryStatusCorrect()
597 return AssertionSuccess() << "getHealthInfo returned " << toString(healthInfo.result) in IsBatteryStatusCorrect()
605 const auto& batteryInfo = healthInfo.value.legacy; in IsBatteryStatusCorrect()
648 HalResult<HealthInfo> healthInfo; in TEST_P() local
650 healthInfo = {result, value}; in TEST_P()
652 return IsBatteryStatusCorrect(status, healthInfo); in TEST_P()
661 HalResult<HealthInfo> healthInfo; in TEST_P() local
663 healthInfo = {result, value}; in TEST_P()
665 return IsBatteryStatusCorrect({healthInfo.result, healthInfo.value.legacy.batteryStatus}, in TEST_P()
666 healthInfo); in TEST_P()