1 /* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.1 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.1 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include "RadioConfig.h" 18 19 namespace android { 20 namespace hardware { 21 namespace radio { 22 namespace config { 23 namespace V1_0 { 24 namespace implementation { 25 26 using namespace ::android::hardware::radio::config::V1_0; 27 28 // Methods from ::android::hardware::radio::config::V1_0::IRadioConfig follow. setResponseFunctions(const sp<IRadioConfigResponse> & radioConfigResponse,const sp<IRadioConfigIndication> & radioConfigIndication)29Return<void> RadioConfig::setResponseFunctions( 30 const sp<IRadioConfigResponse>& radioConfigResponse, 31 const sp<IRadioConfigIndication>& radioConfigIndication) { 32 mRadioConfigResponse = radioConfigResponse; 33 mRadioConfigIndication = radioConfigIndication; 34 return Void(); 35 } 36 getSimSlotsStatus(int32_t)37Return<void> RadioConfig::getSimSlotsStatus(int32_t /* serial */) { 38 hidl_vec<SimSlotStatus> slotStatus; 39 ::android::hardware::radio::V1_0::RadioResponseInfo info; 40 mRadioConfigResponse->getSimSlotsStatusResponse(info, slotStatus); 41 return Void(); 42 } 43 setSimSlotsMapping(int32_t,const hidl_vec<uint32_t> &)44Return<void> RadioConfig::setSimSlotsMapping(int32_t /* serial */, 45 const hidl_vec<uint32_t>& /* slotMap */) { 46 ::android::hardware::radio::V1_0::RadioResponseInfo info; 47 mRadioConfigResponse->setSimSlotsMappingResponse(info); 48 return Void(); 49 } 50 51 } // namespace implementation 52 } // namespace V1_0 53 } // namespace config 54 } // namespace radio 55 } // namespace hardware 56 } // namespace android 57