/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactDeltaTests.java | 170 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in testEntityDiffNone() local 171 source.buildDiff(diff); in testEntityDiffNone() 173 assertTrue("Created changes when none needed", (diff.size() == 0)); in testEntityDiffNone() 188 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in testEntityDiffNoneInsert() local 189 source.buildAssert(diff); in testEntityDiffNoneInsert() 190 source.buildDiff(diff); in testEntityDiffNoneInsert() 191 assertEquals("Unexpected operations", 4, diff.size()); in testEntityDiffNoneInsert() 193 final ContentProviderOperation oper = diff.get(0); in testEntityDiffNoneInsert() 197 final ContentProviderOperation oper = diff.get(1); in testEntityDiffNoneInsert() 202 final ContentProviderOperation oper = diff.get(2); in testEntityDiffNoneInsert() [all …]
|
D | RawContactModifierTests.java | 354 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in testTrimEmptySingle() local 355 state.buildDiff(diff); in testTrimEmptySingle() 356 assertEquals("Unexpected operations", 3, diff.size()); in testTrimEmptySingle() 358 final ContentProviderOperation oper = diff.get(0); in testTrimEmptySingle() 363 final ContentProviderOperation oper = diff.get(1); in testTrimEmptySingle() 368 final ContentProviderOperation oper = diff.get(2); in testTrimEmptySingle() 375 diff.clear(); in testTrimEmptySingle() 376 state.buildDiff(diff); in testTrimEmptySingle() 377 assertEquals("Unexpected operations", 1, diff.size()); in testTrimEmptySingle() 379 final ContentProviderOperation oper = diff.get(0); in testTrimEmptySingle() [all …]
|
D | RawContactDeltaListTests.java | 179 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in assertDiffPattern() local 180 delta.buildAssert(diff); in assertDiffPattern() 181 delta.buildDiff(diff); in assertDiffPattern() 182 assertDiffPattern(diff, pattern); in assertDiffPattern() 189 static void assertDiffPattern(ArrayList<ContentProviderOperation> diff, in assertDiffPattern() argument 191 assertEquals("Unexpected operations", pattern.length, diff.size()); in assertDiffPattern() 194 final ContentProviderOperation found = diff.get(i); in assertDiffPattern() 293 static int countExceptionUpdates(ArrayList<ContentProviderOperation> diff) { in countExceptionUpdates() argument 295 for (ContentProviderOperation oper : diff) { in countExceptionUpdates() 309 final ArrayList<ContentProviderOperation> diff = set.buildDiff(); in testInsert() local [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | RawContactDeltaList.java | 131 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in buildDiff() local 138 delta.buildAssert(diff); in buildDiff() 141 final int assertMark = diff.size(); in buildDiff() 148 final int firstBatch = diff.size(); in buildDiff() 152 delta.buildDiff(diff); in buildDiff() 166 diff.add(builder.build()); in buildDiff() 181 diff.add(builder.build()); in buildDiff() 193 diff.add(builder.build()); in buildDiff() 198 buildSplitContactDiff(diff, backRefs); in buildDiff() 202 if (diff.size() == assertMark) { in buildDiff() [all …]
|
D | AccountTypeManager.java | 267 int diff = a.name.compareTo(b.name); 268 if (diff != 0) { 269 return diff; 271 diff = a.type.compareTo(b.type); 272 if (diff != 0) { 273 return diff;
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | ComposingText.java | 219 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/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | EntitySet.java | 115 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in buildDiff() local 122 delta.buildAssert(diff); in buildDiff() 125 final int assertMark = diff.size(); in buildDiff() 132 final int firstBatch = diff.size(); in buildDiff() 134 delta.buildDiff(diff); in buildDiff() 147 diff.add(builder.build()); in buildDiff() 158 diff.add(builder.build()); in buildDiff() 163 buildSplitContactDiff(diff, backRefs); in buildDiff() 167 if (diff.size() == assertMark) { in buildDiff() 168 diff.clear(); in buildDiff() [all …]
|
D | EntityDiff.java | 48 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()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | RotateImageView.java | 76 int diff = mTargetDegree - mCurrentDegree; in setOrientation() local 77 diff = diff >= 0 ? diff : 360 + diff; // make it in range [0, 359] in setOrientation() 81 diff = diff > 180 ? diff - 360 : diff; in setOrientation() 83 mClockwise = diff >= 0; in setOrientation() 85 + Math.abs(diff) * 1000 / ANIMATION_SPEED; in setOrientation()
|
/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/Camera2/src/com/android/camera/ui/ |
D | RotateImageView.java | 76 int diff = mTargetDegree - mCurrentDegree; in setOrientation() local 77 diff = diff >= 0 ? diff : 360 + diff; // make it in range [0, 359] in setOrientation() 81 diff = diff > 180 ? diff - 360 : diff; in setOrientation() 83 mClockwise = diff >= 0; in setOrientation() 85 + Math.abs(diff) * 1000 / ANIMATION_SPEED; in setOrientation()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 186 long now = -1, diff = -1; in timeWritingDictToFile() local 196 diff = System.currentTimeMillis() - now; in timeWritingDictToFile() 203 return diff; in timeWritingDictToFile() 286 long now, diff = -1; in timeReadingAndCheckDict() local 294 diff = System.currentTimeMillis() - now; in timeReadingAndCheckDict() 302 return diff; in timeReadingAndCheckDict() 449 long now = -1, diff = -1; 455 diff = System.currentTimeMillis() - now; 471 return diff; 559 long diff = -1; [all …]
|
/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/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | CustomContactListFilterActivity.java | 439 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); in buildDiff() local 441 account.buildDiff(diff); in buildDiff() 443 return diff; in buildDiff() 525 public void buildDiff(ArrayList<ContentProviderOperation> diff) { in buildDiff() argument 528 if (oper != null) diff.add(oper); in buildDiff() 532 if (oper != null) diff.add(oper); in buildDiff() 838 final ArrayList<ContentProviderOperation> diff = mAdapter.mAccounts.buildDiff(); in doSaveAction() local 839 if (diff.isEmpty()) { in doSaveAction() 844 new UpdateTask(this).execute(diff); in doSaveAction() 881 final ArrayList<ContentProviderOperation> diff = params[0]; in doInBackground() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 361 final ArrayList<ContentProviderOperation> diff = state.buildDiff(); in saveContact() local 364 for (ContentProviderOperation operation : diff) { in saveContact() 370 if (!diff.isEmpty()) { in saveContact() 371 results = resolver.applyBatch(ContactsContract.AUTHORITY, diff); in saveContact() 374 final long rawContactId = getRawContactId(state, diff, results); in saveContact() 380 insertedRawContactId = getInsertedRawContactId(diff, results); in saveContact() 508 final ArrayList<ContentProviderOperation> diff, in getRawContactId() argument 515 return getInsertedRawContactId(diff, results); in getRawContactId() 522 final ArrayList<ContentProviderOperation> diff, in getInsertedRawContactId() argument 524 final int diffSize = diff.size(); in getInsertedRawContactId() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/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/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/Camera2/src/com/android/camera/crop/ |
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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | geometry_utils.h | 42 const float diff = ROUND_FLOAT_10000(deltaA); in getAngleDiff() local 43 if (diff > M_PI_F) { in getAngleDiff() 44 const float normalizedDiff = 2.0f * M_PI_F - diff; in getAngleDiff() 47 return diff; in getAngleDiff()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarViewAdapter.java | 392 int diff = dayOfWeek - firstDayOfWeek; in buildWeekDate() local 393 if (diff != 0) { in buildWeekDate() 394 if (diff < 0) { in buildWeekDate() 395 diff += 7; in buildWeekDate() 397 t.monthDay -= diff; in buildWeekDate()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | MinTimeProgressView.java | 74 long diff = System.currentTimeMillis() - mStartTime; in hide() local 75 if (diff >= sMinShowTime || mStartTime == -1) { in hide() 84 mHandler.postDelayed(mDelayedHide, sMinShowTime - diff); in hide()
|
D | MinTimeProgressDialog.java | 74 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/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/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/Mms/src/com/android/mms/exif/ |
D | CountedDataInputStream.java | 77 long diff = target - cur; in skipTo() local 78 assert(diff >= 0); in skipTo() 79 skipOrThrow(diff); in skipTo()
|