Home
last modified time | relevance | path

Searched refs:lockState (Results 1 - 25 of 30) sorted by relevance

12

/base/telephony/call_manager/services/telephony_interaction/src/
H A Dcore_service_connection.cpp44 LockState lockState = LockState::LOCK_ERROR; in IsFdnEnabled() local
46 DelayedRefSingleton<CoreServiceClient>::GetInstance().GetLockState(slotId, LockType::FDN_LOCK, lockState); in IsFdnEnabled()
47 if (ret == TELEPHONY_ERR_SUCCESS && lockState == LockState::LOCK_ON) { in IsFdnEnabled()
/base/telephony/core_service/services/sim/src/
H A Dsim_state_manager.cpp284 if (options.lockState != LockState::LOCK_OFF && options.lockState != LockState::LOCK_ON) { in SetLockState()
285 TELEPHONY_LOGE("SetLockState lockState is error"); in SetLockState()
321 int32_t SimStateManager::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
325 lockState = LockState::LOCK_ERROR; in GetLockState()
346 switch (simStateHandle_->GetUnlockData().lockState) { in GetLockState()
348 lockState = LockState::LOCK_OFF; in GetLockState()
351 lockState = LockState::LOCK_ON; in GetLockState()
354 lockState = LockState::LOCK_ERROR; in GetLockState()
357 TELEPHONY_LOGI("SimStateManager::GetLockState(), %{public}d", lockState); in GetLockState()
[all...]
H A Dsim_state_handle.cpp293 simLock.mode = static_cast<int32_t>(options.lockState); in SetLockState()
559 unlockRespon_.lockState = *param; in GetSimLockState()
561 unlockRespon_.lockState = static_cast<int32_t>(LockState::LOCK_ERROR); in GetSimLockState()
565 TELEPHONY_LOGI("SimStateHandle::GetSimLockState(), lockState = %{public}d", unlockRespon_.lockState); in GetSimLockState()
/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dsim_test_util.cpp193 testInfo.lockState = LockState::LOCK_OFF; in SetLockStateTestFunc()
205 testInfo.lockState = LockState::LOCK_OFF; in SetLockStateTestFunc1()
216 testInfo.lockState = LockState::LOCK_OFF; in SetFDNStateTestFunc()
228 testInfo.lockState = LockState::LOCK_OFF; in SetFDNStateTestFunc1()
236 LockState lockState = LockState::LOCK_ERROR; in GetLockStateTestFunc() local
238 int32_t result = CoreServiceClient::GetInstance().GetLockState(SimTest::slotId_, lockType, lockState); in GetLockStateTestFunc()
245 LockState lockState = LockState::LOCK_ERROR; in GetLockStateTestFunc1() local
247 int32_t result = CoreServiceClient::GetInstance().GetLockState(SimTest::slotId1_, lockType, lockState); in GetLockStateTestFunc1()
253 LockState lockState = LockState::LOCK_ERROR; in GetFDNStateTestFunc() local
255 int32_t result = CoreServiceClient::GetInstance().GetLockState(SimTest::slotId_, lockType, lockState); in GetFDNStateTestFunc()
262 LockState lockState = LockState::LOCK_ERROR; GetFDNStateTestFunc1() local
[all...]
H A Dcore_service_test.cpp440 LockState lockState; in HWTEST_F() local
441 auto result = DelayedSingleton<CoreService>::GetInstance()->GetLockState(0, lockType, lockState); in HWTEST_F()
H A Dzero_branch_test_sim_ril.cpp742 mLockInfo.lockState = LockState::LOCK_OFF; in HWTEST_F()
744 LockState lockState; in HWTEST_F() local
747 EXPECT_GT(simStateManager->GetLockState(0, LockType::PIN_LOCK, lockState), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
1359 LockState lockState; in HWTEST_F() local
1361 EXPECT_EQ(simStateManager->GetLockState(0, lockType, lockState), TELEPHONY_ERR_ARGUMENT_INVALID); in HWTEST_F()
1362 EXPECT_EQ(lockState, LockState::LOCK_ERROR); in HWTEST_F()
1365 EXPECT_EQ(simStateManager->GetLockState(0, lockType, lockState), TELEPHONY_ERR_LOCAL_PTR_NULL); in HWTEST_F()
H A Dzero_branch_test.cpp1137 LockState lockState; in HWTEST_F() local
1138 EXPECT_NE(mInner.GetLockState(0, LockType::PIN_LOCK, lockState), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
1445 LockState lockState; in HWTEST_F() local
1446 EXPECT_NE(simManager->GetLockState(0, mLockType, lockState), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
1447 EXPECT_NE(simManager->GetLockState(INVALID_SLOTID, mLockType, lockState), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
1667 mLockInfo.lockState = LockState::LOCK_ERROR; in HWTEST_F()
1669 mLockInfo.lockState = LockState::LOCK_ON; in HWTEST_F()
1672 LockState lockState; in HWTEST_F() local
1673 EXPECT_GT(simStateManager->GetLockState(0, testLockInfo.lockType, lockState), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
1675 EXPECT_GT(simStateManager->GetLockState(0, lockType, lockState), TELEPHONY_ERR_SUCCES in HWTEST_F()
[all...]
/base/telephony/core_service/services/sim/include/
H A Dsim_state_manager.h46 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState);
H A Dsim_state_handle.h103 int32_t lockState = 0; member
H A Dsim_manager.h59 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override;
/base/telephony/core_service/test/fuzztest/unlockpin_fuzzer/
H A Dunlockpin_fuzzer.cpp170 int32_t lockState = static_cast<int32_t>(*data + offset); in SetLockState() local
171 dataMessageParcel.WriteInt32(lockState); in SetLockState()
/base/telephony/core_service/test/unittest/sim_state_handle_gtest/
H A Dsim_state_handle_gtest.cpp79 options.lockState = LockState::LOCK_OFF; in HWTEST_F()
103 options.lockState = LockState::LOCK_ON; in HWTEST_F()
/base/telephony/core_service/interfaces/innerkits/include/
H A Dsim_state_type.h253 LockState lockState = LockState::LOCK_ERROR; member
H A Dcore_service_client.h526 * @param lockState[out], the response of get lock state
529 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState);
H A Di_sim_manager.h56 virtual int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) = 0;
H A Dcore_service_proxy.h98 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override;
H A Di_core_service.h80 virtual int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) = 0;
/base/powermgr/battery_statistics/services/native/src/
H A Dbattery_stats_listener.cpp400 RunningLockState lockState = RunningLockState(root["STATE"].asInt()); in ProcessWakelockEvent() local
402 switch (lockState) { in ProcessWakelockEvent()
/base/telephony/core_service/services/sim/test/
H A Dtest.cpp1150 testInfo.lockState = static_cast<LockState>(mode); in TestSetLockState()
1168 LockState lockState = LockState::LOCK_ERROR; in TestGetLockState() local
1173 g_telephonyService->GetLockState(testSlot, lockType, lockState); in TestGetLockState()
1174 std::cout << "TestGetLockState()" << static_cast<int32_t>(lockState) << endl; in TestGetLockState()
/base/telephony/cellular_data/test/mock/
H A Dmock_core_service.h74 MOCK_METHOD(int32_t, GetLockState, (int32_t slotId, LockType lockType, LockState &lockState), (override));
/base/telephony/core_service/frameworks/native/src/
H A Dcore_service_client.cpp639 int32_t CoreServiceClient::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
646 return proxy->GetLockState(slotId, lockType, lockState); in GetLockState()
/base/telephony/core_service/services/core/src/
H A Dcore_service.cpp952 "CoreService::SetLockState(),lockType = %{public}d, pinLen = %{public}lu, lockState = %{public}d, slotId " in SetLockState()
955 options.lockType, static_cast<unsigned long>(strPin.length()), options.lockState, slotId); in SetLockState()
963 int32_t CoreService::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
978 return simManager_->GetLockState(slotId, lockType, lockState); in GetLockState()
H A Dcore_service_stub.cpp1222 options.lockState = static_cast<LockState>(data.ReadInt32()); in OnSetLockState()
1225 TELEPHONY_LOGI("CoreServiceStub::OnSetLockState(), lockType = %{public}d, lockState = %{public}d, " in OnSetLockState()
1227 options.lockType, options.lockState, slotId); in OnSetLockState()
1245 LockState lockState = LockState::LOCK_ERROR; in OnGetLockState() local
1250 int32_t result = GetLockState(slotId, lockType, lockState); in OnGetLockState()
1253 ret = (ret && reply.WriteInt32(static_cast<int32_t>(lockState))); in OnGetLockState()
/base/telephony/core_service/services/core/include/
H A Dcore_service.h136 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override;
/base/telephony/core_service/test/unittest/esim_gtest/mock/include/
H A Desim_core_service_stub_test.h173 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override

Completed in 35 milliseconds

12