OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:afterLength
(Results
1 - 4
of
4
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
edit_distance.h
30
const int
afterLength
= policy->getString1Length();
31
float dp[(beforeLength + 1) * (
afterLength
+ 1)];
33
dp[(
afterLength
+ 1) * i] = i * policy->getInsertionCost(i - 1, -1);
35
for (int i = 0; i <=
afterLength
; ++i) {
40
for (int j = 0; j <
afterLength
; ++j) {
41
dp[(
afterLength
+ 1) * (i + 1) + (j + 1)] = min(
42
dp[(
afterLength
+ 1) * i + (j + 1)] + policy->getInsertionCost(i, j),
43
min(dp[(
afterLength
+ 1) * (i + 1) + j] + policy->getDeletionCost(i, j),
44
dp[(
afterLength
+ 1) * i + j]
47
dp[(
afterLength
+ 1) * (i + 1) + (j + 1)] = min
[
all
...]
/packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionary.cpp
233
jsize
afterLength
= env->GetArrayLength(after);
235
int afterCodePoints[
afterLength
];
237
env->GetIntArrayRegion(after, 0,
afterLength
, afterCodePoints);
239
afterCodePoints,
afterLength
, score);
245
jsize
afterLength
= env->GetArrayLength(after);
247
int afterCodePoints[
afterLength
];
249
env->GetIntArrayRegion(after, 0,
afterLength
, afterCodePoints);
251
afterCodePoints,
afterLength
);
/prebuilts/sdk/17/
android.jar
/prebuilts/sdk/18/
android.jar
Completed in 80 milliseconds