/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | sim_icc_test.cpp | 139 std::shared_ptr<DiallingNumbersInfo> diallingNumber = variable 141 diallingNumber->name_ = Str8ToStr16("SimAdnZhang"); 142 diallingNumber->number_ = Str8ToStr16("12345678901"); 144 SimTest::slotId_, DiallingNumbersInfo::SIM_ADN, diallingNumber); 152 std::u16string nameTemp = diallingNumber->GetName(); 153 std::u16string numberTemp = diallingNumber->GetNumber(); 177 std::shared_ptr<DiallingNumbersInfo> diallingNumber = variable 179 diallingNumber->name_ = Str8ToStr16("电话卡"); 180 diallingNumber->number_ = Str8ToStr16("00000000000"); 182 SimTest::slotId_, DiallingNumbersInfo::SIM_ADN, diallingNumber); [all …]
|
D | sim_core_service_test.cpp | 111 const std::shared_ptr<DiallingNumbersInfo> diallingNumber = nullptr; variable 112 EXPECT_NE(mCoreService->AddIccDiallingNumbers(0, 1, diallingNumber), TELEPHONY_ERR_SUCCESS); 113 EXPECT_NE(mCoreService->DelIccDiallingNumbers(0, 1, diallingNumber), TELEPHONY_ERR_SUCCESS); 114 EXPECT_NE(mCoreService->UpdateIccDiallingNumbers(0, 1, diallingNumber), TELEPHONY_ERR_SUCCESS); 256 const std::shared_ptr<DiallingNumbersInfo> diallingNumber = nullptr; variable 257 EXPECT_NE(mCoreService->AddIccDiallingNumbers(0, 1, diallingNumber), TELEPHONY_ERR_SUCCESS); 258 EXPECT_NE(mCoreService->DelIccDiallingNumbers(0, 1, diallingNumber), TELEPHONY_ERR_SUCCESS); 259 EXPECT_NE(mCoreService->UpdateIccDiallingNumbers(0, 1, diallingNumber), TELEPHONY_ERR_SUCCESS);
|
/base/telephony/core_service/services/sim/src/ |
D | icc_dialling_numbers_handler.cpp | 105 …std::shared_ptr<void> diallingNumberObj = static_cast<std::shared_ptr<void>>(infor.diallingNumber); in UpdateDiallingNumbers() 258 std::shared_ptr<DiallingNumbersInfo> diallingNumber = in ProcessDiallingNumber() local 260 FetchDiallingNumberContent(diallingNumber, item); in ProcessDiallingNumber() 261 diallingNumberList->push_back(diallingNumber); in ProcessDiallingNumber() 289 std::shared_ptr<DiallingNumbersInfo> diallingNumber = in ProcessDiallingNumberLoadDone() local 291 FetchDiallingNumberContent(diallingNumber, iccData); in ProcessDiallingNumberLoadDone() 292 loadRequest->SetResult(static_cast<std::shared_ptr<void>>(diallingNumber)); in ProcessDiallingNumberLoadDone() 295 …allingNumbersHandler::SendUpdateCommand(const std::shared_ptr<DiallingNumbersInfo> &diallingNumber, in SendUpdateCommand() argument 305 dataDiallingNumber = CreateSavingSequence(diallingNumber, dataLen); in SendUpdateCommand() 310 BuildCallerInfo(MSG_SIM_RENEW_ADN_DONE, diallingNumber, loadId); in SendUpdateCommand() [all …]
|
D | icc_dialling_numbers_manager.cpp | 174 int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in UpdateIccDiallingNumbers() argument 177 if (diallingNumber == nullptr) { in UpdateIccDiallingNumbers() 183 if (!IsValidType(type) || !IsValidParam(type, diallingNumber)) { in UpdateIccDiallingNumbers() 186 int index = diallingNumber->GetIndex(); in UpdateIccDiallingNumbers() 191 … diallingNumbersCache_->UpdateDiallingNumberToIcc(fileId, diallingNumber, index, false, response); in UpdateIccDiallingNumbers() 203 int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in DelIccDiallingNumbers() argument 206 if (diallingNumber == nullptr) { in DelIccDiallingNumbers() 212 if (!IsValidType(type) || !IsValidParam(type, diallingNumber)) { in DelIccDiallingNumbers() 215 int index = diallingNumber->GetIndex(); in DelIccDiallingNumbers() 220 diallingNumbersCache_->UpdateDiallingNumberToIcc(fileId, diallingNumber, index, true, response); in DelIccDiallingNumbers() [all …]
|
D | sim_file.cpp | 643 …std::shared_ptr<DiallingNumbersInfo> diallingNumber = std::static_pointer_cast<DiallingNumbersInfo… in ProcessGetMsisdnDone() local 648 msisdn_ = Str16ToStr8(diallingNumber->GetNumber()); in ProcessGetMsisdnDone() 649 msisdnTag_ = Str16ToStr8(diallingNumber->GetName()); in ProcessGetMsisdnDone() 784 …std::shared_ptr<DiallingNumbersInfo> diallingNumber = std::static_pointer_cast<DiallingNumbersInfo… in ProcessGetMbdnDone() local 785 if (diallingNumber == nullptr) { in ProcessGetMbdnDone() 790 if (diallingNumber->IsEmpty()) { in ProcessGetMbdnDone() 794 voiceMailNum_ = Str16ToStr8(diallingNumber->GetNumber()); in ProcessGetMbdnDone() 795 voiceMailTag_ = Str16ToStr8(diallingNumber->GetName()); in ProcessGetMbdnDone() 820 …std::shared_ptr<DiallingNumbersInfo> diallingNumber = std::static_pointer_cast<DiallingNumbersInfo… in ProcessGetCphsMailBoxDone() local 821 if (diallingNumber == nullptr) { in ProcessGetCphsMailBoxDone() [all …]
|
D | icc_dialling_numbers_cache.cpp | 140 …std::shared_ptr<DiallingNumbersInfo> diallingNumber = std::static_pointer_cast<DiallingNumbersInfo… in ProcessChangeDiallingNumbersDone() local 144 diallingNumberFileList_.at(fileId)->at(index - 1) = diallingNumber; in ProcessChangeDiallingNumbersDone() 153 diallingNumberFileList_.at(fileId)->at(index - 1) = diallingNumber; in ProcessChangeDiallingNumbersDone() 209 infor.diallingNumber = diallingNumberInfor; in UpdateDiallingNumberToIcc() 340 holder->diallingNumber = pobj; in BuildCallerInfo()
|
D | sim_manager.cpp | 983 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in AddIccDiallingNumbers() argument 989 return iccDiallingNumbersManager_[slotId]->AddIccDiallingNumbers(type, diallingNumber); in AddIccDiallingNumbers() 993 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in DelIccDiallingNumbers() argument 999 return iccDiallingNumbersManager_[slotId]->DelIccDiallingNumbers(type, diallingNumber); in DelIccDiallingNumbers() 1003 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in UpdateIccDiallingNumbers() argument 1009 return iccDiallingNumbersManager_[slotId]->UpdateIccDiallingNumbers(type, diallingNumber); in UpdateIccDiallingNumbers()
|
D | usim_dialling_numbers_service.cpp | 227 holder->diallingNumber = pobj; in CreateHandlerPointer()
|
D | icc_file.cpp | 512 holder->diallingNumber = pobj; in CreateDiallingNumberPointer()
|
/base/telephony/core_service/services/sim/include/ |
D | icc_dialling_numbers_handler.h | 181 std::shared_ptr<DiallingNumbersInfo> diallingNumber = nullptr; member 229 const std::shared_ptr<DiallingNumbersInfo> &diallingNumber, const std::string &recordData); 231 const std::shared_ptr<DiallingNumbersInfo> &diallingNumber, int dataLength); 235 std::shared_ptr<unsigned char> diallingNumber, const std::string &number, int dataLength); 236 bool FormatNameAndNumber(std::shared_ptr<DiallingNumbersInfo> &diallingNumber, bool isDel); 237 void SendUpdateCommand(const std::shared_ptr<DiallingNumbersInfo> &diallingNumber, int length,
|
D | icc_dialling_numbers_manager.h | 43 …nt32_t AddIccDiallingNumbers(int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber); 44 …nt32_t DelIccDiallingNumbers(int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber); 45 …2_t UpdateIccDiallingNumbers(int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber);
|
D | sim_data_type.h | 123 std::shared_ptr<void> diallingNumber = nullptr; member 133 diallingNumber = cmd->diallingNumber; in DiallingNumbersHandlerResult()
|
D | sim_manager.h | 126 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override; 128 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override; 130 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override;
|
/base/telephony/core_service/services/sim/test/ |
D | test.cpp | 703 …std::shared_ptr<DiallingNumbersInfo> diallingNumber = std::make_shared<DiallingNumbersInfo>(type, … in TestAddIccDiallingNumbers() local 704 diallingNumber->name_ = Str8ToStr16(name); in TestAddIccDiallingNumbers() 705 diallingNumber->number_ = Str8ToStr16(number); in TestAddIccDiallingNumbers() 706 diallingNumber->pin2_ = Str8ToStr16(pin2); in TestAddIccDiallingNumbers() 707 …std::cout << "start insert " << Str16ToStr8(diallingNumber->name_) << " " << Str16ToStr8(diallingN… in TestAddIccDiallingNumbers() 709 int32_t result = g_telephonyService->AddIccDiallingNumbers(testSlot, type, diallingNumber); in TestAddIccDiallingNumbers() 739 …std::shared_ptr<DiallingNumbersInfo> diallingNumber = std::make_shared<DiallingNumbersInfo>(type, … in TestDelIccDiallingNumbers() local 740 diallingNumber->index_ = index; in TestDelIccDiallingNumbers() 741 diallingNumber->pin2_ = Str8ToStr16(pin2); in TestDelIccDiallingNumbers() 742 int32_t result = g_telephonyService->DelIccDiallingNumbers(testSlot, type, diallingNumber); in TestDelIccDiallingNumbers() [all …]
|
/base/telephony/core_service/interfaces/innerkits/include/ |
D | i_sim_manager.h | 121 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) = 0; 123 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) = 0; 125 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) = 0;
|
D | i_core_service.h | 115 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) = 0; 117 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) = 0; 119 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) = 0;
|
D | core_service_client.h | 626 …cDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber); 636 …cDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber); 646 …cDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber);
|
D | core_service_proxy.h | 112 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override; 114 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override; 116 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override;
|
D | core_manager_inner.h | 279 …cDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber); 280 …cDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber); 281 …cDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber);
|
/base/telephony/core_service/services/core/include/ |
D | core_service.h | 185 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override; 188 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override; 191 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) override;
|
/base/telephony/core_service/frameworks/native/src/ |
D | core_service_client.cpp | 742 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in AddIccDiallingNumbers() argument 749 return proxy->AddIccDiallingNumbers(slotId, type, diallingNumber); in AddIccDiallingNumbers() 753 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in DelIccDiallingNumbers() argument 760 return proxy->DelIccDiallingNumbers(slotId, type, diallingNumber); in DelIccDiallingNumbers() 764 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in UpdateIccDiallingNumbers() argument 771 return proxy->UpdateIccDiallingNumbers(slotId, type, diallingNumber); in UpdateIccDiallingNumbers()
|
D | core_service_proxy.cpp | 2138 … std::shared_ptr<DiallingNumbersInfo> diallingNumber = DiallingNumbersInfo::UnMarshalling(reply); in QueryIccDiallingNumbers() local 2139 if (diallingNumber != nullptr) { in QueryIccDiallingNumbers() 2140 result.emplace_back(diallingNumber); in QueryIccDiallingNumbers() 2147 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in AddIccDiallingNumbers() argument 2168 if (diallingNumber != nullptr) { in AddIccDiallingNumbers() 2169 diallingNumber->Marshalling(data); in AddIccDiallingNumbers() 2186 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in DelIccDiallingNumbers() argument 2207 if (diallingNumber != nullptr) { in DelIccDiallingNumbers() 2208 diallingNumber->Marshalling(data); in DelIccDiallingNumbers() 2225 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in UpdateIccDiallingNumbers() argument [all …]
|
D | core_manager_inner.cpp | 1642 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in AddIccDiallingNumbers() argument 1648 return simManager_->AddIccDiallingNumbers(slotId, type, diallingNumber); in AddIccDiallingNumbers() 1652 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in DelIccDiallingNumbers() argument 1658 return simManager_->DelIccDiallingNumbers(slotId, type, diallingNumber); in DelIccDiallingNumbers() 1662 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in UpdateIccDiallingNumbers() argument 1668 return simManager_->UpdateIccDiallingNumbers(slotId, type, diallingNumber); in UpdateIccDiallingNumbers()
|
/base/telephony/core_service/services/core/src/ |
D | core_service.cpp | 1136 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in AddIccDiallingNumbers() argument 1151 return simManager_->AddIccDiallingNumbers(slotId, type, diallingNumber); in AddIccDiallingNumbers() 1155 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in DelIccDiallingNumbers() argument 1170 return simManager_->DelIccDiallingNumbers(slotId, type, diallingNumber); in DelIccDiallingNumbers() 1174 int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber) in UpdateIccDiallingNumbers() argument 1189 return simManager_->UpdateIccDiallingNumbers(slotId, type, diallingNumber); in UpdateIccDiallingNumbers()
|
D | core_service_stub.cpp | 1296 std::shared_ptr<DiallingNumbersInfo> diallingNumber = DiallingNumbersInfo::UnMarshalling(data); in OnAddIccDiallingNumbers() local 1297 if (diallingNumber == nullptr) { in OnAddIccDiallingNumbers() 1301 int32_t result = AddIccDiallingNumbers(slotId, type, diallingNumber); in OnAddIccDiallingNumbers() 1314 std::shared_ptr<DiallingNumbersInfo> diallingNumber = DiallingNumbersInfo::UnMarshalling(data); in OnUpdateIccDiallingNumbers() local 1315 if (diallingNumber == nullptr) { in OnUpdateIccDiallingNumbers() 1319 int32_t result = UpdateIccDiallingNumbers(slotId, type, diallingNumber); in OnUpdateIccDiallingNumbers() 1332 std::shared_ptr<DiallingNumbersInfo> diallingNumber = DiallingNumbersInfo::UnMarshalling(data); in OnDelIccDiallingNumbers() local 1333 if (diallingNumber == nullptr) { in OnDelIccDiallingNumbers() 1337 int32_t result = DelIccDiallingNumbers(slotId, type, diallingNumber); in OnDelIccDiallingNumbers()
|