Merge "Create IRadio 1.6 folder, empty files and VTS framework" am: ea1a77442f am: c7bcb04a04 am: 63b0e0e7d7

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1371046

Change-Id: Id979f47ab771e647a02865cf36a48aba6ba4c928
This commit is contained in:
Jayachandran Chinnakkannu 2020-07-24 02:11:37 +00:00 committed by Automerger Merge Worker
commit a8b5bf1f37
14 changed files with 2558 additions and 1 deletions

View file

@ -371,7 +371,7 @@
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.radio</name>
<version>1.5</version>
<version>1.6</version>
<interface>
<name>IRadio</name>
<instance>slot1</instance>

22
radio/1.6/Android.bp Normal file
View file

@ -0,0 +1,22 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "android.hardware.radio@1.6",
root: "android.hardware",
srcs: [
"types.hal",
"IRadio.hal",
"IRadioIndication.hal",
"IRadioResponse.hal",
],
interfaces: [
"android.hardware.radio@1.0",
"android.hardware.radio@1.1",
"android.hardware.radio@1.2",
"android.hardware.radio@1.3",
"android.hardware.radio@1.4",
"android.hardware.radio@1.5",
"android.hidl.base@1.0",
],
gen_java: true,
}

30
radio/1.6/IRadio.hal Normal file
View file

@ -0,0 +1,30 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.radio@1.6;
import @1.5::IRadio;
/**
* This interface is used by telephony and telecom to talk to cellular radio.
* All the functions have minimum one parameter:
* serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the
* duration of a method call. If clients provide colliding serials (including passing the same
* serial to different methods), multiple responses (one for each method call) must still be served.
* setResponseFunctions must work with @1.6:IRadioResponse and @1.6::IRadioIndication.
*/
interface IRadio extends @1.5::IRadio {
};

View file

@ -0,0 +1,25 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.radio@1.6;
import @1.5::IRadioIndication;
/**
* Interface declaring unsolicited radio indications.
*/
interface IRadioIndication extends @1.5::IRadioIndication {
};

View file

@ -0,0 +1,25 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.radio@1.6;
import @1.5::IRadioResponse;
/**
* Interface declaring response functions to solicited radio requests.
*/
interface IRadioResponse extends @1.5::IRadioResponse {
};

17
radio/1.6/types.hal Normal file
View file

@ -0,0 +1,17 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.radio@1.6;

10
radio/1.6/vts/OWNERS Normal file
View file

@ -0,0 +1,10 @@
# Telephony team
refuhoo@google.com
amitmahajan@google.com
jackyu@google.com
fionaxu@google.com
# more to add
# VTS team
yuexima@google.com
dshi@google.com

View file

@ -0,0 +1,41 @@
//
// Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
cc_test {
name: "VtsHalRadioV1_6TargetTest",
defaults: ["VtsHalTargetTestDefaults"],
srcs: [
"radio_hidl_hal_api.cpp",
"radio_hidl_hal_test.cpp",
"radio_response.cpp",
"radio_indication.cpp",
"VtsHalRadioV1_6TargetTest.cpp",
],
static_libs: [
"RadioVtsTestUtilBase",
"android.hardware.radio@1.6",
"android.hardware.radio@1.5",
"android.hardware.radio@1.4",
"android.hardware.radio@1.3",
"android.hardware.radio@1.2",
"android.hardware.radio@1.1",
"android.hardware.radio@1.0",
"android.hardware.radio.config@1.0",
"android.hardware.radio.config@1.1",
],
header_libs: ["radio.util.header@1.0"],
test_suites: ["general-tests", "vts"]
}

View file

@ -0,0 +1,22 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <radio_hidl_hal_utils_v1_6.h>
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_6,
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
android::hardware::radio::V1_6::IRadio::descriptor)),
android::hardware::PrintInstanceNameToString);

View file

@ -0,0 +1,19 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <radio_hidl_hal_utils_v1_6.h>
#define ASSERT_OK(ret) ASSERT_TRUE(ret.isOk())

View file

@ -0,0 +1,74 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <radio_hidl_hal_utils_v1_6.h>
void RadioHidlTest_v1_6::SetUp() {
radio_v1_6 = android::hardware::radio::V1_6::IRadio::getService(GetParam());
ASSERT_NE(nullptr, radio_v1_6.get());
radioRsp_v1_6 = new (std::nothrow) RadioResponse_v1_6(*this);
ASSERT_NE(nullptr, radioRsp_v1_6.get());
count_ = 0;
radioInd_v1_6 = new (std::nothrow) RadioIndication_v1_6(*this);
ASSERT_NE(nullptr, radioInd_v1_6.get());
radio_v1_6->setResponseFunctions(radioRsp_v1_6, radioInd_v1_6);
getDataCallList();
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
EXPECT_EQ(serial, radioRsp_v1_6->rspInfo.serial);
EXPECT_EQ(RadioError::NONE, radioRsp_v1_6->rspInfo.error);
sp<::android::hardware::radio::config::V1_1::IRadioConfig> radioConfig =
::android::hardware::radio::config::V1_1::IRadioConfig::getService();
/* Enforce Vts testing with RadioConfig is existed. */
ASSERT_NE(nullptr, radioConfig.get());
/* Enforce Vts Testing with Sim Status Present only. */
EXPECT_EQ(CardState::PRESENT, cardStatus.base.base.base.cardState);
}
/*
* Notify that the response message is received.
*/
void RadioHidlTest_v1_6::notify(int receivedSerial) {
std::unique_lock<std::mutex> lock(mtx_);
if (serial == receivedSerial) {
count_++;
cv_.notify_one();
}
}
/*
* Wait till the response message is notified or till TIMEOUT_PERIOD.
*/
std::cv_status RadioHidlTest_v1_6::wait() {
std::unique_lock<std::mutex> lock(mtx_);
std::cv_status status = std::cv_status::no_timeout;
auto now = std::chrono::system_clock::now();
while (count_ == 0) {
status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
if (status == std::cv_status::timeout) {
return status;
}
}
count_--;
return status;
}

