Home
last modified time | relevance | path

Searched refs:grammarCount (Results 1 – 3 of 3) sorted by relevance

/external/srec/srec/test/SRecTestAudio/src/
DSRecTestAudio.c139 int grammarCount; /* The number of grammars. */ member
259 if ( grammar_num < data->grammarCount ) in srec_test_delete_grammar()
261 if ( ( data->grammarCount - grammar_num ) > 1 ) in srec_test_delete_grammar()
263 memmove ( &data->grammars [grammar_num], &data->grammars [data->grammarCount - 1], in srec_test_delete_grammar()
264 ( data->grammarCount - grammar_num - 1 ) * sizeof ( APPL_GRAMMAR_DATA ) ); in srec_test_delete_grammar()
268 data->grammarCount--; in srec_test_delete_grammar()
310 while ( ( found_grammar == ESR_FALSE ) && ( grammar_counter < data->grammarCount ) ) in srec_test_get_grammar_from_id()
337 if ( data->grammarCount < MAX_NUM_REC_CONTEXTS ) in srec_test_get_empty_grammar_index()
340 *grammar_index = data->grammarCount; in srec_test_get_empty_grammar_index()
943 data->grammarCount++; in srec_test_load_context()
[all …]
/external/srec/srec/test/SRecTest/src/
DSRecTest.c140 int grammarCount; /* The number of grammars. */ member
261 if ( grammar_num < data->grammarCount ) in srec_test_delete_grammar()
263 if ( ( data->grammarCount - grammar_num ) > 1 ) in srec_test_delete_grammar()
265 memmove ( &data->grammars [grammar_num], &data->grammars [data->grammarCount - 1], in srec_test_delete_grammar()
266 ( data->grammarCount - grammar_num - 1 ) * sizeof ( APPL_GRAMMAR_DATA ) ); in srec_test_delete_grammar()
270 data->grammarCount--; in srec_test_delete_grammar()
312 while ( ( found_grammar == ESR_FALSE ) && ( grammar_counter < data->grammarCount ) ) in srec_test_get_grammar_from_id()
339 if ( data->grammarCount < MAX_NUM_REC_CONTEXTS ) in srec_test_get_empty_grammar_index()
342 *grammar_index = data->grammarCount; in srec_test_get_empty_grammar_index()
952 data->grammarCount++; in srec_test_load_context()
[all …]
/external/srec/srec/Recognizer/src/
DRecognizerImpl.c983 size_t grammarCount; in SR_RecognizerStartImpl() local
987 CHKLOG(rc, impl->grammars->getSize(impl->grammars, &grammarCount)); in SR_RecognizerStartImpl()
993 if (grammarCount < 1) in SR_RecognizerStartImpl()