Home
last modified time | relevance | path

Searched refs:g_dataChannel (Results 1 – 1 of 1) sorted by relevance

/base/sensors/medical_sensor/interfaces/native/src/
Dmedical_native_impl.cpp39 static OHOS::sptr<MedicalSensorDataChannel> g_dataChannel; variable
70 if (g_dataChannel == nullptr) { in CreateSensorDataChannel()
71 g_dataChannel = new (std::nothrow) MedicalSensorDataChannel(); in CreateSensorDataChannel()
73 auto ret = g_dataChannel->CreateSensorDataChannel(HandleSensorData, nullptr); in CreateSensorDataChannel()
79 ret = client.TransferDataChannel(g_dataChannel); in CreateSensorDataChannel()
81 auto destoryRet = g_dataChannel->DestroySensorDataChannel(); in CreateSensorDataChannel()
98 if (g_dataChannel == nullptr) { in DestroyAfeDataChannel()
102 int32_t ret = g_dataChannel->DestroySensorDataChannel(); in DestroyAfeDataChannel()
114 delete g_dataChannel; in DestroyAfeDataChannel()
115 g_dataChannel = nullptr; in DestroyAfeDataChannel()