Merge "Receive forwarded number from Modem"
This commit is contained in:
commit
d35457c922
6 changed files with 56 additions and 0 deletions
|
@ -406,4 +406,13 @@ interface IRadio extends @1.5::IRadio {
|
||||||
* Response function is IRadioResponse.getDataRegistrationStateResponse_1_6()
|
* Response function is IRadioResponse.getDataRegistrationStateResponse_1_6()
|
||||||
*/
|
*/
|
||||||
oneway getDataRegistrationState_1_6(int32_t serial);
|
oneway getDataRegistrationState_1_6(int32_t serial);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Requests current call list
|
||||||
|
*
|
||||||
|
* @param serial Serial number of request.
|
||||||
|
*
|
||||||
|
* Response function is IRadioResponse.getCurrentCallsResponse_1_6()
|
||||||
|
*/
|
||||||
|
oneway getCurrentCalls_1_6(int32_t serial);
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,6 +18,7 @@ package android.hardware.radio@1.6;
|
||||||
|
|
||||||
import @1.0::SendSmsResult;
|
import @1.0::SendSmsResult;
|
||||||
import @1.5::IRadioResponse;
|
import @1.5::IRadioResponse;
|
||||||
|
import @1.6::Call;
|
||||||
import @1.6::CellInfo;
|
import @1.6::CellInfo;
|
||||||
import @1.6::RegStateResult;
|
import @1.6::RegStateResult;
|
||||||
import @1.6::RadioResponseInfo;
|
import @1.6::RadioResponseInfo;
|
||||||
|
@ -383,4 +384,16 @@ interface IRadioResponse extends @1.5::IRadioResponse {
|
||||||
*/
|
*/
|
||||||
oneway getDataRegistrationStateResponse_1_6(RadioResponseInfo info,
|
oneway getDataRegistrationStateResponse_1_6(RadioResponseInfo info,
|
||||||
RegStateResult dataRegResponse);
|
RegStateResult dataRegResponse);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param calls Current call list
|
||||||
|
* RadioError:NO_MEMORY
|
||||||
|
* RadioError:INTERNAL_ERR
|
||||||
|
* RadioError:SYSTEM_ERR
|
||||||
|
* RadioError:INVALID_ARGUMENTS
|
||||||
|
* RadioError:REQUEST_NOT_SUPPORTED
|
||||||
|
* RadioError:NO_RESOURCES
|
||||||
|
* RadioError:CANCELLED
|
||||||
|
*/
|
||||||
|
oneway getCurrentCallsResponse_1_6(RadioResponseInfo info, vec<Call> calls);
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,6 +24,7 @@ import @1.0::RadioError;
|
||||||
import @1.0::RadioResponseType;
|
import @1.0::RadioResponseType;
|
||||||
import @1.0::RegState;
|
import @1.0::RegState;
|
||||||
import @1.1::ScanStatus;
|
import @1.1::ScanStatus;
|
||||||
|
import @1.2::Call;
|
||||||
import @1.2::CellInfoCdma;
|
import @1.2::CellInfoCdma;
|
||||||
import @1.2::CellConnectionStatus;
|
import @1.2::CellConnectionStatus;
|
||||||
import @1.2::TdscdmaSignalStrength;
|
import @1.2::TdscdmaSignalStrength;
|
||||||
|
@ -723,3 +724,12 @@ struct RegStateResult {
|
||||||
} ngranInfo;
|
} ngranInfo;
|
||||||
} accessTechnologySpecificInfo;
|
} accessTechnologySpecificInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Call {
|
||||||
|
@1.2::Call base;
|
||||||
|
/**
|
||||||
|
* Forwarded number. It can set only one forwarded number based on 3GPP rule of the CS.
|
||||||
|
* Reference: 3GPP TS 24.008 section 10.5.4.21b
|
||||||
|
*/
|
||||||
|
string forwardedNumber;
|
||||||
|
};
|
||||||
|
|
|
@ -406,3 +406,15 @@ TEST_P(RadioHidlTest_v1_6, setSimCardPower_1_6) {
|
||||||
EXPECT_EQ(CardState::PRESENT, cardStatus.base.base.base.cardState);
|
EXPECT_EQ(CardState::PRESENT, cardStatus.base.base.base.cardState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Test IRadio.getCurrentCalls_1_6() for the response returned.
|
||||||
|
*/
|
||||||
|
TEST_P(RadioHidlTest_v1_6, getCurrentCalls_1_6) {
|
||||||
|
serial = GetRandomSerialNumber();
|
||||||
|
radio_v1_6->getCurrentCalls_1_6(serial);
|
||||||
|
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||||
|
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
|
||||||
|
EXPECT_EQ(serial, radioRsp_v1_6->rspInfo.serial);
|
||||||
|
EXPECT_EQ(::android::hardware::radio::V1_6::RadioError::NONE, radioRsp_v1_6->rspInfo.error);
|
||||||
|
}
|
||||||
|
|
|
@ -815,6 +815,10 @@ class RadioResponse_v1_6 : public ::android::hardware::radio::V1_6::IRadioRespon
|
||||||
Return<void> getDataRegistrationStateResponse_1_6(
|
Return<void> getDataRegistrationStateResponse_1_6(
|
||||||
const ::android::hardware::radio::V1_6::RadioResponseInfo& info,
|
const ::android::hardware::radio::V1_6::RadioResponseInfo& info,
|
||||||
const ::android::hardware::radio::V1_6::RegStateResult& regResponse);
|
const ::android::hardware::radio::V1_6::RegStateResult& regResponse);
|
||||||
|
|
||||||
|
Return<void> getCurrentCallsResponse_1_6(
|
||||||
|
const ::android::hardware::radio::V1_6::RadioResponseInfo& info,
|
||||||
|
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_6::Call>& calls);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Callback class for radio indication */
|
/* Callback class for radio indication */
|
||||||
|
|
|
@ -1199,3 +1199,11 @@ Return<void> RadioResponse_v1_6::getDataRegistrationStateResponse_1_6(
|
||||||
parent_v1_6.notify(info.serial);
|
parent_v1_6.notify(info.serial);
|
||||||
return Void();
|
return Void();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Return<void> RadioResponse_v1_6::getCurrentCallsResponse_1_6(
|
||||||
|
const ::android::hardware::radio::V1_6::RadioResponseInfo& info,
|
||||||
|
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_6::Call>& /*calls*/) {
|
||||||
|
rspInfo = info;
|
||||||
|
parent_v1_6.notify(info.serial);
|
||||||
|
return Void();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue