Lines Matching refs:i
34 int i = 0; in acquireSoundTriggerSessionThread() local
44 AudioSystem::acquireSoundTriggerSession(&(ctxt->audioSession[++i]), &ioHandle, &device); in acquireSoundTriggerSessionThread()
45 if (i >= MAX_NUMBER_OF_AUDIO_SESSIONS) { in acquireSoundTriggerSessionThread()
46 i = 0; in acquireSoundTriggerSessionThread()
54 int i = 0; in releaseSoundTriggerSessionThread() local
62 AudioSystem::releaseSoundTriggerSession(ctxt->audioSession[++i]); in releaseSoundTriggerSessionThread()
63 if (i >= MAX_NUMBER_OF_AUDIO_SESSIONS) { in releaseSoundTriggerSessionThread()
64 i = 0; in releaseSoundTriggerSessionThread()
76 for (int i = 0; i < MAX_NUMBER_OF_ACQUIRE_SESSION_THREADS; ++i) { in main() local
77 pthread_create(&thread[i], nullptr, acquireSoundTriggerSessionThread, in main()
81 for (int i = MAX_NUMBER_OF_ACQUIRE_SESSION_THREADS; i < MAX_NUMBER_OF_THREADS; in main() local
82 ++i) { in main()
83 pthread_create(&thread[i], nullptr, releaseSoundTriggerSessionThread, in main()
88 for (int i = 0; i < MAX_NUMBER_OF_THREADS; ++i) { in main() local
89 pthread_join(thread[i], nullptr); in main()