Home
last modified time | relevance | path

Searched refs:c2 (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/data/
DCity.kt102 override fun compare(c1: City, c2: City): Int { in compare()
103 var result = mDelegate1.compare(c1, c2) in compare()
106 result = mDelegate2.compare(c1, c2) in compare()
122 override fun compare(c1: City, c2: City): Int { in compare()
124 val utcOffset2 = c2.timeZone.getOffset(now) in compare()
142 override fun compare(c1: City, c2: City): Int { in compare()
143 var result = mDelegate.compare(c1, c2) in compare()
146 result = mNameCollator.compare(c1.phoneticName, c2.phoneticName) in compare()
163 override fun compare(c1: City, c2: City): Int { in compare()
164 var result = c1.index.compareTo(c2.index) in compare()
[all …]
DCity.java138 public int compare(City c1, City c2) { in compare() argument
139 int result = mDelegate1.compare(c1, c2); in compare()
142 result = mDelegate2.compare(c1, c2); in compare()
161 public int compare(City c1, City c2) { in compare() argument
163 final int utcOffset2 = c2.getTimeZone().getOffset(now); in compare()
185 public int compare(City c1, City c2) { in compare() argument
186 int result = mDelegate.compare(c1, c2); in compare()
189 result = mNameCollator.compare(c1.getPhoneticName(), c2.getPhoneticName()); in compare()
210 public int compare(City c1, City c2) { in compare() argument
211 int result = Integer.compare(c1.getIndex(), c2.getIndex()); in compare()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarDatabaseHelperTest.java520 private static boolean compareCursors(Cursor c1, Cursor c2) { in compareCursors() argument
521 if(c1 == null || c2 == null) { in compareCursors()
522 Log.d("CDBT","c1 is " + c1 + " and c2 is " + c2); in compareCursors()
527 if (numColumns != c2.getColumnCount()) { in compareCursors()
528 Log.d("CDBT","c1 has " + numColumns + " columns and c2 has " + c2.getColumnCount()); in compareCursors()
532 if (c1.getCount() != c2.getCount()) { in compareCursors()
533 Log.d("CDBT","c1 has " + c1.getCount() + " rows and c2 has " + c2.getCount()); in compareCursors()
538 c2.moveToPosition(-1); in compareCursors()
539 while(c1.moveToNext() && c2.moveToNext()) { in compareCursors()
541 if(!TextUtils.equals(c1.getString(i),c2.getString(i))) { in compareCursors()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp97 double c0,c1,c2,c3; in db_SolveQuartic() local
122 c2=c/a; in db_SolveQuartic()
128 c3c3through4_min_c2=c3*c3through4-c2; in db_SolveQuartic()
137 db_SolveCubic(c_roots,&nr_c_roots,1.0,-c2,k1,k0); in db_SolveQuartic()
169 double c0,c1,c2,c3; in db_SolveQuarticForced() local
194 c2=c/a; in db_SolveQuarticForced()
200 c3c3through4_min_c2=c3*c3through4-c2; in db_SolveQuarticForced()
209 db_SolveCubic(c_roots,&nr_c_roots,1.0,-c2,k1,k0); in db_SolveQuarticForced()
Ddb_image_homography.cpp44 inline void db_SProjImagePointPointConstraints(double c1[9],double c2[9],double xp[3],double x[3]) in db_SProjImagePointPointConstraints()
58 db_SProjImagePointPointConstraint(c2,2,0,1,xp,x); in db_SProjImagePointPointConstraints()
62 db_SProjImagePointPointConstraint(c2,2,1,0,xp,x); in db_SProjImagePointPointConstraints()
66 db_SProjImagePointPointConstraint(c2,1,2,0,xp,x); in db_SProjImagePointPointConstraints()
70 inline void db_SAffineImagePointPointConstraints(double c1[7],double c2[7],double xp[3],double x[3]) in db_SAffineImagePointPointConstraints()
76 db_Copy6(c2,ct2); c2[6]=ct2[8]; in db_SAffineImagePointPointConstraints()
/packages/apps/Messaging/jni/
DGifTranscoder.cpp438 ColorARGB c2 = *getPixel(renderBuffer, gifIn->SWidth, x * 2 + 1, y * 2); in computeNewColorIndex() local
441 ColorARGB avgColor = computeAverage(c1, c2, c3, c4); in computeNewColorIndex()
447 ColorARGB GifTranscoder::computeAverage(ColorARGB c1, ColorARGB c2, ColorARGB c3, ColorARGB c4) { in computeAverage() argument
448 char avgAlpha = (char)(((int) ALPHA(c1) + (int) ALPHA(c2) + in computeAverage()
450 char avgRed = (char)(((int) RED(c1) + (int) RED(c2) + in computeAverage()
452 char avgGreen = (char)(((int) GREEN(c1) + (int) GREEN(c2) + in computeAverage()
454 char avgBlue = (char)(((int) BLUE(c1) + (int) BLUE(c2) + in computeAverage()
484 int GifTranscoder::computeDistance(ColorARGB c1, ColorARGB c2) { in computeDistance() argument
485 return SQUARE(RED(c1) - RED(c2)) + in computeDistance()
486 SQUARE(GREEN(c1) - GREEN(c2)) + in computeDistance()
[all …]
DGifTranscoder.h85 static ColorARGB computeAverage(ColorARGB c1, ColorARGB c2, ColorARGB c3, ColorARGB c4);
92 static int computeDistance(ColorARGB c1, ColorARGB c2);
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java264 … Cursor c2 = db2.query("sqlite_master", null, null, null, null, null, null)) { in assertUpgrade() argument
265 while (c1.moveToNext() && c2.moveToNext()) { in assertUpgrade()
266 assertEquals(c2.getString(0), c1.getString(0)); in assertUpgrade()
267 assertEquals(c2.getString(1), c1.getString(1)); in assertUpgrade()
268 assertEquals(c2.getString(2), c1.getString(2)); in assertUpgrade()
269 assertEquals(c2.getString(3), c1.getString(3)); in assertUpgrade()
272 final String sql2 = normalize(c2.getString(4)); in assertUpgrade()
277 assertEquals(c1.getCount(), c2.getCount()); in assertUpgrade()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DHex.java104 int c2 = hexString.charAt(j++); in decodeHex() local
105 if (c2 > 'f') { in decodeHex()
110 final byte d2 = DIGITS[c2]; in decodeHex()
/packages/apps/SecureElement/src/com/android/se/internal/
DByteArrayConverter.java137 char c2 = str.charAt(i + 1 + offset); in hexStringToByteArray() local
138 if (!isHexChar(c1) || !isHexChar(c2)) { in hexStringToByteArray()
142 outputBytes[i / 2] = (byte) ((Character.digit(c1, 16) << 4) + Character.digit(c2, 16)); in hexStringToByteArray()
/packages/apps/Gallery2/jni/filters/
Dkmeans.h190 T * c2 = finalCentroids; in runKMeansWithPicks() local
194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks()
196 c1 = c2; in runKMeansWithPicks()
197 c2 = temp; in runKMeansWithPicks()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DInputStreamProvider.java205 Matrix c2 = new Matrix(); in readCroppedBitmap() local
206 c2.setConcat(m4, m3); in readCroppedBitmap()
207 m.setConcat(c2, c1); in readCroppedBitmap()
/packages/apps/TV/common/src/com/android/tv/common/util/
DCollectionUtils.java85 Collection<T> c1, Collection<T> c2, Comparator<T> comparator) { in containsAny() argument
88 for (T iterate : c2) { in containsAny()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dmove3.dot45 c2 [label="{contact:null|}", fillcolor=1]
52 c2 -> o2 [style="dashed", constraint=false, label="AddMember", style=invis]
Dmove2.dot44 c2 [label="{contact:array|}", fillcolor=4]
56 c2 -> { c21; c22; c23 }
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java451 public static boolean compareCursors(Cursor c1, Cursor c2) { in compareCursors() argument
452 if (c1 == null || c2 == null) { in compareCursors()
457 if (numColumns != c2.getColumnCount()) { in compareCursors()
461 if (c1.getCount() != c2.getCount()) { in compareCursors()
466 c2.moveToPosition(-1); in compareCursors()
467 while (c1.moveToNext() && c2.moveToNext()) { in compareCursors()
469 if (!TextUtils.equals(c1.getString(i), c2.getString(i))) { in compareCursors()
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DAssistantTest.java381 ChannelImpressions c2 = mAssistant.getImpressions(key2); in testReadXml() local
382 assertEquals(7, c2.getStreak()); in testReadXml()
383 assertEquals(77, c2.getViews()); in testReadXml()
384 assertEquals(777, c2.getDismissals()); in testReadXml()
/packages/apps/Dialer/java/com/android/incallui/
DConferenceParticipantListAdapter.java441 ContactCacheEntry c2 = p2.getContactCacheEntry(); in sortParticipantList()
445 .getSortName(c2.namePrimary, c2.nameAlternative); in sortParticipantList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardManager.java153 .sorted((c1, c2) -> Double.compare(c2.getRankingScore(), c1.getRankingScore())) in sortCards()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardManager.java161 .sorted((c1, c2) -> Double.compare(c2.getRankingScore(), c1.getRankingScore())) in sortCards()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java3843 Cursor c2 = null; in deleteMatchingColors() local
3851 c2 = mDb.query(Tables.CALENDARS, ID_ONLY_PROJECTION, in deleteMatchingColors()
3855 if (c2.getCount() != 0) { in deleteMatchingColors()
3857 + ". Referenced by " + c2.getCount() + " calendars."); in deleteMatchingColors()
3861 c2 = query(Events.CONTENT_URI, ID_ONLY_PROJECTION, SQL_WHERE_EVENT_COLOR, in deleteMatchingColors()
3863 if (c2.getCount() != 0) { in deleteMatchingColors()
3865 + ". Referenced by " + c2.getCount() + " events."); in deleteMatchingColors()
3870 if (c2 != null) { in deleteMatchingColors()
3871 c2.close(); in deleteMatchingColors()
/packages/modules/DnsResolver/
Dres_cache.cpp551 int c1, c2; in _dnsPacket_isEqualDomainName() local
558 c2 = *p2++; in _dnsPacket_isEqualDomainName()
559 if (c1 != c2) break; in _dnsPacket_isEqualDomainName()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1456 Cursor c2 = null; in sanityCheck() local
1460 c2 = db.query("audio_meta", new String[] {"count(distinct _data)"}, in sanityCheck()
1463 c2.moveToFirst(); in sanityCheck()
1465 int num2 = c2.getInt(0); in sanityCheck()
1474 IoUtils.closeQuietly(c2); in sanityCheck()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java6297 long c2 = id = RawContactUtil.createRawContact(mResolver, mAccount, RawContacts.SOURCE_ID, in testContentEntityIterator() local
6334 assertEquals(c2, (long) entity.getEntityValues().getAsLong(RawContacts._ID)); in testContentEntityIterator()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar1231 …��+�x$�X��%I��ߍH���'aQ�I���ԕ� ��o5�U����Opc@�c��$q�T&�?yTpßʕ0�g ��dܪc2�����J�P3�v��Nٍ�9��…
1749 '��C4�2�1��}}����*��2r0�c@�$�c2��<*��>՜�w��r=Gң�Q�͘����NK�3�j��.FB����!��d��S�c[A�z��…
1929 …'��W1��uS~2|�@s]���H����[f��}*x��Ryr�A?)#�Q�r{�%�9�;���v�-�T��&X���c2�r�h<qV���@��Vs\���…
2172 ��c2&M�=�ԏ#��'<g<
2342 …K$��_� � ?����O�ې����'�P�S!b[��9� �3�g�V��%�����pB��T�e�#.N��m�T� ���}j�c2`�P�8^��S]2�ư3͆���<T…
3160 H��9B��y�ˌ7�q��߲W��Pɣ�E�I�� `����z�Z֓�L���G���-������;���� i*mI��)����>������Z�~��c2�"�…
3745 …�[� ��� �A����~�6~�2� g$�?����������B����?�VY�|�z�A>�5��|(���l�-c2�Rv��n��S�C���7��8#…
4321 …�3GJ)ܼ�ؐq�q����Q%��t��ݾ��G��L��zW�߳ a�G4rb�3�!� ��Ns������/�c�����j9@�c2��2p:�z�9���s1��1�L�…
5133 ��K63��=}���c2�!�}O�p��t�;.�Td���>ԭ��w=#I��膆�w'�ϫ[ƑG�H�A,22H�{��w�$�e�c--�K�����=륏�f+!
5470 ��ց\� ���"�BLe����c2��F����5T0ef��;w�ƙ"�ə%O9�M+8u���}i�Y&��9��4e��rx�Z��,��0;�N1۵,�'�…
[all …]

12