/foundation/windowmanager/dm/test/systemtest/ |
D | display_power_test.cpp | 61 static sptr<DisplayPowerEventListener> listener_; member in OHOS::Rosen::DisplayPowerTest 70 sptr<DisplayPowerEventListener> DisplayPowerTest::listener_ = new DisplayPowerEventListener(); member in OHOS::Rosen::DisplayPowerTest 78 DisplayManager::GetInstance().RegisterDisplayPowerEventListener(listener_); in SetUpTestCase() 83 DisplayManager::GetInstance().UnregisterDisplayPowerEventListener(listener_); in TearDownTestCase() 93 listener_->isCallbackCalled_ = false; in SetUp() 94 listener_->event_ = static_cast<DisplayPowerEvent>(-1); in SetUp() 95 listener_->status_ = static_cast<EventStatus>(-1); in SetUp() 116 if (listener_->isCallbackCalled_ == valueExpected) { in CheckDisplayPowerEventCallback() 229 ASSERT_EQ(false, listener_->isCallbackCalled_); 270 ASSERT_EQ(true, listener_->isCallbackCalled_); [all …]
|
D | display_change_test.cpp | 72 static sptr<DisplayChangeEventListener> listener_; member in OHOS::Rosen::DisplayChangeTest 77 sptr<DisplayChangeEventListener> DisplayChangeTest::listener_ = new DisplayChangeEventListener(); member in OHOS::Rosen::DisplayChangeTest 90 ASSERT_EQ(true, DisplayManager::GetInstance().RegisterDisplayListener(listener_)); in SetUpTestCase() 95 DisplayManager::GetInstance().UnregisterDisplayListener(listener_); in TearDownTestCase() 110 ASSERT_NE(nullptr, listener_); in ResetDisplayChangeListener() 111 listener_->isCallbackCalled_ = false; in ResetDisplayChangeListener() 112 listener_->displayId_ = DISPLAY_ID_INVALID; in ResetDisplayChangeListener() 119 if (listener_->isCallbackCalled_ == valueExpected) { in CheckDisplayChangeEventCallback() 121 static_cast<int>(valueExpected), listener_->displayId_); in CheckDisplayChangeEventCallback()
|
/foundation/graphic/ui/test/unittest/components/ |
D | ui_dialog_unit_test.cpp | 43 UIView::OnClickListener* listener_ = nullptr; variable 47 listener_ = new UIView::OnClickListener(); in SetUpTestCase() 69 if (listener_ != nullptr) { in TearDownTestCase() 70 delete listener_; in TearDownTestCase() 71 listener_ = nullptr; in TearDownTestCase() 148 dialog_->SetButton(UIDialog::DialogButtonType::BUTTON_LEFT, buttonText, listener_); 154 EXPECT_EQ(dialog_->GetButtonListener(UIDialog::DialogButtonType::BUTTON_LEFT), listener_); 165 dialog_->SetButton(UIDialog::DialogButtonType::BUTTON_LEFT, "button", listener_); 181 dialog_->SetOnCancelListener(listener_); 182 EXPECT_EQ(dialog_->GetOnCancelListener(), listener_); [all …]
|
D | ui_video_unit_test.cpp | 86 static TestVideoListener* listener_; member in OHOS::UIVideoTest 91 TestVideoListener* UIVideoTest::listener_ = nullptr; member in OHOS::UIVideoTest 95 if (listener_ == nullptr) { in SetUpTestCase() 96 listener_ = new TestVideoListener(); in SetUpTestCase() 106 if (listener_ != nullptr) { in TearDownTestCase() 107 delete listener_; in TearDownTestCase() 108 listener_ = nullptr; in TearDownTestCase() 193 if (listener_ != nullptr) { 194 video_->SetVideoPlayerListener(listener_); 241 if (listener_ != nullptr) { [all …]
|
/foundation/distributedhardware/devicemanager/test/unittest/ |
D | UTTest_device_manager_service_listener.cpp | 54 …std::shared_ptr<DeviceManagerServiceListener> listener_ = std::make_shared<DeviceManagerServiceLis… variable 62 listener_->OnDeviceStateChange(pkgName, state, info); 64 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_); 77 …std::shared_ptr<DeviceManagerServiceListener> listener_ = std::make_shared<DeviceManagerServiceLis… variable 83 listener_->OnAuthResult(pkgName, deviceId, token, status, reason); 85 std::static_pointer_cast<IpcNotifyAuthResultReq>(listener_->ipcServerListener_.req_); 99 …std::shared_ptr<DeviceManagerServiceListener> listener_ = std::make_shared<DeviceManagerServiceLis… variable 104 listener_->OnVerifyAuthResult(pkgName, deviceId, resultCode, flag); 106 std::static_pointer_cast<IpcNotifyVerifyAuthResultReq>(listener_->ipcServerListener_.req_);
|
D | UTTest_dm_device_state_manager.cpp | 49 std::shared_ptr<DeviceManagerServiceListener> listener_ = std::make_shared<DeviceManagerServiceList… variable 51 std::make_shared<DmDeviceStateManager>(softbusConnector, listener_, hiChainConnector_); 61 …d_ptr<DmDeviceStateManager> p = std::make_shared<DmDeviceStateManager>(softbusConnector, listener_, 74 …d_ptr<DmDeviceStateManager> p = std::make_shared<DmDeviceStateManager>(softbusConnector, listener_, 93 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_); 112 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_); 131 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_); 151 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_); 170 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_); 189 std::static_pointer_cast<IpcNotifyDeviceStateReq>(listener_->ipcServerListener_.req_);
|
D | UTTest_dm_discovery_manager.cpp | 48 std::shared_ptr<DeviceManagerServiceListener> listener_ = std::make_shared<DeviceManagerServiceList… variable 49 …scoveryManager> discoveryMgr_ = std::make_shared<DmDiscoveryManager>(softbusConnector_, listener_); 59 …_ptr<DmDiscoveryManager> Test = std::make_shared<DmDiscoveryManager>(softbusConnector_, listener_); 71 …_ptr<DmDiscoveryManager> Test = std::make_shared<DmDiscoveryManager>(softbusConnector_, listener_); 131 std::static_pointer_cast<IpcNotifyDeviceFoundReq>(listener_->ipcServerListener_.req_); 152 std::static_pointer_cast<IpcNotifyDeviceFoundReq>(listener_->ipcServerListener_.req_); 170 std::static_pointer_cast<IpcNotifyDiscoverResultReq>(listener_->ipcServerListener_.req_); 190 std::static_pointer_cast<IpcNotifyDiscoverResultReq>(listener_->ipcServerListener_.req_); 207 std::static_pointer_cast<IpcNotifyDiscoverResultReq>(listener_->ipcServerListener_.req_); 226 std::static_pointer_cast<IpcNotifyDiscoverResultReq>(listener_->ipcServerListener_.req_);
|
/foundation/multimedia/audio_standard/services/src/audio_policy/server/service/listener/ |
D | device_status_listener.cpp | 86 : deviceObserver_(observer), hdiServiceManager_(nullptr), listener_(nullptr) {} in DeviceStatusListener() 99 listener_ = HdiServiceStatusListenerNewInstance(); in RegisterDeviceStatusListener() 100 listener_->callback = OnServiceStatusReceived; in RegisterDeviceStatusListener() 101 listener_->priv = (void *)this; in RegisterDeviceStatusListener() 102 … int32_t status = hdiServiceManager_->RegisterServiceStatusListener(hdiServiceManager_, listener_, in RegisterDeviceStatusListener() 118 if ((hdiServiceManager_ == nullptr) || (listener_ == nullptr)) { in UnRegisterDeviceStatusListener() 122 …nt32_t status = hdiServiceManager_->UnregisterServiceStatusListener(hdiServiceManager_, listener_); in UnRegisterDeviceStatusListener() 129 listener_ = nullptr; in UnRegisterDeviceStatusListener()
|
/foundation/multimedia/media_standard/services/services/avcodec/ipc/ |
D | avcodec_listener_proxy.cpp | 108 : listener_(listener) in AVCodecListenerCallback() 120 if (listener_ != nullptr) { in OnError() 121 listener_->OnError(errorType, errorCode); in OnError() 127 if (listener_ != nullptr) { in OnOutputFormatChanged() 128 listener_->OnOutputFormatChanged(format); in OnOutputFormatChanged() 134 if (listener_ != nullptr) { in OnInputBufferAvailable() 135 listener_->OnInputBufferAvailable(index); in OnInputBufferAvailable() 141 if (listener_ != nullptr) { in OnOutputBufferAvailable() 142 listener_->OnOutputBufferAvailable(index, info, flag); in OnOutputBufferAvailable()
|
/foundation/resourceschedule/work_scheduler/services/native/src/conditions/ |
D | network_listener.cpp | 33 NetworkListener &listener) : CommonEventSubscriber(subscribeInfo), listener_(listener) {} in NetworkEventSubscriber() 50 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent() 54 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent() 58 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent() 62 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent() 66 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent() 70 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent() 75 listener_.OnConditionChanged(WorkCondition::Type::NETWORK, in OnReceiveEvent()
|
D | charger_listener.cpp | 26 …ChargerListener &listener) : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) {} in ChargerEventSubscriber() 40 listener_.OnConditionChanged(WorkCondition::Type::CHARGER, in OnReceiveEvent() 46 listener_.OnConditionChanged(WorkCondition::Type::CHARGER, in OnReceiveEvent() 52 listener_.OnConditionChanged(WorkCondition::Type::CHARGER, in OnReceiveEvent() 68 listener_.OnConditionChanged(WorkCondition::Type::CHARGER, in OnReceiveEvent()
|
/foundation/graphic/wms/frameworks/ims/ |
D | input_event_listener_proxy.cpp | 21 InputEventListenerProxy::RawEventListener* InputEventListenerProxy::listener_ = nullptr; member in OHOS::InputEventListenerProxy 55 if (listener_ == nullptr) { in ReceiveMsgHandler() 65 listener_->OnRawEvent(event); in ReceiveMsgHandler() 96 listener_ = listener; in RegisterInputEventListener() 108 if (listener_ != nullptr) { in UnregisterInputEventListener() 109 listener_ = nullptr; in UnregisterInputEventListener()
|
/foundation/distributeddatamgr/distributeddatamgr/frameworks/innerkitsimpl/distributeddatafwk/src/ |
D | device_status_change_listener_client.cpp | 21 std::shared_ptr<DeviceStatusChangeListener> listener) : listener_(std::move(listener)) in DeviceStatusChangeListenerClient() 26 if (listener_ != nullptr) { in OnChange() 27 listener_->OnDeviceChanged(results, type); in OnChange()
|
/foundation/multimedia/media_standard/services/services/recorder/ipc/ |
D | recorder_listener_proxy.cpp | 74 : listener_(listener) in RecorderListenerCallback() 86 if (listener_ != nullptr) { in OnError() 87 listener_->OnError(errorType, errorCode); in OnError() 93 if (listener_ != nullptr) { in OnInfo() 94 listener_->OnInfo(type, extra); in OnInfo()
|
/foundation/distributedhardware/devicemanager/ext/mini/common/include/ipc/model/ |
D | ipc_register_listener_req.h | 45 return listener_; 50 listener_ = listener; 57 sptr<IRemoteObject> listener_;
|
/foundation/distributedhardware/devicemanager/common/include/ipc/model/ |
D | ipc_register_listener_req.h | 46 return listener_; 51 listener_ = listener; 58 sptr<IRemoteObject> listener_;
|
/foundation/multimedia/media_standard/services/services/player/ipc/ |
D | player_listener_proxy.cpp | 80 …llback::PlayerListenerCallback(const sptr<IStandardPlayerListener> &listener) : listener_(listener) in PlayerListenerCallback() 93 if (listener_ != nullptr) { in OnError() 94 listener_->OnError(errorType, errorCode); in OnError() 100 if (listener_ != nullptr) { in OnInfo() 101 listener_->OnInfo(type, extra, infoBody); in OnInfo()
|
/foundation/multimedia/audio_standard/services/src/audio_policy/server/ |
D | audio_ringermode_update_listener_proxy.cpp | 51 const sptr<IStandardRingerModeUpdateListener> &listener) : listener_(listener) in AudioRingerModeListenerCallback() 63 if (listener_ != nullptr) { in OnRingerModeUpdated() 64 listener_->OnRingerModeUpdated(ringerMode); in OnRingerModeUpdated()
|
D | audio_volume_key_event_callback_proxy.cpp | 46 : listener_(listener) in VolumeKeyEventCallbackListner() 59 if (listener_ != nullptr) { in OnVolumeKeyEvent() 60 listener_->OnVolumeKeyEvent(streamType, volumeLevel, isUpdateUi); in OnVolumeKeyEvent()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
D | stream_manager.h | 38 : listener_(streamListener) {} in StreamSocketListener() 43 listener_->OnStreamReceived(std::move(stream)); in OnStreamReceived() 47 listener_->OnStreamStatus(status); in OnStreamStatus() 59 listener_->OnQosEvent(eventId, tvCount, tvList); in OnQosEvent() 63 std::shared_ptr<IStreamManagerListener> listener_ = nullptr;
|
/foundation/windowmanager/dm/test/unittest/ |
D | display_change_unit_test.cpp | 53 sptr<DisplayChangeEventListener> listener_ = new DisplayChangeEventListener(); member in OHOS::Rosen::DisplayChangeUnitTest 99 bool ret = DisplayManager::GetInstance().RegisterDisplayListener(listener_); 104 ret = DisplayManager::GetInstance().UnregisterDisplayListener(listener_); 137 bool ret = DisplayManager::GetInstance().RegisterDisplayListener(listener_); 142 ret = DisplayManager::GetInstance().UnregisterDisplayListener(listener_);
|
/foundation/graphic/standard/rosen/modules/composer/vsync/src/ |
D | vsync_receiver.cpp | 53 listener_(std::make_shared<VSyncCallBackListener>()), in VSyncReceiver() 81 … looper_->AddFileDescriptorListener(fd_, OHOS::AppExecFwk::FILE_DESCRIPTOR_INPUT_EVENT, listener_); in Init() 101 listener_->SetCallback(callback); in RequestNextVSync() 112 listener_->SetCallback(callback); in SetVSyncRate()
|
/foundation/graphic/ui/frameworks/components/ |
D | ui_texture_mapper.cpp | 31 if (mapper.listener_ != nullptr) { in OnStop() 32 mapper.listener_->OnAnimatorStop(view); in OnStop() 38 listener_(nullptr), in UITextureMapper()
|
/foundation/distributedhardware/distributedscreen/screenhandler/src/ |
D | dscreen_handler.cpp | 93 if (listener_ != nullptr) { in PluginHardware() 94 listener_->PluginHardware(dhId, attr); in PluginHardware() 100 if (listener_ != nullptr) { in UnPluginHardware() 101 listener_->UnPluginHardware(dhId); in UnPluginHardware() 146 listener_ = listener; in RegisterPluginListener()
|
/foundation/graphic/standard/frameworks/vsync/src/ |
D | vsync_helper_impl.cpp | 101 listener_ = nullptr; in InitVsyncFrequency() 122 listener_ = nullptr; in Init() 153 while (listener_ == nullptr && listenerID_ == -1) { in InitListener() 158 listener_ = new VsyncCallback(); in InitListener() 159 vret = StaticCall::GetInstance()->ListenVsync(service_, listener_, listenerID_); in InitListener() 162 listener_ = nullptr; in InitListener() 312 if (callbacksMap_.size() == 0 && listener_ != nullptr && listenerID_ != -1) { in DispatchMain() 316 listener_ = nullptr; in DispatchMain()
|