Home
last modified time | relevance | path

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

/packages/apps/Contacts/tests/src/com/android/contacts/
DEntityDeltaTests.java212 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in testEntityDiffNone() local
213 source.buildDiff(diff); in testEntityDiffNone()
215 assertTrue("Created changes when none needed", (diff.size() == 0)); in testEntityDiffNone()
230 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in testEntityDiffNoneInsert() local
231 source.buildAssert(diff); in testEntityDiffNoneInsert()
232 source.buildDiff(diff); in testEntityDiffNoneInsert()
233 assertEquals("Unexpected operations", 4, diff.size()); in testEntityDiffNoneInsert()
235 final ContentProviderOperation oper = diff.get(0); in testEntityDiffNoneInsert()
239 final ContentProviderOperation oper = diff.get(1); in testEntityDiffNoneInsert()
244 final ContentProviderOperation oper = diff.get(2); in testEntityDiffNoneInsert()
[all …]
DEntityModifierTests.java320 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in testTrimEmptySingle() local
321 state.buildDiff(diff); in testTrimEmptySingle()
322 assertEquals("Unexpected operations", 3, diff.size()); in testTrimEmptySingle()
324 final ContentProviderOperation oper = diff.get(0); in testTrimEmptySingle()
329 final ContentProviderOperation oper = diff.get(1); in testTrimEmptySingle()
334 final ContentProviderOperation oper = diff.get(2); in testTrimEmptySingle()
341 diff.clear(); in testTrimEmptySingle()
342 state.buildDiff(diff); in testTrimEmptySingle()
343 assertEquals("Unexpected operations", 1, diff.size()); in testTrimEmptySingle()
345 final ContentProviderOperation oper = diff.get(0); in testTrimEmptySingle()
[all …]
DEntitySetTests.java180 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in assertDiffPattern() local
181 delta.buildAssert(diff); in assertDiffPattern()
182 delta.buildDiff(diff); in assertDiffPattern()
183 assertDiffPattern(diff, pattern); in assertDiffPattern()
190 static void assertDiffPattern(ArrayList<ContentProviderOperation> diff, in assertDiffPattern() argument
192 assertEquals("Unexpected operations", pattern.length, diff.size()); in assertDiffPattern()
195 final ContentProviderOperation found = diff.get(i); in assertDiffPattern()
294 static int countExceptionUpdates(ArrayList<ContentProviderOperation> diff) { in countExceptionUpdates() argument
296 for (ContentProviderOperation oper : diff) { in countExceptionUpdates()
310 final ArrayList<ContentProviderOperation> diff = set.buildDiff(); in testInsert() local
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DSymmetricalLinearTween.java83 long diff = now - mBase; in start() local
84 mBase = now + diff - mDuration; in start()
94 long diff = now-base;
96 float val = diff/(float)duration;
108 int frame = (int)(diff / FRAME_TIME);
110 if (diff < duration) {
113 if (diff >= duration) {
/packages/apps/Contacts/src/com/android/contacts/model/
DEntitySet.java122 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in buildDiff() local
129 delta.buildAssert(diff); in buildDiff()
132 final int assertMark = diff.size(); in buildDiff()
139 final int firstBatch = diff.size(); in buildDiff()
141 delta.buildDiff(diff); in buildDiff()
154 diff.add(builder.build()); in buildDiff()
165 diff.add(builder.build()); in buildDiff()
170 buildSplitContactDiff(diff, backRefs); in buildDiff()
174 if (diff.size() == assertMark) { in buildDiff()
175 diff.clear(); in buildDiff()
[all …]
DEntityDiff.java48 final EntityDiff diff = new EntityDiff(); in buildDiff() local
57 diff.add(builder.build()); in buildDiff()
66 diff.add(builder.build()); in buildDiff()
74 diff.add(builder.build()); in buildDiff()
79 diff.add(builder.build()); in buildDiff()
89 diff.add(builder.build()); in buildDiff()
105 diff.add(builder.build()); in buildDiff()
112 diff.add(builder.build()); in buildDiff()
123 diff.add(builder.build()); in buildDiff()
127 return diff; in buildDiff()
DEntityDelta.java338 private void possibleAdd(ArrayList<ContentProviderOperation> diff, in possibleAdd() argument
341 diff.add(builder.build()); in possibleAdd()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java219 int diff = mod_len - org_len; in modifyUpper() local
232 ss.to = (last_to < mod_to)? mod_to : (last_to + diff); in modifyUpper()
238 ss.from += diff; in modifyUpper()
239 ss.to += diff; in modifyUpper()
250 ss.from += diff; in modifyUpper()
251 ss.to += diff; in modifyUpper()
383 int diff = to - from + 1; in deleteStrSegment() local
386 deleteStrSegment0(lv, fromL[lv], toL[lv], diff); in deleteStrSegment()
412 deleteStrSegment0(lv, fromL[lv] + 1, toL[lv], diff); in deleteStrSegment()
413 boundary_to -= diff; in deleteStrSegment()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameNormalizer.java56 int diff = sComplexityCollator.compare(lettersAndDigitsOnly(name1), in compareComplexity() local
58 if (diff != 0) { in compareComplexity()
59 return diff; in compareComplexity()
/packages/apps/Calendar/src/com/android/calendar/
DMonthActivity.java222 int diff = mStartDay - Calendar.SUNDAY - 1; in onCreate() local
224 String dayString = DateUtils.getDayOfWeekString((Calendar.SUNDAY + diff) % 7 + 1, in onCreate()
227 dayString = DateUtils.getDayOfWeekString((Calendar.MONDAY + diff) % 7 + 1, in onCreate()
230 dayString = DateUtils.getDayOfWeekString((Calendar.TUESDAY + diff) % 7 + 1, in onCreate()
233 dayString = DateUtils.getDayOfWeekString((Calendar.WEDNESDAY + diff) % 7 + 1, in onCreate()
236 dayString = DateUtils.getDayOfWeekString((Calendar.THURSDAY + diff) % 7 + 1, in onCreate()
239 dayString = DateUtils.getDayOfWeekString((Calendar.FRIDAY + diff) % 7 + 1, in onCreate()
242 dayString = DateUtils.getDayOfWeekString((Calendar.SATURDAY + diff) % 7 + 1, in onCreate()
DCalendarView.java564 int diff = dayOfWeek - mStartDay; in recalc() local
565 if (diff != 0) { in recalc()
566 if (diff < 0) { in recalc()
567 diff += 7; in recalc()
569 mBaseDate.monthDay -= diff; in recalc()
/packages/apps/Contacts/src/com/android/contacts/ui/
DDisplayGroupsActivity.java346 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in buildDiff() local
348 account.buildDiff(diff); in buildDiff()
350 return diff; in buildDiff()
454 public void buildDiff(ArrayList<ContentProviderOperation> diff) { in buildDiff() argument
457 if (oper != null) diff.add(oper); in buildDiff()
461 if (oper != null) diff.add(oper); in buildDiff()
835 final ArrayList<ContentProviderOperation> diff = set.buildDiff(); in doInBackground() local
836 resolver.applyBatch(ContactsContract.AUTHORITY, diff); in doInBackground()
DEditContactActivity.java617 final ArrayList<ContentProviderOperation> diff = state.buildDiff(); in doInBackground() local
619 if (!diff.isEmpty()) { in doInBackground()
620 results = resolver.applyBatch(ContactsContract.AUTHORITY, diff); in doInBackground()
623 final long rawContactId = getRawContactId(state, diff, results); in doInBackground()
632 result = (diff.size() > 0) ? RESULT_SUCCESS : RESULT_UNCHANGED; in doInBackground()
653 final ArrayList<ContentProviderOperation> diff, in getRawContactId() argument
661 final int diffSize = diff.size(); in getRawContactId()
663 ContentProviderOperation operation = diff.get(i); in getRawContactId()
/packages/apps/Browser/src/com/android/browser/
DBrowserActivity.java766 float[] diff = new float[3];
769 diff[i] = values[i] - mPrev[i];
770 if (Math.abs(diff[i]) > 1) {
773 if ((diff[i] > 1.0 && mDiff[i] < 0.2)
774 || (diff[i] < -1.0 && mDiff[i] > -0.2)) {
778 } else if (diff[i] > -0.2 && diff[i] < 0.2) {
782 mDiff[i] += diff[i];
783 mPrevDiff[i] = diff[i];
792 + " diff(" + diff[0] + " " + diff[1] + " " + diff[2]