Home
last modified time | relevance | path

Searched refs:g_callback (Results 1 - 22 of 22) sorted by relevance

/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codeccommonomx_fuzzer/
H A Dcodeccommon_fuzzer.cpp43 CodecCallbackType *g_callback = nullptr; member
88 g_callback = CodecCallbackTypeStubGetInstance(); in Preconditions()
89 if (g_callback == nullptr) { in Preconditions()
96 CodecCallbackTypeRelease(g_callback); in Preconditions()
104 CodecCallbackTypeRelease(g_callback); in Preconditions()
112 CodecCallbackTypeRelease(g_callback); in Preconditions()
117 ret = g_manager->CreateComponent(&g_component, &g_componentId, capList[0].compName, g_appData, g_callback); in Preconditions()
120 CodecCallbackTypeRelease(g_callback); in Preconditions()
135 CodecCallbackTypeRelease(g_callback); in Destroy()
H A Dcodeccommon_fuzzer.h30 extern CodecCallbackType *g_callback;
/drivers/peripheral/camera/hal_c/hdi_cif/src/
H A 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()
37 g_callback->OnFlashlightStatus(id, static_cast<OHOS::Camera::FlashlightStatus>(flashlightStatus)); in HostCBOnFlashlightStatus()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/
H A Dcodeccommon_fuzzer.cpp46 g_callback = nullptr; in Release()
75 g_callback = new CodecCallbackFuzz(); in Preconditions()
76 if (g_callback == nullptr) { in Preconditions()
98 int32_t ret = g_manager->CreateComponent(g_component, g_componentId, caps[0].compName, g_appData, g_callback); in Preconditions()
H A Dcodeccommon_fuzzer.h30 inline OHOS::sptr<OHOS::HDI::Codec::V3_0::ICodecCallback> g_callback; member
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codeccreatecomponentomx_fuzzer/
H A 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/
H A Dcodec_hdi_omx_dec_test.cpp39 static sptr<ICodecCallback> g_callback = nullptr; member
75 g_callback = new CodecCallbackService(); in SetUp()
76 ASSERT_TRUE(g_callback != nullptr); in SetUp()
77 auto ret = g_manager->CreateComponent(g_component, componentId_, g_compName.data(), APP_DATA, g_callback); in SetUp()
99 g_callback = nullptr; in TearDown()
H A Dcodec_hdi_omx_enc_test.cpp37 static sptr<ICodecCallback> g_callback = nullptr; member
73 g_callback = new CodecCallbackService(); in SetUp()
74 ASSERT_TRUE(g_callback != nullptr); in SetUp()
75 auto ret = g_manager->CreateComponent(g_component, componentId_, g_compName.data(), APP_DATA, g_callback); in SetUp()
77 ret = g_manager->CreateComponent(g_component, componentId_, "", APP_DATA, g_callback); in SetUp()
98 g_callback = nullptr; in TearDown()
875 g_callback = new CodecCallbackService(); in HWTEST_F()
876 ASSERT_TRUE(g_callback != nullptr); in HWTEST_F()
877 auto ret = g_component->SetCallbacks(g_callback, APP_DATA); in HWTEST_F()
/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dpower_interface_impl.cpp77 static sptr<IPowerHdiCallback> g_callback; member
123 g_callback = ipowerHdiCallback; in RegisterCallback()
124 if (g_callback == nullptr) { in RegisterCallback()
132 AddPowerDeathRecipient(g_callback); in RegisterCallback()
142 RemovePowerDeathRecipient(g_callback); in UnRegister()
143 g_callback = nullptr; in UnRegister()
276 if (g_callback == nullptr) { in NotifyCallback()
281 g_callback->OnSuspend(); in NotifyCallback()
284 g_callback->OnWakeup(); in NotifyCallback()
/drivers/peripheral/input/test/fuzztest/inputregisterreportcallback_fuzzer/
H A Dinputregisterreportcallback_fuzzer.cpp29 InputEventCb g_callback; in DoSomethingInterestingWithMyAPI() local
53 ret = g_inputInterface->iInputReporter->RegisterReportCallback(*(uint32_t *)data, &g_callback); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/input/test/fuzztest/inputunregisterreportcallback_fuzzer/
H A Dinputunregisterreportcallback_fuzzer.cpp30 InputEventCb g_callback; in InputUnregisterReportCallbackFuzzTest() local
54 ret = g_inputInterface->iInputReporter->RegisterReportCallback(TOUCH_INDEX, &g_callback); in InputUnregisterReportCallbackFuzzTest()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecsetcallbacksomx_fuzzer/
H A 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/
H A Dcodecsetcallbacks_fuzzer.cpp33 int32_t ret = g_component->SetCallbacks(g_callback, static_cast<int64_t >(*data)); in CodecSetCallbacks()
/drivers/peripheral/sensor/test/performance/hdi/
H A Dhdf_sensor_hdi_performance_test.cpp36 sptr<ISensorCallback> g_callback = new SensorCallbackImpl(); member
80 int ret = g_sensorInterface->Register(0, g_callback); in HWTEST_F()
231 int ret = g_sensorInterface->Unregister(0, g_callback); in HWTEST_F()
/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_thread.cpp39 static sptr<IBatteryCallback> g_callback; member
52 g_callback = callback; in InitCallback()
207 if (g_callback != nullptr) { in UpdateBatteryInfo()
208 g_callback->Update(event); in UpdateBatteryInfo()
210 BATTERY_HILOGI(FEATURE_BATT_INFO, "g_callback is nullptr"); in UpdateBatteryInfo()
/drivers/peripheral/input/test/unittest/hdi/
H A Dhdf_input_hdi_test.cpp33 sptr<IInputCallback> g_callback = nullptr; member
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); in HWTEST_F()
723 ret = g_inputInterfaces->RegisterReportCallback(TOUCH_INDEX, g_callback); in HWTEST_F()
/drivers/peripheral/input/test/benchmarktest/
H A Dinput_benchmark_test.cpp35 sptr<IInputCallback> g_callback = nullptr; member
51 g_callback = new InputCallbackImpl(g_inputInterfaces, nullptr); in SetUp()
363 ret = g_inputInterfaces->RegisterReportCallback(TOUCH_INDEX, g_callback); in BENCHMARK_F()
/drivers/peripheral/camera/test/fuzztest/camera_device/
H A Dcamera_device_fuzzer.cpp51 sptr<HDI::Camera::V1_0::IStreamOperatorCallback> g_callback = in FuncGetStreamOperator_V1_1() local
54 cameraTest->cameraDeviceV1_3->GetStreamOperator_V1_1(g_callback, g_StreamOperator); in FuncGetStreamOperator_V1_1()
/drivers/peripheral/input/test/unittest/common/
H A 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); in HWTEST_F()
779 ret = g_inputInterface->iInputReporter->RegisterReportCallback(TOUCH_INDEX, &g_callback); in HWTEST_F()
/drivers/peripheral/thermal/test/unittest/
H A Dhdf_thermal_hdi_test.cpp71 sptr<IThermalCallback> g_callback = new ThermalCallbackMock(); member
270 int32_t ret = g_thermalInterface->Register(g_callback); in HWTEST_F()
/drivers/peripheral/input/test/unittest/hdi_passthrough_additional/
H A Dhdf_input_hdi_test.cpp33 sptr<IInputCallback> g_callback = nullptr; member
54 g_callback = new InputCallbackImpl(g_inputInterfaces, nullptr); in SetUpTestCase()
55 g_hotplugCb = new InputCallbackImpl(g_inputInterfaces, g_callback); in SetUpTestCase()
1424 ret = g_inputInterfaces->RegisterReportCallback(devIndex, g_callback); in HWTEST_F()
1441 ret = g_inputInterfaces->RegisterReportCallback(devIndex, g_callback); in HWTEST_F()
1448 ret = g_inputInterfaces->RegisterReportCallback(devIndex, g_callback); in HWTEST_F()
1463 ret = g_inputInterfaces->RegisterReportCallback(devIndex, g_callback); in HWTEST_F()
1479 ret = g_inputInterfaces->RegisterReportCallback(devIndex, g_callback); in HWTEST_F()
1500 ret = g_inputInterfaces->RegisterReportCallback(devIndex, g_callback); in HWTEST_F()
1516 * when the hotPlugCallback parameter is g_callback
[all...]
/drivers/peripheral/input/test/unittest/udriver/
H A Dhdi_input_test.cpp32 static InputEventCb g_callback; variable
368 g_callback.EventPkgCallback = ReportEventPkgCallback; in HWTEST_F()
373 ret = g_inputInterface->iInputReporter->RegisterReportCallback(g_touchIndex, &g_callback); in HWTEST_F()

Completed in 14 milliseconds