/aosp12/hardware/interfaces/soundtrigger/2.0/default/ |
H A D | SoundTriggerHalImpl.cpp | 32 if (halEvent == NULL) { in soundModelCallback() 42 if (halEvent->model != client->getHalHandle()) { in soundModelCallback() 48 client->soundModelCallback(halEvent); in soundModelCallback() 54 if (halEvent == NULL) { in recognitionCallback() 65 client->recognitionCallback(halEvent); in recognitionCallback() 438 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + halEvent->data_offset, in convertSoundModelEventFromHal() 439 halEvent->data_size); in convertSoundModelEventFromHal() 470 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + halEvent->data_offset, in convertRecognitionEventFromHal() 471 halEvent->data_size); in convertRecognitionEventFromHal() 505 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument [all …]
|
H A D | SoundTriggerHalImpl.h | 54 virtual void recognitionCallback(struct sound_trigger_recognition_event* halEvent) = 0; 55 virtual void soundModelCallback(struct sound_trigger_model_event* halEvent) = 0; 65 const struct sound_trigger_phrase_recognition_event* halEvent); 68 const struct sound_trigger_recognition_event* halEvent); 70 const struct sound_trigger_model_event* halEvent); 140 void recognitionCallback(struct sound_trigger_recognition_event* halEvent) override; 141 void soundModelCallback(struct sound_trigger_model_event* halEvent) override; 166 static void soundModelCallback(struct sound_trigger_model_event* halEvent, void* cookie); 167 static void recognitionCallback(struct sound_trigger_recognition_event* halEvent, void* cookie);
|
/aosp12/hardware/interfaces/soundtrigger/2.2/default/ |
H A D | SoundTriggerHw.cpp | 49 if (halEvent == NULL) { in soundModelCallback_() 60 if (halEvent->model != client->getHalHandle()) { in soundModelCallback_() 66 client->soundModelCallback(halEvent); in soundModelCallback_() 71 if (halEvent == NULL) { in recognitionCallback_() 83 client->recognitionCallback(halEvent); in recognitionCallback_() 462 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + halEvent->data_offset, in convertSoundModelEventFromHal() 463 halEvent->data_size); in convertSoundModelEventFromHal() 494 const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(halEvent)) + halEvent->data_offset, in convertRecognitionEventFromHal() 495 halEvent->data_size); in convertRecognitionEventFromHal() 530 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument [all …]
|
H A D | SoundTriggerHw.h | 100 virtual void recognitionCallback(struct sound_trigger_recognition_event* halEvent) = 0; 101 virtual void soundModelCallback(struct sound_trigger_model_event* halEvent) = 0; 112 const struct sound_trigger_phrase_recognition_event* halEvent); 115 const struct sound_trigger_recognition_event* halEvent); 117 const struct sound_trigger_model_event* halEvent); 135 void recognitionCallback(struct sound_trigger_recognition_event* halEvent) override; 136 void soundModelCallback(struct sound_trigger_model_event* halEvent) override; 161 static void soundModelCallback(struct sound_trigger_model_event* halEvent, void* cookie); 162 static void recognitionCallback(struct sound_trigger_recognition_event* halEvent, void* cookie); 177 void recognitionCallback(struct sound_trigger_recognition_event* halEvent) override; [all …]
|
/aosp12/hardware/interfaces/broadcastradio/1.0/default/ |
H A D | Tuner.cpp | 33 void Tuner::onCallback(radio_hal_event_t *halEvent) in onCallback() argument 40 switch(halEvent->type) { in onCallback() 42 Utils::convertBandConfigFromHal(&config, &halEvent->config); in onCallback() 46 mCallback->antennaStateChange(halEvent->on); in onCallback() 49 Utils::convertProgramInfoFromHal(&info, &halEvent->info); in onCallback() 56 Utils::convertMetaDataFromHal(metadata, halEvent->metadata); in onCallback() 61 mCallback->trafficAnnouncement(halEvent->on); in onCallback() 64 Utils::convertProgramInfoFromHal(&info, &halEvent->info); in onCallback() 68 mCallback->emergencyAnnouncement(halEvent->on); in onCallback() 79 void Tuner::callback(radio_hal_event_t *halEvent, void *cookie) in callback() argument [all …]
|
H A D | Tuner.h | 45 static void callback(radio_hal_event_t *halEvent, void *cookie); 46 void onCallback(radio_hal_event_t *halEvent);
|
/aosp12/hardware/interfaces/soundtrigger/2.3/default/ |
H A D | SoundTriggerHw.cpp | 48 if (halEvent == NULL) { in soundModelCallback_() 60 if (halEvent->model != client->getHalHandle()) { in soundModelCallback_() 66 client->soundModelCallback(halEvent); in soundModelCallback_() 71 if (halEvent == NULL) { in recognitionCallback_() 84 client->recognitionCallback(halEvent); in recognitionCallback_() 519 halEvent->data_size); in convertSoundModelEventFromHal() 544 event->triggerInData = halEvent->trigger_in_data; in convertRecognitionEventFromHal() 551 halEvent->data_size); in convertRecognitionEventFromHal() 586 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument 588 convertSoundModelEventFromHal(&event, halEvent); in soundModelCallback() [all …]
|
H A D | SoundTriggerHw.h | 117 virtual void recognitionCallback(struct sound_trigger_recognition_event* halEvent) = 0; 118 virtual void soundModelCallback(struct sound_trigger_model_event* halEvent) = 0; 129 const struct sound_trigger_phrase_recognition_event* halEvent); 132 const struct sound_trigger_recognition_event* halEvent); 134 const struct sound_trigger_model_event* halEvent); 151 void recognitionCallback(struct sound_trigger_recognition_event* halEvent) override; 152 void soundModelCallback(struct sound_trigger_model_event* halEvent) override; 182 static void soundModelCallback(struct sound_trigger_model_event* halEvent, void* cookie); 183 static void recognitionCallback(struct sound_trigger_recognition_event* halEvent, void* cookie); 198 void recognitionCallback(struct sound_trigger_recognition_event* halEvent) override; [all …]
|
/aosp12/hardware/interfaces/soundtrigger/2.1/default/ |
H A D | SoundTriggerHw.cpp | 149 struct sound_trigger_recognition_event* halEvent) { in recognitionCallback() argument 150 if (halEvent->type == SOUND_MODEL_TYPE_KEYPHRASE) { in recognitionCallback() 153 &event_2_0, reinterpret_cast<sound_trigger_phrase_recognition_event*>(halEvent)); in recognitionCallback() 166 convertRecognitionEventFromHal(&event.header, halEvent); in recognitionCallback() 176 struct sound_trigger_model_event* halEvent) { in soundModelCallback() argument 178 convertSoundModelEventFromHal(&event.header, halEvent); in soundModelCallback()
|
H A D | SoundTriggerHw.h | 116 void recognitionCallback(struct sound_trigger_recognition_event* halEvent) override; 117 void soundModelCallback(struct sound_trigger_model_event* halEvent) override;
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/ |
H A D | SoundTriggerMiddlewareImplTest.java | 232 halEvent.status = status; in createRecognitionEvent_2_0() 234 halEvent.model = hwHandle; in createRecognitionEvent_2_0() 237 halEvent.captureSession = 123; in createRecognitionEvent_2_0() 246 halEvent.data.add((byte) 31); in createRecognitionEvent_2_0() 247 halEvent.data.add((byte) 32); in createRecognitionEvent_2_0() 248 halEvent.data.add((byte) 33); in createRecognitionEvent_2_0() 249 return halEvent; in createRecognitionEvent_2_0() 258 halEvent.header.data.clear(); in createRecognitionEvent_2_1() 260 return halEvent; in createRecognitionEvent_2_1() 294 return halEvent; in createPhraseRecognitionEvent_2_0() [all …]
|