Home
last modified time | relevance | path

Searched refs:opkey (Results 1 - 25 of 32) sorted by relevance

12

/base/telephony/telephony_data/pdp_profile/include/
H A Drdb_pdp_profile_helper.h55 * @param opkey opkey
59 int InitAPNDatabase(int slotId, const std::string &opkey, bool isNeedCheckFile);
80 * @param opkey opkey
84 bool IsApnDbUpdateNeeded(const std::string &opkey, std::string &checksum);
89 * @param opkey opkey
93 int SetPreferApnConfChecksum(const std::string &opkey, std::string &checkSum);
H A Dpdp_profile_ability.h108 void GetTargetOpkey(int slotId, std::string &opkey);
/base/telephony/telephony_data/pdp_profile/src/
H A Dpdp_profile_ability.cpp134 std::string opkey; in BatchInsert() local
135 GetTargetOpkey(slotId, opkey); in BatchInsert()
136 result = helper_.InitAPNDatabase(slotId, opkey, true); in BatchInsert()
421 std::string opkey; in QueryPdpProfile() local
425 GetTargetOpkey(slotId, opkey); in QueryPdpProfile()
427 if (opkey.empty() || strcmp(opkey.c_str(), INVALID_OPKEY) == 0) { in QueryPdpProfile()
442 operationsRes.push_back({DataShare::EQUAL_TO, {PdpProfileData::OPKEY, opkey}}); in QueryPdpProfile()
473 std::string opkey; in ResetApn() local
474 GetTargetOpkey(slotId, opkey); in ResetApn()
512 GetTargetOpkey(int slotId, std::string &opkey) GetTargetOpkey() argument
[all...]
H A Drdb_pdp_profile_helper.cpp221 bool RdbPdpProfileHelper::IsApnDbUpdateNeeded(const std::string &opkey, std::string &checkSum) in IsApnDbUpdateNeeded() argument
225 std::string lastCheckSum = preferencesUtil->ObtainString(APN_CONF_CHECKSUM + opkey, ""); in IsApnDbUpdateNeeded()
233 int RdbPdpProfileHelper::SetPreferApnConfChecksum(const std::string &opkey, std::string &checkSum) in SetPreferApnConfChecksum() argument
240 return preferencesUtil->SaveString(APN_CONF_CHECKSUM + opkey, checkSum); in SetPreferApnConfChecksum()
/base/telephony/core_service/services/sim/src/
H A Dsim_state_tracker.cpp83 std::string opkey = (*msgObj)[1]; in ProcessSimOpkeyLoad() local
85 TELEPHONY_LOGI("OnOpkeyLoad slotId, %{public}d opkey: %{public}s opName: %{public}s", in ProcessSimOpkeyLoad()
86 slotId, opkey.data(), opName.data()); in ProcessSimOpkeyLoad()
87 if (!opkey.empty()) { in ProcessSimOpkeyLoad()
90 simFileManager->SetOpKey(opkey); in ProcessSimOpkeyLoad()
H A Doperator_config_cache.cpp101 std::string opkey = GetOpKey(slotId); in LoadOperatorConfig() local
102 std::string filename = EncryptIccId(iccid + opkey) + ".json"; in LoadOperatorConfig()
103 if (opkey == std::string(INITIAL_OPKEY)) { in LoadOperatorConfig()
321 std::string opkey = GetOpKey(slotId); in IsNeedOperatorLoad() local
322 TELEPHONY_LOGI("IsNeedOperatorLoad slotId %{public}d opkey %{public}s isLoadingConfig: %{public}d", in IsNeedOperatorLoad()
323 slotId, opkey.data(), isLoadingConfig); in IsNeedOperatorLoad()
324 if (opkey.empty() || opkey == std::string(INITIAL_OPKEY)) { in IsNeedOperatorLoad()
336 std::string filename = EncryptIccId(iccid + opkey) + ".json"; in IsNeedOperatorLoad()
H A Doperator_config_loader.cpp52 std::string opkey = LoadOpKeyOnMccMnc(slotId); in LoadOperatorConfig() local
84 std::string opkey = GetOpKey(resultSet, slotId); in LoadOpKeyOnMccMnc() local
86 return opkey; in LoadOpKeyOnMccMnc()
159 TELEPHONY_LOGE("GetOpKey count: %{public}d, use MccMnc as opkey, COMMON as opname", count); in GetOpKey()
H A Dicc_file.cpp804 void IccFile::OnOpkeyLoad(const std::string opkey, const std::string opName) in OnOpkeyLoad() argument
806 TELEPHONY_LOGI("OnOpkeyLoad slotId: %{public}d opkey: %{public}s opName: %{public}s", in OnOpkeyLoad()
807 slotId_, opkey.data(), opName.data()); in OnOpkeyLoad()
811 vMsg[VMSG_OPKEY_INDEX] = opkey; in OnOpkeyLoad()
/base/telephony/core_service/frameworks/cj/telephony_sim/src/
H A Dtelephony_sim_impl.cpp318 std::string opkey = errCode == ERROR_NONE ? ToUtf8(u16Opkey) : ""; in getOpKey() local
320 char* result = MallocCString(opkey); in getOpKey()
/base/telephony/core_service/services/telephony_ext_wrapper/include/
H A Dtelephony_ext_wrapper.h100 typedef void (*GET_TARGET_OPKEY)(int32_t slotId, std::u16string &opkey);
/base/telephony/core_service/interfaces/innerkits/include/
H A Dcore_service_client.h713 * @param opkey[out], operator key of the SIM card
716 int32_t GetOpKey(int32_t slotId, std::u16string &opkey);
891 * @brief get cust opkey for sim card
894 * @param opkey[out], cust opkey for sim card
897 int32_t GetTargetOpkey(int32_t slotId, std::u16string &opkey);
900 * @brief get opkey param version
902 * @param versionInfo[out], opkey param version info
H A Dcore_service_proxy.h127 int32_t GetOpKey(int32_t slotId, std::u16string &opkey) override;
145 int32_t GetTargetOpkey(int32_t slotId, std::u16string &opkey) override;
H A Di_core_service.h140 virtual int32_t GetOpKey(int32_t slotId, std::u16string &opkey) = 0;
159 virtual int32_t GetTargetOpkey(int32_t slotId, std::u16string &opkey) = 0;
H A Dcore_manager_inner.h281 int32_t GetOpKey(std::u16string &opkey);
282 int32_t GetOpKey(int32_t slotId, std::u16string &opkey);
H A Di_sim_manager.h114 virtual int32_t GetOpKey(int32_t slotId, std::u16string &opkey) = 0;
/base/telephony/cellular_data/test/mock/
H A Dmock_core_service.h139 MOCK_METHOD(int32_t, GetOpKey, (int32_t slotId, std::u16string &opkey), (override));
161 MOCK_METHOD(int32_t, GetTargetOpkey, (int32_t slotId, std::u16string &opkey), (override));
/base/telephony/core_service/test/unittest/icc_file_gtest/
H A Dicc_file_gtest.cpp419 std::string opkey = ""; in HWTEST_F() local
424 iccFile->OnOpkeyLoad(opkey, opName); in HWTEST_F()
/base/telephony/core_service/frameworks/native/src/
H A Dcore_service_client.cpp847 int32_t CoreServiceClient::GetOpKey(int32_t slotId, std::u16string &opkey) in GetOpKey() argument
854 return proxy->GetOpKey(slotId, opkey); in GetOpKey()
1055 int32_t CoreServiceClient::GetTargetOpkey(int32_t slotId, std::u16string &opkey) in GetTargetOpkey() argument
1062 return proxy->GetTargetOpkey(slotId, opkey); in GetTargetOpkey()
/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dsim_test.cpp784 * @tc.name Get opkey for current sim card
793 std::u16string opkey; in HWTEST_F() local
794 int32_t result = CoreServiceClient::GetInstance().GetOpKey(SimTest::slotId_, opkey); in HWTEST_F()
801 * @tc.name Get opkey for current sim card
809 std::u16string opkey; in HWTEST_F() local
810 int32_t result = CoreServiceClient::GetInstance().GetOpKey(SimTest::slotId1_, opkey); in HWTEST_F()
817 * @tc.name Get opkey for current sim card
834 * @tc.name Get opkey for current sim card
H A Dzero_branch_test_core_service.cpp781 std::u16string opkey; in HWTEST_F() local
786 int32_t result = coreServiceClient->GetTargetOpkey(SLOT_ID, opkey); in HWTEST_F()
/base/telephony/core_service/services/core/include/
H A Dcore_service.h209 int32_t GetOpKey(int32_t slotId, std::u16string &opkey) override;
255 int32_t GetTargetOpkey(int32_t slotId, std::u16string &opkey) override;
/base/telephony/core_service/test/unittest/esim_gtest/mock/include/
H A Desim_core_service_stub_test.h433 int32_t GetOpKey(int32_t slotId, std::u16string &opkey) override
520 int32_t GetTargetOpkey(int32_t slotId, std::u16string &opkey) override
/base/telephony/telephony_data/test/unittest/data_test/
H A Ddata_storage_test.cpp175 std::string opkey = "1435"; in OpKeyInsert() local
176 Uri uri("datashare:///com.ohos.opkeyability/opkey/opkey_info"); in OpKeyInsert()
182 value.Put(OpKeyData::OPERATOR_KEY, opkey); in OpKeyInsert()
188 Uri uri("datashare:///com.ohos.opkeyability/opkey/opkey_info"); in OpKeyUpdate()
199 Uri uri("datashare:///com.ohos.opkeyability/opkey/opkey_info"); in OpKeySelect()
214 Uri uri("datashare:///com.ohos.opkeyability/opkey/opkey_info"); in OpKeyDelete()
/base/telephony/core_service/services/core/src/
H A Dcore_service.cpp1294 int32_t CoreService::GetOpKey(int32_t slotId, std::u16string &opkey) in GetOpKey() argument
1301 return simManager_->GetOpKey(slotId, opkey); in GetOpKey()
1612 int32_t CoreService::GetTargetOpkey(int32_t slotId, std::u16string &opkey) in GetTargetOpkey() argument
1619 TELEPHONY_EXT_WRAPPER.getTargetOpkey_(slotId, opkey); in GetTargetOpkey()
H A Dcore_service_stub.cpp1668 std::u16string opkey; in OnGetOpKey() local
1669 int32_t result = GetOpKey(slotId, opkey); in OnGetOpKey()
1675 if (!reply.WriteString16(opkey)) { in OnGetOpKey()
1957 std::u16string opkey; in OnGetTargetOpkey() local
1958 int32_t result = GetTargetOpkey(slotId, opkey); in OnGetTargetOpkey()
1959 if (!reply.WriteString16(opkey)) { in OnGetTargetOpkey()
1960 TELEPHONY_LOGE("Write reply opkey failed."); in OnGetTargetOpkey()

Completed in 30 milliseconds

12