Home
last modified time | relevance | path

Searched refs:lockState (Results 1 – 24 of 24) sorted by relevance

/base/telephony/call_manager/services/telephony_interaction/src/
Dcore_service_connection.cpp44 LockState lockState = LockState::LOCK_ERROR; in IsFdnEnabled() local
46 …RefSingleton<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/
Dsim_state_manager.cpp225 if (options.lockState != LockState::LOCK_OFF && options.lockState != LockState::LOCK_ON) { in SetLockState()
262 int32_t SimStateManager::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
266 lockState = LockState::LOCK_ERROR; in GetLockState()
287 switch (simStateHandle_->GetUnlockData().lockState) { in GetLockState()
289 lockState = LockState::LOCK_OFF; in GetLockState()
292 lockState = LockState::LOCK_ON; in GetLockState()
295 lockState = LockState::LOCK_ERROR; in GetLockState()
298 TELEPHONY_LOGI("SimStateManager::GetLockState(), %{public}d", lockState); in GetLockState()
Dsim_state_handle.cpp181 simLock.mode = static_cast<int32_t>(options.lockState); in SetLockState()
368 unlockRespon_.lockState = *param; in GetSimLockState()
370 unlockRespon_.lockState = static_cast<int32_t>(LockState::LOCK_ERROR); in GetSimLockState()
374 …LEPHONY_LOGI("SimStateHandle::GetSimLockState(), lockState = %{public}d", unlockRespon_.lockState); in GetSimLockState()
Dsim_manager.cpp209 int32_t SimManager::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
215 return simStateManager_[slotId]->GetLockState(slotId, lockType, lockState); in GetLockState()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test_util.cpp183 testInfo.lockState = LockState::LOCK_OFF; in SetLockStateTestFunc()
195 testInfo.lockState = LockState::LOCK_OFF; in SetLockStateTestFunc1()
206 testInfo.lockState = LockState::LOCK_OFF; in SetFDNStateTestFunc()
218 testInfo.lockState = LockState::LOCK_OFF; in SetFDNStateTestFunc1()
226 LockState lockState = LockState::LOCK_ERROR; in GetLockStateTestFunc() local
228 …32_t result = CoreServiceClient::GetInstance().GetLockState(SimTest::slotId_, lockType, lockState); in GetLockStateTestFunc()
235 LockState lockState = LockState::LOCK_ERROR; in GetLockStateTestFunc1() local
237 …2_t result = CoreServiceClient::GetInstance().GetLockState(SimTest::slotId1_, lockType, lockState); in GetLockStateTestFunc1()
243 LockState lockState = LockState::LOCK_ERROR; in GetFDNStateTestFunc() local
245 …32_t result = CoreServiceClient::GetInstance().GetLockState(SimTest::slotId_, lockType, lockState); in GetFDNStateTestFunc()
[all …]
Dzero_branch_test.cpp887 LockState lockState; variable
888 EXPECT_NE(mInner.GetLockState(0, LockType::PIN_LOCK, lockState), TELEPHONY_ERR_SUCCESS);
1183 LockState lockState; variable
1184 EXPECT_NE(simManager->GetLockState(0, mLockType, lockState), TELEPHONY_ERR_SUCCESS);
1185 … EXPECT_NE(simManager->GetLockState(INVALID_SLOTID, mLockType, lockState), TELEPHONY_ERR_SUCCESS);
1400 mLockInfo.lockState = LockState::LOCK_ERROR;
1402 mLockInfo.lockState = LockState::LOCK_ON;
1405 LockState lockState; variable
1406 …EXPECT_GT(simStateManager->GetLockState(0, testLockInfo.lockType, lockState), TELEPHONY_ERR_SUCCES…
1408 EXPECT_GT(simStateManager->GetLockState(0, lockType, lockState), TELEPHONY_ERR_SUCCESS);
/base/telephony/core_service/services/sim/include/
Dsim_state_manager.h42 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState);
Dsim_state_handle.h99 int32_t lockState = 0; member
Dsim_manager.h51 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override;
/base/telephony/core_service/interfaces/innerkits/include/
Dsim_state_type.h234 LockState lockState = LockState::LOCK_ERROR; member
Di_sim_manager.h43 virtual int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) = 0;
Dcore_service_client.h495 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState);
Di_core_service.h65 virtual int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) = 0;
Dcore_service_proxy.h92 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override;
Dcore_manager_inner.h246 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState);
/base/telephony/core_service/services/core/src/
Dcore_service_stub.cpp927 options.lockState = static_cast<LockState>(data.ReadInt32()); in OnSetLockState()
932 options.lockType, options.lockState, slotId); in OnSetLockState()
950 LockState lockState = LockState::LOCK_ERROR; in OnGetLockState() local
955 int32_t result = GetLockState(slotId, lockType, lockState); in OnGetLockState()
958 ret = (ret && reply.WriteInt32(static_cast<int32_t>(lockState))); in OnGetLockState()
Dcore_service.cpp877 options.lockType, static_cast<unsigned long>(strPin.length()), options.lockState, slotId); in SetLockState()
885 int32_t CoreService::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
900 return simManager_->GetLockState(slotId, lockType, lockState); in GetLockState()
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_listener.cpp379 RunningLockState lockState = RunningLockState(stoi(root["STATE"].asString())); in ProcessWakelockEvent() local
381 switch (lockState) { in ProcessWakelockEvent()
/base/telephony/core_service/services/sim/test/
Dtest.cpp1136 testInfo.lockState = static_cast<LockState>(mode); in TestSetLockState()
1154 LockState lockState = LockState::LOCK_ERROR; in TestGetLockState() local
1159 g_telephonyService->GetLockState(testSlot, lockType, lockState); in TestGetLockState()
1160 std::cout << "TestGetLockState()" << static_cast<int32_t>(lockState) << endl; in TestGetLockState()
/base/telephony/core_service/services/core/include/
Dcore_service.h127 int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState) override;
/base/telephony/core_service/frameworks/native/src/
Dcore_service_client.cpp597 int32_t CoreServiceClient::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
604 return proxy->GetLockState(slotId, lockType, lockState); in GetLockState()
Dcore_service_proxy.cpp1633 data.WriteInt32(static_cast<int32_t>(options.lockState)); in SetLockState()
1656 int32_t CoreServiceProxy::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
1681 lockState = static_cast<LockState>(reply.ReadInt32()); in GetLockState()
Dcore_manager_inner.cpp2153 int32_t CoreManagerInner::GetLockState(int32_t slotId, LockType lockType, LockState &lockState) in GetLockState() argument
2159 return simManager_->GetLockState(slotId, lockType, lockState); in GetLockState()
/base/telephony/core_service/frameworks/js/sim/src/
Dnapi_sim.cpp2579 LockState lockState = LockState::LOCK_ERROR; in NativeGetLockState() local
2581 asContext.slotId, static_cast<LockType>(lockContext->lockType), lockState); in NativeGetLockState()
2585 asContext.callbackVal = static_cast<int32_t>(lockState); in NativeGetLockState()