Home
last modified time | relevance | path

Searched refs:machine (Results 1 – 25 of 35) sorted by relevance

12

/base/useriam/face_auth/test/unittest/
Dstate_machine_test.cpp116 auto machine = machineBuilder->Build(); variable
117 EXPECT_EQ(machine, nullptr);
127 auto machine = machineBuilder->Build(); variable
128 ASSERT_NE(machine, nullptr);
129 EXPECT_EQ(machine->GetCurrentState(), STATE_COLLECT_STOPPING);
139 auto machine = machineBuilder->Build(); variable
140 ASSERT_NE(machine, nullptr);
141 EXPECT_EQ(machine->GetMachineName(), "testMachine4");
153 auto machine = machineBuilder->Build(); variable
154 ASSERT_NE(machine, nullptr);
[all …]
/base/useriam/user_auth_framework/test/unittest/services/src/
Dstate_machine_test.cpp107 auto machine = machineBuilder->Build(); variable
108 EXPECT_EQ(machine, nullptr);
118 auto machine = machineBuilder->Build(); variable
119 ASSERT_NE(machine, nullptr);
120 EXPECT_EQ(machine->GetCurrentState(), STATE_COLLECT_STOPPING);
130 auto machine = machineBuilder->Build(); variable
131 ASSERT_NE(machine, nullptr);
132 EXPECT_EQ(machine->GetMachineName(), "testMachine4");
144 auto machine = machineBuilder->Build(); variable
145 ASSERT_NE(machine, nullptr);
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_state_machine.c28 void InitStateMachine(StateMachine *machine, uint32_t machineId, uint32_t initState) in InitStateMachine() argument
30 if (machine == NULL) { in InitStateMachine()
33 machine->machineId = machineId; in InitStateMachine()
34 machine->isScheduling = false; in InitStateMachine()
35 machine->currState = initState; in InitStateMachine()
36 InitListHead(&machine->pendingEventList); in InitStateMachine()
37 InitRecursiveMutex(&machine->mutex); in InitStateMachine()
51 static inline void PushPendingEvent(StateMachine *machine, uint32_t event, const void *para) in PushPendingEvent() argument
59 AddListNodeBefore(&pending->link, &machine->pendingEventList); in PushPendingEvent()
62 static inline bool PopPendingEvent(StateMachine *machine, uint32_t *event, const void **para) in PopPendingEvent() argument
[all …]
/base/useriam/user_auth_framework/services/core/src/
Dwidget_schedule_node_impl.cpp52 [this](FiniteStateMachine &machine, uint32_t event) { OnStartSchedule(machine, event); }); in MakeFiniteStateMachine() argument
54 [this](FiniteStateMachine &machine, uint32_t event) { OnStartAuth(machine, event); }); in MakeFiniteStateMachine() argument
56 [this](FiniteStateMachine &machine, uint32_t event) { OnStopSchedule(machine, event); }); in MakeFiniteStateMachine() argument
58 [this](FiniteStateMachine &machine, uint32_t event) { OnNaviPinAuth(machine, event); }); in MakeFiniteStateMachine() argument
60 [this](FiniteStateMachine &machine, uint32_t event) { OnSuccessAuth(machine, event); }); in MakeFiniteStateMachine() argument
62 [this](FiniteStateMachine &machine, uint32_t event) { OnStopSchedule(machine, event); }); in MakeFiniteStateMachine() argument
64 [this](FiniteStateMachine &machine, uint32_t event) { OnNaviPinAuth(machine, event); }); in MakeFiniteStateMachine() argument
66 [this](FiniteStateMachine &machine, uint32_t event) { OnStartAuth(machine, event); }); in MakeFiniteStateMachine() argument
68 [this](FiniteStateMachine &machine, uint32_t event) { OnStopAuthList(machine, event); }); in MakeFiniteStateMachine() argument
138 void WidgetScheduleNodeImpl::OnStartSchedule(FiniteStateMachine &machine, uint32_t event) in OnStartSchedule() argument
[all …]
Dschedule_node_impl.cpp174 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessBeginVerifier(machine, event); }); in MakeFiniteStateMachine() argument
178 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessBeginCollector(machine, event); }); in MakeFiniteStateMachine() argument
180 …[this](FiniteStateMachine &machine, uint32_t event) { ProcessVerifierBeginFailed(machine, event); … in MakeFiniteStateMachine() argument
183 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndVerifier(machine, event); }); in MakeFiniteStateMachine() argument
185 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndVerifier(machine, event); }); in MakeFiniteStateMachine() argument
191 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndCollector(machine, event); }); in MakeFiniteStateMachine() argument
196 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndCollector(machine, event); }); in MakeFiniteStateMachine() argument
198 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndCollector(machine, event); }); in MakeFiniteStateMachine() argument
203 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndVerifier(machine, event); }); in MakeFiniteStateMachine() argument
205 … [this](FiniteStateMachine &machine, uint32_t event) { ProcessEndVerifier(machine, event); }); in MakeFiniteStateMachine() argument
[all …]
Dwidget_schedule_node_impl.h49 void OnStartSchedule(FiniteStateMachine &machine, uint32_t event);
50 void OnStopSchedule(FiniteStateMachine &machine, uint32_t event);
51 void OnStartAuth(FiniteStateMachine &machine, uint32_t event);
52 void OnStopAuthList(FiniteStateMachine &machine, uint32_t event);
53 void OnSuccessAuth(FiniteStateMachine &machine, uint32_t event);
54 void OnNaviPinAuth(FiniteStateMachine &machine, uint32_t event);
Dschedule_node_impl.h85 void ProcessBeginVerifier(FiniteStateMachine &machine, uint32_t event);
86 void ProcessBeginCollector(FiniteStateMachine &machine, uint32_t event);
88 void ProcessVerifierBeginFailed(FiniteStateMachine &machine, uint32_t event);
89 void ProcessCollectorBeginFailed(FiniteStateMachine &machine, uint32_t event);
91 void ProcessScheduleResultReceived(FiniteStateMachine &machine, uint32_t event) const;
93 void ProcessEndCollector(FiniteStateMachine &machine, uint32_t event);
94 void ProcessEndVerifier(FiniteStateMachine &machine, uint32_t event);
96 void OnScheduleProcessing(FiniteStateMachine &machine, uint32_t event) const;
97 void OnScheduleFinished(FiniteStateMachine &machine, uint32_t event);
/base/security/device_security_level/services/dslm/
Ddslm_fsm_process.c59 static bool ProcessDeviceOnline(const StateMachine *machine, uint32_t event, const void *para);
60 static bool ProcessSendCredRequest(const StateMachine *machine, uint32_t event, const void *para);
61 static bool ProcessSdkRequest(const StateMachine *machine, uint32_t event, const void *para);
62 static bool ProcessSendRequestFailed(const StateMachine *machine, uint32_t event, const void *para);
63 static bool ProcessDeviceOffline(const StateMachine *machine, uint32_t event, const void *para);
64 static bool ProcessVerifyCredMessage(const StateMachine *machine, uint32_t event, const void *para);
65 static bool ProcessSdkTimeout(const StateMachine *machine, uint32_t event, const void *para);
125 DslmStartProcessTraceAsync("SendCredRequest", info->machine.machineId, info->queryTimes + 1); in CheckTimesAndSendCredRequest()
147 …SECURITY_LOG_DEBUG("ProcessSendDeviceInfoCallback for device %{public}x.", info->machine.machineId… in ProcessSendDeviceInfoCallback()
157 result, info->machine.machineId, cbInfo.level); in ProcessSendDeviceInfoCallback()
[all …]
Ddslm_core_process.c224 info->machine.currState = STATE_SUCCESS; in InitSelfDeviceSecureLevel()
228 info->machine.currState = STATE_FAILED; in InitSelfDeviceSecureLevel()
231 info->machine.currState = STATE_SUCCESS; in InitSelfDeviceSecureLevel()
Ddslm_core_defines.h40 StateMachine machine; member
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Darch_util.cpp42 ArchType GetArchFromUname(const std::string& machine) in GetArchFromUname() argument
44 if (StartsWith(machine, "arm")) { in GetArchFromUname()
45 if (machine == "armv8l") { in GetArchFromUname()
49 } else if (machine == "aarch64") { in GetArchFromUname()
51 } else if (machine == "x86_64") { in GetArchFromUname()
53 } else if (machine == "x86" || machine == "i686") { in GetArchFromUname()
Ddfx_elf.cpp383 uint16_t machine; in ReadElfInfo() local
384 if (!memory_->ReadFully(EI_NIDENT + sizeof(uint16_t), &machine, sizeof(machine))) { in ReadElfInfo()
387 machine_ = machine; in ReadElfInfo()
390 if (machine == EM_ARM) { in ReadElfInfo()
392 } else if (machine == EM_386) { in ReadElfInfo()
395 LOGI("32 bit elf that is neither arm nor x86: machine = %d\n", machine); in ReadElfInfo()
399 if (machine == EM_AARCH64) { in ReadElfInfo()
401 } else if (machine == EM_X86_64) { in ReadElfInfo()
404 LOGI("64 bit elf that is neither aarch64 nor x86_64: machine = %d\n", machine); in ReadElfInfo()
/base/useriam/face_auth/services_ex/src/
Dfinite_state_machine_impl.cpp53 if (auto machine = self.lock(); machine != nullptr) { in Schedule() local
54 Inner inner(machine); in Schedule()
60 void FiniteStateMachineImpl::ScheduleInner(FiniteStateMachine &machine) in ScheduleInner() argument
76 invoker(machine, event); in ScheduleInner()
81 DealWithStateLeaveAndEnter(machine, oldState, currentState_); in ScheduleInner()
94 void FiniteStateMachineImpl::DealWithStateLeaveAndEnter(FiniteStateMachine &machine, uint32_t oldSt… in DealWithStateLeaveAndEnter() argument
102 invoker(machine, oldState); in DealWithStateLeaveAndEnter()
108 invoker(machine, currentState_); in DealWithStateLeaveAndEnter()
137 …tateMachineImpl::Inner::Inner(std::shared_ptr<FiniteStateMachineImpl> &machine) : machine_(machine) in Inner() argument
Dscreen_brightness_task.cpp228 [self = this](FiniteStateMachine &machine, uint32_t event) { self->StartProcess(); }); in MakeFiniteStateMachine() argument
240 … [self = this](FiniteStateMachine &machine, uint32_t event) { self->BeginIncreaseBrightness(); }); in MakeFiniteStateMachine() argument
243 … [self = this](FiniteStateMachine &machine, uint32_t event) { self->DoIncreaseBrightness(); }); in MakeFiniteStateMachine() argument
247 [self = this](FiniteStateMachine &machine, uint32_t event) { self->EndProcess(); }); in MakeFiniteStateMachine() argument
/base/useriam/user_auth_framework/services/base/src/
Dfinite_state_machine_impl.cpp53 if (auto machine = self.lock(); machine != nullptr) { in Schedule() local
54 Inner inner(machine); in Schedule()
60 void FiniteStateMachineImpl::ScheduleInner(FiniteStateMachine &machine) in ScheduleInner() argument
76 invoker(machine, event); in ScheduleInner()
81 DealWithStateLeaveAndEnter(machine, oldState, currentState_); in ScheduleInner()
92 void FiniteStateMachineImpl::DealWithStateLeaveAndEnter(FiniteStateMachine &machine, uint32_t oldSt… in DealWithStateLeaveAndEnter() argument
100 invoker(machine, oldState); in DealWithStateLeaveAndEnter()
106 invoker(machine, currentState_); in DealWithStateLeaveAndEnter()
135 …tateMachineImpl::Inner::Inner(std::shared_ptr<FiniteStateMachineImpl> &machine) : machine_(machine) in Inner() argument
Dfinite_state_machine_impl.h62 void ScheduleInner(FiniteStateMachine &machine);
63 …void DealWithStateLeaveAndEnter(FiniteStateMachine &machine, uint32_t oldState, uint32_t newState);
78 explicit Inner(std::shared_ptr<FiniteStateMachineImpl> &machine);
/base/hiviewdfx/faultloggerd/test/unittest/unwinder/
Darch_util_test.cpp53 ASSERT_EQ(GetArchFromUname(systemName.machine), ArchType::ARCH_ARM);
58 ASSERT_EQ(GetArchFromUname(systemName.machine), ArchType::ARCH_ARM64);
63 ASSERT_EQ(GetArchFromUname(systemName.machine), ArchType::ARCH_X86);
68 ASSERT_EQ(GetArchFromUname(systemName.machine), ArchType::ARCH_X86_64);
73 ASSERT_EQ(GetArchFromUname(systemName.machine), ArchType::ARCH_UNKNOWN);
/base/telephony/cellular_data/test/fuzztest/updateactivemachine_fuzzer/
Dupdateactivemachine_fuzzer.cpp34 std::shared_ptr<StateMachineFuzzer> machine = std::make_shared<StateMachineFuzzer>(); in UpdateActiveMachineFuzz() local
35 if (machine == nullptr) { in UpdateActiveMachineFuzz()
39 …std::shared_ptr<CellularDataStateMachine> cellularMachine = machine->CreateCellularDataConnect(slo… in UpdateActiveMachineFuzz()
68 if (machine->stateMachineEventLoop_ != nullptr) { in UpdateActiveMachineFuzz()
69 machine->stateMachineEventLoop_->Stop(); in UpdateActiveMachineFuzz()
/base/telephony/cellular_data/test/fuzztest/updateinactivemachine_fuzzer/
Dupdateinactivemachine_fuzzer.cpp35 std::shared_ptr<StateMachineFuzzer> machine = std::make_shared<StateMachineFuzzer>(); in UpdateInActiveMachineFuzz() local
36 if (machine == nullptr) { in UpdateInActiveMachineFuzz()
40 …std::shared_ptr<CellularDataStateMachine> cellularMachine = machine->CreateCellularDataConnect(slo… in UpdateInActiveMachineFuzz()
72 if (machine->stateMachineEventLoop_ != nullptr) { in UpdateInActiveMachineFuzz()
73 machine->stateMachineEventLoop_->Stop(); in UpdateInActiveMachineFuzz()
/base/telephony/cellular_data/test/fuzztest/updatedisconnectmachine_fuzzer/
Dupdatedisconnectmachine_fuzzer.cpp35 std::shared_ptr<StateMachineFuzzer> machine = std::make_shared<StateMachineFuzzer>(); in UpdateDisconnectMachineFuzz() local
36 if (machine == nullptr) { in UpdateDisconnectMachineFuzz()
40 …std::shared_ptr<CellularDataStateMachine> cellularMachine = machine->CreateCellularDataConnect(slo… in UpdateDisconnectMachineFuzz()
73 if (machine->stateMachineEventLoop_ != nullptr) { in UpdateDisconnectMachineFuzz()
74 machine->stateMachineEventLoop_->Stop(); in UpdateDisconnectMachineFuzz()
/base/security/device_security_level/baselib/utils/include/
Dutils_state_machine.h31 typedef bool (*StateMachineProcessFunc)(const StateMachine *machine, uint32_t event, const void *pa…
49 void InitStateMachine(StateMachine *machine, uint32_t machineId, uint32_t initState);
51 void ScheduleMachine(const StateNode *nodes, uint32_t nodeCnt, StateMachine *machine, uint32_t even…
/base/hiviewdfx/faultloggerd/interfaces/innerkits/callstack/src/
Dregister.cpp193 ArchType GetArchTypeFromUname(const std::string &machine) in GetArchTypeFromUname() argument
195 if (StartsWith(machine, "arm")) { in GetArchTypeFromUname()
196 if (machine == "armv8l") { in GetArchTypeFromUname()
201 } else if (machine == "aarch64") { in GetArchTypeFromUname()
203 } else if (machine == "x86_64") { in GetArchTypeFromUname()
205 } else if (machine == "x86" || machine == "i686") { in GetArchTypeFromUname()
208 DFXLOG_ERROR("unsupport machine %s", machine.c_str()); in GetArchTypeFromUname()
248 deviceArchType = GetArchTypeFromUname(systemName.machine); in GetDeviceArch()
249 … DFXLOG_DEBUG("machine arch is %s : %s", systemName.machine, GetArchName(deviceArchType).c_str()); in GetDeviceArch()
/base/useriam/face_auth/services_ex/inc/
Dfinite_state_machine_impl.h62 void ScheduleInner(FiniteStateMachine &machine);
63 …void DealWithStateLeaveAndEnter(FiniteStateMachine &machine, uint32_t oldState, uint32_t newState);
78 explicit Inner(std::shared_ptr<FiniteStateMachineImpl> &machine);
/base/hiviewdfx/faultloggerd/frameworks/unwinder/include/
Darch_util.h28 AT_SYMBOL_HIDDEN ArchType GetArchFromUname(const std::string& machine);
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_baselib_utils_test.cpp329 StateMachine *machine = nullptr; variable
333 InitStateMachine(machine, machineId, initState);
334 EXPECT_EQ(nullptr, machine);
340 StateMachine machine; variable
343 ScheduleMachine(node, nodeCnt, &machine, event, nullptr);

12