/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | nj_str.c | 64 NJ_INT16 nj_strcmp(NJ_CHAR *s1, NJ_CHAR *s2) { in nj_strcmp() argument 66 while (*s1 == *s2) { in nj_strcmp() 71 s2++; in nj_strcmp() 73 return NJ_CHAR_DIFF(s1, s2); in nj_strcmp() 76 NJ_INT16 nj_strncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_strncmp() argument 79 if (*s1 != *s2++) { in nj_strncmp() 80 return NJ_CHAR_DIFF(s1, (s2 - 1)); in nj_strncmp() 102 NJ_INT16 nj_charncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_charncmp() argument 108 if (*s1 != *s2) { in nj_charncmp() 109 return NJ_CHAR_DIFF(s1, s2); in nj_charncmp() [all …]
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityUnitTests.java | 370 String s2; in testAreStringsEqual() local 373 s2 = s1; in testAreStringsEqual() 374 assertTrue(Utility.areStringsEqual(s1, s2)); in testAreStringsEqual() 376 s2 = new String("Foo"); in testAreStringsEqual() 377 assertTrue(Utility.areStringsEqual(s1, s2)); in testAreStringsEqual() 379 s2 = "Bar"; in testAreStringsEqual() 380 assertFalse(Utility.areStringsEqual(s1, s2)); in testAreStringsEqual() 382 s2 = null; in testAreStringsEqual() 383 assertFalse(Utility.areStringsEqual(s1, s2)); in testAreStringsEqual() 386 s2 = "Bar"; in testAreStringsEqual() [all …]
|
D | SSLUtilsTest.java | 80 String s2 = randomString(random); in testSchemeNamesAreMoreOrLessUnique() local 83 SSLUtils.escapeForSchemeName(s2)); in testSchemeNamesAreMoreOrLessUnique()
|
/packages/inputmethods/PinyinIME/jni/share/ |
D | dictbuilder.cpp | 42 const SingleCharItem *s1, *s2; in cmp_scis_hz_splid_freq() local 44 s2 = static_cast<const SingleCharItem*>(p2); in cmp_scis_hz_splid_freq() 46 if (s1->hz < s2->hz) in cmp_scis_hz_splid_freq() 48 if (s1->hz > s2->hz) in cmp_scis_hz_splid_freq() 51 if (s1->splid.half_splid < s2->splid.half_splid) in cmp_scis_hz_splid_freq() 53 if (s1->splid.half_splid > s2->splid.half_splid) in cmp_scis_hz_splid_freq() 56 if (s1->splid.full_splid < s2->splid.full_splid) in cmp_scis_hz_splid_freq() 58 if (s1->splid.full_splid > s2->splid.full_splid) in cmp_scis_hz_splid_freq() 61 if (s1->freq > s2->freq) in cmp_scis_hz_splid_freq() 63 if (s1->freq < s2->freq) in cmp_scis_hz_splid_freq() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterDraw.java | 203 float s2 = size / 2; in draw() local 204 float step = s2 / 8; in draw() 208 canvas.drawBitmap(brush, mPosition[0] - s2, mPosition[1] - s2, paint); in draw()
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 632 String s2 = Address.toString(Address.unpack(packed)); in brokentestUnpackToString() local 633 assertEquals(s2, s2, s1); in brokentestUnpackToString() 642 String s2 = Address.pack(Address.parse(MULTI_ADDRESSES_LIST)); in testParseAndPack() local 643 assertEquals(s2, s1); in testParseAndPack()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 78 SitePointer s1, s2, s3; in build() local 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 114 if (ccw(s1, s3, s2)) { in build() 121 if (ccw(s1, s2, s3)) { in build()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 78 SitePointer s1, s2, s3; in build() local 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 114 if (ccw(s1, s3, s2)) { in build() 121 if (ccw(s1, s2, s3)) { in build()
|
/packages/apps/Camera2/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 78 SitePointer s1, s2, s3; in build() local 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 114 if (ccw(s1, s3, s2)) { in build() 121 if (ccw(s1, s2, s3)) { in build()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
D | nj_ext.h | 148 extern NJ_INT16 nj_strcmp(NJ_CHAR *s1, NJ_CHAR *s2); 149 extern NJ_INT16 nj_strncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n); 151 extern NJ_INT16 nj_charncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
D | ExternalAccountTypeTest.java | 225 private static int findCommonPrefixEnd(String s1, String s2) { in findCommonPrefixEnd() argument 229 final boolean s2End = (s2.length() <= i); in findCommonPrefixEnd() 233 if (s1.charAt(i) != s2.charAt(i)) { in findCommonPrefixEnd()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalSource.java | 251 String s2 = p2.path.getSuffix(); in compare() local 253 int len2 = s2.length(); in compare() 259 return s1.compareTo(s2); in compare()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
D | NameDistanceTest.java | 71 byte[] s2 = Hex.decodeHex(NameNormalizer.normalize(name2)); in assertFloat() 73 float actual = mNameDistance.getDistance(s1, s2); in assertFloat()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameLookupBuilder.java | 116 public int compare(String s1, String s2) { in insertNameLookup() 117 return s2.length() - s1.length(); in insertNameLookup()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 1069 public static boolean areStringsEqual(String s1, String s2) { 1070 return (s1 != null && s1.equals(s2)) || (s1 == null && s2 == null);
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | StringUtil.java | 2324 @Deprecated public static int compareToIgnoreCase(String s1, String s2, in compareToIgnoreCase() argument 2326 if (s1 == s2) { in compareToIgnoreCase() 2332 if (s2 == null) { in compareToIgnoreCase() 2335 return s1.compareToIgnoreCase(s2); in compareToIgnoreCase()
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
D | StringUtil.java | 2323 @Deprecated public static int compareToIgnoreCase(String s1, String s2, in compareToIgnoreCase() argument 2325 if (s1 == s2) { in compareToIgnoreCase() 2331 if (s2 == null) { in compareToIgnoreCase() 2334 return s1.compareToIgnoreCase(s2); in compareToIgnoreCase()
|