Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 50) sorted by relevance

12

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaTests.java166 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 …]
DRawContactModifierTests.java384 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 …]
DRawContactDeltaListTests.java173 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/
DRotateImageView.java77 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/
DFlingAnimationUtils.java126 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/
DAccountComparator.java50 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/
DNameNormalizer.java89 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/
DBinaryDictDecoderEncoderTests.java163 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/
DCustomContactListFilterActivity.java442 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/
DUtils.java223 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/
DWidgetsDiffReporter.java74 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/UnifiedEmail/src/com/android/mail/
DMinTimeProgressView.java74 long diff = System.currentTimeMillis() - mStartTime; in hide() local
75 if (diff >= sMinShowTime || mStartTime == -1) { in hide()
84 mHandler.postDelayed(mDelayedHide, sMinShowTime - diff); in hide()
DMinTimeProgressDialog.java74 long diff = System.currentTimeMillis() - mStartTime; in dismiss() local
75 if (diff >= mMinShowTime || mStartTime == -1) { in dismiss()
82 mHandler.postDelayed(mDelayedDismiss, mMinShowTime - diff); in dismiss()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.java377 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()
DDayFragment.java178 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/
DIngestObjectInfo.java61 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/
DCountedDataInputStream.java80 long diff = target - cur; in skipTo() local
81 Assert.checkArgument(diff >= 0); in skipTo()
82 skipOrThrow(diff); in skipTo()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java77 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/
DCountedDataInputStream.java79 long diff = target - cur; in skipTo() local
80 assert(diff >= 0); in skipTo()
81 skipOrThrow(diff); in skipTo()
/packages/apps/Camera2/src/com/android/camera/exif/
DCountedDataInputStream.java77 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/
DBaseRecentsActivity.java68 int diff = newConfig.diff(mOldConfig); in onConfigurationChanged() local
69 if ((diff & (CONFIG_ORIENTATION | CONFIG_SCREEN_SIZE)) != 0) { in onConfigurationChanged()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationViewProgressController.java102 final long diff = Math.abs(System.currentTimeMillis() - mLoadingShownTime); in dismissLoadingStatus() local
103 if (diff > sMinShowTime) { in dismissLoadingStatus()
111 }, Math.abs(sMinShowTime - diff)); in dismissLoadingStatus()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java203 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/
DSimpleWeekView.java265 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/
Dkmeans.h75 N diff = (N) val1[x] - (N) val2[x]; in euclideanDist() local
76 sum += diff * diff; in euclideanDist()

12