am cd0984a4: am e320789a: Suppress bigram native log

* commit 'cd0984a4ab8f95d40287bb1e450ef169513330df':
  Suppress bigram native log
This commit is contained in:
Satoshi Kataoka 2013-04-10 19:35:39 -07:00 committed by Android Git Automerger
commit c7e1caac44

View file

@ -39,7 +39,7 @@ BigramDictionary::~BigramDictionary() {
void BigramDictionary::addWordBigram(int *word, int length, int probability, int *bigramProbability, void BigramDictionary::addWordBigram(int *word, int length, int probability, int *bigramProbability,
int *bigramCodePoints, int *outputTypes) const { int *bigramCodePoints, int *outputTypes) const {
word[length] = 0; word[length] = 0;
if (DEBUG_DICT) { if (DEBUG_DICT_FULL) {
#ifdef FLAG_DBG #ifdef FLAG_DBG
char s[length + 1]; char s[length + 1];
for (int i = 0; i <= length; i++) s[i] = static_cast<char>(word[i]); for (int i = 0; i <= length; i++) s[i] = static_cast<char>(word[i]);
@ -57,7 +57,7 @@ void BigramDictionary::addWordBigram(int *word, int length, int probability, int
} }
insertAt++; insertAt++;
} }
if (DEBUG_DICT) { if (DEBUG_DICT_FULL) {
AKLOGI("Bigram: InsertAt -> %d MAX_RESULTS: %d", insertAt, MAX_RESULTS); AKLOGI("Bigram: InsertAt -> %d MAX_RESULTS: %d", insertAt, MAX_RESULTS);
} }
if (insertAt >= MAX_RESULTS) { if (insertAt >= MAX_RESULTS) {
@ -76,7 +76,7 @@ void BigramDictionary::addWordBigram(int *word, int length, int probability, int
*dest++ = *word++; *dest++ = *word++;
} }
*dest = 0; // NULL terminate *dest = 0; // NULL terminate
if (DEBUG_DICT) { if (DEBUG_DICT_FULL) {
AKLOGI("Bigram: Added word at %d", insertAt); AKLOGI("Bigram: Added word at %d", insertAt);
} }
} }