/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | nan_ind.cpp | 207 int NanCommand::getNanPublishReplied(NanPublishRepliedInd *event) in getNanPublishReplied() argument 209 if (event == NULL || mNanVendorEvent == NULL) { in getNanPublishReplied() 211 __func__, event, mNanVendorEvent); in getNanPublishReplied() 216 event->requestor_instance_id = pRsp->publishRepliedIndParams.matchHandle; in getNanPublishReplied() 218 event->rssi_value = 0; in getNanPublishReplied() 233 if (outputTlv.length > sizeof(event->addr)) { in getNanPublishReplied() 234 outputTlv.length = sizeof(event->addr); in getNanPublishReplied() 236 memcpy(event->addr, outputTlv.value, outputTlv.length); in getNanPublishReplied() 239 if (outputTlv.length > sizeof(event->rssi_value)) { in getNanPublishReplied() 240 outputTlv.length = sizeof(event->rssi_value); in getNanPublishReplied() [all …]
|
D | nancommand.h | 49 int getNanPublishReplied(NanPublishRepliedInd *event); 50 int getNanPublishTerminated(NanPublishTerminatedInd *event); 51 int getNanMatch(NanMatchInd *event); 52 int getNanMatchExpired(NanMatchExpiredInd *event); 53 int getNanSubscribeTerminated(NanSubscribeTerminatedInd *event); 54 int getNanFollowup(NanFollowupInd *event); 55 int getNanDiscEngEvent(NanDiscEngEventInd *event); 56 int getNanDisabled(NanDisabledInd *event); 57 int getNanTca(NanTCAInd *event); 58 int getNanBeaconSdfPayload(NanBeaconSdfPayloadInd *event); [all …]
|
/hardware/interfaces/bluetooth/1.0/vts/functional/ |
D | VtsHalBluetoothV1_0TargetTest.cpp | 234 const ::android::hardware::hidl_vec<uint8_t>& event) override { in hciEventReceived() 236 parent_.event_queue.push(event); in hciEventReceived() 238 ALOGV("Event received (length = %d)", static_cast<int>(event.size())); in hciEventReceived() 280 hidl_vec<uint8_t> event = event_queue.front(); in handle_no_ops() local 281 EXPECT_GE(event.size(), in handle_no_ops() 284 (event[EVENT_CODE_BYTE] == EVENT_COMMAND_COMPLETE) && in handle_no_ops() 285 (event[EVENT_COMMAND_COMPLETE_OPCODE_LSBYTE] == 0x00) && in handle_no_ops() 286 (event[EVENT_COMMAND_COMPLETE_OPCODE_LSBYTE + 1] == 0x00); in handle_no_ops() 287 event_is_no_op |= (event[EVENT_CODE_BYTE] == EVENT_COMMAND_STATUS) && in handle_no_ops() 288 (event[EVENT_COMMAND_STATUS_OPCODE_LSBYTE] == 0x00) && in handle_no_ops() [all …]
|
/hardware/libhardware/modules/input/evdev/ |
D | InputDevice.cpp | 231 void EvdevDevice::processInput(InputEvent& event, nsecs_t currentTime) { in processInput() argument 239 ALOGD(log.c_str(), mDeviceNode->getPath().c_str(), event.when, event.type, event.code, in processInput() 240 event.value); in processInput() 243 if (event.type == EV_MSC) { in processInput() 244 if (event.code == MSC_ANDROID_TIME_SEC) { in processInput() 245 mOverrideSec = event.value; in processInput() 246 } else if (event.code == MSC_ANDROID_TIME_USEC) { in processInput() 247 mOverrideUsec = event.value; in processInput() 253 event.when = s2ns(mOverrideSec) + us2ns(mOverrideUsec); in processInput() 256 if (event.type == EV_SYN && event.code == SYN_REPORT) { in processInput() [all …]
|
D | MouseInputMapper.cpp | 90 void MouseInputMapper::process(const InputEvent& event) { in process() argument 92 event.type, event.code, event.value); in process() 93 switch (event.type) { in process() 95 processButton(event.code, event.value); in process() 98 processMotion(event.code, event.value); in process() 101 if (event.code == SYN_REPORT) { in process() 102 sync(event.when); in process() 106 ALOGV("unknown mouse event type: %d", event.type); in process()
|
D | SwitchInputMapper.cpp | 78 void SwitchInputMapper::process(const InputEvent& event) { in process() argument 79 switch (event.type) { in process() 81 processSwitch(event.code, event.value); in process() 84 if (event.code == SYN_REPORT) { in process() 85 sync(event.when); in process() 89 ALOGV("unknown switch event type: %d", event.type); in process()
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
D | loc_eng_agps.cpp | 254 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 258 AgpsState* AgpsReleasedState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 260 LOC_LOGD("AgpsReleasedState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() 268 switch (event) in onRsrcEvent() 292 Notification notification(subscriber, event, false); in onRsrcEvent() 300 LOC_LOGW("%s: unrecognized event %d", whoami(), event); in onRsrcEvent() 306 whoami(), nextState->whoami(), event); in onRsrcEvent() 321 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 325 AgpsState* AgpsPendingState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 328 LOC_LOGD("AgpsPendingState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() [all …]
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
D | loc_eng_agps.cpp | 254 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 258 AgpsState* AgpsReleasedState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 260 LOC_LOGD("AgpsReleasedState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() 268 switch (event) in onRsrcEvent() 292 Notification notification(subscriber, event, false); in onRsrcEvent() 300 LOC_LOGW("%s: unrecognized event %d", whoami(), event); in onRsrcEvent() 306 whoami(), nextState->whoami(), event); in onRsrcEvent() 321 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 325 AgpsState* AgpsPendingState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 328 LOC_LOGD("AgpsPendingState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() [all …]
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
D | loc_eng_agps.cpp | 254 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 258 AgpsState* AgpsReleasedState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 260 LOC_LOGD("AgpsReleasedState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() 268 switch (event) in onRsrcEvent() 292 Notification notification(subscriber, event, false); in onRsrcEvent() 300 LOC_LOGW("%s: unrecognized event %d", whoami(), event); in onRsrcEvent() 306 whoami(), nextState->whoami(), event); in onRsrcEvent() 321 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 325 AgpsState* AgpsPendingState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 328 LOC_LOGD("AgpsPendingState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() [all …]
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
D | loc_eng_agps.cpp | 254 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 258 AgpsState* AgpsReleasedState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 260 LOC_LOGD("AgpsReleasedState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() 268 switch (event) in onRsrcEvent() 292 Notification notification(subscriber, event, false); in onRsrcEvent() 300 LOC_LOGW("%s: unrecognized event %d", whoami(), event); in onRsrcEvent() 306 whoami(), nextState->whoami(), event); in onRsrcEvent() 321 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 325 AgpsState* AgpsPendingState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 328 LOC_LOGD("AgpsPendingState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() [all …]
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
D | loc_eng_agps.cpp | 254 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 258 AgpsState* AgpsReleasedState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 260 LOC_LOGD("AgpsReleasedState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() 268 switch (event) in onRsrcEvent() 292 Notification notification(subscriber, event, false); in onRsrcEvent() 300 LOC_LOGW("%s: unrecognized event %d", whoami(), event); in onRsrcEvent() 306 whoami(), nextState->whoami(), event); in onRsrcEvent() 321 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 325 AgpsState* AgpsPendingState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 328 LOC_LOGD("AgpsPendingState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
D | loc_eng_agps.cpp | 254 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 258 AgpsState* AgpsReleasedState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 260 LOC_LOGD("AgpsReleasedState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() 268 switch (event) in onRsrcEvent() 292 Notification notification(subscriber, event, false); in onRsrcEvent() 300 LOC_LOGW("%s: unrecognized event %d", whoami(), event); in onRsrcEvent() 306 whoami(), nextState->whoami(), event); in onRsrcEvent() 321 virtual AgpsState* onRsrcEvent(AgpsRsrcStatus event, void* data); 325 AgpsState* AgpsPendingState::onRsrcEvent(AgpsRsrcStatus event, void* data) in onRsrcEvent() argument 328 LOC_LOGD("AgpsPendingState::onRsrcEvent; event:%d\n", (int)event); in onRsrcEvent() [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | DynamicSensorManager.cpp | 113 static const sensors_event_t event = { in flush() local 118 submitEvent(nullptr, event); in flush() 173 sensors_event_t event; in unregisterSensor() local 174 ConnectionReport::fillDisconnectionEvent(&event, mHandleRange.first, handle); in unregisterSensor() 175 submitEvent(nullptr, event); in unregisterSensor() 193 sensors_event_t event = e; in submitEvent() local 194 event.version = sizeof(event); in submitEvent() 197 if (event.type == SENSOR_TYPE_META_DATA) { in submitEvent() 198 event.sensor = 0; in submitEvent() 199 event.meta_data.sensor = handle; in submitEvent() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | soundtrigger.c | 218 int audio_hw_call_back(sound_trigger_event_type_t event, in audio_hw_call_back() argument 228 switch (event) { in audio_hw_call_back() 265 ALOGW("%s: Unknown event %d", __func__, event); in audio_hw_call_back() 277 struct audio_event_info event; in audio_extn_sound_trigger_read() local 293 event.u.aud_info.ses_info = &st_info->st_ses; in audio_extn_sound_trigger_read() 294 event.u.aud_info.buf = buffer; in audio_extn_sound_trigger_read() 295 event.u.aud_info.num_bytes = bytes; in audio_extn_sound_trigger_read() 296 ret = st_dev->st_callback(AUDIO_EVENT_READ_SAMPLES, &event); in audio_extn_sound_trigger_read() 314 struct audio_event_info event; in audio_extn_sound_trigger_stop_lab() local 323 event.u.ses_info = st_ses_info->st_ses; in audio_extn_sound_trigger_stop_lab() [all …]
|
/hardware/interfaces/soundtrigger/2.1/default/ |
D | SoundTriggerHw.cpp | 155 V2_1::ISoundTriggerHwCallback::PhraseRecognitionEvent event; in recognitionCallback() local 156 event.phraseExtras.setToExternal(event_2_0.phraseExtras.data(), in recognitionCallback() 158 auto result = moveVectorToMemory(&event_2_0.common.data, &event.common.data); in recognitionCallback() 161 event.common.header = event_2_0.common; in recognitionCallback() 162 mCallback->phraseRecognitionCallback_2_1(event, mCookie); in recognitionCallback() 165 V2_1::ISoundTriggerHwCallback::RecognitionEvent event; in recognitionCallback() local 166 convertRecognitionEventFromHal(&event.header, halEvent); in recognitionCallback() 167 event.header.model = mId; in recognitionCallback() 168 auto result = moveVectorToMemory(&event.header.data, &event.data); in recognitionCallback() 170 mCallback->recognitionCallback_2_1(event, mCookie); in recognitionCallback() [all …]
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/ |
D | IPACM_Main.cpp | 170 struct inotify_event* event; in firewall_monitor() local 171 event = (struct inotify_event*)malloc(length); in firewall_monitor() 172 if(event == NULL) in firewall_monitor() 177 memset(event, 0, length); in firewall_monitor() 178 memcpy(event, buffer, length); in firewall_monitor() 180 if (event->len > 0) in firewall_monitor() 182 if ( (event->mask & IN_MODIFY) || (event->mask & IN_MOVE)) in firewall_monitor() 184 if (event->mask & IN_ISDIR) in firewall_monitor() 186 IPACMDBG_H("The directory %s was 0x%x\n", event->name, event->mask); in firewall_monitor() 188 else if (!strncmp(event->name, IPACM_FIREWALL_FILE_NAME, event->len)) // firewall_rule change in firewall_monitor() [all …]
|
D | IPACM_EvtDispatcher.cpp | 61 if(data->event < IPA_EXTERNAL_EVENT_MAX) in PostEvt() 131 if(data->event == tmp1.event) in ProcessEvt() 133 ipacm_event_stats[data->event]++; in ProcessEvt() 134 tmp1.obj->event_callback(data->event, data->evt_data); in ProcessEvt() 144 IPACMDBG("free the event:%d data: %p\n", data->event, data->evt_data); in ProcessEvt() 150 int IPACM_EvtDispatcher::registr(ipa_cm_event_id event, IPACM_Listener *obj) in registr() argument 157 nw->event = event; in registr()
|
D | IPACM_Neighbor.cpp | 59 void IPACM_Neighbor::event_callback(ipa_cm_event_id event, void *param) in event_callback() argument 66 IPACMDBG("Recieved event %d\n", event); in event_callback() 68 switch (event) in event_callback() 123 evt_data.event = IPA_NEIGH_CLIENT_IP_ADDR_ADD_EVENT; in event_callback() 145 evt_data.event, in event_callback() 158 if (event == IPA_NEW_NEIGH_EVENT) in event_callback() 196 if (event == IPA_NEW_NEIGH_EVENT) in event_callback() 197 evt_data.event = IPA_NEIGH_CLIENT_IP_ADDR_ADD_EVENT; in event_callback() 200 evt_data.event = IPA_NEIGH_CLIENT_IP_ADDR_DEL_EVENT; in event_callback() 219 evt_data.event, in event_callback() [all …]
|
/hardware/libhardware/modules/soundtrigger/ |
D | sound_trigger_hw.c | 250 struct sound_trigger_phrase_recognition_event *event; in sound_trigger_keyphrase_event_alloc() local 254 event = (struct sound_trigger_phrase_recognition_event *)data; in sound_trigger_keyphrase_event_alloc() 255 event->common.status = recognition_status; in sound_trigger_keyphrase_event_alloc() 256 event->common.type = SOUND_MODEL_TYPE_KEYPHRASE; in sound_trigger_keyphrase_event_alloc() 257 event->common.model = handle; in sound_trigger_keyphrase_event_alloc() 262 event->num_phrases = config->num_phrases; in sound_trigger_keyphrase_event_alloc() 263 if (event->num_phrases > SOUND_TRIGGER_MAX_PHRASES) in sound_trigger_keyphrase_event_alloc() 264 event->num_phrases = SOUND_TRIGGER_MAX_PHRASES; in sound_trigger_keyphrase_event_alloc() 265 for (i=0; i < event->num_phrases; i++) in sound_trigger_keyphrase_event_alloc() 266 memcpy(&event->phrase_extras[i], in sound_trigger_keyphrase_event_alloc() [all …]
|
/hardware/interfaces/tv/cec/1.0/default/ |
D | HdmiCec.h | 66 static void eventCallback(const hdmi_event_t* event, void* /* arg */) { in eventCallback() 67 if (mCallback != nullptr && event != nullptr) { in eventCallback() 68 if (event->type == HDMI_EVENT_CEC_MESSAGE) { in eventCallback() 69 size_t length = std::min(event->cec.length, in eventCallback() 72 .initiator = static_cast<CecLogicalAddress>(event->cec.initiator), in eventCallback() 73 .destination = static_cast<CecLogicalAddress>(event->cec.destination), in eventCallback() 77 cecMessage.body[i] = static_cast<uint8_t>(event->cec.body[i]); in eventCallback() 80 } else if (event->type == HDMI_EVENT_HOT_PLUG) { in eventCallback() 82 .connected = event->hotplug.connected > 0, in eventCallback() 83 .portId = static_cast<uint32_t>(event->hotplug.port_id) in eventCallback()
|
/hardware/interfaces/soundtrigger/2.0/default/ |
D | SoundTriggerHalImpl.cpp | 434 ISoundTriggerHwCallback::ModelEvent* event, const struct sound_trigger_model_event* halEvent) { in convertSoundModelEventFromHal() argument 435 event->status = (ISoundTriggerHwCallback::SoundModelStatus)halEvent->status; in convertSoundModelEventFromHal() 437 event->data.setToExternal( in convertSoundModelEventFromHal() 444 ISoundTriggerHwCallback::PhraseRecognitionEvent* event, in convertPhaseRecognitionEventFromHal() argument 446 event->phraseExtras.resize(halEvent->num_phrases); in convertPhaseRecognitionEventFromHal() 448 convertPhraseRecognitionExtraFromHal(&event->phraseExtras[i], &halEvent->phrase_extras[i]); in convertPhaseRecognitionEventFromHal() 450 convertRecognitionEventFromHal(&event->common, &halEvent->common); in convertPhaseRecognitionEventFromHal() 455 ISoundTriggerHwCallback::RecognitionEvent* event, in convertRecognitionEventFromHal() argument 457 event->status = static_cast<ISoundTriggerHwCallback::RecognitionStatus>(halEvent->status); in convertRecognitionEventFromHal() 458 event->type = static_cast<SoundModelType>(halEvent->type); in convertRecognitionEventFromHal() [all …]
|
/hardware/qcom/display/msm8909/hdmi_cec/ |
D | qhdmi_cec.cpp | 302 hdmi_event_t event; in cec_receive_message() local 303 event.type = HDMI_EVENT_CEC_MESSAGE; in cec_receive_message() 304 event.dev = (hdmi_cec_device *) ctx; in cec_receive_message() 306 event.cec.length = msg[CEC_OFFSET_FRAME_LENGTH] - 1; in cec_receive_message() 307 event.cec.initiator = (cec_logical_address_t) msg[CEC_OFFSET_SENDER_ID]; in cec_receive_message() 308 event.cec.destination = (cec_logical_address_t) msg[CEC_OFFSET_RECEIVER_ID]; in cec_receive_message() 310 size_t copy_size = event.cec.length > sizeof(event.cec.body) ? in cec_receive_message() 311 sizeof(event.cec.body) : event.cec.length; in cec_receive_message() 312 memcpy(event.cec.body, &msg[CEC_OFFSET_OPCODE],copy_size); in cec_receive_message() 313 hex_to_string((char *) event.cec.body, copy_size, dump); in cec_receive_message() [all …]
|
/hardware/qcom/display/msm8909w_3100/hdmi_cec/ |
D | qhdmi_cec.cpp | 302 hdmi_event_t event; in cec_receive_message() local 303 event.type = HDMI_EVENT_CEC_MESSAGE; in cec_receive_message() 304 event.dev = (hdmi_cec_device *) ctx; in cec_receive_message() 306 event.cec.length = msg[CEC_OFFSET_FRAME_LENGTH] - 1; in cec_receive_message() 307 event.cec.initiator = (cec_logical_address_t) msg[CEC_OFFSET_SENDER_ID]; in cec_receive_message() 308 event.cec.destination = (cec_logical_address_t) msg[CEC_OFFSET_RECEIVER_ID]; in cec_receive_message() 310 size_t copy_size = event.cec.length > sizeof(event.cec.body) ? in cec_receive_message() 311 sizeof(event.cec.body) : event.cec.length; in cec_receive_message() 312 memcpy(event.cec.body, &msg[CEC_OFFSET_OPCODE],copy_size); in cec_receive_message() 313 hex_to_string((char *) event.cec.body, copy_size, dump); in cec_receive_message() [all …]
|
/hardware/interfaces/soundtrigger/2.1/ |
D | ISoundTriggerHwCallback.hal | 29 * Generic recognition event sent via recognition callback. 35 /** Opaque event data */ 40 * Specialized recognition event for key phrase recognitions. 43 /** Common part of the recognition event */ 56 /** Opaque event data, passed transparently by the framework */ 63 * @param event A RecognitionEvent structure containing detailed results 68 recognitionCallback_2_1(RecognitionEvent event, CallbackCookie cookie); 74 * @param event A RecognitionEvent structure containing detailed results 79 phraseRecognitionCallback_2_1(PhraseRecognitionEvent event, 85 * @param event A ModelEvent structure containing detailed results of the [all …]
|
/hardware/akm/AK8975_FS/libsensors/ |
D | KionixSensor.cpp | 173 input_event const* event; in readEvents() local 175 while (count && mInputReader.readEvent(&event)) { in readEvents() 176 int type = event->type; in readEvents() 178 float value = event->value; in readEvents() 179 if (event->code == EVENT_TYPE_ACCEL_X) { in readEvents() 181 } else if (event->code == EVENT_TYPE_ACCEL_Y) { in readEvents() 183 } else if (event->code == EVENT_TYPE_ACCEL_Z) { in readEvents() 187 mPendingEvent.timestamp = timevalToNano(event->time); in readEvents() 195 type, event->code); in readEvents()
|