/external/srec/tools/grxmlcompile/ |
D | grxmldoc.cpp | 413 std::string ruleName = GETATTR("id" ); in beginParseRuleNode() local 418 CHECK_NOT_EMPTY( ruleName, "id" ); in beginParseRuleNode() 421 m_RuleListStack.push( ruleName ); in beginParseRuleNode() 425 bool foundRule = findRuleIndex( ruleName, index ); in beginParseRuleNode() 431 if ( findSubGraph( ruleName, p_ExistingSubgraph ) ) { in beginParseRuleNode() 441 addRuleToList( ruleName, newGraph ); in beginParseRuleNode() 446 findRuleIndex( ruleName, index ); in beginParseRuleNode() 456 PRINT_EXPRESSION( ruleName + " = { " ); in beginParseRuleNode() 469 std::string ruleName = m_RuleListStack.top(); in endParseRuleNode() local 529 std::string ruleName = m_RuleListStack.top(); in processCDATA() local [all …]
|
D | grxmldoc.h | 114 bool getRuleRefName(XMLNode &node, std::string &ruleName); 121 bool addRuleToList(std::string const& ruleName, SubGraph *&p_SubGraph);
|
/external/srec/srec/Semproc/src/ |
D | SemanticProcessorImpl.c | 64 const LCHAR* ruleName; member 479 LCHAR ruleName[32]; in SR_SemanticProcessor_CheckParseByWordID() local 492 LSTRCPY(ruleName, L("")); in SR_SemanticProcessor_CheckParseByWordID() 540 raw_scripts_buf.list[i].ruleName = 0; in SR_SemanticProcessor_CheckParseByWordID() 568 if (raw_scripts_buf.list[i].ruleName && raw_scripts_buf.list[i].expression && in SR_SemanticProcessor_CheckParseByWordID() 569 raw_scripts_buf.list[i].ruleName != WORD_NOT_FOUND && in SR_SemanticProcessor_CheckParseByWordID() 575 src = raw_scripts_buf.list[i].ruleName; in SR_SemanticProcessor_CheckParseByWordID() 576 p = ruleName; in SR_SemanticProcessor_CheckParseByWordID() 580 CHKLOG(rc, append_with_check(&p, *src, &ruleName[31])); in SR_SemanticProcessor_CheckParseByWordID() 587 CHKLOG(rc, append_with_check(&p, L('.'), &ruleName[31])); in SR_SemanticProcessor_CheckParseByWordID() [all …]
|
/external/srec/srec/Recognizer/include/ |
D | SR_Recognizer.h | 267 …de (*setupRule)(struct SR_Recognizer_t* self, struct SR_Grammar_t* grammar, const LCHAR* ruleName); 289 const LCHAR* ruleName, unsigned int weight); 299 const LCHAR* ruleName); 319 const LCHAR* ruleName, ESR_BOOL* isActiveRule); 695 const LCHAR* ruleName); 719 const LCHAR* ruleName, 731 const LCHAR* ruleName); 752 const LCHAR* ruleName,
|
D | SR_RecognizerImpl.h | 427 const LCHAR* ruleName, 434 const LCHAR* ruleName); 446 const LCHAR* ruleName,
|
/external/srec/srec/Recognizer/src/ |
D | Recognizer.c | 158 const LCHAR* ruleName) in SR_RecognizerSetupRule() argument 165 return self->setupRule(self, grammar, ruleName); in SR_RecognizerSetupRule() 180 const LCHAR* ruleName, unsigned int weight) in SR_RecognizerActivateRule() argument 187 return self->activateRule(self, grammar, ruleName, weight); in SR_RecognizerActivateRule() 191 const LCHAR* ruleName) in SR_RecognizerDeactivateRule() argument 198 return self->deactivateRule(self, grammar, ruleName); in SR_RecognizerDeactivateRule() 212 const LCHAR* ruleName, ESR_BOOL* isActiveRule) in SR_RecognizerIsActiveRule() argument 219 return self->isActiveRule(self, grammar, ruleName, isActiveRule); in SR_RecognizerIsActiveRule()
|
D | RecognizerImpl.c | 1546 const LCHAR* ruleName, unsigned int weight) in SR_RecognizerActivateRuleImpl() argument 1574 if (ruleName == NULL) in SR_RecognizerActivateRuleImpl() 1578 if (LSTRLEN(ruleName) > 80) in SR_RecognizerActivateRuleImpl() 1584 LSTRCPY(grammarID, ruleName); in SR_RecognizerActivateRuleImpl() 1617 SR_EventLogToken(impl->eventLog, L("rule"), ruleName); in SR_RecognizerActivateRuleImpl() 1625 SR_EventLogToken(impl->eventLog, L("rule"), ruleName); in SR_RecognizerActivateRuleImpl() 1634 const LCHAR* ruleName) in SR_RecognizerDeactivateRuleImpl() argument 1641 if (ruleName == NULL) in SR_RecognizerDeactivateRuleImpl() 1647 CHKLOG(rc, HashMapRemove(impl->grammars, ruleName)); in SR_RecognizerDeactivateRuleImpl() 1667 const LCHAR* ruleName, ESR_BOOL* isActiveRule) in SR_RecognizerIsActiveRuleImpl() argument
|
/external/srec/srec_jni/ |
D | android_speech_srec_Recognizer.cpp | 191 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName) { in Java_android_speech_srec_Recognizer_SR_1RecognizerSetupRule() argument 192 const char* rn = env->GetStringUTFChars(ruleName, 0); in Java_android_speech_srec_Recognizer_SR_1RecognizerSetupRule() 194 env->ReleaseStringUTFChars(ruleName, rn); in Java_android_speech_srec_Recognizer_SR_1RecognizerSetupRule() 205 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName, jint weight) { in Java_android_speech_srec_Recognizer_SR_1RecognizerActivateRule() argument 206 const char* rn = env->GetStringUTFChars(ruleName, 0); in Java_android_speech_srec_Recognizer_SR_1RecognizerActivateRule() 208 env->ReleaseStringUTFChars(ruleName, rn); in Java_android_speech_srec_Recognizer_SR_1RecognizerActivateRule() 212 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName) { in Java_android_speech_srec_Recognizer_SR_1RecognizerDeactivateRule() argument 213 const char* rn = env->GetStringUTFChars(ruleName, 0); in Java_android_speech_srec_Recognizer_SR_1RecognizerDeactivateRule() 215 env->ReleaseStringUTFChars(ruleName, rn); in Java_android_speech_srec_Recognizer_SR_1RecognizerDeactivateRule() 224 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName) { in Java_android_speech_srec_Recognizer_SR_1RecognizerIsActiveRule() argument [all …]
|
/external/srec/srec/test/SRecTestAudio/src/ |
D | SRecTestAudio.c | 121 LCHAR ruleName [P_PATH_MAX]; /* rule name of the grammar. */ member 452 …data->recognizer, data->grammars [grammar_num].grammar, data->grammars [grammar_num].ruleName, 1 ); in SetupGrammarActivate() 898 LSTRCPY ( data->grammars [grammar_num].ruleName, rule ); in srec_test_load_grammar_data_from_command() 1002 … data->grammars [data->active_grammar_num].ruleName ); in srec_test_free_context() 1106 … data->grammars [grammar_num].ruleName, 1 ); in srec_test_use_context() 1122 … data->grammars [grammar_num].ruleName ); in srec_test_use_context()
|
/external/srec/srec/test/SRecTest/src/ |
D | SRecTest.c | 122 LCHAR ruleName [P_PATH_MAX]; /* rule name of the grammar. */ member 452 …data->recognizer, data->grammars [grammar_num].grammar, data->grammars [grammar_num].ruleName, 1 ); in SetupGrammarActivate() 906 LSTRCPY ( data->grammars [grammar_num].ruleName, rule ); in srec_test_load_grammar_data_from_command() 1012 … data->grammars [data->active_grammar_num].ruleName ); in srec_test_free_context() 1116 … data->grammars [grammar_num].ruleName, 1 ); in srec_test_use_context() 1133 … data->grammars [grammar_num].ruleName ); in srec_test_use_context()
|