Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 48) sorted by relevance

12

/base/hiviewdfx/hiview/base/
Devent_dispatcher.cpp54 auto sp = listener.lock(); in DispatchEvent() local
55 if (sp == nullptr) { in DispatchEvent()
60 if (!sp->GetListenerInfo(event.messageType_, listenerInfo)) { in DispatchEvent()
68 sp->OnUnorderedEvent(event); in DispatchEvent()
74 auto sp = listener.lock(); in DispatchEvent() local
75 if (sp == nullptr) { in DispatchEvent()
80 if (!sp->GetEventListenerInfo(event.messageType_, listenerInfo)) { in DispatchEvent()
88 sp->OnEventListeningCallback(event); in DispatchEvent()
94 auto sp = listener.lock(); in RegisterListener() local
95 if (sp == nullptr) { in RegisterListener()
[all …]
Dpipeline.cpp169 std::shared_ptr<Plugin> sp = wp.lock(); in RemoveProcessor() local
170 if (cur != nullptr && sp != nullptr) { in RemoveProcessor()
171 return cur == sp; in RemoveProcessor()
/base/telephony/core_service/services/network_search/test/
Dtest_broadcast.h26 …explicit TestBroadCast(const EventFwk::CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in TestBroadCast() argument
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_operator_brocast_test.h30 …SimOperatorBrocastTest(const EventFwk::CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in SimOperatorBrocastTest() argument
/base/notification/common_event_service/services/src/
Dcommon_event_control_manager.cpp518 std::shared_ptr<OrderedEventRecord> sp = nullptr; in ProcessNextOrderedEvent() local
528 sp = orderedEventQueue_.front(); in ProcessNextOrderedEvent()
530 size_t numReceivers = sp->receivers.size(); in ProcessNextOrderedEvent()
533 if (sp->dispatchTime > 0) { in ProcessNextOrderedEvent()
534 if ((numReceivers > 0) && (nowSysTime > static_cast<uint64_t>(sp->dispatchTime) + in ProcessNextOrderedEvent()
538 sp->state = OrderedEventRecord::IDLE; in ProcessNextOrderedEvent()
542 if (sp->state != OrderedEventRecord::IDLE) { in ProcessNextOrderedEvent()
546 …if ((sp->receivers.empty()) || (sp->nextReceiver >= numReceivers) || sp->resultAbort || forceRecei… in ProcessNextOrderedEvent()
548 bool hasLastSubscribe = (sp->resultTo != nullptr) ? true : false; in ProcessNextOrderedEvent()
549 if (sp->resultTo != nullptr) { in ProcessNextOrderedEvent()
[all …]
Dinner_common_event_manager.cpp183 …std::shared_ptr<CommonEventSubscribeInfo> sp = std::make_shared<CommonEventSubscribeInfo>(subscrib… in SubscribeCommonEvent() local
196 sp, commonEventListener, recordTime, eventRecordInfo); in SubscribeCommonEvent()
198 PublishStickyEvent(sp, record); in SubscribeCommonEvent()
219 …std::shared_ptr<OrderedEventRecord> sp = controlPtr_->GetMatchingOrderedReceiver(commonEventListen… in UnsubscribeCommonEvent() local
220 if (sp) { in UnsubscribeCommonEvent()
222 int32_t code = sp->commonEventData->GetCode(); in UnsubscribeCommonEvent()
223 std::string data = sp->commonEventData->GetData(); in UnsubscribeCommonEvent()
224 controlPtr_->FinishReceiverAction(sp, code, data, sp->resultAbort); in UnsubscribeCommonEvent()
292 std::shared_ptr<OrderedEventRecord> sp = controlPtr_->GetMatchingOrderedReceiver(proxy); in FinishReceiver() local
293 if (sp) { in FinishReceiver()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/src/
Dprocess_frames_test.cpp199 uint64_t sp = 1; variable
200 frames->SetFrameSp(sp);
202 EXPECT_EQ(true, sp == frameSp) << "ProcessFrameTest010 Failed";
215 uint64_t sp = 164; variable
216 frames->SetFrameSp(sp);
218 EXPECT_EQ(true, sp == frameSp) << "ProcessFrameTest011 Failed";
231 uint64_t sp = -1; variable
232 frames->SetFrameSp(sp);
234 EXPECT_EQ(true, sp == frameSp) << "ProcessFrameTest012 Failed";
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_unsubscribe_test.cpp58 explicit DreivedSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in DreivedSubscriber() argument
108 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
257 sptr<IRemoteObject> sp(nullptr);
258 EXPECT_EQ(false, innerCommonEventManager->UnsubscribeCommonEvent(sp));
Dcommon_event_subscribe_test.cpp68 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
306 OHOS::sptr<OHOS::IRemoteObject> sp(nullptr);
311 …EXPECT_EQ(false, innerCommonEventManager->SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, t…
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_runner.cpp405 std::shared_ptr<EventRunner> sp(new EventRunner(false)); in Create() local
406 auto innerRunner = std::make_shared<EventRunnerImpl>(sp); in Create()
407 sp->innerRunner_ = innerRunner; in Create()
408 sp->queue_ = innerRunner->GetEventQueue(); in Create()
410 return sp; in Create()
416 std::shared_ptr<EventRunner> sp(new EventRunner(true)); in Create() local
417 auto innerRunner = std::make_shared<EventRunnerImpl>(sp); in Create()
418 sp->innerRunner_ = innerRunner; in Create()
419 sp->queue_ = innerRunner->GetEventQueue(); in Create()
431 return sp; in Create()
/base/notification/common_event_service/test/fuzztest/unsubscribecommonevent_fuzzer/
Dunsubscribecommonevent_fuzzer.cpp24 explicit TestSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in TestSubscriber() argument
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_unsubscribe_unit_test.cpp59 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
118 OHOS::sptr<OHOS::IRemoteObject> sp(nullptr);
119 EXPECT_FALSE(innerCommonEventManager->UnsubscribeCommonEvent(sp));
Dcommon_event_freeze_test.cpp89 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
139 explicit SubscriberTest2(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest2() argument
199 explicit SubscriberTestLast(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTestLast() argument
Dcommon_event_publish_system_event_test.cpp76 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
Dcommon_event_subscribe_unit_test.cpp63 SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
207 OHOS::sptr<OHOS::IRemoteObject> sp(nullptr);
211 …EXPECT_FALSE(innerCommonEventManager.SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, tokenI…
/base/hiviewdfx/hisysevent/frameworks/native/util/
Dstring_util.cpp44 int ConvertCString(const std::string& str, char** sp, size_t len) in ConvertCString() argument
54 *sp = data; in ConvertCString()
/base/notification/common_event_service/test/fuzztest/subscribecommonevent_fuzzer/
Dsubscribecommonevent_fuzzer.cpp30 explicit TestSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in TestSubscriber() argument
/base/notification/common_event_service/test/fuzztest/dumpstate_fuzzer/
Ddumpstate_fuzzer.cpp24 explicit TestSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in TestSubscriber() argument
/base/telephony/core_service/services/sim/test/
Dcommon_event_test.h51 explicit CommonEventTest(const EventFwk::CommonEventSubscribeInfo &sp) in CommonEventTest() argument
52 : EventFwk::CommonEventSubscriber(sp) {} in CommonEventTest()
/base/hiviewdfx/hiview/base/test/unittest/common/
Devent_dispatcher_test.cpp86 if (auto sp = plugin.lock(); sp != nullptr) { in AddListenerInfo() local
87 AddListenerInfo(type, sp->GetName(), eventNames, listenerInfo); in AddListenerInfo()
/base/hiviewdfx/hisysevent/frameworks/native/util/include/
Dstring_util.h26 int ConvertCString(const std::string& str, char** sp, size_t len = 8 * 1024); // default maxLen is …
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_frame.cpp75 void DfxFrame::SetFrameSp(uint64_t sp) in SetFrameSp() argument
77 sp_ = sp; in SetFrameSp()
Ddfx_frame.h37 void SetFrameSp(uint64_t sp);
Ddfx_unwind_local.cpp257 unw_word_t sp = 0; in ExecLocalDumpUnwinding() local
272 if (unw_get_reg(&cursor, UNW_REG_SP, (unw_word_t*)(&(sp)))) { in ExecLocalDumpUnwinding()
313 curFrame.SetFrameSp((uint64_t)sp); in ExecLocalDumpUnwinding()
/base/notification/common_event_service/services/include/
Dinner_common_event_manager.h135 bool PublishStickyEvent(const std::shared_ptr<CommonEventSubscribeInfo> &sp,

12