/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | City.java | 138 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 162 final int utcOffset1 = c1.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/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_poly.cpp | 97 double c0,c1,c2,c3; in db_SolveQuartic() local 123 c1=d/a; in db_SolveQuartic() 131 k0=min4_c0*c3c3through4_min_c2-c1*c1; in db_SolveQuartic() 132 k1=c1*c3+min4_c0; in db_SolveQuartic() 145 mn=lz*c3through4-c1/2.0; in db_SolveQuartic() 169 double c0,c1,c2,c3; in db_SolveQuarticForced() local 195 c1=d/a; in db_SolveQuarticForced() 203 k0=min4_c0*c3c3through4_min_c2-c1*c1; in db_SolveQuarticForced() 204 k1=c1*c3+min4_c0; in db_SolveQuarticForced() 217 mn=lz*c3through4-c1/2.0; in db_SolveQuarticForced()
|
D | db_image_homography.cpp | 44 inline void db_SProjImagePointPointConstraints(double c1[9],double c2[9],double xp[3],double x[3]) in db_SProjImagePointPointConstraints() 57 db_SProjImagePointPointConstraint(c1,1,0,2,xp,x); in db_SProjImagePointPointConstraints() 61 db_SProjImagePointPointConstraint(c1,0,1,2,xp,x); in db_SProjImagePointPointConstraints() 65 db_SProjImagePointPointConstraint(c1,0,2,1,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() 75 db_Copy6(c1,ct1); c1[6]=ct1[8]; in db_SAffineImagePointPointConstraints()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageGrad.java | 139 float[] c1 = new float[] { mGradRep.getPoint1X(), mGradRep.getPoint1Y() }; in setRepresentation() local 142 if (c1[0] == -1) { in setRepresentation() 149 c1[0] = cx; in setRepresentation() 150 c1[1] = cy-rx; in setRepresentation() 151 mToScr.mapPoints(c1); in setRepresentation() 153 mEllipse.setPoint1(c1[0], c1[1]); in setRepresentation() 161 mToScr.mapPoints(c1); in setRepresentation() 163 mEllipse.setPoint1(c1[0], c1[1]); in setRepresentation()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelperTest.java | 520 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() 526 int numColumns = c1.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() 537 c1.moveToPosition(-1); in compareCursors() 539 while(c1.moveToNext() && c2.moveToNext()) { in compareCursors() 541 if(!TextUtils.equals(c1.getString(i),c2.getString(i))) { in compareCursors() 542 Log.d("CDBT", c1.getString(i) + "\n" + c2.getString(i)); in compareCursors()
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | UnicodeEscaper.java | 391 char c1 = seq.charAt(index++); in codePointAt() local 392 if (c1 < Character.MIN_HIGH_SURROGATE || in codePointAt() 393 c1 > Character.MAX_LOW_SURROGATE) { in codePointAt() 395 return c1; in codePointAt() 396 } else if (c1 <= Character.MAX_HIGH_SURROGATE) { in codePointAt() 399 return -c1; in codePointAt() 404 return Character.toCodePoint(c1, c2); in codePointAt() 411 "Unexpected low surrogate character '" + c1 + in codePointAt() 412 "' with value " + (int) c1 + " at index " + (index - 1)); in codePointAt()
|
/packages/apps/Messaging/jni/ |
D | GifTranscoder.cpp | 437 ColorARGB c1 = *getPixel(renderBuffer, gifIn->SWidth, x * 2, 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 …]
|
D | GifTranscoder.h | 85 static ColorARGB computeAverage(ColorARGB c1, ColorARGB c2, ColorARGB c3, ColorARGB c4); 92 static int computeDistance(ColorARGB c1, ColorARGB c2);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
D | damerau_levenshtein_edit_distance_policy.h | 35 const int c1 = CharUtils::toBaseLowerCase(mString1[index1]); in getSubstitutionCost() local 36 return (c0 == c1) ? 0.0f : 1.0f; in getSubstitutionCost() 49 const int c1 = CharUtils::toBaseLowerCase(mString1[index1]); in allowTransposition() local 51 && c1 == CharUtils::toBaseLowerCase(mString0[index0 - 1])) { in allowTransposition()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | itoa.h | 188 const uint32_t c1 = v1 % 10000; in u64toa() local 193 const uint32_t d7 = (c1 / 100) << 1; in u64toa() 194 const uint32_t d8 = (c1 % 100) << 1; in u64toa() 262 const uint32_t c1 = v1 % 10000; in u64toa() local 267 const uint32_t d7 = (c1 / 100) << 1; in u64toa() 268 const uint32_t d8 = (c1 % 100) << 1; in u64toa()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | PerNameExecutorTest.java | 78 MockTask c1 = addTask("c" , 1); in testCancelPendingTasks() local 80 assertRanNever("step 2, new tasks", a3, c1, a2); in testCancelPendingTasks() 82 assertRanOnce("step 3", a1, b1, a3, c1); in testCancelPendingTasks() 85 assertRanOnce("step 4", a1, b1, a3, c1); in testCancelPendingTasks()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 263 try (Cursor c1 = db.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() 271 final String sql1 = normalize(c1.getString(4)); in assertUpgrade() 277 assertEquals(c1.getCount(), c2.getCount()); in assertUpgrade()
|
/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 189 T * c1 = initialPicks; in runKMeansWithPicks() local 194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks() 195 temp = c1; in runKMeansWithPicks() 196 c1 = c2; in runKMeansWithPicks() 202 set<T, T>(finalCentroids, c1, dimension); in runKMeansWithPicks()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | Hex.java | 92 int c1 = hexString.charAt(j++); in decodeHex() local 93 if (c1 > 'f') { in decodeHex() 98 final byte d1 = DIGITS[c1]; in decodeHex()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/ |
D | move3.dot | 22 c1 [label="{contact:array|}", fillcolor=4] 29 c1 -> o1 [style="dashed", constraint=false, label="AddMember"] 32 c1 -> { c11; c12; c13 }
|
D | move2.dot | 21 c1 [label="{contact:array|}", fillcolor=4] 28 c1 -> o1 [style="dashed", label="AddMember", constraint=false] 31 c1 -> { c11; c12; c13 }
|
/packages/apps/SecureElement/src/com/android/se/internal/ |
D | ByteArrayConverter.java | 136 char c1 = str.charAt(i + 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/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | Widgets.java | 48 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung forward")) { in flingForward() argument 67 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung back")) { in flingBackward() argument
|
D | AllApps.java | 104 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("scrolled")) { in getAppIcon() argument 151 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("scrolled up")) { in scrollBackToBeginning() argument
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 203 Matrix c1 = new Matrix(); in readCroppedBitmap() local 204 c1.setConcat(m2, m1); in readCroppedBitmap() 207 m.setConcat(c2, c1); in readCroppedBitmap()
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
D | UnitBezier.java | 144 public CubicBezierFn(float c0, float c1) { in CubicBezierFn() argument 146 b = 3.0f * (c1 - c0) - c; in CubicBezierFn()
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | CollectionUtils.java | 85 Collection<T> c1, Collection<T> c2, Comparator<T> comparator) { in containsAny() argument 86 List<T> contains = new ArrayList<>(c1); in containsAny()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | NameDistance.java | 112 byte c1 = array1[i]; in getDistance() 125 if (!mMatchFlags2[j] && c1 == array2[j]) { in getDistance()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.java | 451 public static boolean compareCursors(Cursor c1, Cursor c2) { in compareCursors() argument 452 if (c1 == null || c2 == null) { in compareCursors() 456 int numColumns = c1.getColumnCount(); in compareCursors() 461 if (c1.getCount() != c2.getCount()) { in compareCursors() 465 c1.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/ |
D | AssistantTest.java | 371 ChannelImpressions c1 = mAssistant.getImpressions(key1); in testReadXml() local 372 assertEquals(2, c1.getStreak()); in testReadXml() 373 assertEquals(5, c1.getViews()); in testReadXml() 374 assertEquals(9, c1.getDismissals()); in testReadXml()
|