Lines Matching refs:currentNow
420 HalResult<int32_t> currentNow, in IsBatteryCurrentSimilar() argument
429 if (currentNow.result != Result::SUCCESS || currentNow.value == 0) { in IsBatteryCurrentSimilar()
430 return AssertionSuccess() << "getCurrentNow returned " << toString(currentNow.result) in IsBatteryCurrentSimilar()
431 << " with value " << currentNow.value << ", skipping"; in IsBatteryCurrentSimilar()
443 TEST_AND_RETURN(IsValueSimilar(currentNow.value, currentAverage.value, gCurrentCompareFactor) in IsBatteryCurrentSimilar()
445 TEST_AND_RETURN(IsValueSimilar(currentAverage.value, currentNow.value, gCurrentCompareFactor) in IsBatteryCurrentSimilar()
447 return AssertionSuccess() << "currentNow = " << currentNow.value in IsBatteryCurrentSimilar()
538 HalResult<int32_t> currentNow; in TEST_P() local
543 currentNow = {result, value}; in TEST_P()
546 return IsBatteryCurrentSignCorrect(status, currentNow, in TEST_P()
578 HalResult<int32_t> currentNow; in TEST_P() local
580 currentNow = {result, value}; in TEST_P()
586 return IsBatteryCurrentSimilar(status, currentNow, currentAverage); in TEST_P()