Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 17 of 17) sorted by relevance

/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dnj_str.c64 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/
DUtilityUnitTests.java370 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 …]
DSSLUtilsTest.java80 String s2 = randomString(random); in testSchemeNamesAreMoreOrLessUnique() local
83 SSLUtils.escapeForSchemeName(s2)); in testSchemeNamesAreMoreOrLessUnique()
/packages/inputmethods/PinyinIME/jni/share/
Ddictbuilder.cpp42 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/
DImageFilterDraw.java203 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/
DAddressUnitTests.java632 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/
DDelaunay.cpp78 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/
DDelaunay.cpp78 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/
DDelaunay.cpp78 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/
Dnj_ext.h148 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/
DExternalAccountTypeTest.java225 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/
DLocalSource.java251 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/
DNameDistanceTest.java71 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/
DNameLookupBuilder.java116 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/
DUtility.java1069 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/
DStringUtil.java2324 @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/
DStringUtil.java2323 @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()