/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaTests.java | 166 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNone() local 167 source.buildDiffWrapper(diff); in testEntityDiffNone() 169 assertTrue("Created changes when none needed", (diff.size() == 0)); in testEntityDiffNone() 184 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNoneInsert() local 185 source.buildAssertWrapper(diff); in testEntityDiffNoneInsert() 186 source.buildDiffWrapper(diff); in testEntityDiffNoneInsert() 187 assertEquals("Unexpected operations", 4, diff.size()); in testEntityDiffNoneInsert() 189 final CPOWrapper cpoWrapper = diff.get(0); in testEntityDiffNoneInsert() 193 final CPOWrapper cpoWrapper = diff.get(1); in testEntityDiffNoneInsert() 199 final CPOWrapper cpoWrapper = diff.get(2); in testEntityDiffNoneInsert() [all …]
|
D | RawContactModifierTests.java | 384 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testTrimEmptySingle() local 385 state.buildDiffWrapper(diff); in testTrimEmptySingle() 386 assertEquals("Unexpected operations", 3, diff.size()); in testTrimEmptySingle() 388 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptySingle() 394 final CPOWrapper cpoWrapper = diff.get(1); in testTrimEmptySingle() 400 final CPOWrapper cpoWrapper = diff.get(2); in testTrimEmptySingle() 408 diff.clear(); in testTrimEmptySingle() 409 state.buildDiffWrapper(diff); in testTrimEmptySingle() 410 assertEquals("Unexpected operations", 1, diff.size()); in testTrimEmptySingle() 412 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptySingle() [all …]
|
D | RawContactDeltaListTests.java | 173 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in assertDiffPattern() local 174 delta.buildAssertWrapper(diff); in assertDiffPattern() 175 delta.buildDiffWrapper(diff); in assertDiffPattern() 176 assertDiffPattern(diff, pattern); in assertDiffPattern() 183 static void assertDiffPattern(ArrayList<CPOWrapper> diff, CPOWrapper... pattern) { in assertDiffPattern() argument 184 assertEquals("Unexpected operations", pattern.length, diff.size()); in assertDiffPattern() 187 final CPOWrapper found = diff.get(i); in assertDiffPattern() 298 static int countExceptionUpdates(ArrayList<CPOWrapper> diff) { in countExceptionUpdates() argument 300 for (CPOWrapper cpoWrapper : diff) { in countExceptionUpdates() 315 final ArrayList<CPOWrapper> diff = set.buildDiffWrapper(); in testInsert() local [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | RotateImageView.java | 77 int diff = mTargetDegree - mCurrentDegree; in setOrientation() local 78 diff = diff >= 0 ? diff : 360 + diff; // make it in range [0, 359] in setOrientation() 82 diff = diff > 180 ? diff - 360 : diff; in setOrientation() 84 mClockwise = diff >= 0; in setOrientation() 86 + Math.abs(diff) * 1000 / ANIMATION_SPEED; in setOrientation()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/ |
D | FlingAnimationUtils.java | 126 float diff = Math.abs(endValue - currValue); in getProperties() local 128 float durationSeconds = LINEAR_OUT_SLOW_IN_START_GRADIENT * diff / velAbs; in getProperties() 136 new VelocityInterpolator(durationSeconds, velAbs, diff); in getProperties() 198 float diff = Math.abs(endValue - currValue); in getDismissingProperties() local 204 float durationSeconds = startGradient * diff / velAbs; in getDismissingProperties() 213 new VelocityInterpolator(durationSeconds, velAbs, diff); in getDismissingProperties() 273 private float diff; field in FlingAnimationUtils.VelocityInterpolator 275 private VelocityInterpolator(float durationSeconds, float velocity, float diff) { in VelocityInterpolator() argument 278 this.diff = diff; in VelocityInterpolator() 284 return time * velocity / diff; in getInterpolation()
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountComparator.java | 50 int diff = a.name.compareToIgnoreCase(b.name); in compare() local 51 if (diff != 0) { in compare() 52 return diff; in compare() 54 diff = a.type.compareToIgnoreCase(b.type); in compare() 55 if (diff != 0) { in compare() 56 return diff; in compare()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameNormalizer.java | 89 int diff = getComplexityCollator().compare(clean1, clean2); in compareComplexity() local 90 if (diff != 0) { in compareComplexity() 91 return diff; in compareComplexity() 96 diff = -clean1.compareTo(clean2); in compareComplexity() 97 if (diff != 0) { in compareComplexity() 98 return diff; in compareComplexity()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 163 long now = -1, diff = -1; in timeWritingDictToFile() local 173 diff = System.currentTimeMillis() - now; in timeWritingDictToFile() 180 return diff; in timeWritingDictToFile() 215 long now, diff = -1; in timeReadingAndCheckDict() local 223 diff = System.currentTimeMillis() - now; in timeReadingAndCheckDict() 231 return diff; in timeReadingAndCheckDict() 413 long now = -1, diff = -1; 419 diff = System.currentTimeMillis() - now; 427 return diff; 509 long diff = -1; [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | CustomContactListFilterActivity.java | 442 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); 444 account.buildDiff(diff); 446 return diff; 537 public void buildDiff(ArrayList<ContentProviderOperation> diff) { 540 if (oper != null) diff.add(oper); 544 if (oper != null) diff.add(oper); 843 final ArrayList<ContentProviderOperation> diff = mAdapter.mAccounts.buildDiff(); 844 if (diff.isEmpty()) { 859 final ArrayList<ContentProviderOperation> diff = mAdapter.mAccounts.buildDiff(); 860 if (diff.isEmpty()) { [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Utils.java | 223 float diff = target - source; in interpolateAngle() local 224 if (diff < 0) diff += 360f; in interpolateAngle() 225 if (diff > 180) diff -= 360f; in interpolateAngle() 227 float result = source + diff * progress; in interpolateAngle()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetsDiffReporter.java | 74 int diff = comparePackageName(orgRowEntry, newRowEntry, comparator); in process() local 77 diff, orgRowEntry != null? orgRowEntry.toString() : null, in process() 81 if (diff < 0) { in process() 90 } else if (diff > 0) { in process()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarViewAdapter.java | 377 int diff = dayOfWeek - firstDayOfWeek; in buildWeekDate() local 378 if (diff != 0) { in buildWeekDate() 379 if (diff < 0) { in buildWeekDate() 380 diff += 7; in buildWeekDate() 382 t.monthDay -= diff; in buildWeekDate()
|
D | DayFragment.java | 178 int diff = currentView.compareToVisibleTimeRange(goToTime); in goTo() local 180 if (diff == 0) { in goTo() 185 if (diff > 0) { in goTo()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | IngestObjectInfo.java | 61 long diff = getDateCreated() - another.getDateCreated(); in compareTo() local 62 if (diff < 0) { in compareTo() 64 } else if (diff == 0) { in compareTo()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | CountedDataInputStream.java | 80 long diff = target - cur; in skipTo() local 81 Assert.checkArgument(diff >= 0); in skipTo() 82 skipOrThrow(diff); in skipTo()
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | CountedDataInputStream.java | 77 long diff = target - cur; in skipTo() local 78 assert(diff >= 0); in skipTo() 79 skipOrThrow(diff); in skipTo()
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | CountedDataInputStream.java | 79 long diff = target - cur; in skipTo() local 80 assert(diff >= 0); in skipTo() 81 skipOrThrow(diff); in skipTo()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | CountedDataInputStream.java | 77 long diff = target - cur; in skipTo() local 78 assert(diff >= 0); in skipTo() 79 skipOrThrow(diff); in skipTo()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | BaseRecentsActivity.java | 68 int diff = newConfig.diff(mOldConfig); in onConfigurationChanged() local 69 if ((diff & (CONFIG_ORIENTATION | CONFIG_SCREEN_SIZE)) != 0) { in onConfigurationChanged()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 203 int diff = a.name.compareTo(b.name); 204 if (diff != 0) { 205 return diff; 207 diff = a.type.compareTo(b.type); 208 if (diff != 0) { 209 return diff;
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeekView.java | 265 int diff = time.weekDay - mWeekStart; in setWeekParams() local 266 if (diff < 0) { in setWeekParams() 267 diff += 7; in setWeekParams() 269 time.monthDay -= diff; in setWeekParams()
|
/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 75 N diff = (N) val1[x] - (N) val2[x]; in euclideanDist() local 76 sum += diff * diff; in euclideanDist()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/ |
D | TunerTsStreamer.java | 123 long diff = in read() local 126 Log.w(TAG, "Demux position jump by overwritten buffer: " + diff); in read() 127 mStartBufferedPosition = currentPosition + diff; in read()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDelta.java | 394 private void possibleAdd(ArrayList<ContentProviderOperation> diff, in possibleAdd() argument 397 diff.add(builder.build()); in possibleAdd() 405 private void possibleAddWrapper(ArrayList<CPOWrapper> diff, BuilderWrapper bw) { in possibleAddWrapper() argument 407 diff.add(new CPOWrapper(bw.getBuilder().build(), bw.getType())); in possibleAddWrapper()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node.h | 422 const float diff = in compare() local 425 if (diff > MIN_DIFF) { in compare() 427 } else if (diff < -MIN_DIFF) { in compare()
|