Merge "Fix debug build"
This commit is contained in:
commit
9ada9f1bdd
3 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ LOCAL_PATH := $(call my-dir)
|
|||
# If you change any of those flags, you need to rebuild both libjni_latinime_static
|
||||
# and the shared library.
|
||||
#FLAG_DBG := true
|
||||
#FLAG_DO_PROFILE := true
|
||||
FLAG_DO_PROFILE ?= false
|
||||
|
||||
######################################
|
||||
include $(CLEAR_VARS)
|
||||
|
|
|
@ -908,7 +908,7 @@ int Correction::RankingAlgorithm::calculateFinalProbability(const int inputIndex
|
|||
|
||||
if (DEBUG_CORRECTION_FREQ
|
||||
&& (INPUTLENGTH_FOR_DEBUG <= 0 || INPUTLENGTH_FOR_DEBUG == inputLength)) {
|
||||
DUMP_WORD(proximityInfo->getPrimaryInputWord(), inputLength);
|
||||
DUMP_WORD(correction->getPrimaryInputWord(), inputLength);
|
||||
DUMP_WORD(correction->mWord, outputLength);
|
||||
AKLOGI("FinalFreq: [P%d, S%d, T%d, E%d, A%d] %d, %d, %d, %d, %d, %d", proximityMatchedCount,
|
||||
skippedCount, transposedCount, excessiveCount, additionalProximityCount,
|
||||
|
|
|
@ -53,10 +53,10 @@ ProximityInfo::ProximityInfo(const std::string localeStr, const int maxProximity
|
|||
&& keyWidths && keyHeights && keyCharCodes && sweetSpotCenterXs
|
||||
&& sweetSpotCenterYs && sweetSpotRadii),
|
||||
mLocaleStr(localeStr) {
|
||||
const int proximityGridLength = GRID_WIDTH * GRID_HEIGHT * MAX_PROXIMITY_CHARS_SIZE;
|
||||
if (DEBUG_PROXIMITY_INFO) {
|
||||
AKLOGI("Create proximity info array %d", proximityGridLength);
|
||||
}
|
||||
const int proximityGridLength = GRID_WIDTH * GRID_HEIGHT * MAX_PROXIMITY_CHARS_SIZE;
|
||||
mProximityCharsArray = new int32_t[proximityGridLength];
|
||||
memcpy(mProximityCharsArray, proximityCharsArray,
|
||||
proximityGridLength * sizeof(mProximityCharsArray[0]));
|
||||
|
|
Loading…
Reference in a new issue