/base/telephony/cellular_call/services/common/include/ |
H A D | supplement_request_cs.h | 153 * @param newPin The new pin code for unlock SIM 157 int32_t AlterPinPassword(int32_t slotId, std::string newPin, std::string oldPin); 163 * @param newPin The new pin code for unlock SIM 167 int32_t UnlockPuk(int32_t slotId, std::string newPin, std::string puk);
|
/base/telephony/core_service/services/sim/include/ |
H A D | sim_state_manager.h | 42 int32_t UnlockPuk(int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response); 44 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response);
|
H A D | sim_state_handle.h | 121 void UnlockPuk(int32_t slotId, const std::string &newPin, const std::string &puk); 122 void AlterPin(int32_t slotId, const std::string &newPin, const std::string &oldPin);
|
H A D | sim_manager.h | 55 int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) override;
57 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) override;
|
/base/telephony/cellular_call/services/common/src/ |
H A D | supplement_request_cs.cpp | 177 int32_t SupplementRequestCs::AlterPinPassword(int32_t slotId, std::string newPin, std::string oldPin) in AlterPinPassword() argument 181 int32_t result = CoreManagerInner::GetInstance().AlterPin(slotId, newPin, oldPin, response); in AlterPinPassword() 208 int32_t SupplementRequestCs::UnlockPuk(int32_t slotId, std::string newPin, std::string puk) in UnlockPuk() argument 212 int32_t result = CoreManagerInner::GetInstance().UnlockPuk(slotId, newPin, puk, response); in UnlockPuk()
|
/base/telephony/core_service/services/sim/src/ |
H A D | sim_state_manager.cpp | 210 int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) in UnlockPuk() 219 simStateHandle_->UnlockPuk(slotId, newPin, puk); in UnlockPuk() 244 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) in AlterPin() 253 simStateHandle_->AlterPin(slotId, newPin, oldPin); in AlterPin() 209 UnlockPuk( int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) UnlockPuk() argument 243 AlterPin( int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) AlterPin() argument
|
H A D | sim_state_handle.cpp | 192 void SimStateHandle::UnlockPuk(int32_t slotId, const std::string &newPin, const std::string &puk) in UnlockPuk() argument 206 telRilManager->UnlockPuk(slotId, puk, newPin, event); in UnlockPuk() 209 void SimStateHandle::AlterPin(int32_t slotId, const std::string &newPin, const std::string &oldPin) in AlterPin() argument 212 int32_t length = (int32_t)newPin.size(); in AlterPin() 217 simPinPassword.newPassword = newPin; in AlterPin()
|
H A D | sim_manager.cpp | 206 int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response)
in UnlockPuk() 212 return simStateManager_[slotId]->UnlockPuk(slotId, newPin, puk, response);
in UnlockPuk() 216 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response)
in AlterPin() 222 return simStateManager_[slotId]->AlterPin(slotId, newPin, oldPin, response);
in AlterPin() 205 UnlockPuk( int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) UnlockPuk() argument 215 AlterPin( int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) AlterPin() argument
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
H A D | core_service_test.cpp | 351 std::u16string newPin = u""; in HWTEST_F() local 354 auto result = DelayedSingleton<CoreService>::GetInstance()->UnlockPuk(0, newPin, puk, response); in HWTEST_F() 366 std::u16string newPin = u""; in HWTEST_F() local 369 auto result = DelayedSingleton<CoreService>::GetInstance()->AlterPin(0, newPin, oldPin, response); in HWTEST_F()
|
/base/telephony/core_service/test/fuzztest/unlockpin_fuzzer/ |
H A D | unlockpin_fuzzer.cpp | 93 std::string newPin(reinterpret_cast<const char *>(data), size); in AlterPin() 94 std::u16string newPinStr = Str8ToStr16(newPin); in AlterPin()
|
/base/telephony/core_service/services/sim/test/ |
H A D | test.cpp | 997 std::string newPin = " "; in TestUnlockPuk() local 1005 std::cin >> newPin; in TestUnlockPuk() local 1006 size = newPin.size(); in TestUnlockPuk() 1014 std::cout << "Unlock puk: newPin = " << newPin << " puk = " << puk << endl; in TestUnlockPuk() 1015 g_telephonyService->UnlockPuk(testSlot, Str8ToStr16(newPin.c_str()), Str8ToStr16(puk.c_str()), response); in TestUnlockPuk() 1025 std::string newPin = " "; in TestAlterPin() local 1038 std::cin >> newPin; in TestAlterPin() local 1039 size = newPin.size(); in TestAlterPin() 1041 std::cout << "Unlock pin: oldPin = " << oldPin << " newPin in TestAlterPin() [all...] |
/base/telephony/cellular_call/test/unittest/imstest/ |
H A D | zero_branch1_test.cpp | 912 std::string newPin = "789101"; in HWTEST_F() local 925 ASSERT_EQ(supplementRequestCs.SetBarringPasswordRequest(SIM1_SLOTID, msg, 0, oldPin.c_str(), newPin.c_str()), in HWTEST_F() 928 ASSERT_EQ(supplementRequestCs.AlterPinPassword(SIM1_SLOTID, newPin, oldPin), TELEPHONY_ERROR); in HWTEST_F() 929 ASSERT_EQ(supplementRequestCs.UnlockPuk(SIM1_SLOTID, newPin, puk), TELEPHONY_ERROR); in HWTEST_F() 930 ASSERT_EQ(supplementRequestCs.AlterPin2Password(SIM1_SLOTID, newPin, oldPin), TELEPHONY_ERROR); in HWTEST_F() 931 ASSERT_EQ(supplementRequestCs.UnlockPuk2(SIM1_SLOTID, newPin, puk), TELEPHONY_ERROR); in HWTEST_F()
|
/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | core_service_client.h | 457 * @param newPin[in], newPin to reset the SIM card password 463 int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response); 469 * @param newPin[in], newPin to change the SIM card password 475 int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response);
|
H A D | i_sim_manager.h | 52 int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) = 0;
54 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) = 0;
|
H A D | core_service_proxy.h | 88 int32_t UnlockPuk(const int32_t slotId, const std::u16string &newPin, const std::u16string &puk, 90 int32_t AlterPin(const int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin,
|
H A D | i_core_service.h | 71 int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) = 0; 73 int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response) = 0;
|
H A D | core_manager_inner.h | 254 int32_t UnlockPuk(int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response); 256 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response);
|
/base/telephony/cellular_data/test/mock/ |
H A D | mock_core_service.h | 59 (int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response), 62 (int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response),
|
/base/telephony/core_service/frameworks/native/src/ |
H A D | core_service_client.cpp | 576 int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) in UnlockPuk() 583 return proxy->UnlockPuk(slotId, newPin, puk, response); in UnlockPuk() 587 int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response) in AlterPin() 594 return proxy->AlterPin(slotId, newPin, oldPin, response); in AlterPin() 575 UnlockPuk( int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) UnlockPuk() argument 586 AlterPin( int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response) AlterPin() argument
|
H A D | core_manager_inner.cpp | 2252 int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) in UnlockPuk() 2258 return simManager_->UnlockPuk(slotId, newPin, puk, response); in UnlockPuk() 2262 int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) in AlterPin() 2268 return simManager_->AlterPin(slotId, newPin, oldPin, response); in AlterPin() 2251 UnlockPuk( int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response) UnlockPuk() argument 2261 AlterPin( int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response) AlterPin() argument
|
/base/telephony/cellular_call/services/utils/src/ |
H A D | cellular_call_supplement.cpp | 1441 std::string newPin = mmiData.serviceInfoB; in AlterPinPassword() local 1443 if (!IsVaildPinOrPuk(newPin, newPinCheck)) { in AlterPinPassword() 1447 result = supplementRequestCs_.AlterPinPassword(slotId, newPin, oldPin); in AlterPinPassword() 1460 std::string newPin = mmiData.serviceInfoB; in UnlockPuk() local 1462 if (!IsVaildPinOrPuk(newPin, newPinCheck)) { in UnlockPuk() 1466 result = supplementRequestCs_.UnlockPuk(slotId, newPin, puk); in UnlockPuk()
|
/base/telephony/core_service/services/core/src/ |
H A D | core_service.cpp | 842 const int slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) in UnlockPuk() 853 static_cast<unsigned long>(newPin.length()), static_cast<unsigned long>(puk.length()), slotId); in UnlockPuk() 858 return simManager_->UnlockPuk(slotId, Str16ToStr8(newPin), Str16ToStr8(puk), response); in UnlockPuk() 862 const int slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response) in AlterPin() 873 static_cast<unsigned long>(newPin.length()), static_cast<unsigned long>(oldPin.length()), slotId); in AlterPin() 878 return simManager_->AlterPin(slotId, Str16ToStr8(newPin), Str16ToStr8(oldPin), response); in AlterPin() 841 UnlockPuk( const int slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) UnlockPuk() argument 861 AlterPin( const int slotId, const std::u16string &newPin, const std::u16string &oldPin, LockStatusResponse &response) AlterPin() argument
|
H A D | core_service_stub.cpp | 1117 std::u16string newPin = data.ReadString16(); in OnUnlockPuk() local 1119 int32_t result = UnlockPuk(slotId, newPin, puk, response); in OnUnlockPuk() 1138 std::u16string newPin = data.ReadString16(); in OnAlterPin() local 1140 int32_t result = AlterPin(slotId, newPin, oldPin, response); in OnAlterPin()
|
/base/telephony/core_service/services/core/include/ |
H A D | core_service.h | 121 int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) override; 123 int32_t AlterPin(int32_t slotId, const std::u16string &newPin, const std::u16string &oldPin,
|
/base/telephony/core_service/test/unittest/esim_gtest/mock/include/ |
H A D | esim_core_service_stub_test.h | 140 int32_t slotId, const std::u16string &newPin, const std::u16string &puk, LockStatusResponse &response) override 145 int32_t AlterPin(int32_t slotId, const std::u16string &newPin,
|