Lines Matching refs:lpmaEnableThread
143 static LpmaEnableThreadData lpmaEnableThread; variable
374 pthread_mutex_lock(&lpmaEnableThread.mutex); in setLpmaState()
375 lpmaEnableThread.targetLpmaEnabled = enabled; in setLpmaState()
376 pthread_mutex_unlock(&lpmaEnableThread.mutex); in setLpmaState()
377 pthread_cond_signal(&lpmaEnableThread.cond); in setLpmaState()
381 pthread_mutex_lock(&lpmaEnableThread.mutex); in onStHalServiceDeath()
382 lpmaEnableThread.connectedToService = false; in onStHalServiceDeath()
383 if (lpmaEnableThread.targetLpmaEnabled) { in onStHalServiceDeath()
386 lpmaEnableThread.currentLpmaEnabled = false; in onStHalServiceDeath()
387 pthread_cond_signal(&lpmaEnableThread.cond); in onStHalServiceDeath()
389 pthread_mutex_unlock(&lpmaEnableThread.mutex); in onStHalServiceDeath()
399 if (!lpmaEnableThread.connectedToService) { in connectToStHalServiceLocked()
400 lpmaEnableThread.stHalService = ISoundTriggerHw::getService(); in connectToStHalServiceLocked()
401 if (lpmaEnableThread.stHalService != nullptr) { in connectToStHalServiceLocked()
403 lpmaEnableThread.connectedToService = true; in connectToStHalServiceLocked()
404 lpmaEnableThread.stHalService->linkToDeath( in connectToStHalServiceLocked()
405 lpmaEnableThread.deathRecipient, 0 /* flags */); in connectToStHalServiceLocked()
409 return lpmaEnableThread.connectedToService; in connectToStHalServiceLocked()
438 Return<void> hidlResult = lpmaEnableThread.stHalService->loadSoundModel( in loadLpma()
479 lpmaEnableThread.stHalService->unloadSoundModel(lpmaHandle); in unloadLpma()
999 } else if (!initLpmaEnableThread(&lpmaEnableThread)) { in main()