/drivers/peripheral/codec/test/fuzztest/adapter_fuzzer/codeccommonadapter_fuzzer/ |
D | codeccommon_fuzzer.cpp | 38 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()
|
D | codeccommon_fuzzer.h | 29 extern CodecCallbackType *g_callback;
|
/drivers/peripheral/camera/hal_c/hdi_cif/src/ |
D | camera_host_callback_wrapper.cpp | 21 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/omx_fuzzer/codeccommonomx_fuzzer/ |
D | codeccommon_fuzzer.cpp | 36 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()
|
D | codeccommon_fuzzer.h | 30 extern CodecCallbackType *g_callback;
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/ |
D | codeccommon_fuzzer.cpp | 41 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()
|
D | codeccommon_fuzzer.h | 30 inline OHOS::sptr<OHOS::HDI::Codec::V1_0::ICodecCallback> g_callback; variable
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
D | power_interface_impl.cpp | 60 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/ |
D | codeccreatecomponent_fuzzer.cpp | 25 CodecCallbackType* g_callback = CodecCallbackTypeStubGetInstance(); in CodecCreateComponent() local 35 static_cast<int64_t >(*data), g_callback); in CodecCreateComponent()
|
/drivers/peripheral/codec/test/unittest/idl_omx/ |
D | codec_hdi_omx_dec_test.cpp | 36 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()
|
D | codec_hdi_omx_enc_test.cpp | 35 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/ |
D | codec_hdi_adapter_test.cpp | 41 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/ |
D | inputunregisterreportcallback_fuzzer.cpp | 30 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/ |
D | inputregisterreportcallback_fuzzer.cpp | 29 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/ |
D | battery_thread.cpp | 38 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/ |
D | codecsetcallbacks_fuzzer.cpp | 29 … 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/ |
D | codecsetcallbacks_fuzzer.cpp | 33 int32_t ret = g_component->SetCallbacks(g_callback, static_cast<int64_t >(*data)); in CodecSetCallbacks()
|
/drivers/peripheral/codec/test/fuzztest/adapter_fuzzer/codecsetcallbacksadapter_fuzzer/ |
D | codecsetcallbacks_fuzzer.cpp | 30 …g_component->SetCallbacks(g_component, g_callback, *(reinterpret_cast<int64_t *>(const_cast<uint8_… in CodecSetCallbacks()
|
/drivers/peripheral/sensor/test/performance/hdi/ |
D | hdf_sensor_hdi_performance_test.cpp | 36 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/ |
D | hdf_input_hdi_test.cpp | 33 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/ |
D | input_benchmark_test.cpp | 35 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/ |
D | hdi_input_test.cpp | 32 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/ |
D | hdi_input_test.cpp | 31 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/ |
D | hdf_thermal_hdi_test.cpp | 71 sptr<IThermalCallback> g_callback = new ThermalCallbackMock(); variable 270 int32_t ret = g_thermalInterface->Register(g_callback);
|
/drivers/peripheral/codec/test/demo/v1.0/ |
D | codec_encode_test_async.c | 59 CodecCallback g_callback; variable 630 if (CodecCallbackServiceConstruct(&g_callback) != HDF_SUCCESS) { in Encode() 635 struct CodecCallbackStub *cb = CodecCallbackStubObtain(&g_callback); in Encode()
|