View file

@ -0,0 +1,856 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <android-base/logging.h>
#include <gtest/gtest.h>
#include <hidl/GtestPrinter.h>
#include <hidl/ServiceManagement.h>
#include <utils/Log.h>
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <android/hardware/radio/config/1.1/IRadioConfig.h>
#include <android/hardware/radio/1.6/IRadio.h>
#include <android/hardware/radio/1.6/IRadioIndication.h>
#include <android/hardware/radio/1.6/IRadioResponse.h>
#include <android/hardware/radio/1.6/types.h>
#include "vts_test_util.h"
using namespace ::android::hardware::radio::V1_6;
using namespace ::android::hardware::radio::V1_5;
using namespace ::android::hardware::radio::V1_4;
using namespace ::android::hardware::radio::V1_3;
using namespace ::android::hardware::radio::V1_2;
using namespace ::android::hardware::radio::V1_1;
using namespace ::android::hardware::radio::V1_0;
using ::android::sp;
using ::android::hardware::hidl_string;
using ::android::hardware::hidl_vec;
using ::android::hardware::Return;
using ::android::hardware::Void;
#define TIMEOUT_PERIOD 75
#define MODEM_EMERGENCY_CALL_ESTABLISH_TIME 3
#define MODEM_EMERGENCY_CALL_DISCONNECT_TIME 3
#define RADIO_SERVICE_NAME "slot1"
class RadioHidlTest_v1_6;
extern ::android::hardware::radio::V1_5::CardStatus cardStatus;
/* Callback class for radio response v1_5 */
class RadioResponse_v1_6 : public ::android::hardware::radio::V1_6::IRadioResponse {
protected:
RadioHidlTest_v1_6& parent_v1_6;
public:
hidl_vec<RadioBandMode> radioBandModes;
RadioResponseInfo rspInfo;
// Call
hidl_vec<::android::hardware::radio::V1_2::Call> currentCalls;
// Modem
bool isModemEnabled;
bool enableModemResponseToggle;
::android::hardware::hidl_bitfield<::android::hardware::radio::V1_4::RadioAccessFamily>
networkTypeBitmapResponse;
// Data
::android::hardware::radio::V1_4::DataRegStateResult dataRegResp;
// SimLock status
::android::hardware::radio::V1_4::CarrierRestrictionsWithPriority carrierRestrictionsResp;
::android::hardware::radio::V1_4::SimLockMultiSimPolicy multiSimPolicyResp;
// Whether toggling uicc applications operation is supported.
bool canToggleUiccApplicationsEnablement;
// Whether Uicc applications are enabled or not.
bool areUiccApplicationsEnabled;
// Barring Info Response
::android::hardware::radio::V1_5::CellIdentity barringCellIdentity;
::android::hardware::hidl_vec<::android::hardware::radio::V1_5::BarringInfo> barringInfos;
RadioResponse_v1_6(RadioHidlTest_v1_6& parent_v1_6);
virtual ~RadioResponse_v1_6() = default;
Return<void> getIccCardStatusResponse(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_0::CardStatus& cardStatus);
Return<void> supplyIccPinForAppResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> supplyIccPukForAppResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> supplyIccPin2ForAppResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> supplyIccPuk2ForAppResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> changeIccPinForAppResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> changeIccPin2ForAppResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> supplyNetworkDepersonalizationResponse(const RadioResponseInfo& info,
int32_t remainingRetries);
Return<void> getCurrentCallsResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_0::Call>& calls);
Return<void> dialResponse(const RadioResponseInfo& info);
Return<void> getIMSIForAppResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& imsi);
Return<void> hangupConnectionResponse(const RadioResponseInfo& info);
Return<void> hangupWaitingOrBackgroundResponse(const RadioResponseInfo& info);
Return<void> hangupForegroundResumeBackgroundResponse(const RadioResponseInfo& info);
Return<void> switchWaitingOrHoldingAndActiveResponse(const RadioResponseInfo& info);
Return<void> conferenceResponse(const RadioResponseInfo& info);
Return<void> rejectCallResponse(const RadioResponseInfo& info);
Return<void> getLastCallFailCauseResponse(const RadioResponseInfo& info,
const LastCallFailCauseInfo& failCauseInfo);
Return<void> getSignalStrengthResponse(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_0::SignalStrength& sigStrength);
Return<void> getVoiceRegistrationStateResponse(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_0::VoiceRegStateResult& voiceRegResponse);
Return<void> getDataRegistrationStateResponse(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_0::DataRegStateResult& dataRegResponse);
Return<void> getOperatorResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& longName,
const ::android::hardware::hidl_string& shortName,
const ::android::hardware::hidl_string& numeric);
Return<void> setRadioPowerResponse(const RadioResponseInfo& info);
Return<void> sendDtmfResponse(const RadioResponseInfo& info);
Return<void> sendSmsResponse(const RadioResponseInfo& info, const SendSmsResult& sms);
Return<void> sendSMSExpectMoreResponse(const RadioResponseInfo& info, const SendSmsResult& sms);
Return<void> setupDataCallResponse(
const RadioResponseInfo& info,
const android::hardware::radio::V1_0::SetupDataCallResult& dcResponse);
Return<void> iccIOForAppResponse(const RadioResponseInfo& info, const IccIoResult& iccIo);
Return<void> sendUssdResponse(const RadioResponseInfo& info);
Return<void> cancelPendingUssdResponse(const RadioResponseInfo& info);
Return<void> getClirResponse(const RadioResponseInfo& info, int32_t n, int32_t m);
Return<void> setClirResponse(const RadioResponseInfo& info);
Return<void> getCallForwardStatusResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<CallForwardInfo>& call_forwardInfos);
Return<void> setCallForwardResponse(const RadioResponseInfo& info);
Return<void> getCallWaitingResponse(const RadioResponseInfo& info, bool enable,
int32_t serviceClass);
Return<void> setCallWaitingResponse(const RadioResponseInfo& info);
Return<void> acknowledgeLastIncomingGsmSmsResponse(const RadioResponseInfo& info);
Return<void> acceptCallResponse(const RadioResponseInfo& info);
Return<void> deactivateDataCallResponse(const RadioResponseInfo& info);
Return<void> getFacilityLockForAppResponse(const RadioResponseInfo& info, int32_t response);
Return<void> setFacilityLockForAppResponse(const RadioResponseInfo& info, int32_t retry);
Return<void> setBarringPasswordResponse(const RadioResponseInfo& info);
Return<void> getNetworkSelectionModeResponse(const RadioResponseInfo& info, bool manual);
Return<void> setNetworkSelectionModeAutomaticResponse(const RadioResponseInfo& info);
Return<void> setNetworkSelectionModeManualResponse(const RadioResponseInfo& info);
Return<void> getAvailableNetworksResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<OperatorInfo>& networkInfos);
Return<void> startDtmfResponse(const RadioResponseInfo& info);
Return<void> stopDtmfResponse(const RadioResponseInfo& info);
Return<void> getBasebandVersionResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& version);
Return<void> separateConnectionResponse(const RadioResponseInfo& info);
Return<void> setMuteResponse(const RadioResponseInfo& info);
Return<void> getMuteResponse(const RadioResponseInfo& info, bool enable);
Return<void> getClipResponse(const RadioResponseInfo& info, ClipStatus status);
Return<void> getDataCallListResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<
android::hardware::radio::V1_0::SetupDataCallResult>& dcResponse);
Return<void> sendOemRilRequestRawResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<uint8_t>& data);
Return<void> sendOemRilRequestStringsResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::hidl_string>& data);
Return<void> setSuppServiceNotificationsResponse(const RadioResponseInfo& info);
Return<void> writeSmsToSimResponse(const RadioResponseInfo& info, int32_t index);
Return<void> deleteSmsOnSimResponse(const RadioResponseInfo& info);
Return<void> setBandModeResponse(const RadioResponseInfo& info);
Return<void> getAvailableBandModesResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<RadioBandMode>& bandModes);
Return<void> sendEnvelopeResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& commandResponse);
Return<void> sendTerminalResponseToSimResponse(const RadioResponseInfo& info);
Return<void> handleStkCallSetupRequestFromSimResponse(const RadioResponseInfo& info);
Return<void> explicitCallTransferResponse(const RadioResponseInfo& info);
Return<void> setPreferredNetworkTypeResponse(const RadioResponseInfo& info);
Return<void> getPreferredNetworkTypeResponse(const RadioResponseInfo& info,
PreferredNetworkType nwType);
Return<void> getNeighboringCidsResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<NeighboringCell>& cells);
Return<void> setLocationUpdatesResponse(const RadioResponseInfo& info);
Return<void> setCdmaSubscriptionSourceResponse(const RadioResponseInfo& info);
Return<void> setCdmaRoamingPreferenceResponse(const RadioResponseInfo& info);
Return<void> getCdmaRoamingPreferenceResponse(const RadioResponseInfo& info,
CdmaRoamingType type);
Return<void> setTTYModeResponse(const RadioResponseInfo& info);
Return<void> getTTYModeResponse(const RadioResponseInfo& info, TtyMode mode);
Return<void> setPreferredVoicePrivacyResponse(const RadioResponseInfo& info);
Return<void> getPreferredVoicePrivacyResponse(const RadioResponseInfo& info, bool enable);
Return<void> sendCDMAFeatureCodeResponse(const RadioResponseInfo& info);
Return<void> sendBurstDtmfResponse(const RadioResponseInfo& info);
Return<void> sendCdmaSmsResponse(const RadioResponseInfo& info, const SendSmsResult& sms);
Return<void> acknowledgeLastIncomingCdmaSmsResponse(const RadioResponseInfo& info);
Return<void> getGsmBroadcastConfigResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<GsmBroadcastSmsConfigInfo>& configs);
Return<void> setGsmBroadcastConfigResponse(const RadioResponseInfo& info);
Return<void> setGsmBroadcastActivationResponse(const RadioResponseInfo& info);
Return<void> getCdmaBroadcastConfigResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<CdmaBroadcastSmsConfigInfo>& configs);
Return<void> setCdmaBroadcastConfigResponse(const RadioResponseInfo& info);
Return<void> setCdmaBroadcastActivationResponse(const RadioResponseInfo& info);
Return<void> getCDMASubscriptionResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& mdn,
const ::android::hardware::hidl_string& hSid,
const ::android::hardware::hidl_string& hNid,
const ::android::hardware::hidl_string& min,
const ::android::hardware::hidl_string& prl);
Return<void> writeSmsToRuimResponse(const RadioResponseInfo& info, uint32_t index);
Return<void> deleteSmsOnRuimResponse(const RadioResponseInfo& info);
Return<void> getDeviceIdentityResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& imei,
const ::android::hardware::hidl_string& imeisv,
const ::android::hardware::hidl_string& esn,
const ::android::hardware::hidl_string& meid);
Return<void> exitEmergencyCallbackModeResponse(const RadioResponseInfo& info);
Return<void> getSmscAddressResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& smsc);
Return<void> setSmscAddressResponse(const RadioResponseInfo& info);
Return<void> reportSmsMemoryStatusResponse(const RadioResponseInfo& info);
Return<void> reportStkServiceIsRunningResponse(const RadioResponseInfo& info);
Return<void> getCdmaSubscriptionSourceResponse(const RadioResponseInfo& info,
CdmaSubscriptionSource source);
Return<void> requestIsimAuthenticationResponse(
const RadioResponseInfo& info, const ::android::hardware::hidl_string& response);
Return<void> acknowledgeIncomingGsmSmsWithPduResponse(const RadioResponseInfo& info);
Return<void> sendEnvelopeWithStatusResponse(const RadioResponseInfo& info,
const IccIoResult& iccIo);
Return<void> getVoiceRadioTechnologyResponse(
const RadioResponseInfo& info, ::android::hardware::radio::V1_0::RadioTechnology rat);
Return<void> getCellInfoListResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_0::CellInfo>&
cellInfo);
Return<void> setCellInfoListRateResponse(const RadioResponseInfo& info);
Return<void> setInitialAttachApnResponse(const RadioResponseInfo& info);
Return<void> getImsRegistrationStateResponse(const RadioResponseInfo& info, bool isRegistered,
RadioTechnologyFamily ratFamily);
Return<void> sendImsSmsResponse(const RadioResponseInfo& info, const SendSmsResult& sms);
Return<void> iccTransmitApduBasicChannelResponse(const RadioResponseInfo& info,
const IccIoResult& result);
Return<void> iccOpenLogicalChannelResponse(
const RadioResponseInfo& info, int32_t channelId,
const ::android::hardware::hidl_vec<int8_t>& selectResponse);
Return<void> iccCloseLogicalChannelResponse(const RadioResponseInfo& info);
Return<void> iccTransmitApduLogicalChannelResponse(const RadioResponseInfo& info,
const IccIoResult& result);
Return<void> nvReadItemResponse(const RadioResponseInfo& info,
const ::android::hardware::hidl_string& result);
Return<void> nvWriteItemResponse(const RadioResponseInfo& info);
Return<void> nvWriteCdmaPrlResponse(const RadioResponseInfo& info);
Return<void> nvResetConfigResponse(const RadioResponseInfo& info);
Return<void> setUiccSubscriptionResponse(const RadioResponseInfo& info);
Return<void> setDataAllowedResponse(const RadioResponseInfo& info);
Return<void> getHardwareConfigResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<HardwareConfig>& config);
Return<void> requestIccSimAuthenticationResponse(const RadioResponseInfo& info,
const IccIoResult& result);
Return<void> setDataProfileResponse(const RadioResponseInfo& info);
Return<void> requestShutdownResponse(const RadioResponseInfo& info);
Return<void> getRadioCapabilityResponse(
const RadioResponseInfo& info,
const android::hardware::radio::V1_0::RadioCapability& rc);
Return<void> setRadioCapabilityResponse(
const RadioResponseInfo& info,
const android::hardware::radio::V1_0::RadioCapability& rc);
Return<void> startLceServiceResponse(const RadioResponseInfo& info,
const LceStatusInfo& statusInfo);
Return<void> stopLceServiceResponse(const RadioResponseInfo& info,
const LceStatusInfo& statusInfo);
Return<void> pullLceDataResponse(const RadioResponseInfo& info, const LceDataInfo& lceInfo);
Return<void> getModemActivityInfoResponse(const RadioResponseInfo& info,
const ActivityStatsInfo& activityInfo);
Return<void> setAllowedCarriersResponse(const RadioResponseInfo& info, int32_t numAllowed);
Return<void> getAllowedCarriersResponse(const RadioResponseInfo& info, bool allAllowed,
const CarrierRestrictions& carriers);
Return<void> sendDeviceStateResponse(const RadioResponseInfo& info);
Return<void> setIndicationFilterResponse(const RadioResponseInfo& info);
Return<void> setSimCardPowerResponse(const RadioResponseInfo& info);
Return<void> acknowledgeRequest(int32_t serial);
/* 1.1 Api */
Return<void> setCarrierInfoForImsiEncryptionResponse(const RadioResponseInfo& info);
Return<void> setSimCardPowerResponse_1_1(const RadioResponseInfo& info);
Return<void> startNetworkScanResponse(const RadioResponseInfo& info);
Return<void> stopNetworkScanResponse(const RadioResponseInfo& info);
Return<void> startKeepaliveResponse(const RadioResponseInfo& info,
const KeepaliveStatus& status);
Return<void> stopKeepaliveResponse(const RadioResponseInfo& info);
/* 1.2 Api */
Return<void> setSignalStrengthReportingCriteriaResponse(const RadioResponseInfo& info);
Return<void> setLinkCapacityReportingCriteriaResponse(const RadioResponseInfo& info);
Return<void> getIccCardStatusResponse_1_2(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_2::CardStatus& card_status);
Return<void> getCurrentCallsResponse_1_2(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_2::Call>& calls);
Return<void> getSignalStrengthResponse_1_2(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_2::SignalStrength& sig_strength);
Return<void> getSignalStrengthResponse_1_4(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_4::SignalStrength& sig_strength);
Return<void> getCellInfoListResponse_1_2(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_2::CellInfo>&
cellInfo);
Return<void> getVoiceRegistrationStateResponse_1_2(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_2::VoiceRegStateResult& voiceRegResponse);
Return<void> getDataRegistrationStateResponse_1_2(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_2::DataRegStateResult& dataRegResponse);
/* 1.3 Api */
Return<void> setSystemSelectionChannelsResponse(const RadioResponseInfo& info);
Return<void> enableModemResponse(const RadioResponseInfo& info);
Return<void> getModemStackStatusResponse(const RadioResponseInfo& info, const bool enabled);
/* 1.4 Api */
Return<void> emergencyDialResponse(const RadioResponseInfo& info);
Return<void> startNetworkScanResponse_1_4(const RadioResponseInfo& info);
Return<void> getCellInfoListResponse_1_4(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_4::CellInfo>&
cellInfo);
Return<void> getDataRegistrationStateResponse_1_4(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_4::DataRegStateResult& dataRegResponse);
Return<void> getIccCardStatusResponse_1_4(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_4::CardStatus& card_status);
Return<void> getPreferredNetworkTypeBitmapResponse(
const RadioResponseInfo& info,
const ::android::hardware::hidl_bitfield<
::android::hardware::radio::V1_4::RadioAccessFamily>
networkTypeBitmap);
Return<void> setPreferredNetworkTypeBitmapResponse(const RadioResponseInfo& info);
Return<void> getDataCallListResponse_1_4(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_4::SetupDataCallResult>& dcResponse);
Return<void> setupDataCallResponse_1_4(
const RadioResponseInfo& info,
const android::hardware::radio::V1_4::SetupDataCallResult& dcResponse);
Return<void> setAllowedCarriersResponse_1_4(const RadioResponseInfo& info);
Return<void> getAllowedCarriersResponse_1_4(const RadioResponseInfo& info,
const CarrierRestrictionsWithPriority& carriers,
SimLockMultiSimPolicy multiSimPolicy);
/* 1.5 Api */
Return<void> setSignalStrengthReportingCriteriaResponse_1_5(const RadioResponseInfo& info);
Return<void> setLinkCapacityReportingCriteriaResponse_1_5(const RadioResponseInfo& info);
Return<void> enableUiccApplicationsResponse(const RadioResponseInfo& info);
Return<void> areUiccApplicationsEnabledResponse(const RadioResponseInfo& info, bool enabled);
Return<void> canToggleUiccApplicationsEnablementResponse(const RadioResponseInfo& info,
bool canToggle);
Return<void> setSystemSelectionChannelsResponse_1_5(const RadioResponseInfo& info);
Return<void> startNetworkScanResponse_1_5(const RadioResponseInfo& info);
Return<void> setupDataCallResponse_1_5(
const RadioResponseInfo& info,
const android::hardware::radio::V1_5::SetupDataCallResult& dcResponse);
Return<void> getDataCallListResponse_1_5(
const RadioResponseInfo& info,
const hidl_vec<::android::hardware::radio::V1_5::SetupDataCallResult>& dcResponse);
Return<void> setInitialAttachApnResponse_1_5(const RadioResponseInfo& info);
Return<void> setDataProfileResponse_1_5(const RadioResponseInfo& info);
Return<void> setRadioPowerResponse_1_5(const RadioResponseInfo& info);
Return<void> setIndicationFilterResponse_1_5(const RadioResponseInfo& info);
Return<void> getBarringInfoResponse(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_5::CellIdentity& cellIdentity,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_5::BarringInfo>&
barringInfos);
Return<void> getVoiceRegistrationStateResponse_1_5(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_5::RegStateResult& regResponse);
Return<void> getDataRegistrationStateResponse_1_5(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_5::RegStateResult& regResponse);
Return<void> getCellInfoListResponse_1_5(
const RadioResponseInfo& info,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_5::CellInfo>&
cellInfo);
Return<void> setNetworkSelectionModeManualResponse_1_5(const RadioResponseInfo& info);
Return<void> sendCdmaSmsExpectMoreResponse(const RadioResponseInfo& info,
const SendSmsResult& sms);
Return<void> supplySimDepersonalizationResponse(
const RadioResponseInfo& info,
::android::hardware::radio::V1_5::PersoSubstate persoType, int32_t remainingRetries);
Return<void> getIccCardStatusResponse_1_5(
const RadioResponseInfo& info,
const ::android::hardware::radio::V1_5::CardStatus& card_status);
/* 1.6 Api */
};
/* Callback class for radio indication */
class RadioIndication_v1_6 : public ::android::hardware::radio::V1_6::IRadioIndication {
protected:
RadioHidlTest_v1_6& parent_v1_6;
public:
RadioIndication_v1_6(RadioHidlTest_v1_6& parent_v1_6);
virtual ~RadioIndication_v1_6() = default;
/* 1.6 Api */
/* 1.5 Api */
Return<void> uiccApplicationsEnablementChanged(RadioIndicationType type, bool enabled);
Return<void> networkScanResult_1_5(
RadioIndicationType type,
const ::android::hardware::radio::V1_5::NetworkScanResult& result);
Return<void> cellInfoList_1_5(
RadioIndicationType type,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_5::CellInfo>&
records);
Return<void> dataCallListChanged_1_5(
RadioIndicationType type,
const hidl_vec<::android::hardware::radio::V1_5::SetupDataCallResult>& dcList);
/* 1.4 Api */
Return<void> currentEmergencyNumberList(
RadioIndicationType type,
const ::android::hardware::hidl_vec<EmergencyNumber>& emergencyNumberList);
Return<void> cellInfoList_1_4(
RadioIndicationType type,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_4::CellInfo>&
records);
Return<void> networkScanResult_1_4(
RadioIndicationType type,
const ::android::hardware::radio::V1_4::NetworkScanResult& result);
Return<void> currentPhysicalChannelConfigs_1_4(
RadioIndicationType type,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_4::PhysicalChannelConfig>& configs);
Return<void> dataCallListChanged_1_4(
RadioIndicationType type,
const ::android::hardware::hidl_vec<
android::hardware::radio::V1_4::SetupDataCallResult>& dcList);
/* 1.2 Api */
Return<void> networkScanResult_1_2(
RadioIndicationType type,
const ::android::hardware::radio::V1_2::NetworkScanResult& result);
Return<void> cellInfoList_1_2(
RadioIndicationType type,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_2::CellInfo>&
records);
Return<void> currentLinkCapacityEstimate(
RadioIndicationType type,
const ::android::hardware::radio::V1_2::LinkCapacityEstimate& lce);
Return<void> currentPhysicalChannelConfigs(
RadioIndicationType type,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_2::PhysicalChannelConfig>& configs);
Return<void> currentSignalStrength_1_2(
RadioIndicationType type,
const ::android::hardware::radio::V1_2::SignalStrength& signalStrength);
Return<void> currentSignalStrength_1_4(
RadioIndicationType type,
const ::android::hardware::radio::V1_4::SignalStrength& signalStrength);
/* 1.1 Api */
Return<void> carrierInfoForImsiEncryption(RadioIndicationType info);
Return<void> networkScanResult(
RadioIndicationType type,
const ::android::hardware::radio::V1_1::NetworkScanResult& result);
Return<void> keepaliveStatus(RadioIndicationType type, const KeepaliveStatus& status);
/* 1.0 Api */
Return<void> radioStateChanged(RadioIndicationType type, RadioState radioState);
Return<void> callStateChanged(RadioIndicationType type);
Return<void> networkStateChanged(RadioIndicationType type);
Return<void> newSms(RadioIndicationType type,
const ::android::hardware::hidl_vec<uint8_t>& pdu);
Return<void> newSmsStatusReport(RadioIndicationType type,
const ::android::hardware::hidl_vec<uint8_t>& pdu);
Return<void> newSmsOnSim(RadioIndicationType type, int32_t recordNumber);
Return<void> onUssd(RadioIndicationType type, UssdModeType modeType,
const ::android::hardware::hidl_string& msg);
Return<void> nitzTimeReceived(RadioIndicationType type,
const ::android::hardware::hidl_string& nitzTime,
uint64_t receivedTime);
Return<void> currentSignalStrength(
RadioIndicationType type,
const ::android::hardware::radio::V1_0::SignalStrength& signalStrength);
Return<void> dataCallListChanged(
RadioIndicationType type,
const ::android::hardware::hidl_vec<
android::hardware::radio::V1_0::SetupDataCallResult>& dcList);
Return<void> suppSvcNotify(RadioIndicationType type, const SuppSvcNotification& suppSvc);
Return<void> stkSessionEnd(RadioIndicationType type);
Return<void> stkProactiveCommand(RadioIndicationType type,
const ::android::hardware::hidl_string& cmd);
Return<void> stkEventNotify(RadioIndicationType type,
const ::android::hardware::hidl_string& cmd);
Return<void> stkCallSetup(RadioIndicationType type, int64_t timeout);
Return<void> simSmsStorageFull(RadioIndicationType type);
Return<void> simRefresh(RadioIndicationType type, const SimRefreshResult& refreshResult);
Return<void> callRing(RadioIndicationType type, bool isGsm, const CdmaSignalInfoRecord& record);
Return<void> simStatusChanged(RadioIndicationType type);
Return<void> cdmaNewSms(RadioIndicationType type, const CdmaSmsMessage& msg);
Return<void> newBroadcastSms(RadioIndicationType type,
const ::android::hardware::hidl_vec<uint8_t>& data);
Return<void> cdmaRuimSmsStorageFull(RadioIndicationType type);
Return<void> restrictedStateChanged(RadioIndicationType type, PhoneRestrictedState state);
Return<void> enterEmergencyCallbackMode(RadioIndicationType type);
Return<void> cdmaCallWaiting(RadioIndicationType type,
const CdmaCallWaiting& callWaitingRecord);
Return<void> cdmaOtaProvisionStatus(RadioIndicationType type, CdmaOtaProvisionStatus status);
Return<void> cdmaInfoRec(RadioIndicationType type, const CdmaInformationRecords& records);
Return<void> indicateRingbackTone(RadioIndicationType type, bool start);
Return<void> resendIncallMute(RadioIndicationType type);
Return<void> cdmaSubscriptionSourceChanged(RadioIndicationType type,
CdmaSubscriptionSource cdmaSource);
Return<void> cdmaPrlChanged(RadioIndicationType type, int32_t version);
Return<void> exitEmergencyCallbackMode(RadioIndicationType type);
Return<void> rilConnected(RadioIndicationType type);
Return<void> voiceRadioTechChanged(RadioIndicationType type,
::android::hardware::radio::V1_0::RadioTechnology rat);
Return<void> cellInfoList(
RadioIndicationType type,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_0::CellInfo>&
records);
Return<void> imsNetworkStateChanged(RadioIndicationType type);
Return<void> subscriptionStatusChanged(RadioIndicationType type, bool activate);
Return<void> srvccStateNotify(RadioIndicationType type, SrvccState state);
Return<void> hardwareConfigChanged(
RadioIndicationType type, const ::android::hardware::hidl_vec<HardwareConfig>& configs);
Return<void> radioCapabilityIndication(
RadioIndicationType type, const android::hardware::radio::V1_0::RadioCapability& rc);
Return<void> onSupplementaryServiceIndication(RadioIndicationType type,
const StkCcUnsolSsResult& ss);
Return<void> stkCallControlAlphaNotify(RadioIndicationType type,
const ::android::hardware::hidl_string& alpha);
Return<void> lceData(RadioIndicationType type, const LceDataInfo& lce);
Return<void> pcoData(RadioIndicationType type, const PcoDataInfo& pco);
Return<void> modemReset(RadioIndicationType type,
const ::android::hardware::hidl_string& reason);
Return<void> registrationFailed(
RadioIndicationType type,
const ::android::hardware::radio::V1_5::CellIdentity& cellIdentity,
const ::android::hardware::hidl_string& chosenPlmn,
::android::hardware::hidl_bitfield<::android::hardware::radio::V1_5::Domain> domain,
int32_t causeCode, int32_t additionalCauseCode);
Return<void> barringInfoChanged(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_5::CellIdentity& /*cellIdentity*/,
const ::android::hardware::hidl_vec<::android::hardware::radio::V1_5::BarringInfo>&
/*barringInfos*/);
};
// The main test class for Radio HIDL.
class RadioHidlTest_v1_6 : public ::testing::TestWithParam<std::string> {
protected:
std::mutex mtx_;
std::condition_variable cv_;
int count_;
/* Serial number for radio request */
int serial;
/* Clear Potential Established Calls */
void clearPotentialEstablishedCalls();
/* Get current data call list */
void getDataCallList();
public:
virtual void SetUp() override;
/* Used as a mechanism to inform the test about data/event callback */
void notify(int receivedSerial);
/* Test code calls this function to wait for response */
std::cv_status wait();
/* radio service handle */
sp<::android::hardware::radio::V1_6::IRadio> radio_v1_6;
/* radio response handle */
sp<RadioResponse_v1_6> radioRsp_v1_6;
/* radio indication handle */
sp<RadioIndication_v1_6> radioInd_v1_6;
};

