Home
last modified time | relevance | path

Searched refs:notice (Results 1 - 19 of 19) sorted by relevance

/base/msdp/device_status/intention/cooperate/plugin/src/
H A Dcooperate_in.cpp169 DSoftbusComeBack notice { in OnComeBack()
174 context.OnStartCooperate(notice.extra); in OnComeBack()
175 if (context.dsoftbus_.ComeBack(context.Peer(), notice) != RET_OK) { in OnComeBack()
176 notice.success = false; in OnComeBack()
177 notice.errCode = static_cast<int32_t>(CoordinationErrCode::SEND_PACKET_FAILED); in OnComeBack()
179 context.eventMgr_.StartCooperateFinish(notice); in OnComeBack()
207 DSoftbusStopCooperateFinished notice { in OnStop()
211 context.eventMgr_.StopCooperateFinish(notice); in OnStop()
219 DSoftbusStartCooperate notice = std::get<DSoftbusStartCooperate>(event.event); in OnRemoteStart() local
221 if (context.IsPeer(notice in OnRemoteStart()
240 DSoftbusStopCooperate notice = std::get<DSoftbusStopCooperate>(event.event); OnRemoteStop() local
264 InputPointerEvent notice = std::get<InputPointerEvent>(event.event); OnPointerEvent() local
278 DDMBoardOfflineEvent notice = std::get<DDMBoardOfflineEvent>(event.event); OnBoardOffline() local
289 DDPCooperateSwitchChanged notice = std::get<DDPCooperateSwitchChanged>(event.event); OnSwitchChanged() local
300 DSoftbusSessionClosed notice = std::get<DSoftbusSessionClosed>(event.event); OnSoftbusSessionClosed() local
314 DSoftbusSyncInputDevice notice = std::get<DSoftbusSyncInputDevice>(event.event); OnRemoteInputDevice() local
324 DSoftbusHotPlugEvent notice = std::get<DSoftbusHotPlugEvent>(event.event); OnRemoteHotPlug() local
333 UpdateCooperateFlagEvent notice = std::get<UpdateCooperateFlagEvent>(event.event); OnUpdateCooperateFlag() local
415 DSoftbusStartCooperate notice = std::get<DSoftbusStartCooperate>(event.event); OnRemoteStart() local
440 DSoftbusStopCooperate notice = std::get<DSoftbusStopCooperate>(event.event); OnRemoteStop() local
464 InputPointerEvent notice = std::get<InputPointerEvent>(event.event); OnPointerEvent() local
478 DDMBoardOfflineEvent notice = std::get<DDMBoardOfflineEvent>(event.event); OnBoardOffline() local
492 DDPCooperateSwitchChanged notice = std::get<DDPCooperateSwitchChanged>(event.event); OnSwitchChanged() local
508 DSoftbusSessionClosed notice = std::get<DSoftbusSessionClosed>(event.event); OnSoftbusSessionClosed() local
522 DSoftbusRelayCooperateFinished notice = std::get<DSoftbusRelayCooperateFinished>(event.event); OnResponse() local
[all...]
H A Dcooperate_out.cpp155 DSoftbusStopCooperateFinished notice { in OnStop()
159 context.eventMgr_.StopCooperateFinish(notice); in OnStop()
167 DSoftbusComeBack notice = std::get<DSoftbusComeBack>(event.event); in OnComeBack() local
169 if (!context.IsPeer(notice.networkId)) { in OnComeBack()
172 FI_HILOGI("[come back] From \'%{public}s\'", Utility::Anonymize(notice.networkId).c_str()); in OnComeBack()
173 context.OnRemoteStartCooperate(notice.extra); in OnComeBack()
175 .networkId = notice.networkId, in OnComeBack()
180 context.RemoteStartSuccess(notice); in OnComeBack()
181 context.eventMgr_.RemoteStartFinish(notice); in OnComeBack()
188 DSoftbusStartCooperate notice in OnRemoteStart() local
217 DSoftbusStopCooperate notice = std::get<DSoftbusStopCooperate>(event.event); OnRemoteStop() local
233 DSoftbusRelayCooperate notice = std::get<DSoftbusRelayCooperate>(event.event); OnRelay() local
261 InputHotplugEvent notice = std::get<InputHotplugEvent>(event.event); OnHotplug() local
279 InputPointerEvent notice = std::get<InputPointerEvent>(event.event); OnPointerEvent() local
292 DDMBoardOfflineEvent notice = std::get<DDMBoardOfflineEvent>(event.event); OnBoardOffline() local
303 DDPCooperateSwitchChanged notice = std::get<DDPCooperateSwitchChanged>(event.event); OnSwitchChanged() local
314 DSoftbusSessionClosed notice = std::get<DSoftbusSessionClosed>(event.event); OnSoftbusSessionClosed() local
[all...]
H A Dmouse_location.cpp103 void MouseLocation::OnSoftbusSessionClosed(const DSoftbusSessionClosed &notice) in OnSoftbusSessionClosed() argument
107 FI_HILOGI("Session to %{public}s closed", Utility::Anonymize(notice.networkId).c_str()); in OnSoftbusSessionClosed()
108 if (remoteSubscribers_.find(notice.networkId) != remoteSubscribers_.end()) { in OnSoftbusSessionClosed()
109 remoteSubscribers_.erase(notice.networkId); in OnSoftbusSessionClosed()
110 FI_HILOGI("Remove remote subscribers from %{public}s", Utility::Anonymize(notice.networkId).c_str()); in OnSoftbusSessionClosed()
112 if (listeners_.find(notice.networkId) != listeners_.end()) { in OnSoftbusSessionClosed()
113 listeners_.erase(notice.networkId); in OnSoftbusSessionClosed()
114 FI_HILOGI("Remove listeners listen to %{public}s", Utility::Anonymize(notice.networkId).c_str()); in OnSoftbusSessionClosed()
118 void MouseLocation::OnSubscribeMouseLocation(const DSoftbusSubscribeMouseLocation &notice) in OnSubscribeMouseLocation() argument
123 remoteSubscribers_.insert(notice in OnSubscribeMouseLocation()
135 OnUnSubscribeMouseLocation(const DSoftbusUnSubscribeMouseLocation &notice) OnUnSubscribeMouseLocation() argument
156 OnReplySubscribeMouseLocation(const DSoftbusReplySubscribeMouseLocation &notice) OnReplySubscribeMouseLocation() argument
169 OnReplyUnSubscribeMouseLocation(const DSoftbusReplyUnSubscribeMouseLocation &notice) OnReplyUnSubscribeMouseLocation() argument
182 OnRemoteMouseLocation(const DSoftbusSyncMouseLocation &notice) OnRemoteMouseLocation() argument
[all...]
H A Dinput_device_mgr.cpp52 void InputDeviceMgr::OnSoftbusSessionOpened(const DSoftbusSessionOpened &notice) in OnSoftbusSessionOpened() argument
55 NotifyInputDeviceToRemote(notice.networkId); in OnSoftbusSessionOpened()
58 void InputDeviceMgr::OnSoftbusSessionClosed(const DSoftbusSessionClosed &notice) in OnSoftbusSessionClosed() argument
61 RemoveAllRemoteInputDevice(notice.networkId); in OnSoftbusSessionClosed()
64 void InputDeviceMgr::OnLocalHotPlug(const InputHotplugEvent &notice) in OnLocalHotPlug() argument
67 BroadcastHotPlugToRemote(notice); in OnLocalHotPlug()
70 void InputDeviceMgr::OnRemoteInputDevice(const DSoftbusSyncInputDevice &notice) in OnRemoteInputDevice() argument
73 std::string networkId = notice.networkId; in OnRemoteInputDevice()
74 for (const auto &device : notice.devices) { in OnRemoteInputDevice()
80 void InputDeviceMgr::OnRemoteHotPlug(const DSoftbusHotPlugEvent &notice) in OnRemoteHotPlug() argument
105 HandleRemoteHotPlug(const DSoftbusHotPlugEvent &notice) HandleRemoteHotPlug() argument
148 BroadcastHotPlugToRemote(const InputHotplugEvent &notice) BroadcastHotPlugToRemote() argument
[all...]
H A Devent_manager.cpp67 CooperateNotice notice { in EnableCooperate()
73 NotifyCooperateMessage(notice); in EnableCooperate()
79 CooperateNotice notice { in DisableCooperate()
85 NotifyCooperateMessage(notice); in DisableCooperate()
103 CooperateNotice notice { in StartCooperateFinish()
112 NotifyCooperateMessage(notice); in StartCooperateFinish()
159 CooperateNotice notice { in StopCooperateFinish()
167 NotifyCooperateMessage(notice); in StopCooperateFinish()
196 void EventManager::GetCooperateState(const CooperateStateNotice &notice) in GetCooperateState() argument
199 NotifyCooperateState(notice); in GetCooperateState()
235 NotifyCooperateMessage(const CooperateNotice &notice) NotifyCooperateMessage() argument
254 NotifyCooperateState(const CooperateStateNotice &notice) NotifyCooperateState() argument
[all...]
H A Dstate_machine.cpp219 AddObserverEvent notice = std::get<AddObserverEvent>(event.event); in AddObserver() local
220 context.AddObserver(notice.observer); in AddObserver()
225 RemoveObserverEvent notice = std::get<RemoveObserverEvent>(event.event); in RemoveObserver() local
226 context.RemoveObserver(notice.observer); in RemoveObserver()
231 RegisterListenerEvent notice = std::get<RegisterListenerEvent>(event.event); in RegisterListener() local
232 context.eventMgr_.RegisterListener(notice); in RegisterListener()
237 UnregisterListenerEvent notice = std::get<UnregisterListenerEvent>(event.event); in UnregisterListener() local
238 context.eventMgr_.UnregisterListener(notice); in UnregisterListener()
243 RegisterHotareaListenerEvent notice = std::get<RegisterHotareaListenerEvent>(event.event); in RegisterHotAreaListener() local
244 context.hotArea_.AddListener(notice); in RegisterHotAreaListener()
249 UnregisterHotareaListenerEvent notice = std::get<UnregisterHotareaListenerEvent>(event.event); UnregisterHotAreaListener() local
328 ClientDiedEvent notice = std::get<ClientDiedEvent>(event.event); OnProcessClientDied() local
337 RegisterEventListenerEvent notice = std::get<RegisterEventListenerEvent>(event.event); RegisterEventListener() local
343 UnregisterEventListenerEvent notice = std::get<UnregisterEventListenerEvent>(event.event); UnregisterEventListener() local
375 DDPCooperateSwitchChanged notice = std::get<DDPCooperateSwitchChanged>(event.event); OnProfileChanged() local
393 DSoftbusSessionClosed notice = std::get<DSoftbusSessionClosed>(event.event); OnSoftbusSessionClosed() local
404 DSoftbusSessionOpened notice = std::get<DSoftbusSessionOpened>(event.event); OnSoftbusSessionOpened() local
412 InputHotplugEvent notice = std::get<InputHotplugEvent>(event.event); OnHotPlugEvent() local
420 DSoftbusSyncInputDevice notice = std::get<DSoftbusSyncInputDevice>(event.event); OnRemoteInputDevice() local
428 DSoftbusHotPlugEvent notice = std::get<DSoftbusHotPlugEvent>(event.event); OnRemoteHotPlug() local
436 DSoftbusSubscribeMouseLocation notice = std::get<DSoftbusSubscribeMouseLocation>(event.event); OnSoftbusSubscribeMouseLocation() local
443 DSoftbusUnSubscribeMouseLocation notice = std::get<DSoftbusUnSubscribeMouseLocation>(event.event); OnSoftbusUnSubscribeMouseLocation() local
450 DSoftbusReplySubscribeMouseLocation notice = std::get<DSoftbusReplySubscribeMouseLocation>(event.event); OnSoftbusReplySubscribeMouseLocation() local
457 DSoftbusReplyUnSubscribeMouseLocation notice = std::get<DSoftbusReplyUnSubscribeMouseLocation>(event.event); OnSoftbusReplyUnSubscribeMouseLocation() local
464 DSoftbusSyncMouseLocation notice = std::get<DSoftbusSyncMouseLocation>(event.event); OnSoftbusMouseLocation() local
[all...]
H A Dcooperate_free.cpp119 StartCooperateEvent notice = std::get<StartCooperateEvent>(event.event); in OnStart() local
120 FI_HILOGI("[start cooperation] With \'%{public}s\'", Utility::Anonymize(notice.remoteNetworkId).c_str()); in OnStart()
121 context.StartCooperate(notice); in OnStart()
122 context.eventMgr_.StartCooperate(notice); in OnStart()
162 DSoftbusStopCooperateFinished notice { in OnStop()
166 context.eventMgr_.StopCooperateFinish(notice); in OnStop()
188 DSoftbusStartCooperate notice = std::get<DSoftbusStartCooperate>(event.event); in OnRemoteStart() local
189 context.OnRemoteStartCooperate(notice.extra); in OnRemoteStart()
190 context.eventMgr_.RemoteStart(notice); in OnRemoteStart()
191 context.RemoteStartSuccess(notice); in OnRemoteStart()
203 InputPointerEvent notice = std::get<InputPointerEvent>(event.event); OnPointerEvent() local
[all...]
H A Dcooperate.cpp366 SetDamplingCoefficientEvent notice = std::get<SetDamplingCoefficientEvent>(event.event); in SetDamplingCoefficient() local
367 context_.inputEventBuilder_.SetDamplingCoefficient(notice.direction, notice.coefficient); in SetDamplingCoefficient()
/base/useriam/user_auth_framework/services/context/src/
H A Dwidget_client.cpp56 // handle notice from widget in OnNotice()
58 IAM_LOGE("Invalid notice type"); in OnNotice()
62 IAM_LOGE("Invalid notice event data"); in OnNotice()
65 IAM_LOGI("recv notice eventData: %{public}s", eventData.c_str()); in OnNotice()
71 WidgetNotice notice = root.get<WidgetNotice>(); in OnNotice() local
72 if (notice.widgetContextId == 0) { in OnNotice()
76 if (!IsValidNoticeType(notice)) { in OnNotice()
77 IAM_LOGE("Not support notice event"); in OnNotice()
85 if (!GetAuthTypeList(notice, authTypeList)) { in OnNotice()
89 ProcessNotice(notice, authTypeLis in OnNotice()
93 ProcessNotice(const WidgetNotice &notice, std::vector<AuthType> &authTypeList) ProcessNotice() argument
269 GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList) GetAuthTypeList() argument
302 IsValidNoticeType(const WidgetNotice &notice) IsValidNoticeType() argument
[all...]
H A Dwidget_json.cpp243 void to_json(nlohmann::json &jsonNotice, const WidgetNotice &notice) in to_json() argument
245 auto type = nlohmann::json({{JSON_AUTH_TYPE, notice.typeList}, in to_json()
246 {JSON_AUTH_END_AFTER_FIRST_FAIL, notice.endAfterFirstFail}, in to_json()
247 {JSON_AUTH_INTENT, notice.authIntent}}); in to_json()
248 jsonNotice = nlohmann::json({{JSON_WIDGET_CTX_ID, notice.widgetContextId}, in to_json()
249 {JSON_AUTH_EVENT, notice.event}, in to_json()
250 {JSON_ORIENTATION, notice.orientation}, in to_json()
251 {JSON_NEED_ROTATE, notice.needRotate}, in to_json()
252 {JSON_ALREADY_LOAD, notice.alreadyLoad}, in to_json()
253 {JSON_AUTH_VERSION, notice in to_json()
265 from_json(const nlohmann::json &jsonNotice, WidgetNotice &notice) from_json() argument
[all...]
/base/msdp/device_status/intention/cooperate/plugin/include/
H A Dmouse_location.h49 void OnSubscribeMouseLocation(const DSoftbusSubscribeMouseLocation &notice);
50 void OnUnSubscribeMouseLocation(const DSoftbusUnSubscribeMouseLocation &notice);
51 void OnReplySubscribeMouseLocation(const DSoftbusReplySubscribeMouseLocation &notice);
52 void OnReplyUnSubscribeMouseLocation(const DSoftbusReplyUnSubscribeMouseLocation &notice);
53 void OnRemoteMouseLocation(const DSoftbusSyncMouseLocation &notice);
55 void OnSoftbusSessionClosed(const DSoftbusSessionClosed &notice);
H A Dinput_device_mgr.h44 void OnSoftbusSessionOpened(const DSoftbusSessionOpened &notice);
45 void OnSoftbusSessionClosed(const DSoftbusSessionClosed &notice);
46 void OnLocalHotPlug(const InputHotplugEvent &notice);
49 void HandleRemoteHotPlug(const DSoftbusHotPlugEvent &notice);
50 void OnRemoteInputDevice(const DSoftbusSyncInputDevice &notice);
51 void OnRemoteHotPlug(const DSoftbusHotPlugEvent &notice);
55 void BroadcastHotPlugToRemote(const InputHotplugEvent &notice);
H A Devent_manager.h88 void GetCooperateState(const CooperateStateNotice &notice);
93 void NotifyCooperateMessage(const CooperateNotice &notice);
94 void NotifyCooperateState(const CooperateStateNotice &notice);
/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dwidget_json_test.cpp303 WidgetNotice notice = root.get<WidgetNotice>(); in HWTEST_F() local
304 EXPECT_EQ(notice.widgetContextId, static_cast<uint64_t>(0)); in HWTEST_F()
311 WidgetNotice notice = root.get<WidgetNotice>(); in HWTEST_F() local
312 EXPECT_EQ(notice.widgetContextId, static_cast<uint64_t>(0)); in HWTEST_F()
319 WidgetNotice notice = root.get<WidgetNotice>(); in HWTEST_F() local
320 EXPECT_EQ(notice.widgetContextId, static_cast<uint64_t>(1)); in HWTEST_F()
321 EXPECT_EQ(notice.event, "EVENT_AUTH_TYPE_READY"); in HWTEST_F()
322 EXPECT_EQ(notice.version, "1"); in HWTEST_F()
328 WidgetNotice notice = root.get<WidgetNotice>(); in HWTEST_F() local
329 EXPECT_EQ(notice in HWTEST_F()
335 WidgetNotice notice = root.get<WidgetNotice>(); HWTEST_F() local
342 WidgetNotice notice = root.get<WidgetNotice>(); HWTEST_F() local
349 WidgetNotice notice = root.get<WidgetNotice>(); HWTEST_F() local
357 WidgetNotice notice = root.get<WidgetNotice>(); HWTEST_F() local
364 WidgetNotice notice = root.get<WidgetNotice>(); HWTEST_F() local
[all...]
/base/useriam/user_auth_framework/services/context/inc/
H A Dwidget_client.h64 bool GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList);
65 bool IsValidNoticeType(const WidgetNotice &notice);
66 void ProcessNotice(const WidgetNotice &notice, std::vector<AuthType> &authTypeList);
H A Dwidget_json.h53 void to_json(nlohmann::json &jsonNotice, const WidgetNotice &notice);
54 void from_json(const nlohmann::json &jsonNotice, WidgetNotice &notice);
/base/security/device_security_level/services/dfx/
H A Ddslm_hidumper.c287 char *notice = timeVal.tv_sec <= YEAR_TIME_2023 ? "(please check the system time)" : ""; in PrintDefaultStatus() local
291 dprintf(fd, "VERIFY_TEST : %s%s" END_LINE, verifyResult == SUCCESS ? "success" : "failed", notice); in PrintDefaultStatus()
/base/msdp/device_status/test/unittest/intention/cooperate/src/
H A Dcooperate_plugin_test.cpp728 ClientDiedEvent notice = std::get<ClientDiedEvent>(event.event); in HWTEST_F() local
730 g_context->mouseLocation_.OnClientDied(notice); in HWTEST_F()
761 DSoftbusSyncMouseLocation notice = std::get<DSoftbusSyncMouseLocation>(event.event); in HWTEST_F() local
762 g_context->mouseLocation_.SyncMouseLocation(notice); in HWTEST_F()
786 DDMBoardOnlineEvent notice = std::get<DDMBoardOnlineEvent>(event.event); in HWTEST_F() local
787 g_context->mouseLocation_.OnSoftbusSessionClosed(notice); in HWTEST_F()
820 DDMBoardOnlineEvent notice = std::get<DDMBoardOnlineEvent>(event.event); in HWTEST_F() local
821 g_context->mouseLocation_.OnSoftbusSessionClosed(notice); in HWTEST_F()
2520 DSoftbusSessionOpened notice = { in HWTEST_F() local
2524 ASSERT_NO_FATAL_FAILURE(g_context->inputDevMgr_.OnSoftbusSessionOpened(notice)); in HWTEST_F()
[all...]
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
H A Duser_auth_client_test.cpp656 int32_t notice = UserAuthClientImpl::Instance().Notice(NoticeType::WIDGET_NOTICE, "notice"); in HWTEST_F() local
657 EXPECT_NE(notice, SUCCESS); in HWTEST_F()
662 int32_t notice = UserAuthClientImpl::Instance().Notice((enum NoticeType)0, "notice"); in HWTEST_F() local
663 EXPECT_EQ(notice, GENERAL_ERROR); in HWTEST_F()

Completed in 13 milliseconds