Home
last modified time | relevance | path

Searched refs:event (Results 1876 - 1900 of 4825) sorted by relevance

1...<<71727374757677787980>>...193

/base/print/print_fwk/test/unittest/service_test/
H A Dprint_user_data_test.cpp95 int event = 0; in HWTEST_F() local
98 userData->SendPrinterEvent(type, event, info); in HWTEST_F()
108 int event = 0; in HWTEST_F() local
111 userData->SendPrinterEvent(type2, event, info); in HWTEST_F()
122 int event = 0; in HWTEST_F() local
126 userData->SendPrinterEvent(type, event, info); in HWTEST_F()
175 int event = 0; in HWTEST_F() local
177 userData->SendPrinterEvent(type, event, info); in HWTEST_F()
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/
H A Dfusion_device_profile_adapter.cpp42 bool SupportProfileEvent(const ProfileEvent &event) const;
43 void AddProfileEvent(const ProfileEvent &event);
104 bool ProfileEventCallback::SupportProfileEvent(const ProfileEvent &event) const in SupportProfileEvent()
106 return (profileEvents_.find(event) != profileEvents_.cend()); in SupportProfileEvent()
109 void ProfileEventCallback::AddProfileEvent(const ProfileEvent &event) in AddProfileEvent() argument
111 auto ret = profileEvents_.insert(event); in AddProfileEvent()
113 FI_HILOGW("Profile event is duplicate"); in AddProfileEvent()
119 for (const auto &event : profileEvents) { in RemoveProfileEvents()
120 profileEvents_.erase(event); in RemoveProfileEvents()
/base/msdp/device_status/frameworks/native/src/
H A Ddevicestatus_client.cpp104 int32_t DeviceStatusClient::SubscribeCallback(Type type, ActivityEvent event, ReportLatencyNs latency, in SubscribeCallback() argument
107 FI_HILOGI("Enter event:%{public}d, latency:%{public}d", event, latency); in SubscribeCallback()
122 devicestatusProxy_->Subscribe(type, event, latency, callback); in SubscribeCallback()
127 int32_t DeviceStatusClient::UnsubscribeCallback(Type type, ActivityEvent event, sptr<IRemoteDevStaCallback> callback) in UnsubscribeCallback() argument
130 FI_HILOGI("UNevent:%{public}d", event); in UnsubscribeCallback()
145 if (event < ActivityEvent::EVENT_INVALID || event > ActivityEvent::ENTER_EXIT) { in UnsubscribeCallback()
146 FI_HILOGE("event out of range"); in UnsubscribeCallback()
149 devicestatusProxy_->Unsubscribe(type, event, callbac in UnsubscribeCallback()
[all...]
/base/sensors/sensor/frameworks/cj/src/
H A Dcj_sensor_impl.cpp42 void CJSensorImpl::CJDataCallbackImpl(SensorEvent *event) in CJDataCallbackImpl() argument
44 CHKPV(event); in CJDataCallbackImpl()
45 CJ_SENSOR_IMPL->EmitCallBack(event); in CJDataCallbackImpl()
142 int32_t CJSensorImpl::OnSensorChange(int32_t sensorId, int64_t interval, void (*callback)(SensorEvent *event)) in OnSensorChange() argument
168 void CJSensorImpl::EmitCallBack(SensorEvent *event) in EmitCallBack() argument
170 auto callback = FindCallback(event->sensorTypeId); in EmitCallBack()
172 SEN_HILOGE("EmitCallBack failed, %{public}d not find.", event->sensorTypeId); in EmitCallBack()
176 callback.value()(event); in EmitCallBack()
/base/telephony/core_service/test/unittest/icc_file_gtest/
H A Dicc_file_gtest.cpp173 AppExecFwk::InnerEvent::Pointer event = AppExecFwk::InnerEvent::Get(0, 0); in HWTEST_F() local
174 event = nullptr; in HWTEST_F()
178 iccFile->ProcessEvent(event); in HWTEST_F()
179 EXPECT_EQ(event, nullptr); in HWTEST_F()
357 AppExecFwk::InnerEvent::Pointer event = AppExecFwk::InnerEvent::Get(eventId, object, eventParam); in HWTEST_F() local
358 ASSERT_NE(event, nullptr); in HWTEST_F()
376 AppExecFwk::InnerEvent::Pointer event = AppExecFwk::InnerEvent::Get(eventId, object, eventParam); in HWTEST_F() local
377 ASSERT_NE(event, nullptr); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/
H A Drender_xcomponent.cpp451 bool RenderXComponent::HandleMouseEvent(const MouseEvent& event) in HandleMouseEvent() argument
454 mouseEventPoint.x = event.GetOffset().GetX() - GetCoordinatePoint().GetX(); in HandleMouseEvent()
455 mouseEventPoint.y = event.GetOffset().GetY() - GetCoordinatePoint().GetY(); in HandleMouseEvent()
456 mouseEventPoint.screenX = event.GetOffset().GetX(); in HandleMouseEvent()
457 mouseEventPoint.screenY = event.GetOffset().GetY(); in HandleMouseEvent()
458 switch (event.action) { in HandleMouseEvent()
472 switch (event.button) { in HandleMouseEvent()
492 mouseEventPoint.timestamp = event.time.time_since_epoch().count(); in HandleMouseEvent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/hyperlink/
H A Dhyperlink_pattern.cpp45 auto dragStart = [weak = WeakClaim(this)](const RefPtr<OHOS::Ace::DragEvent>& event, in EnableDrag()
67 event->SetData(unifiedData); in EnableDrag()
249 auto onKeyEvent = [wp = WeakClaim(this)](const KeyEvent& event) -> bool { in InitOnKeyEvent()
252 return pattern->OnKeyEvent(event); in InitOnKeyEvent()
257 bool HyperlinkPattern::OnKeyEvent(const KeyEvent& event) in OnKeyEvent() argument
259 if (event.action != KeyAction::DOWN) { in OnKeyEvent()
262 if ((event.code == KeyCode::KEY_SPACE || event.code == KeyCode::KEY_ENTER)) { in OnKeyEvent()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dcard_transition_controller.cpp43 [weak](const TransitionEvent& event, const WeakPtr<PageElement>& in, const WeakPtr<PageElement>& out) { in RegisterTransitionListener()
44 if ((event != TransitionEvent::POP_START) && (event != TransitionEvent::PUSH_START)) { in RegisterTransitionListener()
49 LOGE("handle event: %{public}d failed. controller is null.", event); in RegisterTransitionListener()
52 if (event == TransitionEvent::PUSH_START) { in RegisterTransitionListener()
59 controller->event_ = event; in RegisterTransitionListener()
281 controller_->AddStopListener([weakTransform, event = event_] { in CreateExternalAnimation()
283 if (transform && event == TransitionEvent::PUSH_START) { in CreateExternalAnimation()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dcalendar_picker_modifier.cpp371 ArkUINodeEvent event; in SetCalendarPickerOnChange()
372 event.kind = COMPONENT_ASYNC_EVENT; in SetCalendarPickerOnChange()
373 event.extraParam = reinterpret_cast<intptr_t>(extraParam); in SetCalendarPickerOnChange()
379 event.componentAsyncEvent.subKind = ON_CALENDAR_PICKER_CHANGE; in SetCalendarPickerOnChange()
380 event.componentAsyncEvent.data[NUM_0].u32 = selectedDate.year; in SetCalendarPickerOnChange()
381 event.componentAsyncEvent.data[NUM_1].u32 = selectedDate.month; in SetCalendarPickerOnChange()
382 event.componentAsyncEvent.data[NUM_2].u32 = selectedDate.day; in SetCalendarPickerOnChange()
383 SendArkUIAsyncEvent(&event); in SetCalendarPickerOnChange()
/foundation/barrierfree/accessibility/services/aams/src/
H A Dutils.cpp290 void Utils::RecordUnavailableEvent(A11yUnavailableEvent event, A11yError errCode, in RecordUnavailableEvent() argument
297 oss << "accessibility function is unavailable: " << "event: " << TransferUnavailableEventToString(event) in RecordUnavailableEvent()
316 std::string event; in TransferUnavailableEventToString() local
319 event = "READ"; in TransferUnavailableEventToString()
322 event = "CONNECT"; in TransferUnavailableEventToString()
325 event = "QUERY"; in TransferUnavailableEventToString()
328 event = "UNDEFINE"; in TransferUnavailableEventToString()
331 return event; in TransferUnavailableEventToString()
337 oss << "starting accessibility: " << "event in RecordStartingA11yEvent()
[all...]
/foundation/arkui/ui_lite/test/unittest/events/
H A Devent_bubble_unit_test.cpp54 bool OnLongPressEvent(const LongPressEvent& event) override
60 bool OnClickEvent(const ClickEvent& event) override
66 bool OnDragEvent(const DragEvent& event) override
72 bool OnKeyAct(UIView& view, const KeyEvent& event) override
105 virtual bool OnClick(UIView& view, const ClickEvent& event) in OnClick() argument
119 virtual bool OnLongPress(UIView& view, const LongPressEvent& event) in OnLongPress() argument
133 virtual bool OnPress(UIView& view, const PressEvent& event) in OnPress() argument
147 virtual bool OnDrag(DragEvent& event) in OnDrag() argument
/foundation/multimedia/media_foundation/engine/pipeline/core/
H A Dfilter_base.cpp158 void FilterBase::OnEvent(const Event& event) in OnEvent() argument
160 // Receive event from port, pass it to pipeline in OnEvent()
162 eventReceiver_->OnEvent(event); in OnEvent()
304 void FilterBase::OnEvent(const Plugin::PluginEvent &event) in OnEvent() argument
307 if (event.type == Plugin::PluginEventType::CLIENT_ERROR || in OnEvent()
308 event.type == Plugin::PluginEventType::SERVER_ERROR || in OnEvent()
309 event.type == Plugin::PluginEventType::OTHER_ERROR) { in OnEvent()
310 eventReceiver_->OnEvent({name_, EventType::EVENT_PLUGIN_ERROR, event}); in OnEvent()
312 eventReceiver_->OnEvent({name_, EventType::EVENT_PLUGIN_EVENT, event}); in OnEvent()
/foundation/multimodalinput/input/service/window_manager/test/
H A Dmock.cpp18 double libinput_event_tablet_tool_get_x_transformed(struct libinput_event_tablet_tool *event, uint32_t width) in libinput_event_tablet_tool_get_x_transformed() argument
23 double libinput_event_tablet_tool_get_y_transformed(struct libinput_event_tablet_tool *event, uint32_t height) in libinput_event_tablet_tool_get_y_transformed() argument
28 double libinput_event_touch_get_x_transformed(struct libinput_event_touch *event, uint32_t width) in libinput_event_touch_get_x_transformed() argument
33 double libinput_event_touch_get_y_transformed(struct libinput_event_touch *event, uint32_t height) in libinput_event_touch_get_y_transformed() argument
38 double libinput_event_touch_get_tool_x_transformed(struct libinput_event_touch *event, uint32_t width) in libinput_event_touch_get_tool_x_transformed() argument
43 double libinput_event_touch_get_tool_y_transformed(struct libinput_event_touch *event, uint32_t height) in libinput_event_touch_get_tool_y_transformed() argument
48 double libinput_event_touch_get_tool_width_transformed(struct libinput_event_touch *event, uint32_t width) in libinput_event_touch_get_tool_width_transformed() argument
53 double libinput_event_touch_get_tool_height_transformed(struct libinput_event_touch *event, uint32_t height) in libinput_event_touch_get_tool_height_transformed() argument
/foundation/window/window_manager/dm/src/zidl/
H A Ddisplay_manager_agent_proxy.cpp30 void DisplayManagerAgentProxy::NotifyDisplayPowerEvent(DisplayPowerEvent event, EventStatus status) in NotifyDisplayPowerEvent() argument
46 if (!data.WriteUint32(static_cast<uint32_t>(event))) { in NotifyDisplayPowerEvent()
47 WLOGFE("Write event failed"); in NotifyDisplayPowerEvent()
144 void DisplayManagerAgentProxy::OnScreenChange(const sptr<ScreenInfo>& screenInfo, ScreenChangeEvent event) in OnScreenChange() argument
165 if (!data.WriteUint32(static_cast<uint32_t>(event))) { in OnScreenChange()
176 const std::vector<sptr<ScreenInfo>>& screenInfos, ScreenGroupChangeEvent event) in OnScreenGroupChange()
202 if (!data.WriteUint32(static_cast<uint32_t>(event))) { in OnScreenGroupChange()
264 void DisplayManagerAgentProxy::OnDisplayChange(sptr<DisplayInfo> displayInfo, DisplayChangeEvent event) in OnDisplayChange() argument
285 if (!data.WriteUint32(static_cast<uint32_t>(event))) { in OnDisplayChange()
175 OnScreenGroupChange(const std::string& trigger, const std::vector<sptr<ScreenInfo>>& screenInfos, ScreenGroupChangeEvent event) OnScreenGroupChange() argument
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_common.c43 EventType event; member
99 AUTH_LOGE(AUTH_CONN, "invalid event handler, event=%{public}d", msg->what); in HandleAuthMessage()
105 int32_t PostAuthEvent(EventType event, EventHandler handler, const void *obj, uint32_t size, uint64_t delayMs) in PostAuthEvent() argument
112 AUTH_LOGE(AUTH_CONN, "malloc fail, event=%{public}d", event); in PostAuthEvent()
115 msg->what = (int32_t)event; in PostAuthEvent()
130 if (msg->what != (int32_t)info->event) { in CustomFunc()
131 AUTH_LOGE(AUTH_CONN, "msg->what and event inequality"); in CustomFunc()
141 int32_t RemoveAuthEvent(EventType event, RemoveCompareFun argument
[all...]
/third_party/ffmpeg/libavdevice/
H A Dvfwcap.c47 HANDLE event; member
211 SetEvent(ctx->event); in videostream_cb()
232 if(ctx->event) in vfw_read_close()
233 CloseHandle(ctx->event); in vfw_read_close()
420 ctx->event = CreateEvent(NULL, 1, 0, NULL); in vfw_read_header()
421 if(!ctx->event) { in vfw_read_header()
453 ResetEvent(ctx->event); in vfw_read_packet()
459 WaitForSingleObject(ctx->event, INFINITE); in vfw_read_packet()
/third_party/python/Lib/idlelib/
H A Dmulticall.py3 example), but enables multiple calls of functions per virtual event - all
5 by wrapping the event functions - event_add, event_delete and event_info.
6 MultiCall recognizes only a subset of legal event sequences. Sequences which
8 more-specific event will be called before a less-specific event.
10 The recognized sequences are complete one-event sequences (no emacs-style
17 event instance passed to the binded functions - mc_type. This is one of the
18 event type constants defined in this module (such as MC_KEYPRESS).
26 1. A more-specific event will be called before a less-specific event
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_sdl_vulkan/
H A Dmain.cpp464 SDL_Event event; in main() local
465 while (SDL_PollEvent(&event)) in main()
467 ImGui_ImplSDL2_ProcessEvent(&event); in main()
468 if (event.type == SDL_QUIT) in main()
470 if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) in main()
/third_party/python/Lib/xml/dom/
H A Dpulldom.py137 event = [(COMMENT, s), None]
138 self.pending_events.append(event)
146 event = [(PROCESSING_INSTRUCTION, target, data), None]
147 self.pending_events.append(event)
182 raise AssertionError("Unknown pending event ",e[0][0])
229 event = self.getEvent()
231 while event:
232 token, cur_node = event
241 event = self.getEvent()
/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlogger.cpp47 #include "event.h"
419 bool Faultlogger::JudgmentRateLimiting(std::shared_ptr<Event> event) in JudgmentRateLimiting() argument
422 auto sysEvent = std::static_pointer_cast<SysEvent>(event); in JudgmentRateLimiting()
438 HIVIEW_LOGW("event: id:0x%{public}d, eventName:%{public}s pid:%{public}s. \ in JudgmentRateLimiting()
445 HIVIEW_LOGI("event: id:0x%{public}d, eventName:%{public}s pid:%{public}s. \ in JudgmentRateLimiting()
451 bool Faultlogger::IsInterestedPipelineEvent(std::shared_ptr<Event> event) in IsInterestedPipelineEvent() argument
453 if (!hasInit_ || event == nullptr) { in IsInterestedPipelineEvent()
457 if (event->eventName_ != "PROCESS_EXIT" && in IsInterestedPipelineEvent()
458 event->eventName_ != "JS_ERROR" && in IsInterestedPipelineEvent()
459 event in IsInterestedPipelineEvent()
518 OnEvent(std::shared_ptr<Event> &event) OnEvent() argument
548 CanProcessEvent(std::shared_ptr<Event> event) CanProcessEvent() argument
737 AddFaultLogIfNeed(FaultLogInfo& info, std::shared_ptr<Event> event) AddFaultLogIfNeed() argument
[all...]
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/scene/
H A Dwfd_sink_scene_test.cpp860 SharingEvent event; in HWTEST_F() local
864 event.eventMsg = msg; in HWTEST_F()
866 sinkScene_->OnInnerEvent(event); in HWTEST_F()
876 SharingEvent event; in HWTEST_F() local
880 event.eventMsg = msg; in HWTEST_F()
882 sinkScene_->OnInnerEvent(event); in HWTEST_F()
896 SharingEvent event; in HWTEST_F() local
900 event.eventMsg = msg; in HWTEST_F()
902 sinkScene_->OnInnerEvent(event); in HWTEST_F()
912 SharingEvent event; in HWTEST_F() local
927 SharingEvent event; HWTEST_F() local
944 SharingEvent event; HWTEST_F() local
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
H A Da2dp_service.cpp327 utility::Message event(A2DP_CONNECT_EVT); in Connect()
328 PostEvent(event, const_cast<RawAddress &>(device)); in Connect()
353 utility::Message event(A2DP_DISCONNECT_EVT); in Disconnect()
354 PostEvent(event, const_cast<RawAddress &>(device)); in Disconnect()
366 message.what_ = (static_cast<A2dpAvdtMsg*>(message.arg2_))->event; in ProcessAvdtpCallback()
1047 void A2dpService::PostEvent(utility::Message event, RawAddress &device) in PostEvent() argument
1049 GetDispatcher()->PostTask(std::bind(&A2dpService::ProcessEvent, this, event, device)); in PostEvent()
1052 void A2dpService::ProcessEvent(utility::Message event, RawAddress &device) in ProcessEvent() argument
1058 utility::Message msg(event.what_, 0, &data); in ProcessEvent()
1060 switch (event in ProcessEvent()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/
H A Drfcomm_frames.c703 * @return event type. @see RfcommEventType
756 * @return event type. @see RfcommEventType
802 * @return event type. @see RfcommEventType
813 *output.event = EV_SESSION_RECV_SABM0; in RfcommParseSabm()
818 *output.event = EV_CHANNEL_RECV_SABM; in RfcommParseSabm()
829 * @return event type. @see RfcommEventType
840 *output.event = EV_SESSION_RECV_DISC0; in RfcommParseDisc()
845 *output.event = EV_CHANNEL_RECV_DISC; in RfcommParseDisc()
856 * @return event type. @see RfcommEventType
867 *output.event in RfcommParseUa()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Ddrag_drop_manager_test_ng_coverage.cpp51 auto onDragDrop = [](const RefPtr<OHOS::Ace::DragEvent>& event, const std::string& value) {}; in HWTEST_F()
148 * @tc.desc: Test FindTargetInChildNodes with hit FrameNode having OnDrop event
201 auto onDragDrop = [](const RefPtr<OHOS::Ace::DragEvent>& event, const std::string& value) {}; in HWTEST_F()
294 auto onDragDrop = [](const RefPtr<OHOS::Ace::DragEvent>& event, const std::string& value) {}; in HWTEST_F()
418 auto onDragDrop = [](const RefPtr<OHOS::Ace::DragEvent>& event, const std::string& value) {}; in HWTEST_F()
715 auto onDragDrop = [](const RefPtr<OHOS::Ace::DragEvent>& event, const std::string& value) {}; in HWTEST_F()
773 auto onDragDrop = [](const RefPtr<OHOS::Ace::DragEvent>& event, const std::string& value) {}; in HWTEST_F()
1124 auto event = AceType::MakeRefPtr<OHOS::Ace::DragEvent>(); in HWTEST_F() local
1127 dragDropManager->SetDragBehavior(notifyMessage, event); in HWTEST_F()
1129 dragDropManager->SetDragBehavior(notifyMessage, event); in HWTEST_F()
1146 auto event = AceType::MakeRefPtr<OHOS::Ace::DragEvent>(); HWTEST_F() local
1171 GestureEvent event; HWTEST_F() local
1264 TouchEvent event; HWTEST_F() local
1310 TouchEvent event; HWTEST_F() local
1354 TouchEvent event; HWTEST_F() local
[all...]
/base/sensors/sensor/frameworks/js/napi/src/
H A Dsensor_js.cpp67 static bool copySensorData(sptr<AsyncCallbackInfo> callbackInfo, SensorEvent *event) in copySensorData() argument
70 CHKPF(event); in copySensorData()
71 int32_t sensorTypeId = event->sensorTypeId; in copySensorData()
73 callbackInfo->data.sensorData.dataLength = event->dataLen; in copySensorData()
74 callbackInfo->data.sensorData.timestamp = event->timestamp; in copySensorData()
75 callbackInfo->data.sensorData.sensorAccuracy = event->option; in copySensorData()
76 CHKPF(event->data); in copySensorData()
77 if (event->dataLen < sizeof(float)) { in copySensorData()
81 auto data = reinterpret_cast<float *>(event->data); in copySensorData()
90 data, event in copySensorData()
107 EmitSubscribeCallback(SensorEvent *event) EmitSubscribeCallback() argument
125 EmitOnCallback(SensorEvent *event) EmitOnCallback() argument
143 EmitOnceCallback(SensorEvent *event) EmitOnceCallback() argument
170 DataCallbackImpl(SensorEvent *event) DataCallbackImpl() argument
[all...]

Completed in 27 milliseconds

1...<<71727374757677787980>>...193