/external/srec/srec/AcousticModels/src/ |
AcousticModelsImpl.c | 58 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.dimen", 16)); 59 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.skip", 5)); 60 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.stay", 5)); 61 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.whole_skip", 10)); 62 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.whole_stay", 10)); 63 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.durscale", 5)); 64 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.frame_period", 10)); 65 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.minvar", 1)); 66 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Acoustic.maxvar", 64000)); 67 CHKLOG(rc, ESR_SessionSetBoolIfEmpty("CREC.Acoustic.load_all_at_once", ESR_FALSE)) [all...] |
/external/srec/portable/src/ |
PFileSystemImpl.c | 66 CHKLOG(rc, PStackTraceCreate()); 68 CHKLOG(rc, PHashTableCreate(NULL, MTAG, &PFileSystemPathMap)); 69 CHKLOG(rc, PFileSystemInitializeStreamsImpl()); 88 CHKLOG(rc, PHashTableEntryGetFirst(PFileSystemPathMap, &entry)); 91 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)NULL)); 93 CHKLOG(rc, PHashTableEntryAdvance(&entry)); 94 CHKLOG(rc, PHashTableEntryRemove(oldEntry)); 97 CHKLOG(rc, PHashTableDestroy(PFileSystemPathMap)); 100 CHKLOG(rc, PFileSystemShutdownStreamsImpl()); 102 CHKLOG(rc, PStackTraceDestroy()) [all...] |
PANSIFileSystemImpl.c | 63 CHKLOG(rc, PHashTableCreate(NULL, MTAG, &impl->directoryMap)); 81 CHKLOG(rc, PHashTableEntryGetFirst(impl->directoryMap, &entry)); 84 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); 86 CHKLOG(rc, PHashTableEntryAdvance(&entry)); 87 CHKLOG(rc, PHashTableEntryRemove(oldEntry)); 88 CHKLOG(rc, PHashTableRemoveValue(PFileSystemPathMap, key, NULL)); 92 CHKLOG(rc, PHashTableDestroy(impl->directoryMap)); 129 CHKLOG(rc, PFileSystemCanonicalSlashes(key)); 153 CHKLOG(rc, PFileSystemCanonicalSlashes(value)); 157 CHKLOG(rc, PHashTableContainsKey(impl->directoryMap, key, &exists)) [all...] |
PFileSystem.c | 58 CHKLOG(rc, lstrreplace(path, L('\\'), L('/'))); 81 CHKLOG(rc, PFileSystemCanonicalSlashes(linear)); 82 CHKLOG(rc, ArrayListCreate(&arrayList)); 98 CHKLOG(rc, lstrtrim(value)); 106 CHKLOG(rc, arrayList->add(arrayList, value)); 115 CHKLOG(rc, arrayList->getSize(arrayList, count)); 168 CHKLOG(rc, PFileSystemCanonicalSlashes(canonical)); 191 CHKLOG(rc, PFileSystemIsAbsolutePath(path, &isAbsolute)); 200 CHKLOG(rc, PFileSystemGetcwd(cwd, &len2)); 202 CHKLOG(rc, lstrinsert(cwd, path, 0, &len2)) [all...] |
PFileImpl.c | 85 CHKLOG(rc, PtrdMonitorLock(impl->lock)); 94 CHKLOG(rc, PtrdMonitorUnlock(impl->lock)); \ 115 CHKLOG(rc, self->isOpen(self, &isOpen)); 117 CHKLOG(rc, self->close(self)); 176 CHKLOG(rc, self->isOpen(self, &isOpen)); 195 CHKLOG(rc, self->write(self, buffer, sizeof(LCHAR), &len));
|
PANSIFileSystem.c | 47 CHKLOG(rc, PANSIFileSystemSingleton->destroy(PANSIFileSystemSingleton));
|
LCHAR.c | 125 CHKLOG(rc, lstrcasecmp(text, L("true"), &compare)); 131 CHKLOG(rc, lstrcasecmp(text, L("yes"), &compare)); 137 CHKLOG(rc, lstrcasecmp(text, L("false"), &compare)); 143 CHKLOG(rc, lstrcasecmp(text, L("no"), &compare));
|
/external/srec/shared/src/ |
SessionTypeImpl.c | 190 CHKLOG(rc, HashMapGet(data->value, name, (void **)&pair)); 291 CHKLOG(rc, list->getSize(list, &size)); 294 CHKLOG(rc, list->get(list, i, (void **)&listener)); 295 CHKLOG(rc, listener->listener->propertyChanged(listener->listener, name, oldValue, newValue, type, listener->data)); 311 CHKLOG(rc, HashMapContainsKey(data->value, name, &exists)); 320 CHKLOG ( rc, ESR_SessionTypeRemoveAndFreePropertyImpl ( self, name ) ); 331 CHKLOG(rc, firePropertyChanged(self, name, NULL, value, type)); 332 CHKLOG(rc, HashMapPut(data->value, name, pair)); 542 CHKLOG(rc, firePropertyChanged(self, name, pair->value, NULL, pair->type)); 600 CHKLOG(rc, self->getProperty(self, key, (void **)&value, type)) [all...] |
ESR_Session.c | 41 CHKLOG(rc, ESR_SessionTypeCreate(&ESR_Session)); 44 CHKLOG(rc, ESR_Session->setLCHAR(ESR_Session, L("cmdline.nametagPath"), L(""))); 46 CHKLOG(rc, ESR_Session->setUint16_t(ESR_Session, L("thread.priority"), PtrdThreadNormalPriority)); 50 CHKLOG(rc, ESR_Session->importParFile(ESR_Session, filename)); 262 CHKLOG(rc, ESR_Session->destroy(ESR_Session)); 284 CHKLOG(rc, pf_convert_backslashes_to_forwardslashes (path)); 285 CHKLOG(rc, pf_is_path_absolute (path, &isAbsolute)); 289 CHKLOG(rc, ESR_SessionGetLCHAR(L("parFile.baseDirectory"), baseDirectory, &len2)); 290 CHKLOG(rc, lstrinsert(baseDirectory, path, 0, len));
|
HashMapImpl.c | 86 CHKLOG(rc, PHashTableContainsKey(impl->table, key, &exists)); 101 CHKLOG(rc, PHashTableGetEntry(impl->table, key, &entry)); 182 CHKLOG(rc, PHashTableContainsKey(impl->table, key, exists));
|
/external/srec/portable/src/UNIX/ |
PFileSystemUNIXImpl.c | 54 CHKLOG(rc, PANSIFileSystemCreate()); 56 CHKLOG(rc, PMemSetLogEnabled(ESR_FALSE)); 57 CHKLOG(rc, PHashTablePutValue(PFileSystemPathMap, L("/"), PANSIFileSystemSingleton, NULL)); 58 CHKLOG(rc, PHashTablePutValue(ANSIImpl->directoryMap, L("/"), L("/"), NULL)); 59 CHKLOG(rc, PANSIFileSystemSingleton->createPFile(PANSIFileSystemSingleton, L("/dev/stdin"), isLittleEndian, &PSTDIN)); 63 CHKLOG(rc, PANSIFileSystemSingleton->createPFile(PANSIFileSystemSingleton, L("/dev/stdout"), isLittleEndian, &PSTDOUT)); 68 CHKLOG(rc, PANSIFileSystemSingleton->createPFile(PANSIFileSystemSingleton, L("/dev/stderr"), isLittleEndian, &PSTDERR)); 75 CHKLOG(rc, PtrdIsEnabled(&threadingEnabled)); 78 CHKLOG(rc, PtrdMonitorDestroy(impl->Interface.lock)); 82 CHKLOG(rc, PHashTableRemoveValue(PFileSystemPathMap, L("/"), NULL)) [all...] |
PANSIFileSystemUNIXImpl.c | 43 CHKLOG(rc, lstrtrim(path)); 44 CHKLOG(rc, PFileSystemCanonicalSlashes(path)); 45 CHKLOG(rc, PFileSystemIsAbsolutePath(path, &isAbsolute)); 52 CHKLOG(rc, PHashTableEntryGetFirst(impl->directoryMap, &entry)); 55 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); 67 CHKLOG(rc, PHashTableEntryAdvance(&entry)); 79 CHKLOG(rc, lstrinsert(bestKey, path, 0, len)); 84 CHKLOG(rc, lstrinsert(L("X:/"), path, LSTRLEN(bestKey), len)); 100 CHKLOG(rc, PANSIFileSystemGetRealPathImpl(self, realPath, &len)); 144 CHKLOG(rc, PANSIFileSystemGetVirtualPathImpl(self, path, len)) [all...] |
/external/srec/srec/Recognizer/src/ |
RecognizerImpl.c | 72 /* CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_acoustic_models", 2)); */ 73 CHKLOG(rc, ESR_SessionSetBoolIfEmpty("CREC.Recognizer.partial_results", ESR_FALSE)); 74 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.NBest", 1)); 75 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.eou_threshold", 100)); 76 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_altword_tokens", 400)); 77 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_frames", 1000)); 78 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_fsm_arcs", 3000)); 79 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_fsm_nodes", 3000)); 80 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_fsmnode_tokens", 1000)); 81 CHKLOG(rc, ESR_SessionSetIntIfEmpty("CREC.Recognizer.max_hmm_tokens", 1000)) [all...] |
RecognizerResultImpl.c | 97 CHKLOG(rc, ArrayListGetSize(impl->results, count)); 112 CHKLOG(rc, impl->results->get(impl->results, nbest, (void **)&results)); 117 CHKLOG(rc, results->get(results, 0, (void **)&result)); 118 CHKLOG(rc, result->getKeyCount(result , count)); 133 CHKLOG(rc, impl->results->get(impl->results, nbest, (void **)&results)); 139 CHKLOG(rc, results->get(results, 0, (void **)&result)); 140 CHKLOG(rc, result->getKeyList(result, list, listSize)); 160 CHKLOG(rc, impl->results->get(impl->results, nbest, (void **)&results)); 162 CHKLOG(rc, results->getSize(results, &resultCount)); 167 CHKLOG(rc, results->get(results, i, (void **)&result)) [all...] |
/external/srec/srec/Session/src/ |
SR_Session.c | 37 CHKLOG(rc, ESR_SessionCreate(filename)); 40 CHKLOG(rc, SR_EventLogCreate(&eventLog)); 42 CHKLOG(rc, ESR_SessionSetSize_t(L("SREC.Recognizer.osi_log_level"), 0)); 58 CHKLOG(rc, ESR_SessionSetLCHAR(L("parFile.baseDirectory"), baseDirectory)); 77 CHKLOG(rc, eventLog->destroy(eventLog)); 82 CHKLOG(rc, ESR_SessionDestroy());
|
/external/srec/srec/Nametag/src/ |
NametagsImpl.c | 59 CHKLOG(rc, HashMapCreate(&impl->value)); 60 CHKLOG(rc, ESR_SessionGetSize_t(L("SREC.Recognizer.osi_log_level"), &impl->logLevel)); 62 CHKLOG(rc, ESR_SessionGetProperty(L("eventlog"), (void **)&impl->eventLog, TYPES_SR_EVENTLOG)); 63 CHKLOG(rc, SR_EventLogTokenInt_BASIC(impl->eventLog, impl->logLevel, L("pointer"), (int) self)); 64 CHKLOG(rc, SR_EventLogEvent_BASIC(impl->eventLog, impl->logLevel, L("SR_NametagsCreate"))); 99 CHKLOG(rc, ESR_SessionGetLCHAR(L("cmdline.nametagPath"), devicePath, &size)); 106 /* CHKLOG(rc, PFileSystemCreatePFile(devicePath, ESR_TRUE, &file)); 107 CHKLOG(rc, file->open(file, L("r")));*/ 113 CHKLOG(rc, nametags->getSize(nametags, &size)); 116 CHKLOG(rc, nametags->getValueAtIndex(nametags, 0, (void **)&oldNametag)) [all...] |
/external/srec/srec/Semproc/src/ |
ExpressionParser.c | 62 CHKLOG(rc, HashMapCreate(&Interface->pfunctions)); 66 CHKLOG(rc, EP_RegisterFunction(Interface, L("concat"), NULL, EE_concat)); 67 CHKLOG(rc, EP_RegisterFunction(Interface, L("conditional"), NULL, EE_conditional)); 68 CHKLOG(rc, EP_RegisterFunction(Interface, L("add"), NULL, EE_add)); 69 CHKLOG(rc, EP_RegisterFunction(Interface, L("subtract"), NULL, EE_subtract)); 87 CHKLOG(rc, HashMapRemoveAll(self->pfunctions)); 93 CHKLOG(rc, HashMapDestroy(self->pfunctions)); 110 CHKLOG(rc, ST_reset(symtable)); /* reset the symbol table, for a new set of keys and values */ 111 CHKLOG(rc, handle_NewStatement(parser)); 115 CHKLOG(rc, LA_nextToken(lexAnalyzer, parser->ptokenBuf, &tokenLen)) [all...] |
SemanticResultImpl.c | 67 CHKLOG(rc, impl->results->getSize(impl->results, count)); 80 CHKLOG(rc, HashMapGetSize(impl->results, &size)); 96 CHKLOG(rc, HashMapGetKeyAtIndex(impl->results, i, &theKey)); 110 CHKLOG(rc, impl->results->get(impl->results, key, (void **)&theValue)); 128 CHKLOG(rc, HashMapRemoveAndFreeAll(impl->results)); 129 CHKLOG(rc, HashMapDestroy(impl->results));
|
SymbolTable.c | 43 CHKLOG(rc, HashMapCreate(&(*ptr)->hashmap)); 69 CHKLOG(rc, HashMapDestroy(self->hashmap)); 95 CHKLOG(rc, ST_getSymbolSlot(self, &symbol)); 102 CHKLOG(rc, HashMapPut(self->hashmap, symbol->key, symbol->value)); 223 CHKLOG(rc, HashMapRemoveAll(ptr->hashmap)); 245 CHKLOG(rc, HashMapRemoveAll(ptr->hashmap));
|
/external/srec/tools/make_g2g/ |
make_g2g.c | 56 * Can't use CHKLOG() before plogInit, so use non-portable methods instead. 58 CHKLOG(rc, PMemInit()); 59 /* CHKLOG(rc, PFileSystemCreate()); 60 CHKLOG(rc, PANSIFileSystemCreate()); 61 CHKLOG(rc, PANSIFileSystemAddPath(L("/dev/ansi/"), L("/")));*/ 62 CHKLOG(rc, PLogInit(NULL, 3)); 65 /* CHKLOG(rc, PANSIFileSystemSetDefault(ESR_TRUE));*/ 68 CHKLOG(rc, PANSIFileSystemGetcwd(cwd, &len)); 69 CHKLOG(rc, PFileSystemChdir(cwd));*/ 114 CHKLOG(rc, SR_GrammarLoad(base, &grammar)) [all...] |
/external/srec/srec/EventLog/src/ |
EventLogImpl.c | 110 CHKLOG(rc, SR_EventLogTokenInt(eventLog, name, *((int*) newValue))); 113 CHKLOG(rc, SR_EventLogTokenUint16_t(eventLog, name, *((asr_uint16_t*) newValue))); 116 CHKLOG(rc, SR_EventLogTokenSize_t(eventLog, name, *((size_t*) newValue))); 119 CHKLOG(rc, SR_EventLogTokenBool(eventLog, name, *((ESR_BOOL*) newValue))); 122 CHKLOG(rc, SR_EventLogTokenFloat(eventLog, name, *((float*) newValue))); 125 CHKLOG(rc, SR_EventLogToken(eventLog, name, (LCHAR*) newValue)); 129 CHKLOG(rc, ESR_SessionGetProperty(name, (void **)&list, TYPES_INTARRAYLIST)); 130 CHKLOG(rc, list->getSize(list, &len)); 131 CHKLOG(rc, SR_EventLogTokenInt(eventLog, name, len)); 134 CHKLOG(rc, list->get(list, i, &iValue)) [all...] |
/external/srec/srec/Grammar/src/ |
SR_GrammarImpl.c | 70 CHKLOG(rc, ESR_SessionTypeCreate(&impl->parameters)); 91 CHKLOG(rc, ESR_SessionExists(&exists)); 124 CHKLOG(rc, SR_Grammar_Create(self)); 219 CHKLOG(rc, vocab->getPronunciation(vocab, word, buffer, &len)); 231 CHKLOG(logrc, SR_EventLogTokenInt_BASIC(impl->eventLog, impl->logLevel, L("igrm"), (int)impl)); 232 CHKLOG(logrc, SR_EventLogToken_BASIC(impl->eventLog, impl->logLevel, L("SLOT"), slot)); 233 CHKLOG(logrc, SR_EventLogToken_BASIC(impl->eventLog, impl->logLevel, L("WORD"), word)); 235 CHKLOG(logrc, SR_EventLogToken_BASIC(impl->eventLog, impl->logLevel, L("PRON"), pronunciation)); 237 CHKLOG(logrc, SR_EventLogToken_BASIC(impl->eventLog, impl->logLevel, L("GPRON"), pronunciation)); 238 CHKLOG(logrc, SR_EventLogTokenInt_BASIC(impl->eventLog, impl->logLevel, L("WEIGHT"), weight)) [all...] |
/external/srec/srec/include/ |
portable.h | 69 CHKLOG(rc, pf_get_cwd (path, &len));
|
/external/srec/tools/test_swiarb/ |
test_swiarb.c | 66 CHKLOG(rc, PMemInit());
|
/external/srec/srec/clib/ |
swicms.c | 112 CHKLOG(rc, ESR_SessionContains(parname, &exists)); 121 CHKLOG(rc, IntArrayListGetSize(intList, &size)); 127 CHKLOG(rc, IntArrayListGet(intList, 0, parvalue)); 130 CHKLOG(rc, IntArrayListGet(intList, i, &parvalue[i])); 153 CHKLOG(rc, ESR_SessionExists(&sessionExists)); 188 CHKLOG(rc, ESR_SessionExists(&sessionExists)); 193 CHKLOG(rc, ESR_SessionContains(parname, &exists));
|