Home
last modified time | relevance | path

Searched refs:TEST_AND_RETURN (Results 1 – 16 of 16) sorted by relevance

/aosp12/hardware/interfaces/health/2.0/vts/functional/
H A DVtsHalHealthV2_0TargetTest.cpp44 #define TEST_AND_RETURN(expr) \ macro
490 TEST_AND_RETURN(isOk(mHealth->getHealthInfo([&](auto result, const auto& value) { in TEST_P()
506 TEST_AND_RETURN(isOk(mHealth->getHealthInfo([&](auto result, const auto& value) { in TEST_P()
539 TEST_AND_RETURN(isOk(mHealth->getChargeStatus([&](auto result, auto value) { in TEST_P()
542 TEST_AND_RETURN(isOk(mHealth->getCurrentNow([&](auto result, auto value) { in TEST_P()
557 TEST_AND_RETURN(isOk(mHealth->getChargeStatus([&](auto result, auto value) { in TEST_P()
561 TEST_AND_RETURN(isOk(mHealth->getCurrentAverage([&](auto result, auto value) { in TEST_P()
575 TEST_AND_RETURN(isOk(mHealth->getChargeStatus([&](auto result, auto value) { in TEST_P()
579 TEST_AND_RETURN(isOk(mHealth->getCurrentNow([&](auto result, auto value) { in TEST_P()
583 TEST_AND_RETURN(isOk(mHealth->getCurrentAverage([&](auto result, auto value) { in TEST_P()
[all …]
/aosp12/hardware/interfaces/health/2.1/vts/functional/
H A DVtsHalHealthV2_1TargetTest.cpp47 #define TEST_AND_RETURN(expr) \ macro
150 TEST_AND_RETURN(ResultIsSuccess(service->registerCallback(first))); in TestCallbacks()
151 TEST_AND_RETURN(ResultIsSuccess(service->registerCallback(second))); in TestCallbacks()
160 TEST_AND_RETURN(ResultIsSuccess(service->update())); in TestCallbacks()
165 TEST_AND_RETURN(ResultIsSuccess(service->unregisterCallback(first))); in TestCallbacks()
173 TEST_AND_RETURN(ResultIsSuccess(service->update())); in TestCallbacks()
178 TEST_AND_RETURN(ResultIsSuccess(service->unregisterCallback(second))); in TestCallbacks()
194 TEST_AND_RETURN(IsOk(ret)); in TestUnregisterNonExistentCallback()
/aosp12/system/update_engine/aosp/
H A Dcleanup_previous_update_action.cc166 TEST_AND_RETURN(running_); in ScheduleWaitBootCompleted()
177 TEST_AND_RETURN(running_); in WaitBootCompletedOrSchedule()
194 TEST_AND_RETURN(running_); in ScheduleWaitMarkBootSuccessful()
206 TEST_AND_RETURN(running_); in CheckSlotMarkedSuccessfulOrSchedule()
267 TEST_AND_RETURN(running_); in ScheduleWaitForMerge()
278 TEST_AND_RETURN(running_); in WaitForMergeOrSchedule()
396 TEST_AND_RETURN(running_); in InitiateMergeAndWait()
H A Dupdate_attempter_android.cc888 TEST_AND_RETURN(utils::GetBootId(&current_boot_id)); in UpdatePrefsAndReportUpdateMetricsOnReboot()
892 TEST_AND_RETURN(!current_version.empty()); in UpdatePrefsAndReportUpdateMetricsOnReboot()
H A Ddynamic_partition_control_android.cc608 TEST_AND_RETURN(fd_ != nullptr && fd_->IsOpen()); in ~AvbFooterEraser()
/aosp12/system/update_engine/payload_consumer/
H A Dbzip_extent_writer.cc28 TEST_AND_RETURN(BZ2_bzDecompressEnd(&stream_) == BZ_OK); in ~BzipExtentWriter()
29 TEST_AND_RETURN(input_buffer_.empty()); in ~BzipExtentWriter()
H A Dxz_extent_writer.cc57 TEST_AND_RETURN(input_buffer_.empty()); in ~XzExtentWriter()
H A Dvabc_partition_writer.cc158 TEST_AND_RETURN(cow_writer_ != nullptr); in CheckpointUpdateProgress()
H A Dpostinstall_runner_action.cc63 TEST_AND_RETURN(base::CreateNewTempDirectory("au_postint_mount", &temp_dir)); in PostinstallRunnerAction()
H A Dpostinstall_runner_action_unittest.cc220 TEST_AND_RETURN(base::CreateNewTempDirectory("postinstall", &temp_dir)); in RunPostinstallActionWithInstallPlan()
/aosp12/system/update_engine/common/
H A Dutils_unittest.cc339 TEST_AND_RETURN(i); in VoidMacroTestHelper()
340 TEST_AND_RETURN(ui); in VoidMacroTestHelper()
341 TEST_AND_RETURN(b); in VoidMacroTestHelper()
342 TEST_AND_RETURN(cptr); in VoidMacroTestHelper()
H A Dutils.h501 #define TEST_AND_RETURN(_x) \ macro
H A Dutils.cc409 TEST_AND_RETURN(r == 13); in HexDumpArray()
415 TEST_AND_RETURN(r == 3); in HexDumpArray()
/aosp12/system/update_engine/
H A Dlibcurl_http_fetcher.cc387 TEST_AND_RETURN(header_line.find('\n') == string::npos); in SetHeader()
388 TEST_AND_RETURN(header_name.find(':') == string::npos); in SetHeader()
/aosp12/system/update_engine/cros/
H A Domaha_response_handler_action.cc221 TEST_AND_RETURN(HasOutputPipe()); in PerformAction()
/aosp12/system/update_engine/payload_generator/
H A Ddelta_diff_utils.cc204 TEST_AND_RETURN(blob_file_ != nullptr); in Run()