/hardware/interfaces/gnss/1.1/vts/functional/ |
D | gnss_hal_test.cpp | 47 gnss_cb_ = nullptr; in TearDown() 51 gnss_cb_ = new GnssCallback(); in SetUpGnssCallback() 52 ASSERT_NE(gnss_cb_, nullptr); in SetUpGnssCallback() 54 auto result = gnss_hal_->setCallback_1_1(gnss_cb_); in SetUpGnssCallback() 65 EXPECT_TRUE(gnss_cb_->capabilities_cbq_.retrieve(gnss_cb_->last_capabilities_, TIMEOUT_SEC)); in SetUpGnssCallback() 66 EXPECT_TRUE(gnss_cb_->info_cbq_.retrieve(gnss_cb_->last_info_, TIMEOUT_SEC)); in SetUpGnssCallback() 67 EXPECT_TRUE(gnss_cb_->name_cbq_.retrieve(gnss_cb_->last_name_, TIMEOUT_SEC)); in SetUpGnssCallback() 69 EXPECT_EQ(gnss_cb_->capabilities_cbq_.calledCount(), 1); in SetUpGnssCallback() 70 EXPECT_EQ(gnss_cb_->info_cbq_.calledCount(), 1); in SetUpGnssCallback() 71 EXPECT_EQ(gnss_cb_->name_cbq_.calledCount(), 1); in SetUpGnssCallback() [all …]
|
D | gnss_hal_test_cases.cpp | 59 if (gnss_cb_->last_capabilities_ & IGnssCallback::Capabilities::MEASUREMENTS) { in TEST_P() 87 gnss_cb_->location_cbq_.reset(); in TEST_P() 90 gnss_cb_->location_cbq_.reset(); in TEST_P() 102 gnss_cb_->location_cbq_.retrieve(gnss_cb_->last_location_, kNoLocationPeriodSec); in TEST_P() 103 const int location_called_count = gnss_cb_->location_cbq_.calledCount(); in TEST_P() 107 CheckLocation(gnss_cb_->last_location_, true); in TEST_P() 116 if (!gnss_cb_->location_cbq_.retrieve( in TEST_P() 117 gnss_cb_->last_location_, in TEST_P() 121 CheckLocation(gnss_cb_->last_location_, true); in TEST_P() 234 gnss_cb_->location_cbq_.reset(); in TEST_P() [all …]
|
D | gnss_hal_test.h | 158 sp<GnssCallback> gnss_cb_; // Primary callback interface variable
|
/hardware/interfaces/gnss/2.0/vts/functional/ |
D | gnss_hal_test.cpp | 45 gnss_cb_ = nullptr; in TearDown() 49 gnss_cb_ = new GnssCallback(); in SetUpGnssCallback() 50 ASSERT_NE(gnss_cb_, nullptr); in SetUpGnssCallback() 52 auto result = gnss_hal_->setCallback_2_0(gnss_cb_); in SetUpGnssCallback() 63 EXPECT_TRUE(gnss_cb_->capabilities_cbq_.retrieve(gnss_cb_->last_capabilities_, TIMEOUT_SEC)); in SetUpGnssCallback() 64 EXPECT_TRUE(gnss_cb_->info_cbq_.retrieve(gnss_cb_->last_info_, TIMEOUT_SEC)); in SetUpGnssCallback() 65 EXPECT_TRUE(gnss_cb_->name_cbq_.retrieve(gnss_cb_->last_name_, TIMEOUT_SEC)); in SetUpGnssCallback() 67 EXPECT_EQ(gnss_cb_->capabilities_cbq_.calledCount(), 1); in SetUpGnssCallback() 68 EXPECT_EQ(gnss_cb_->info_cbq_.calledCount(), 1); in SetUpGnssCallback() 69 EXPECT_EQ(gnss_cb_->name_cbq_.calledCount(), 1); in SetUpGnssCallback() [all …]
|
D | gnss_hal_test_cases.cpp | 313 if (!(gnss_cb_->last_capabilities_ & IGnssCallback::Capabilities::MEASUREMENT_CORRECTIONS)) { in TEST_P() 341 if (!(gnss_cb_->last_capabilities_ & IGnssCallback::Capabilities::MEASUREMENT_CORRECTIONS)) { in TEST_P() 410 ASSERT_TRUE((int)gnss_cb_->last_location_.elapsedRealtime.flags <= in TEST_P() 415 if (gnss_cb_->last_location_.elapsedRealtime.flags & ElapsedRealtimeFlags::HAS_TIMESTAMP_NS) { in TEST_P() 416 ASSERT_TRUE(gnss_cb_->last_location_.elapsedRealtime.timestampNs != 0); in TEST_P() 427 gnss_hal_->injectBestLocation_2_0(gnss_cb_->last_location_); in TEST_P() 449 if (!(gnss_cb_->last_capabilities_ & IGnssCallback::Capabilities::LOW_POWER_MODE)) { in TEST_P() 461 gnss_cb_->location_cbq_.reset(); in TEST_P() 464 gnss_cb_->location_cbq_.reset(); in TEST_P() 478 gnss_cb_->location_cbq_.retrieve(gnss_cb_->last_location_, kNoLocationPeriodSec); in TEST_P() [all …]
|
D | gnss_hal_test.h | 212 sp<GnssCallback> gnss_cb_; // Primary callback interface variable
|
/hardware/interfaces/gnss/common/utils/vts/include/v2_1/ |
D | gnss_hal_test_template.h | 154 sp<GnssCallback> gnss_cb_; // Primary callback interface variable 176 gnss_cb_ = nullptr; in TearDown() 181 gnss_cb_ = new GnssCallback(); in SetUpGnssCallback() 182 ASSERT_NE(gnss_cb_, nullptr); in SetUpGnssCallback() 184 auto result = gnss_hal_->setCallback_2_1(gnss_cb_); in SetUpGnssCallback() 195 EXPECT_TRUE(gnss_cb_->capabilities_cbq_.retrieve(gnss_cb_->last_capabilities_, TIMEOUT_SEC)); in SetUpGnssCallback() 196 EXPECT_TRUE(gnss_cb_->info_cbq_.retrieve(gnss_cb_->last_info_, TIMEOUT_SEC)); in SetUpGnssCallback() 197 EXPECT_TRUE(gnss_cb_->name_cbq_.retrieve(gnss_cb_->last_name_, TIMEOUT_SEC)); in SetUpGnssCallback() 199 EXPECT_EQ(gnss_cb_->capabilities_cbq_.calledCount(), 1); in SetUpGnssCallback() 200 EXPECT_EQ(gnss_cb_->info_cbq_.calledCount(), 1); in SetUpGnssCallback() [all …]
|
/hardware/interfaces/gnss/2.1/vts/functional/ |
D | gnss_hal_test_cases.cpp | 186 if (!(gnss_cb_->last_capabilities_ & IGnssCallback_2_1::Capabilities::ANTENNA_INFO) || in TEST_P() 255 gnss_cb_->location_cbq_.reset(); in TEST_P() 256 gnss_cb_->sv_info_list_cbq_.reset(); in TEST_P() 258 int location_called_count = gnss_cb_->location_cbq_.calledCount(); in TEST_P() 260 gnss_cb_->sv_info_list_cbq_.size(), location_called_count); in TEST_P() 269 EXPECT_GT(gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_lists, kNumSvInfoLists, in TEST_P() 391 if (!(gnss_cb_->last_capabilities_ & IGnssCallback_2_1::Capabilities::SATELLITE_BLACKLIST)) { in TEST_P() 400 gnss_cb_->location_cbq_.reset(); in TEST_P() 402 int location_called_count = gnss_cb_->location_cbq_.calledCount(); in TEST_P() 405 int sv_info_list_cbq_size = gnss_cb_->sv_info_list_cbq_.size(); in TEST_P() [all …]
|
/hardware/interfaces/gnss/aidl/vts/ |
D | gnss_hal_test_cases.cpp | 303 gnss_cb_->location_cbq_.reset(); in TEST_P() 460 gnss_cb_->location_cbq_.reset(); in TEST_P() 462 int location_called_count = gnss_cb_->location_cbq_.calledCount(); in TEST_P() 465 int sv_info_list_cbq_size = gnss_cb_->sv_info_list_cbq_.size(); in TEST_P() 478 int count = gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec_list, sv_info_list_cbq_size, in TEST_P() 508 gnss_cb_->sv_info_list_cbq_.reset(); in TEST_P() 510 gnss_cb_->location_cbq_.reset(); in TEST_P() 514 location_called_count = gnss_cb_->location_cbq_.calledCount(); in TEST_P() 521 sv_info_list_cbq_size = gnss_cb_->sv_info_list_cbq_.size(); in TEST_P() 527 gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); in TEST_P() [all …]
|
/hardware/interfaces/gnss/1.0/vts/functional/ |
D | VtsHalGnssV1_0TargetTest.cpp | 71 gnss_cb_ = new GnssCallback(*this); in SetUp() 72 ASSERT_NE(gnss_cb_, nullptr); in SetUp() 74 auto result = gnss_hal_->setCallback(gnss_cb_); in SetUp() 334 sp<IGnssCallback> gnss_cb_; // Primary callback interface member in GnssHalTest
|