Home
last modified time | relevance | path

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

/hardware/interfaces/broadcastradio/1.0/default/
DBroadcastRadio.cpp34 : mStatus(Result::NOT_INITIALIZED), mClassId(classId), mHwDevice(NULL) in BroadcastRadio()
40 if (mHwDevice != NULL) { in ~BroadcastRadio()
41 radio_hw_device_close(mHwDevice); in ~BroadcastRadio()
51 mHwDevice = NULL; in onFirstRef()
69 rc = radio_hw_device_open(mod, &mHwDevice); in onFirstRef()
73 mHwDevice = NULL; in onFirstRef()
76 if (mHwDevice->common.version != RADIO_DEVICE_API_VERSION_CURRENT) { in onFirstRef()
77 ALOGE("wrong radio hw device version %04x", mHwDevice->common.version); in onFirstRef()
78 radio_hw_device_close(mHwDevice); in onFirstRef()
79 mHwDevice = NULL; in onFirstRef()
[all …]
DBroadcastRadio.h62 struct radio_hw_device *mHwDevice; member
/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.cpp69 ALOGV("getProperties() mHwDevice %p", mHwDevice); in getProperties()
74 if (mHwDevice == NULL) { in getProperties()
79 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
98 if (mHwDevice == NULL) { in doLoadSoundModel()
110 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback, client.get(), in doLoadSoundModel()
152 if (mHwDevice == NULL) { in unloadSoundModel()
166 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
180 if (mHwDevice == NULL) { in startRecognition()
200 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
212 if (mHwDevice == NULL) { in stopRecognition()
[all …]
DSoundTriggerHalImpl.h170 struct sound_trigger_hw_device* mHwDevice; variable
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.cpp88 ALOGV("getProperties() mHwDevice %p", mHwDevice); in getProperties()
93 if (mHwDevice == NULL) { in getProperties()
98 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
117 if (mHwDevice == NULL) { in doLoadSoundModel()
129 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback_, client.get(), in doLoadSoundModel()
174 if (mHwDevice == NULL) { in unloadSoundModel()
188 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
203 if (mHwDevice == NULL) { in startRecognition()
224 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
236 if (mHwDevice == NULL) { in stopRecognition()
[all …]
DSoundTriggerHw.h186 struct sound_trigger_hw_device* mHwDevice; member
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp87 ALOGV("getProperties() mHwDevice %p", mHwDevice); in getProperties()
92 if (mHwDevice == NULL) { in getProperties()
97 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
116 if (mHwDevice == NULL) { in doLoadSoundModel()
128 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback_, client.get(), in doLoadSoundModel()
173 if (mHwDevice == NULL) { in unloadSoundModel()
187 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
202 if (mHwDevice == NULL) { in startRecognition()
223 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
235 if (mHwDevice == NULL) { in stopRecognition()
[all …]
DSoundTriggerHw.h165 struct sound_trigger_hw_device* mHwDevice; member