{
MWR_LOGI("[ENTER]");
- if (nullptr == mSelectedEngine)
+ if (nullptr == mSelectedEngine) {
+ MWR_LOGE("No Engine Selected");
return;
+ }
const wakeup_engine_interface *interface = &(mSelectedEngine->interface);
void CWakeupManager::start_streaming_duration_timer()
{
+ MWR_LOGI("DURATION_TIMER START");
ecore_main_loop_thread_safe_call_async([](void* data) {
+ MWR_LOGI("DURATION_TIMER START - async");
CWakeupManager* manager = static_cast<CWakeupManager*>(data);
if (!manager) return;
{
MWR_LOGI("DURATION_TIMER STOP");
if (mStreamingDurationTimer) {
+ MWR_LOGI("DURATION_TIMER STOP - has timer");
ecore_main_loop_thread_safe_call_async([](void* data) {
+ MWR_LOGI("DURATION_TIMER STOP - async");
CWakeupManager* manager = static_cast<CWakeupManager*>(data);
if (!manager) return;
void CWakeupManager::set_streaming_duration_timer(Ecore_Timer* timer)
{
+ MWR_LOGI("DURATION_TIMER SET : %p", timer);
mStreamingDurationTimer = timer;
}
data->pid = pid;
data->appid = appid;
mClientList = g_slist_append(mClientList, data);
+ MAS_LOGI("Create client : %s %d", appid.c_str(), pid);
} else {
MAS_LOGE("[ERROR] data is NULL");
return -1;// MA_ERROR_OUT_OF_MEMORY;
ma_client_s* CClientManager::find_client_by_appid(std::string appid)
{
+ MAS_LOGI("Looking for client with appid : %s", appid.c_str());
ma_client_s *data = NULL;
int count = g_slist_length(mClientList);
if (NULL != data) {
if (0 == appid.compare(data->appid)) {
+ MAS_LOGI("Found client : %s %d", data->appid.c_str(), data->pid);
return data;
}
}
pid_t CClientManager::find_client_pid_by_appid(std::string appid)
{
+ MAS_LOGI("Checking PID of appid : %s", appid.c_str());
pid_t pid = -1;
if (nullptr == mApplicationManager) {
ma_client_s* client = find_client_by_appid(appid);
if (client) {
+ MAS_LOGI("Found client : %s %d", client->appid.c_str(), client->pid);
bool running = mApplicationManager->is_application_running(client->pid);
if (false == running) {
MAS_LOGE("The PID for %s was %d, but it seems to be terminated",
int CServiceMain::client_start_streaming_audio_data(pid_t pid, int type)
{
+ MAS_LOGI("[ENTER");
int ret = -1;
const char *current_maclient_appid = NULL;
if (mCurrentClientInfo >= 0 && mCurrentClientInfo < MAX_MACLIENT_INFO_NUM) {
pid_t CServiceMain::get_client_pid_by_appid(const char *appid)
{
+ MAS_LOGI("Checking PID of appid : %s", appid);
pid_t ret = -1;
if (appid) {
int CServicePlugin::start_streaming_utterance_data(void)
{
+ MAS_LOGI("[ENTER");
int ret = -1;
if (NULL != mPluginHandle) {
wakeup_manager_start_streaming_utterance_data func = mWakeupManagerInterface.start_streaming_utterance_data;