Home
last modified time | relevance | path

Searched refs:g_callback (Results 1 – 25 of 28) sorted by relevance

12

/drivers/peripheral/codec/test/fuzztest/adapter_fuzzer/codeccommonadapter_fuzzer/
Dcodeccommon_fuzzer.cpp38 CodecCallbackType *g_callback = nullptr; variable
71 g_callback = CodecCallbackTypeGet(nullptr); in Preconditions()
72 if (g_callback == nullptr) { in Preconditions()
81 CodecCallbackTypeRelease(g_callback); in Preconditions()
89 CodecCallbackTypeRelease(g_callback); in Preconditions()
98 CodecCallbackTypeRelease(g_callback); in Preconditions()
103 …manager->CreateComponent(&g_component, &g_componentId, capList[0].compName, g_appData, g_callback); in Preconditions()
107 CodecCallbackTypeRelease(g_callback); in Preconditions()
123 CodecCallbackTypeRelease(g_callback); in Destroy()
Dcodeccommon_fuzzer.h29 extern CodecCallbackType *g_callback;
/drivers/peripheral/camera/hal_c/hdi_cif/src/
Dcamera_host_callback_wrapper.cpp21 static OHOS::sptr<OHOS::Camera::ICameraHostCallback> g_callback; variable
24 g_callback = callback; in BindCameraHostCallback()
30 g_callback->OnCameraStatus(id, static_cast<OHOS::Camera::CameraStatus>(cameraStatus)); in HostCBOnCameraStatus()
37g_callback->OnFlashlightStatus(id, static_cast<OHOS::Camera::FlashlightStatus>(flashlightStatus)); in HostCBOnFlashlightStatus()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codeccommonomx_fuzzer/
Dcodeccommon_fuzzer.cpp36 CodecCallbackType *g_callback = nullptr; variable
81 g_callback = CodecCallbackTypeStubGetInstance(); in Preconditions()
82 if (g_callback == nullptr) { in Preconditions()
88 …= g_manager->CreateComponent(&g_component, &g_componentId, compName.data(), g_appData, g_callback); in Preconditions()
90 CodecCallbackTypeRelease(g_callback); in Preconditions()
105 CodecCallbackTypeRelease(g_callback); in Destroy()
Dcodeccommon_fuzzer.h30 extern CodecCallbackType *g_callback;
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/
Dcodeccommon_fuzzer.cpp41 g_callback = nullptr; in Release()
70 g_callback = new CodecCallbackFuzz(); in Preconditions()
71 if (g_callback == nullptr) { in Preconditions()
93 … = g_manager->CreateComponent(g_component, g_componentId, caps[0].compName, g_appData, g_callback); in Preconditions()
Dcodeccommon_fuzzer.h30 inline OHOS::sptr<OHOS::HDI::Codec::V1_0::ICodecCallback> g_callback; variable
/drivers/peripheral/power/interfaces/hdi_service/src/
Dpower_interface_impl.cpp60 static sptr<IPowerHdiCallback> g_callback; variable
83 g_callback = ipowerHdiCallback; in RegisterCallback()
84 if (g_callback == nullptr) { in RegisterCallback()
92 AddPowerDeathRecipient(g_callback); in RegisterCallback()
101 RemovePowerDeathRecipient(g_callback); in UnRegister()
102 g_callback = nullptr; in UnRegister()
166 if (g_callback == nullptr) { in NotifyCallback()
171 g_callback->OnSuspend(); in NotifyCallback()
174 g_callback->OnWakeup(); in NotifyCallback()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codeccreatecomponentomx_fuzzer/
Dcodeccreatecomponent_fuzzer.cpp25 CodecCallbackType* g_callback = CodecCallbackTypeStubGetInstance(); in CodecCreateComponent() local
35 static_cast<int64_t >(*data), g_callback); in CodecCreateComponent()
/drivers/peripheral/codec/test/unittest/idl_omx/
Dcodec_hdi_omx_dec_test.cpp36 static sptr<ICodecCallback> g_callback = nullptr; variable
72 g_callback = new CodecCallbackService(); in SetUp()
73 ASSERT_TRUE(g_callback != nullptr); in SetUp()
74 …t = g_manager->CreateComponent(g_component, componentId_, g_compName.data(), APP_DATA, g_callback); in SetUp()
96 g_callback = nullptr; in TearDown()
Dcodec_hdi_omx_enc_test.cpp35 static sptr<ICodecCallback> g_callback = nullptr; variable
71 g_callback = new CodecCallbackService(); in SetUp()
72 ASSERT_TRUE(g_callback != nullptr); in SetUp()
73 …t = g_manager->CreateComponent(g_component, componentId_, g_compName.data(), APP_DATA, g_callback); in SetUp()
95 g_callback = nullptr; in TearDown()
855 g_callback = new CodecCallbackService();
856 ASSERT_TRUE(g_callback != nullptr);
857 auto ret = g_component->SetCallbacks(g_callback, APP_DATA);
/drivers/peripheral/codec/test/unittest/hdi_adapter/
Dcodec_hdi_adapter_test.cpp41 struct CodecCallbackType *g_callback = nullptr; variable
246 g_callback = CodecCallbackTypeGet(nullptr);
247 ASSERT_TRUE(g_callback != nullptr);
287 ASSERT_TRUE(g_callback != nullptr);
289 …ret = g_manager->CreateComponent(&g_component, &g_componentId, (char *)name, APP_DATA, g_callback);
297 ASSERT_TRUE(g_callback != nullptr);
298 …32_t ret = g_manager->CreateComponent(&g_component, &g_componentId, nullptr, APP_DATA, g_callback);
351 ASSERT_TRUE(g_callback != nullptr);
353 const_cast<char *>(ENCODER_AVC), APP_DATA, g_callback);
910 if (g_callback != nullptr) {
[all …]
/drivers/peripheral/input/test/fuzztest/inputunregisterreportcallback_fuzzer/
Dinputunregisterreportcallback_fuzzer.cpp30 InputEventCb g_callback; in InputUnregisterReportCallbackFuzzTest() local
54 ret = g_inputInterface->iInputReporter->RegisterReportCallback(TOUCH_INDEX, &g_callback); in InputUnregisterReportCallbackFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputregisterreportcallback_fuzzer/
Dinputregisterreportcallback_fuzzer.cpp29 InputEventCb g_callback; in DoSomethingInterestingWithMyAPI() local
53 … ret = g_inputInterface->iInputReporter->RegisterReportCallback(*(uint32_t *)data, &g_callback); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/battery/interfaces/hdi_service/src/
Dbattery_thread.cpp38 static sptr<IBatteryCallback> g_callback; variable
42 g_callback = callback; in InitCallback()
190 if (g_callback != nullptr) { in UpdateBatteryInfo()
191 g_callback->Update(event); in UpdateBatteryInfo()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecsetcallbacksomx_fuzzer/
Dcodecsetcallbacks_fuzzer.cpp29 … int32_t ret = g_component->SetCallbacks(g_component, g_callback, static_cast<int64_t >(*data)); in CodecSetCallbacks()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecsetcallbackshdi_fuzzer/
Dcodecsetcallbacks_fuzzer.cpp33 int32_t ret = g_component->SetCallbacks(g_callback, static_cast<int64_t >(*data)); in CodecSetCallbacks()
/drivers/peripheral/codec/test/fuzztest/adapter_fuzzer/codecsetcallbacksadapter_fuzzer/
Dcodecsetcallbacks_fuzzer.cpp30 …g_component->SetCallbacks(g_component, g_callback, *(reinterpret_cast<int64_t *>(const_cast<uint8_… in CodecSetCallbacks()
/drivers/peripheral/sensor/test/performance/hdi/
Dhdf_sensor_hdi_performance_test.cpp36 sptr<ISensorCallback> g_callback = new SensorCallbackImpl(); variable
80 int ret = g_sensorInterface->Register(0, g_callback);
231 int ret = g_sensorInterface->Unregister(0, g_callback);
/drivers/peripheral/input/test/unittest/hdi/
Dhdf_input_hdi_test.cpp33 sptr<IInputCallback> g_callback = nullptr; variable
56 g_callback = new InputCallbackImpl(g_inputInterfaces, nullptr); in SetUpTestCase()
57 g_hotplugCb = new InputCallbackImpl(g_inputInterfaces, g_callback); in SetUpTestCase()
91 ret = g_inputInterfaces->RegisterReportCallback(sta[i].devIndex, g_callback); in OpenOnlineDev()
410 int32_t ret = g_inputInterfaces->RegisterReportCallback(INVALID_INDEX, g_callback);
723 ret = g_inputInterfaces->RegisterReportCallback(TOUCH_INDEX, g_callback);
/drivers/peripheral/input/test/benchmarktest/
Dinput_benchmark_test.cpp35 sptr<IInputCallback> g_callback = nullptr; variable
51 g_callback = new InputCallbackImpl(g_inputInterfaces, nullptr); in SetUp()
363 ret = g_inputInterfaces->RegisterReportCallback(TOUCH_INDEX, g_callback); in BENCHMARK_F()
/drivers/peripheral/input/test/unittest/common/
Dhdi_input_test.cpp32 InputEventCb g_callback; variable
63 g_callback.EventPkgCallback = ReportEventPkgCallback; in SetUpTestCase()
121 ret = g_inputInterface->iInputReporter->RegisterReportCallback(msg->devIndex, &g_callback); in ReportHotPlugEventPkgCallback()
156 … ret = g_inputInterface->iInputReporter->RegisterReportCallback(sta[i].devIndex, &g_callback); in OpenOnlineDev()
482 ret = g_inputInterface->iInputReporter->RegisterReportCallback(INVALID_INDEX, &g_callback);
779 ret = g_inputInterface->iInputReporter->RegisterReportCallback(TOUCH_INDEX, &g_callback);
/drivers/peripheral/input/test/unittest/udriver/
Dhdi_input_test.cpp31 static InputEventCb g_callback; variable
353 g_callback.EventPkgCallback = ReportEventPkgCallback;
358 ret = g_inputInterface->iInputReporter->RegisterReportCallback(g_touchIndex, &g_callback);
/drivers/peripheral/thermal/test/unittest/
Dhdf_thermal_hdi_test.cpp71 sptr<IThermalCallback> g_callback = new ThermalCallbackMock(); variable
270 int32_t ret = g_thermalInterface->Register(g_callback);
/drivers/peripheral/codec/test/demo/v1.0/
Dcodec_encode_test_async.c59 CodecCallback g_callback; variable
630 if (CodecCallbackServiceConstruct(&g_callback) != HDF_SUCCESS) { in Encode()
635 struct CodecCallbackStub *cb = CodecCallbackStubObtain(&g_callback); in Encode()

12