Home
last modified time | relevance | path

Searched refs:userData (Results 1 – 25 of 124) sorted by relevance

12345

/foundation/multimedia/audio_framework/frameworks/native/audioadapter/src/
Dpulse_audio_service_adapter_impl.cpp173 unique_ptr<UserData> userData = make_unique<UserData>(); in OpenAudioPort() local
174 userData->thiz = this; in OpenAudioPort()
184 PaModuleLoadCb, reinterpret_cast<void*>(userData.get())); in OpenAudioPort()
198 if (userData->idx == PA_INVALID_INDEX) { in OpenAudioPort()
203 return userData->idx; in OpenAudioPort()
319 UserData *userData = reinterpret_cast<UserData *>(userdata); in PaGetSinksCb() local
320 PulseAudioServiceAdapterImpl *thiz = userData->thiz; in PaGetSinksCb()
349 userData->sinkInfos.push_back(sinkInfo); in PaGetSinksCb()
356 unique_ptr<UserData> userData = make_unique<UserData>(); in GetAllSinks() local
357 userData->thiz = this; in GetAllSinks()
[all …]
/foundation/communication/ipc/ipc/native/test/unittest/common/
Dipc_c_remote_object_unittest.cpp59 static void OnRemoteObjectDestroy(const void *userData) in OnRemoteObjectDestroy() argument
61 (void)userData; in OnRemoteObjectDestroy()
64 static void OnDeathRecipient(const void *userData) in OnDeathRecipient() argument
66 (void)userData; in OnDeathRecipient()
69 static void OnDeathRecipientDestroy(const void *userData) in OnDeathRecipientDestroy() argument
71 (void)userData; in OnDeathRecipientDestroy()
123 int8_t userData; variable
124 …emote = CreateRemoteStub(SERVICE_NAME, OnRemoteRequest, OnRemoteObjectDestroy, &userData, nullptr);
177 int8_t userData; variable
179 OnDeathRecipientDestroy, &userData);
[all …]
/foundation/multimedia/audio_framework/frameworks/native/ohaudio/
DOHAudioRenderer.h27 …ModeCallback(OH_AudioRenderer_Callbacks callbacks, OH_AudioRenderer* audioRenderer, void* userData) in OHAudioRendererModeCallback() argument
28 : callbacks_(callbacks), ohAudioRenderer_(audioRenderer), userData_(userData) in OHAudioRendererModeCallback()
43 … void* userData) : callbacks_(callbacks), ohAudioRenderer_(audioRenderer), userData_(userData) in OHAudioRendererDeviceChangeCallback() argument
58 … void* userData) : callbacks_(callbacks), ohAudioRenderer_(audioRenderer), userData_(userData) in OHAudioRendererCallback() argument
76 … void* userData) : callbacks_(callbacks), ohAudioRenderer_(audioRenderer), userData_(userData) in OHServiceDiedCallback() argument
91 … void* userData) : callbacks_(callbacks), ohAudioRenderer_(audioRenderer), userData_(userData) in OHAudioRendererErrorCallback() argument
127 void SetRendererCallback(OH_AudioRenderer_Callbacks callbacks, void* userData);
DOHAudioCapturer.h27 …ModeCallback(OH_AudioCapturer_Callbacks callbacks, OH_AudioCapturer* audioCapturer, void* userData) in OHAudioCapturerModeCallback() argument
28 : callbacks_(callbacks), ohAudioCapturer_(audioCapturer), userData_(userData) in OHAudioCapturerModeCallback()
41 …urerCallback(OH_AudioCapturer_Callbacks callbacks, OH_AudioCapturer* audioCapturer, void* userData) in OHAudioCapturerCallback() argument
42 : callbacks_(callbacks), ohAudioCapturer_(audioCapturer), userData_(userData) in OHAudioCapturerCallback()
83 void SetCapturerCallback(OH_AudioCapturer_Callbacks callbacks, void* userData);
/foundation/multimedia/player_framework/services/engine/gstreamer/player/
Dplayer_sinkprovider.h46 GstElement *DoCreateAudioSink(const GstCaps *caps, const gpointer userData);
47 GstElement *DoCreateVideoSink(const GstCaps *caps, const gpointer userData);
48 GstElement *DoCreateSubtitleSink(const gpointer userData);
54 static GstFlowReturn SubtitleUpdated(GstBuffer *sample, gpointer userData);
57 static GstPadProbeReturn SinkPadProbeCb(GstPad *pad, GstPadProbeInfo *info, gpointer userData);
59 static void EosCb(GstMemSink *memSink, gpointer userData);
60 static GstFlowReturn NewPrerollCb(GstMemSink *memSink, GstBuffer *sample, gpointer userData);
61 static GstFlowReturn NewSampleCb(GstMemSink *memSink, GstBuffer *sample, gpointer userData);
62 static void FirstRenderFrame(gpointer userData);
Dplayer_sinkprovider.cpp104 GstElement *PlayerSinkProvider::DoCreateAudioSink(const GstCaps *caps, const gpointer userData) in DoCreateAudioSink() argument
108 CHECK_AND_RETURN_RET_LOG(userData != nullptr, nullptr, "input userData is nullptr.."); in DoCreateAudioSink()
128 PlayerSinkProvider::SinkPadProbeCb, userData, nullptr); in DoCreateAudioSink()
172 GstElement *PlayerSinkProvider::DoCreateVideoSink(const GstCaps *caps, const gpointer userData) in DoCreateVideoSink() argument
176 CHECK_AND_RETURN_RET_LOG(userData != nullptr, nullptr, "input userData is nullptr.."); in DoCreateVideoSink()
177 PlayerSinkProvider *sinkProvider = reinterpret_cast<PlayerSinkProvider *>(userData); in DoCreateVideoSink()
189 gst_mem_sink_set_callback(GST_MEM_SINK(sink), &sinkCallbacks, userData, nullptr); in DoCreateVideoSink()
200 void PlayerSinkProvider::FirstRenderFrame(gpointer userData) in FirstRenderFrame() argument
202 CHECK_AND_RETURN_LOG(userData != nullptr, "input userData is nullptr.."); in FirstRenderFrame()
203 PlayerSinkProvider *sinkProvider = reinterpret_cast<PlayerSinkProvider *>(userData); in FirstRenderFrame()
[all …]
/foundation/multimedia/audio_framework/interfaces/kits/c/common/
Dnative_audiostream_base.h461 void* userData,
473 void* userData,
484 void* userData,
496 void* userData,
514 void* userData,
526 void* userData,
537 void* userData,
549 void* userData,
/foundation/communication/ipc/ipc/native/src/c_wrapper/include/
Dc_remote_object.h33 typedef int (*OnRemoteRequestCb)(const void *userData, int code,
35 typedef int (*OnRemoteDumpCb)(const void *userData, const CParcel *data);
36 typedef void (*OnRemoteObjectDestroyCb)(const void *userData);
38 typedef void (*OnDeathRecipientCb)(const void *userData);
39 typedef void (*OnDeathRecipientDestroyCb)(const void *userData);
44 OnRemoteObjectDestroyCb destroy, const void *userData, OnRemoteDumpCb dumpCallback);
55 OnDeathRecipientDestroyCb onDestroy, const void *userData);
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
Dnstackx_file_list.c224 …PackedDFileUserData(const uint8_t *buf, size_t userDataLength, uint16_t *pathType, char **userData, in ParsePackedDFileUserData() argument
249 … memcpy_s(validUserData, userDataStrLen + 1, userDataUnit->userData, userDataStrLen) != EOK) { in ParsePackedDFileUserData()
253 *userData = validUserData; in ParsePackedDFileUserData()
257 int32_t FileListAddUserData(FileList *fileList, const uint8_t *userData, size_t userDataLength, uin… in FileListAddUserData() argument
264 …if (ParsePackedDFileUserData(userData, userDataLength, &fileList->pathType, &fileList->userData, f… in FileListAddUserData()
269 fileList->userData = calloc(1, userDataLength + 1); in FileListAddUserData()
270 if (fileList->userData == NULL) { in FileListAddUserData()
274 if (memcpy_s(fileList->userData, userDataLength + 1, userData, userDataLength) != EOK) { in FileListAddUserData()
275 free(fileList->userData); in FileListAddUserData()
276 fileList->userData = NULL; in FileListAddUserData()
[all …]
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/
Dwebsocket_exec.cpp242 auto userData = reinterpret_cast<UserData *>(manager->GetData()); in RunService() local
243 lws_context *context = userData->GetContext(); in RunService()
248 while (!userData->IsThreadStop()) { in RunService()
252 userData->SetContext(nullptr); in RunService()
253 delete userData; in RunService()
282 auto userData = reinterpret_cast<UserData *>(manager->GetData()); in LwsCallbackClientAppendHandshakeHeader() local
290 for (const auto &pair : userData->header) { in LwsCallbackClientAppendHandshakeHeader()
312 auto userData = reinterpret_cast<UserData *>(manager->GetData()); in LwsCallbackWsPeerInitiatedClose() local
316 userData->Close(LWS_CLOSE_STATUS_NORMAL, ""); in LwsCallbackWsPeerInitiatedClose()
323 userData->Close(static_cast<lws_close_status>(closeStatus), closeReason); in LwsCallbackWsPeerInitiatedClose()
[all …]
/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/timerthread/
Dtimer_thread.cpp33 void *userData, in StartTimerTask() argument
40 …return g_timerInstance->StartTimerTaskInner(isPeriodic, delay, userCallback, userData, timerHandle… in StartTimerTask()
82 func(info->userData); in Traverse()
97 void *userData, in StartTimerTaskInner() argument
108 info->userData = userData; in StartTimerTaskInner()
/foundation/arkui/ace_engine_lite/frameworks/src/core/context/
Djs_ability_impl.cpp178 char *userData = StringUtil::Malloc(AbilitySlite::SAVED_DATA_LIMIT); in OnRestoreData() local
179 if (userData == nullptr) { in OnRestoreData()
186 reinterpret_cast<void *>(userData), AbilitySlite::SAVED_DATA_LIMIT, &userDataLen); in OnRestoreData()
189 ACE_FREE(userData); in OnRestoreData()
210 bool success = InvokeOnRestoreData(userData, AbilitySlite::SavedResultCode::SAVED_RESULT_OK); in OnRestoreData()
211 ACE_FREE(userData); in OnRestoreData()
271 char *userData = MallocStringOf(dataJson); in OnSaveData() local
274 if (userData == nullptr) { in OnSaveData()
280 …bilitySavedData->SetUserSavedData(reinterpret_cast<const void *>(userData), strlen(userData) + 1); in OnSaveData()
281 ACE_FREE(userData); in OnSaveData()
[all …]
/foundation/multimedia/histreamer/engine/plugin/plugins/minimp3_adapter/
Dminimp3_wrapper.c46 void *userData) in Minimp3WrapperMp3decIterateBuf() argument
48 return mp3dec_iterate_buf(buf, bufSize, callback, userData); in Minimp3WrapperMp3decIterateBuf()
52 MINIMP3_WRAPPER_MP3D_ITERATE_CB callback, void *userData) in Minimp3WrapperMp3decIterateCb() argument
54 return mp3dec_iterate_cb(io, buf, bufSize, callback, userData); in Minimp3WrapperMp3decIterateCb()
Dminimp3_wrapper.h43 …Buf)(const uint8_t *buf, size_t bufSize, MINIMP3_WRAPPER_MP3D_ITERATE_CB callback, void *userData);
46 MINIMP3_WRAPPER_MP3D_ITERATE_CB callback, void *userData);
59 MINIMP3_WRAPPER_MP3D_ITERATE_CB callback, void *userData);
62 MINIMP3_WRAPPER_MP3D_ITERATE_CB callback, void *userData);
/foundation/systemabilitymgr/safwk/services/safwk/c_wrapper/source/
Dc_system_ability.cpp24 CSystemAbilityInner::CSystemAbilityInner(const void *userData) in CSystemAbilityInner() argument
25 : userData_(userData) in CSystemAbilityInner()
95 bool MakeAndRegisterAbility(CSystemAbility* cSystemability, const void *userData) in MakeAndRegisterAbility() argument
97 if (cSystemability == nullptr || userData == nullptr) { in MakeAndRegisterAbility()
101 cSystemability->SetUserData(userData); in MakeAndRegisterAbility()
/foundation/systemabilitymgr/safwk/services/safwk/c_wrapper/include/
Dc_system_ability_internal.h21 CSystemAbilityInner(const void *userData);
27 void SetUserData(const void *userData) in SetUserData()
29 userData_ = userData; in SetUserData()
/foundation/communication/dsoftbus/sdk/frame/common/src/
Dsoftbus_client_event_manager.c32 char *userData; member
79 int RegisterEventCallback(enum SoftBusEvent event, EventCallback cb, void *userData) in RegisterEventCallback() argument
111 observer->userData = userData; in RegisterEventCallback()
141 (observer->callback(arg, argLen, observer->userData) != SOFTBUS_OK)) { in CLIENT_NotifyObserver()
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
Dtester_capi.h50 static void OnError(OH_AVCodec *codec, int32_t errorCode, void *userData);
51 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData);
52 … static void OnNeedInputData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData);
54 … OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData);
/foundation/multimedia/player_framework/services/engine/gstreamer/common/playbin_adapter/
Dplaybin_ctrler_base.h117 static void ElementSetup(const GstElement *playbin, GstElement *elem, gpointer userData);
118 …lementUnSetup(const GstElement *playbin, GstElement *subbin, GstElement *child, gpointer userData);
119 static void SourceSetup(const GstElement *playbin, GstElement *elem, gpointer userData);
121 uint32_t bitrateNum, gpointer userData);
122 …tatic void OnSelectBitrateDoneCb(const GstElement *playbin, uint32_t bandwidth, gpointer userData);
124 GValueArray *factories, gpointer userData);
126 const uint32_t hintType, gpointer userData);
127 static void OnAudioSegmentEventCb(const GstElement *audioSink, gpointer userData);
128 static void OnAudioDiedEventCb(const GstElement *audioSink, gpointer userData);
129 static void OnIsLiveStream(const GstElement *demux, gboolean isLiveStream, gpointer userData);
[all …]
/foundation/multimedia/av_codec/test/unittest/vcodec_test/capi/
Dvideodec_capi_mock.cpp25 void VideoDecCapiMock::OnError(OH_AVCodec *codec, int32_t errorCode, void *userData) in OnError() argument
27 (void)userData; in OnError()
34 void VideoDecCapiMock::OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument
36 (void)userData; in OnStreamChanged()
44 …oDecCapiMock::OnNeedInputData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in OnNeedInputData() argument
46 (void)userData; in OnNeedInputData()
55 void *userData) in OnNewOutputData() argument
57 (void)userData; in OnNewOutputData()
Dvideoenc_capi_mock.cpp28 void VideoEncCapiMock::OnError(OH_AVCodec *codec, int32_t errorCode, void *userData) in OnError() argument
30 (void)userData; in OnError()
37 void VideoEncCapiMock::OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument
39 (void)userData; in OnStreamChanged()
47 …oEncCapiMock::OnNeedInputData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in OnNeedInputData() argument
49 (void)userData; in OnNeedInputData()
58 void *userData) in OnNewOutputData() argument
60 (void)userData; in OnNewOutputData()
Dvideoenc_capi_mock.h46 static void OnError(OH_AVCodec *codec, int32_t errorCode, void *userData);
47 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData);
48 … static void OnNeedInputData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData);
50 OH_AVCodecBufferAttr *attr, void *userData);
Dvideodec_capi_mock.h48 static void OnError(OH_AVCodec *codec, int32_t errorCode, void *userData);
49 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData);
50 … static void OnNeedInputData(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData);
52 void *userData);
/foundation/communication/ipc/ipc/native/src/c_wrapper/source/
Dc_remote_object.cpp29 const void *userData, OnRemoteObjectDestroyCb destroy, OnRemoteDumpCb dumpCallback) in RemoteServiceHolderStub() argument
31 , userData_(userData), destroy_(destroy) in RemoteServiceHolderStub()
71 OnDeathRecipientDestroyCb onDestroy, const void *userData) in CDeathRecipient() argument
72 : userData_(userData) in CDeathRecipient()
109 OnRemoteObjectDestroyCb destroy, const void *userData, OnRemoteDumpCb dumpCallback) in CreateRemoteStub() argument
121 descriptor, callback, userData, destroy, dumpCallback); in CreateRemoteStub()
169 OnDeathRecipientDestroyCb onDestroy, const void *userData) in CreateDeathRecipient() argument
171 if (onDeathRecipient == nullptr || onDestroy == nullptr || userData == nullptr) { in CreateDeathRecipient()
176 onDestroy, userData); in CreateDeathRecipient()
/foundation/communication/dsoftbus/core/common/include/
Dsoftbus.h31 typedef int (*EventCallback)(void *arg, unsigned int argLen, void *userData);
33 int RegisterEventCallback(enum SoftBusEvent event, EventCallback cb, void *userData);

12345