OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:beforeLength
(Results
1 - 21
of
21
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/utils/
autocorrection_threshold_utils.h
26
static float calcNormalizedScore(const int *before, const int
beforeLength
,
28
static int editDistance(const int *before, const int
beforeLength
, const int *after,
autocorrection_threshold_utils.cpp
33
const int
beforeLength
, const int *after, const int afterLength) {
35
before,
beforeLength
, after, afterLength);
71
const int
beforeLength
, const int *after, const int afterLength, const int score) {
72
if (0 ==
beforeLength
|| 0 == afterLength) {
75
const int distance = editDistance(before,
beforeLength
, after, afterLength);
103
static_cast<float>(std::min(
beforeLength
, afterLength - spaceCount)))
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
edit_distance.h
31
const int
beforeLength
= policy->getString0Length();
33
float dp[(
beforeLength
+ 1) * (afterLength + 1)];
34
for (int i = 0; i <=
beforeLength
; ++i) {
41
for (int i = 0; i <
beforeLength
; ++i) {
57
AKLOGI("IN = %d, OUT = %d",
beforeLength
, afterLength);
58
for (int i = 0; i <
beforeLength
+ 1; ++i) {
64
return dp[(
beforeLength
+ 1) * (afterLength + 1) - 1];
/packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionaryUtils.cpp
61
jsize
beforeLength
= env->GetArrayLength(before);
63
int beforeCodePoints[
beforeLength
];
65
env->GetIntArrayRegion(before, 0,
beforeLength
, beforeCodePoints);
67
return AutocorrectionThresholdUtils::calcNormalizedScore(beforeCodePoints,
beforeLength
,
/frameworks/base/core/java/android/view/inputmethod/
InputConnectionWrapper.java
117
public boolean deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength) {
118
return mTarget.deleteSurroundingTextInCodePoints(
beforeLength
, afterLength);
125
public boolean deleteSurroundingText(int
beforeLength
, int afterLength) {
126
return mTarget.deleteSurroundingText(
beforeLength
, afterLength);
InputConnection.java
316
* Delete <var>
beforeLength
</var> characters of text before the
357
* @param
beforeLength
The number of characters before the cursor to be deleted, in code unit.
367
public boolean deleteSurroundingText(int
beforeLength
, int afterLength);
384
* @param
beforeLength
The number of characters before the cursor to be deleted, in code points.
395
public boolean deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength);
[
all
...]
BaseInputConnection.java
207
* @param
beforeLength
The number of characters before the cursor to be deleted, in code unit.
216
public boolean deleteSurroundingText(int
beforeLength
, int afterLength) {
217
if (DEBUG) Log.v(TAG, "deleteSurroundingText " +
beforeLength
248
if (
beforeLength
> 0) {
249
int start = a -
beforeLength
;
364
* @param
beforeLength
The number of characters before the cursor to be deleted, in code points.
373
public boolean deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength) {
374
if (DEBUG) Log.v(TAG, "deleteSurroundingText " +
beforeLength
404
final int start = findIndexBackward(content, a, Math.max(
beforeLength
, 0));
/frameworks/base/core/java/com/android/internal/view/
IInputContext.aidl
42
void deleteSurroundingText(int
beforeLength
, int afterLength);
43
void deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength);
InputConnectionWrapper.java
423
public boolean deleteSurroundingText(int
beforeLength
, int afterLength) {
425
mIInputContext.deleteSurroundingText(
beforeLength
, afterLength);
432
public boolean deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength) {
438
mIInputContext.deleteSurroundingTextInCodePoints(
beforeLength
, afterLength);
IInputConnectionWrapper.java
208
public void deleteSurroundingText(int
beforeLength
, int afterLength) {
210
beforeLength
, afterLength));
213
public void deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength) {
215
beforeLength
, afterLength));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
BatchInputArbiter.java
95
final int
beforeLength
= mRecognitionPoints.getLength();
98
if (mRecognitionPoints.getLength() >
beforeLength
) {
/cts/tests/tests/view/src/android/view/inputmethod/cts/
InputConnectionWrapperTest.java
151
public boolean deleteSurroundingText(int
beforeLength
, int afterLength) {
156
public boolean deleteSurroundingTextInCodePoints(int
beforeLength
, int afterLength) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
RichInputConnection.java
473
public void deleteTextBeforeCursor(final int
beforeLength
) {
478
final int remainingChars = mComposingText.length() -
beforeLength
;
488
if (mExpectedSelStart >
beforeLength
) {
489
mExpectedSelStart -=
beforeLength
;
490
mExpectedSelEnd -=
beforeLength
;
498
mIC.deleteSurroundingText(
beforeLength
, 0);
[
all
...]
/external/skia/platform_tools/android/apps/visualbenchsdl/src/main/java/org/libsdl/app/
SDLActivity.java
[
all
...]
/frameworks/base/core/java/android/widget/
AbsListView.java
[
all
...]
/prebuilts/sdk/current/
android.jar
/prebuilts/sdk/system_current/
android.jar
/external/robolectric/v1/lib/main/
android.jar
/prebuilts/sdk/18/
android.jar
/prebuilts/sdk/19/
android.jar
/prebuilts/sdk/17/
android.jar
Completed in 376 milliseconds