Home
last modified time | relevance | path

Searched refs:resultToInt (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/broadcastradio/aidl/vts/src/
DVtsHalBroadcastradioAidlTargetTest.cpp52 using ::aidl::android::hardware::broadcastradio::utils::resultToInt;
373 if (halResult.getServiceSpecificError() == resultToInt(Result::NOT_SUPPORTED)) { in getAmFmRegionConfig()
392 if (startResult.getServiceSpecificError() == resultToInt(Result::NOT_SUPPORTED)) { in getProgramList()
420 EXPECT_EQ(halResult.getServiceSpecificError(), resultToInt(Result::INVALID_ARGUMENTS)); in TEST_P()
540 if (halResult.getServiceSpecificError() == resultToInt(Result::NOT_SUPPORTED)) { in TEST_P()
578 EXPECT_EQ(result.getServiceSpecificError(), resultToInt(Result::INVALID_STATE)); in TEST_P()
607 auto notSupportedError = resultToInt(Result::NOT_SUPPORTED); in TEST_P()
638 auto invalidArgumentsError = resultToInt(Result::INVALID_ARGUMENTS); in TEST_P()
664 ASSERT_EQ(result.getServiceSpecificError(), resultToInt(Result::NOT_SUPPORTED)); in TEST_P()
688 EXPECT_EQ(result.getServiceSpecificError(), resultToInt(Result::NOT_SUPPORTED)); in TEST_P()
[all …]
/hardware/interfaces/broadcastradio/aidl/default/
DBroadcastRadio.cpp32 using ::aidl::android::hardware::broadcastradio::utils::resultToInt;
259 resultToInt(Result::INVALID_ARGUMENTS), "cannot set tuner callback to null"); in setTunerCallback()
310 resultToInt(Result::INVALID_STATE), "callback is not registered"); in tune()
316 resultToInt(Result::NOT_SUPPORTED), "selector is not supported"); in tune()
322 resultToInt(Result::INVALID_ARGUMENTS), "selector is not valid"); in tune()
467 resultToInt(Result::INVALID_STATE), "callback is not registered"); in seek()
517 resultToInt(Result::INVALID_STATE), "callback is not registered"); in step()
530 resultToInt(Result::NOT_SUPPORTED), "cannot step in anything else than AM/FM"); in step()
536 resultToInt(Result::INTERNAL_ERROR), "can't find current band"); in step()
724 resultToInt(Result::NOT_SUPPORTED), in registerAnnouncementListener()
/hardware/interfaces/broadcastradio/aidl/default/test/
DDefaultBroadcastRadioHalTest.cpp235 ASSERT_EQ(halResult.getServiceSpecificError(), utils::resultToInt(Result::INVALID_ARGUMENTS)); in TEST_F()
286 ASSERT_EQ(halResult.getServiceSpecificError(), utils::resultToInt(Result::INVALID_ARGUMENTS)); in TEST_F()
292 ASSERT_EQ(halResult.getServiceSpecificError(), utils::resultToInt(Result::INVALID_STATE)); in TEST_F()
365 ASSERT_EQ(halResult.getServiceSpecificError(), utils::resultToInt(Result::INVALID_STATE)); in TEST_F()
444 ASSERT_EQ(halResult.getServiceSpecificError(), utils::resultToInt(Result::INVALID_STATE)); in TEST_F()
/hardware/interfaces/broadcastradio/common/utilsaidl/include/broadcastradio-utils-aidl/
DUtils.h77 int32_t resultToInt(Result result);
/hardware/interfaces/broadcastradio/common/utilsaidl/src/
DUtils.cpp104 int32_t resultToInt(Result result) { in resultToInt() function