View file

@ -0,0 +1,372 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <radio_hidl_hal_utils_v1_6.h>
RadioIndication_v1_6::RadioIndication_v1_6(RadioHidlTest_v1_6& parent) : parent_v1_6(parent) {}
/* 1.6 Apis */
/* 1.5 Apis */
Return<void> RadioIndication_v1_6::uiccApplicationsEnablementChanged(RadioIndicationType /*type*/,
bool /*enabled*/) {
return Void();
}
Return<void> RadioIndication_v1_6::registrationFailed(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_5::CellIdentity& /*cellIdentity*/,
const hidl_string& /*chosenPlmn*/,
::android::hardware::hidl_bitfield<::android::hardware::radio::V1_5::Domain> /*domain*/,
int32_t /*causeCode*/, int32_t /*additionalCauseCode*/) {
return Void();
}
Return<void> RadioIndication_v1_6::barringInfoChanged(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_5::CellIdentity& /*cellIdentity*/,
const hidl_vec<::android::hardware::radio::V1_5::BarringInfo>& /*barringInfos*/) {
return Void();
}
Return<void> RadioIndication_v1_6::networkScanResult_1_5(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_5::NetworkScanResult& /*result*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cellInfoList_1_5(
RadioIndicationType /*type*/,
const hidl_vec<::android::hardware::radio::V1_5::CellInfo>& /*records*/) {
return Void();
}
Return<void> RadioIndication_v1_6::dataCallListChanged_1_5(
RadioIndicationType /*type*/,
const hidl_vec<android::hardware::radio::V1_5::SetupDataCallResult>& /*dcList*/) {
return Void();
}
/* 1.4 Apis */
Return<void> RadioIndication_v1_6::currentPhysicalChannelConfigs_1_4(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_4::PhysicalChannelConfig>& /*configs*/) {
return Void();
}
Return<void> RadioIndication_v1_6::networkScanResult_1_4(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_4::NetworkScanResult& /*result*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cellInfoList_1_4(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_4::CellInfo>& /*records*/) {
return Void();
}
Return<void> RadioIndication_v1_6::currentEmergencyNumberList(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<EmergencyNumber>& /*emergencyNumberList*/) {
return Void();
}
Return<void> RadioIndication_v1_6::dataCallListChanged_1_4(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<android::hardware::radio::V1_4::SetupDataCallResult>&
/*dcList*/) {
return Void();
}
/* 1.2 Apis */
Return<void> RadioIndication_v1_6::networkScanResult_1_2(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_2::NetworkScanResult& /*result*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cellInfoList_1_2(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_2::CellInfo>& /*records*/) {
return Void();
}
Return<void> RadioIndication_v1_6::currentLinkCapacityEstimate(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_2::LinkCapacityEstimate& /*lce*/) {
return Void();
}
Return<void> RadioIndication_v1_6::currentPhysicalChannelConfigs(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_2::PhysicalChannelConfig>& /*configs*/) {
return Void();
}
Return<void> RadioIndication_v1_6::currentSignalStrength_1_2(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_2::SignalStrength& /*signalStrength*/) {
return Void();
}
Return<void> RadioIndication_v1_6::currentSignalStrength_1_4(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_4::SignalStrength& /*signalStrength*/) {
return Void();
}
/* 1.1 Apis */
Return<void> RadioIndication_v1_6::carrierInfoForImsiEncryption(RadioIndicationType /*info*/) {
return Void();
}
Return<void> RadioIndication_v1_6::networkScanResult(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_1::NetworkScanResult& /*result*/) {
return Void();
}
Return<void> RadioIndication_v1_6::keepaliveStatus(RadioIndicationType /*type*/,
const KeepaliveStatus& /*status*/) {
return Void();
}
/* 1.0 Apis */
Return<void> RadioIndication_v1_6::radioStateChanged(RadioIndicationType /*type*/,
RadioState /*radioState*/) {
return Void();
}
Return<void> RadioIndication_v1_6::callStateChanged(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::networkStateChanged(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::newSms(RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<uint8_t>& /*pdu*/) {
return Void();
}
Return<void> RadioIndication_v1_6::newSmsStatusReport(
RadioIndicationType /*type*/, const ::android::hardware::hidl_vec<uint8_t>& /*pdu*/) {
return Void();
}
Return<void> RadioIndication_v1_6::newSmsOnSim(RadioIndicationType /*type*/,
int32_t /*recordNumber*/) {
return Void();
}
Return<void> RadioIndication_v1_6::onUssd(RadioIndicationType /*type*/, UssdModeType /*modeType*/,
const ::android::hardware::hidl_string& /*msg*/) {
return Void();
}
Return<void> RadioIndication_v1_6::nitzTimeReceived(
RadioIndicationType /*type*/, const ::android::hardware::hidl_string& /*nitzTime*/,
uint64_t /*receivedTime*/) {
return Void();
}
Return<void> RadioIndication_v1_6::currentSignalStrength(
RadioIndicationType /*type*/,
const ::android::hardware::radio::V1_0::SignalStrength& /*signalStrength*/) {
return Void();
}
Return<void> RadioIndication_v1_6::dataCallListChanged(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<android::hardware::radio::V1_0::SetupDataCallResult>&
/*dcList*/) {
return Void();
}
Return<void> RadioIndication_v1_6::suppSvcNotify(RadioIndicationType /*type*/,
const SuppSvcNotification& /*suppSvc*/) {
return Void();
}
Return<void> RadioIndication_v1_6::stkSessionEnd(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::stkProactiveCommand(
RadioIndicationType /*type*/, const ::android::hardware::hidl_string& /*cmd*/) {
return Void();
}
Return<void> RadioIndication_v1_6::stkEventNotify(RadioIndicationType /*type*/,
const ::android::hardware::hidl_string& /*cmd*/) {
return Void();
}
Return<void> RadioIndication_v1_6::stkCallSetup(RadioIndicationType /*type*/, int64_t /*timeout*/) {
return Void();
}
Return<void> RadioIndication_v1_6::simSmsStorageFull(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::simRefresh(RadioIndicationType /*type*/,
const SimRefreshResult& /*refreshResult*/) {
return Void();
}
Return<void> RadioIndication_v1_6::callRing(RadioIndicationType /*type*/, bool /*isGsm*/,
const CdmaSignalInfoRecord& /*record*/) {
return Void();
}
Return<void> RadioIndication_v1_6::simStatusChanged(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaNewSms(RadioIndicationType /*type*/,
const CdmaSmsMessage& /*msg*/) {
return Void();
}
Return<void> RadioIndication_v1_6::newBroadcastSms(
RadioIndicationType /*type*/, const ::android::hardware::hidl_vec<uint8_t>& /*data*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaRuimSmsStorageFull(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::restrictedStateChanged(RadioIndicationType /*type*/,
PhoneRestrictedState /*state*/) {
return Void();
}
Return<void> RadioIndication_v1_6::enterEmergencyCallbackMode(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaCallWaiting(RadioIndicationType /*type*/,
const CdmaCallWaiting& /*callWaitingRecord*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaOtaProvisionStatus(RadioIndicationType /*type*/,
CdmaOtaProvisionStatus /*status*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaInfoRec(RadioIndicationType /*type*/,
const CdmaInformationRecords& /*records*/) {
return Void();
}
Return<void> RadioIndication_v1_6::indicateRingbackTone(RadioIndicationType /*type*/,
bool /*start*/) {
return Void();
}
Return<void> RadioIndication_v1_6::resendIncallMute(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaSubscriptionSourceChanged(
RadioIndicationType /*type*/, CdmaSubscriptionSource /*cdmaSource*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cdmaPrlChanged(RadioIndicationType /*type*/,
int32_t /*version*/) {
return Void();
}
Return<void> RadioIndication_v1_6::exitEmergencyCallbackMode(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::rilConnected(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::voiceRadioTechChanged(
RadioIndicationType /*type*/, ::android::hardware::radio::V1_0::RadioTechnology /*rat*/) {
return Void();
}
Return<void> RadioIndication_v1_6::cellInfoList(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<
::android::hardware::radio::V1_0::CellInfo>& /*records*/) {
return Void();
}
Return<void> RadioIndication_v1_6::imsNetworkStateChanged(RadioIndicationType /*type*/) {
return Void();
}
Return<void> RadioIndication_v1_6::subscriptionStatusChanged(RadioIndicationType /*type*/,
bool /*activate*/) {
return Void();
}
Return<void> RadioIndication_v1_6::srvccStateNotify(RadioIndicationType /*type*/,
SrvccState /*state*/) {
return Void();
}
Return<void> RadioIndication_v1_6::hardwareConfigChanged(
RadioIndicationType /*type*/,
const ::android::hardware::hidl_vec<HardwareConfig>& /*configs*/) {
return Void();
}
Return<void> RadioIndication_v1_6::radioCapabilityIndication(
RadioIndicationType /*type*/,
const android::hardware::radio::V1_0::RadioCapability& /*rc*/) {
return Void();
}
Return<void> RadioIndication_v1_6::onSupplementaryServiceIndication(
RadioIndicationType /*type*/, const StkCcUnsolSsResult& /*ss*/) {
return Void();
}
Return<void> RadioIndication_v1_6::stkCallControlAlphaNotify(
RadioIndicationType /*type*/, const ::android::hardware::hidl_string& /*alpha*/) {
return Void();
}
Return<void> RadioIndication_v1_6::lceData(RadioIndicationType /*type*/,
const LceDataInfo& /*lce*/) {
return Void();
}
Return<void> RadioIndication_v1_6::pcoData(RadioIndicationType /*type*/,
const PcoDataInfo& /*pco*/) {
return Void();
}
Return<void> RadioIndication_v1_6::modemReset(RadioIndicationType /*type*/,
const ::android::hardware::hidl_string& /*reason*/) {
return Void();
}

File diff suppressed because it is too large Load diff