Add vts response functions for Radio Response 1.2 am: 2e6ed18055
am: 1ef5301ca3
am: 8e14e19ef5
Change-Id: I3f9ca84d3db0399e319f8ff36aac12aee0eb1cde
This commit is contained in:
commit
69177feacf
2 changed files with 43 additions and 5 deletions
|
@ -405,6 +405,18 @@ class RadioResponse_v1_2 : public V1_1::IRadioResponse {
|
|||
Return<void> setSignalStrengthReportingCriteriaResponse(const RadioResponseInfo& info);
|
||||
|
||||
Return<void> setLinkCapacityReportingCriteriaResponse(const RadioResponseInfo& info);
|
||||
|
||||
Return<void> getIccCardStatusResponse_1_2(const RadioResponseInfo& info,
|
||||
const CardStatus& card_status);
|
||||
|
||||
Return<void> getCurrentCallsResponse_1_2(const RadioResponseInfo& info,
|
||||
const ::android::hardware::hidl_vec<Call>& calls);
|
||||
|
||||
Return<void> getSignalStrengthResponse_1_2(const RadioResponseInfo& info,
|
||||
const SignalStrength& sig_strength);
|
||||
|
||||
Return<void> getCellInfoListResponse_1_2(
|
||||
const RadioResponseInfo& info, const ::android::hardware::hidl_vec<CellInfo>& cellInfo);
|
||||
};
|
||||
|
||||
/* Callback class for radio indication */
|
||||
|
|
|
@ -21,11 +21,8 @@ CardStatus cardStatus;
|
|||
RadioResponse_v1_2::RadioResponse_v1_2(RadioHidlTest_v1_2& parent) : parent_v1_2(parent) {}
|
||||
|
||||
/* 1.0 Apis */
|
||||
Return<void> RadioResponse_v1_2::getIccCardStatusResponse(const RadioResponseInfo& info,
|
||||
const CardStatus& card_status) {
|
||||
rspInfo = info;
|
||||
cardStatus = card_status;
|
||||
parent_v1_2.notify();
|
||||
Return<void> RadioResponse_v1_2::getIccCardStatusResponse(const RadioResponseInfo& /*info*/,
|
||||
const CardStatus& /*card_status*/) {
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
@ -706,3 +703,32 @@ Return<void> RadioResponse_v1_2::setLinkCapacityReportingCriteriaResponse(
|
|||
parent_v1_2.notify();
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> RadioResponse_v1_2::getIccCardStatusResponse_1_2(const RadioResponseInfo& info,
|
||||
const CardStatus& card_status) {
|
||||
rspInfo = info;
|
||||
cardStatus = card_status;
|
||||
parent_v1_2.notify();
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> RadioResponse_v1_2::getCurrentCallsResponse_1_2(
|
||||
const RadioResponseInfo& info, const ::android::hardware::hidl_vec<Call>& /*calls*/) {
|
||||
rspInfo = info;
|
||||
parent_v1_2.notify();
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> RadioResponse_v1_2::getSignalStrengthResponse_1_2(
|
||||
const RadioResponseInfo& info, const SignalStrength& /*sig_strength*/) {
|
||||
rspInfo = info;
|
||||
parent_v1_2.notify();
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> RadioResponse_v1_2::getCellInfoListResponse_1_2(
|
||||
const RadioResponseInfo& info, const ::android::hardware::hidl_vec<CellInfo>& /*cellInfo*/) {
|
||||
rspInfo = info;
|
||||
parent_v1_2.notify();
|
||||
return Void();
|
||||
}
|
Loading…
Reference in a new issue