/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
damerau_levenshtein_edit_distance_policy.h | 33 AK_FORCE_INLINE float getSubstitutionCost(const int index0, const int index1) const { 34 const int c0 = toBaseLowerCase(mString0[index0]); 39 AK_FORCE_INLINE float getDeletionCost(const int index0, const int index1) const { 43 AK_FORCE_INLINE float getInsertionCost(const int index0, const int index1) const { 47 AK_FORCE_INLINE bool allowTransposition(const int index0, const int index1) const { 48 const int c0 = toBaseLowerCase(mString0[index0]); 50 if (index0 > 0 && index1 > 0 && c0 == toBaseLowerCase(mString1[index1 - 1]) 51 && c1 == toBaseLowerCase(mString0[index0 - 1])) { 57 AK_FORCE_INLINE float getTranspositionCost(const int index0, const int index1) const { 58 return getSubstitutionCost(index0, index1) [all...] |
edit_distance_policy.h | 26 virtual float getSubstitutionCost(const int index0, const int index1) const = 0; 27 virtual float getDeletionCost(const int index0, const int index1) const = 0; 28 virtual float getInsertionCost(const int index0, const int index1) const = 0; 29 virtual bool allowTransposition(const int index0, const int index1) const = 0; 30 virtual float getTranspositionCost(const int index0, const int index1) const = 0;
|
/external/skia/legacy/src/core/ |
SkLineClipper.cpp | 88 int index0, index1; local 91 index0 = 0; 94 index0 = 1; 102 if (tmp[index0].fY < clip.fTop) { 103 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); 110 index0 = 0; 113 index0 = 1; 118 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && 119 tmp[index0].fX < tmp[index1].fX) { 124 if (tmp[index0].fX < clip.fLeft) 153 int index0, index1; local [all...] |
SkDraw.cpp | [all...] |
/external/skia/src/core/ |
SkLineClipper.cpp | 107 int index0, index1; local 110 index0 = 0; 113 index0 = 1; 121 if (tmp[index0].fY < clip.fTop) { 122 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); 129 index0 = 0; 132 index0 = 1; 137 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && 138 tmp[index0].fX < tmp[index1].fX) { 143 if (tmp[index0].fX < clip.fLeft) 201 int index0, index1; local [all...] |
SkDraw.cpp | [all...] |
/external/quake/quake/src/QW/client/ |
d_polyse.c | 186 finalvert_t *pfv, *index0, *index1, *index2; local 196 index0 = pfv + ptri[i].vertindex[0]; 200 if (((index0->v[1]-index1->v[1]) * 201 (index0->v[0]-index2->v[0]) - 202 (index0->v[0]-index1->v[0]) * 203 (index0->v[1]-index2->v[1])) >= 0) 208 d_pcolormap = &((byte *)acolormap)[index0->v[4] & 0xFF00]; 212 D_PolysetRecursiveTriangle(index0->v, index1->v, index2->v); 218 s0 = index0->v[2]; 222 if (index0->flags & ALIAS_ONSEAM 247 finalvert_t *pfv, *index0, *index1, *index2; local [all...] |
d_polysa.s | 1124 // finalvert_t *pfv, *index0, *index1, *index2; 1137 // index0 = pfv + ptri[i].vertindex[0]; 1154 // if (((index0->v[1]-index1->v[1]) * 1155 // (index0->v[0]-index2->v[0]) - 1156 // (index0->v[0]-index1->v[0])*(index0->v[1]-index2->v[1])) >= 0) 1161 // d_pcolormap = &((byte *)acolormap)[index0->v[4] & 0xFF00]; [all...] |
r_alias.c | 59 int index0; member in struct:__anon14209 178 pv0 = &viewpts[aedges[i].index0]; 180 pa0 = &viewaux[aedges[i].index0];
|
/external/quake/quake/src/WinQuake/ |
d_polyse.cpp | 186 finalvert_t *pfv, *index0, *index1, *index2;
local 196 index0 = pfv + ptri[i].vertindex[0];
200 if (((index0->v[1]-index1->v[1]) *
201 (index0->v[0]-index2->v[0]) -
202 (index0->v[0]-index1->v[0]) *
203 (index0->v[1]-index2->v[1])) >= 0)
208 d_pcolormap = &((byte *)acolormap)[index0->v[4] & 0xFF00];
212 D_PolysetRecursiveTriangle(index0->v, index1->v, index2->v);
218 s0 = index0->v[2];
222 if (index0->flags & ALIAS_ONSEAM) 247 finalvert_t *pfv, *index0, *index1, *index2; local [all...] |
d_polysa.s | 1124 // finalvert_t *pfv, *index0, *index1, *index2; 1137 // index0 = pfv + ptri[i].vertindex[0]; 1154 // if (((index0->v[1]-index1->v[1]) * 1155 // (index0->v[0]-index2->v[0]) - 1156 // (index0->v[0]-index1->v[0])*(index0->v[1]-index2->v[1])) >= 0) 1161 // d_pcolormap = &((byte *)acolormap)[index0->v[4] & 0xFF00]; [all...] |
r_alias.cpp | 59 int index0;
member in struct:__anon14609 178 pv0 = &viewpts[aedges[i].index0];
180 pa0 = &viewaux[aedges[i].index0];
|
/frameworks/native/libs/utils/tests/ |
BasicHashtable_test.cpp | 498 ssize_t index0 = find(h1, -1, ComplexKey(0)); local 499 EXPECT_GE(index0, 0); 509 EXPECT_EQ(index0, find(h2, -1, ComplexKey(0))); 520 EXPECT_EQ(index0, find(h3, -1, ComplexKey(0))); 523 h1.editEntryAt(index0).value.v = 42; 526 EXPECT_EQ(42, h1.entryAt(index0).value.v); 527 EXPECT_EQ(0, h2.entryAt(index0).value.v); 528 EXPECT_EQ(0, h3.entryAt(index0).value.v); 544 EXPECT_EQ(index0, find(h1, -1, ComplexKey(0))); 558 h1.removeAt(index0); [all...] |
/packages/inputmethods/LatinIME/native/jni/src/ |
proximity_info_state_utils.cpp | 339 const std::vector<int> *const sampledInputYs, const int index0, const int index1) { 342 if (index0 < 0 || index0 > sampledInputSize - 1) { 348 const int x1 = (*sampledInputXs)[index0]; 349 const int y1 = (*sampledInputYs)[index0]; 623 const int index0, const int index1, const int index2) { 628 if (index0 < 0 || index0 > sampledInputSize - 1) { 637 const float previousDirection = getDirection(sampledInputXs, sampledInputYs, index0, index1); [all...] |
proximity_info_state_utils.h | 67 const std::vector<int> *const sampledInputYs, const int index0, const int index1); 153 const std::vector<int> *const sampledInputYs, const int index0, const int index1, 156 const int sampledInputSize, const std::vector<int> *const lengthCache, const int index0,
|
proximity_info_state.cpp | 275 float ProximityInfoState::getDirection(const int index0, const int index1) const { 277 &mSampledInputXs, &mSampledInputYs, index0, index1);
|
/external/skia/src/effects/gradients/ |
SkLinearGradient.cpp | 137 int index0 = fi + toggle; local 138 int index1 = index0; 142 SkPMColor lerp = SkFastFourByteInterp(cache[index1], cache[index0], remainder); 143 index0 ^= SkGradientShaderBase::kDitherStride32; 145 SkPMColor dlerp = SkFastFourByteInterp(cache[index1], cache[index0], remainder);
|
/external/clang/lib/Driver/ |
ArgList.cpp | 343 unsigned Index0 = MakeIndex(String0); 345 assert(Index0 + 1 == Index1 && "Unexpected non-consecutive indices!"); 347 return Index0;
|
/external/llvm/lib/Option/ |
ArgList.cpp | 320 unsigned Index0 = MakeIndex(String0); 322 assert(Index0 + 1 == Index1 && "Unexpected non-consecutive indices!"); 324 return Index0;
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/ |
omxVCM4P10_DequantTransformResidualFromPairAndAdd_s.s | 85 index0 RN 1 label 237 LDR index0,=0x05040100 ;// Indexes into dVmatrix 239 VDUP dindexRow0,index0
|
/external/libyuv/files/source/ |
format_conversion.cc | 84 int index0 = selector & 0xff; local 88 dst_bayer[0] = src_argb[index0]; 94 dst_bayer[0] = src_argb[index0];
|
/external/harfbuzz_ng/src/hb-ucdn/ |
ucdn.c | 61 index = index0[code >> (SHIFT1+SHIFT2)] << SHIFT1;
|
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/ |
PhysicsCollisionEvent.java | 143 return cp.index0;
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/ |
basic.rb | 105 example 'insert then replace index0' do
|
/external/icu4c/common/ |
ubidi.c | 1718 index0, index1; local [all...] |