/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
NameDistance.java | 97 int length2 = array2.length; local 98 if (length2 > mMaxLength) { 99 length2 = mMaxLength; 103 Arrays.fill(mMatchFlags2, 0, length2, false); 105 int range = length2 / 2 - 1; 120 if (to > length2) { 121 to = length2; 152 float jaro = ((m / length1 + m / length2 + (m - (transpositions / 2)) / m)) / 3; 167 return jaro + Math.min(0.1f, 1f / length2) * prefix * (1 - jaro);
|
/libcore/luni/src/main/native/ |
cbigint.h | 88 void multiplyHighPrecision(uint64_t* arg1, int32_t length1, uint64_t* arg2, int32_t length2, 93 int32_t compareHighPrecision(uint64_t* arg1, int32_t length1, uint64_t* arg2, int32_t length2); 95 void subtractHighPrecision(uint64_t* arg1, int32_t length1, uint64_t* arg2, int32_t length2); 97 int32_t addHighPrecision(uint64_t* arg1, int32_t length1, uint64_t* arg2, int32_t length2);
|
cbigint.cpp | 130 addHighPrecision (uint64_t * arg1, int32_t length1, uint64_t * arg2, int32_t length2) 141 if (length1 == 0 || length2 == 0) 145 else if (length1 < length2) 147 length2 = length1; 163 while (++index < length2); 175 subtractHighPrecision (uint64_t * arg1, int32_t length1, uint64_t * arg2, int32_t length2) 183 while (length2 > 0 && arg2[length2 - 1] == 0) 184 --length2; 186 addHighPrecision (arg1, length1, arg2, length2); [all...] |
/external/icu4c/common/ |
locdispnames.cpp | 436 int32_t length, length2, length3 = 0; local 524 length2=uloc_getDisplayScript(locale, displayLocale, 528 length2=uloc_getDisplayScript(locale, displayLocale, 532 hasScript= length2>0; 533 length+=length2; 550 length2=uloc_getDisplayCountry(locale, displayLocale, 554 length2=uloc_getDisplayCountry(locale, displayLocale, 558 hasCountry= length2>0; 559 length+=length2; 576 length2=uloc_getDisplayVariant(locale, displayLocale [all...] |
unormcmp.cpp | 144 const UChar *s2, int32_t length2, 204 if(length2==-1) { 207 limit2=s2+length2; 539 const UChar *s2, int32_t length2, 546 if(s1==0 || length1<-1 || s2==0 || length2<-1) { 600 UnicodeString str2(length2<0, s2, length2); 628 length2=fcd2.length(); 633 return unorm_cmpEquivFold(s1, length1, s2, length2, options, pErrorCode);
|
ustr_imp.h | 54 const UChar *s2, int32_t length2, 65 const UChar *s2, int32_t length2,
|
ustring.c | 684 const UChar *s2, int32_t length2, 694 if(length1<0 && length2<0) { 716 /* special handling for strncmp, assume length1==length2>=0 but also check for NUL */ 750 if(length2<0) { 751 length2=u_strlen(s2); 754 /* limit1=start1+min(lenght1, length2) */ 755 if(length1<length2) { 758 } else if(length1==length2) { 761 } else /* length1>length2 */ { 763 limit1=start1+length2; [all...] |
ustrcase.c | 653 const UChar *s2, int32_t length2, 697 if(length2==-1) { 700 limit2=s2+length2; 952 const UChar *s2, int32_t length2, 959 if(s1==NULL || length1<-1 || s2==NULL || length2<-1) { 963 return u_strcmpFold(s1, length1, s2, length2,
|
/external/chromium/third_party/icu/source/i18n/ |
ucol_wgt.h | 29 int32_t length2; member in struct:WeightRange
|
ucol_wgt.c | 113 length=range->length2+1; 117 range->length2=length; 353 /* set the length2 and count2 fields */ 355 ranges[i].length2=ranges[i].length; 362 minLength=ranges[0].length2; 367 lengthCounts[ranges[i].length2]+=ranges[i].count2; 412 ranges[1].length2=minLength; 429 /* set the bytes in the end weight at length+1..length2 to maxByte */ 454 for(i=0; ranges[i].length2==minLength; ++i) { 469 printf("ranges[%ld] .start=0x%08lx .end=0x%08lx .length=%ld .length2=%ld .count=%ld .count2=%lu\n" [all...] |
uspoof.cpp | 413 const UChar *s2, int32_t length2, 444 int32_t s2ScriptCount = This->scriptScan(s2, length2, t, *status); 452 s2Skeleton = getSkeleton(sc, flagsForSkeleton, s2, length2, s2SkeletonBuf, 488 s2Skeleton = getSkeleton(sc, flagsForSkeleton, s2, length2, s2SkeletonBuf, 536 const char *s2, int32_t length2, 550 UChar *s2U = convertFromUTF8(s2Buf, USPOOF_STACK_BUFFER_SIZE, &lengthS2U, s2, length2, status); 573 int32_t length2 = s2.length(); local 575 int32_t results = uspoof_areConfusable(sc, u1, length1, u2, length2, status);
|
/external/icu4c/i18n/ |
ucol_wgt.h | 29 int32_t length2; member in struct:WeightRange
|
ucol_wgt.cpp | 113 length=range->length2+1; 117 range->length2=length; 353 /* set the length2 and count2 fields */ 355 ranges[i].length2=ranges[i].length; 362 minLength=ranges[0].length2; 367 lengthCounts[ranges[i].length2]+=ranges[i].count2; 412 ranges[1].length2=minLength; 429 /* set the bytes in the end weight at length+1..length2 to maxByte */ 454 for(i=0; ranges[i].length2==minLength; ++i) { 469 printf("ranges[%ld] .start=0x%08lx .end=0x%08lx .length=%ld .length2=%ld .count=%ld .count2=%lu\n" [all...] |
uspoof.cpp | 413 const UChar *s2, int32_t length2, 444 int32_t s2ScriptCount = This->scriptScan(s2, length2, t, *status); 452 s2Skeleton = getSkeleton(sc, flagsForSkeleton, s2, length2, s2SkeletonBuf, 488 s2Skeleton = getSkeleton(sc, flagsForSkeleton, s2, length2, s2SkeletonBuf, 536 const char *s2, int32_t length2, 550 UChar *s2U = convertFromUTF8(s2Buf, USPOOF_STACK_BUFFER_SIZE, &lengthS2U, s2, length2, status); 573 int32_t length2 = s2.length(); local 575 int32_t results = uspoof_areConfusable(sc, u1, length1, u2, length2, status);
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldPriorityQueueTest.java | 175 int length2 = object2.length(); local 176 if (length1 > length2) { 178 } else if (length1 == length2) {
|
/libcore/luni/src/main/java/java/util/ |
BitSet.java | 153 int length1 = this.actualArrayLength, length2 = ((BitSet) obj).actualArrayLength; local 155 && length1 != length2) { 160 if (length1 <= length2) { 166 for (int i = length1; i < length2; i++) { 172 for (int i = 0; i < length2; i++) { 177 for (int i = length2; i < length1; i++) { 613 int length1 = actualArrayLength, length2 = bs.actualArrayLength; local 615 if (length1 <= length2) { 622 for (int i = 0; i < length2; i++) { 646 int length1 = actualArrayLength, length2 = bs.actualArrayLength local [all...] |
/external/chromium/third_party/icu/source/common/ |
unormcmp.cpp | 140 const UChar *s2, int32_t length2, 199 if(length2==-1) { 202 limit2=s2+length2; 534 const UChar *s2, int32_t length2, 548 if(s1==0 || length1<-1 || s2==0 || length2<-1) { 604 isFCD2= UNORM_YES==unorm_internalQuickCheck(s2, length2, mode, TRUE, nx, pErrorCode); 648 s2, length2, 662 s2, length2, 671 length2=_len2; 676 result=unorm_cmpEquivFold(s1, length1, s2, length2, options, pErrorCode) [all...] |
ustr_imp.h | 37 const UChar *s2, int32_t length2, 48 const UChar *s2, int32_t length2,
|
ustring.c | 684 const UChar *s2, int32_t length2, 694 if(length1<0 && length2<0) { 716 /* special handling for strncmp, assume length1==length2>=0 but also check for NUL */ 750 if(length2<0) { 751 length2=u_strlen(s2); 754 /* limit1=start1+min(lenght1, length2) */ 755 if(length1<length2) { 758 } else if(length1==length2) { 761 } else /* length1>length2 */ { 763 limit1=start1+length2; [all...] |
ustrcase.c | 654 const UChar *s2, int32_t length2, 698 if(length2==-1) { 701 limit2=s2+length2; 953 const UChar *s2, int32_t length2, 960 if(s1==NULL || length1<-1 || s2==NULL || length2<-1) { 964 return u_strcmpFold(s1, length1, s2, length2,
|
/external/chromium/base/ |
md5.h | 25 // MD5Update(&ctx, data2, length2);
|
/external/chromium/third_party/icu/source/test/cintltst/ |
trie2test.c | 547 int32_t length1, length2, length3; local 607 length2=utrie2_serialize(trie, storage, sizeof(storage), &errorCode); 616 if(length1!=length2) { 633 uprv_memset(swapped, 0x55, length2); 637 if(U_FAILURE(errorCode) || swappedLength!=length2) { 644 swappedLength=utrie2_swap(ds, storage, length2, swapped, &errorCode); 646 if(U_FAILURE(errorCode) || swappedLength!=length2) { 653 uprv_memset(storage, 0xaa, length2); 657 if(U_FAILURE(errorCode) || swappedLength!=length2) { 664 swappedLength=utrie2_swap(ds, swapped, length2, storage, &errorCode) [all...] |
udatatst.c | 1343 int32_t length, dataLength, length2, headerLength; local [all...] |
/external/icu4c/test/cintltst/ |
trie2test.c | 547 int32_t length1, length2, length3; local 607 length2=utrie2_serialize(trie, storage, sizeof(storage), &errorCode); 616 if(length1!=length2) { 633 uprv_memset(swapped, 0x55, length2); 637 if(U_FAILURE(errorCode) || swappedLength!=length2) { 644 swappedLength=utrie2_swap(ds, storage, length2, swapped, &errorCode); 646 if(U_FAILURE(errorCode) || swappedLength!=length2) { 653 uprv_memset(storage, 0xaa, length2); 657 if(U_FAILURE(errorCode) || swappedLength!=length2) { 664 swappedLength=utrie2_swap(ds, swapped, length2, storage, &errorCode) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
InflaterOutputStreamTest.java | 179 int length2 = bestDeflater.deflate(compressedBytes,length1,compressedBytes.length-length1); local 194 for (int i = length1; i < length2*2; i++) {
|