/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 | 177 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in assertDiffPattern() local 178 delta.buildAssertWrapper(diff); in assertDiffPattern() 179 delta.buildDiffWrapper(diff); in assertDiffPattern() 180 assertDiffPattern(diff, pattern); in assertDiffPattern() 187 static void assertDiffPattern(ArrayList<CPOWrapper> diff, CPOWrapper... pattern) { in assertDiffPattern() argument 188 assertEquals("Unexpected operations", pattern.length, diff.size()); in assertDiffPattern() 190 ContentProviderResult[] fakeBackReferences = new ContentProviderResult[diff.size()]; in assertDiffPattern() 193 final CPOWrapper found = diff.get(i); in assertDiffPattern() 309 static int countExceptionUpdates(ArrayList<CPOWrapper> diff) { in countExceptionUpdates() argument 311 for (CPOWrapper cpoWrapper : diff) { in countExceptionUpdates() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | ProcDiskStats.cpp | 129 ProcDiskStats::PerPartitionDiskStats diff; in diffPerPartitionDiskStats() local 135 diff.emplace(std::move(diffStats)); in diffPerPartitionDiskStats() 137 diff.emplace(minuendStats); in diffPerPartitionDiskStats() 140 return diff; in diffPerPartitionDiskStats() 155 auto diff = [](const uint64_t& l, const uint64_t& r) -> uint64_t { in operator -=() local 159 numReadsCompleted = diff(numReadsCompleted, rhs.numReadsCompleted); in operator -=() 160 numReadsMerged = diff(numReadsMerged, rhs.numReadsMerged); in operator -=() 161 numKibRead = diff(numKibRead, rhs.numKibRead); in operator -=() 162 readTimeInMs = diff(readTimeInMs, rhs.readTimeInMs); in operator -=() 163 numWritesCompleted = diff(numWritesCompleted, rhs.numWritesCompleted); in operator -=() [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/modules/NeuralNetworks/tools/systrace_parser/parser/test/ |
D | large_test.sh | 30 diff hdrnet.txt hdrnet.tmp 32 diff cpu.txt cpu.tmp 34 diff unittest.txt unittest.tmp 36 diff hdrnet-bm.txt hdrnet-bm.tmp 38 diff omr1_incomplete.json omr1_incomplete.tmp 40 diff omr1.txt omr1.tmp 42 diff old.txt old.tmp
|
/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/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsDiffReporter.java | 84 int diff = compareAppNameAndType(orgRowEntry, newRowEntry, comparator); in process() local 87 diff, orgRowEntry != null ? orgRowEntry.toString() : null, in process() 91 if (diff < 0) { in process() 100 } else if (diff > 0) { in process() 152 int diff = comparator.compare(curRow, newRow); in compareAppNameAndType() local 153 if (diff == 0) { in compareAppNameAndType() 156 return diff; in compareAppNameAndType()
|
/packages/modules/adb/fdevent/ |
D | fdevent_test.cpp | 302 auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(after - before); in TEST_F() local 303 time_deltas.push_back(diff.count()); in TEST_F() 312 std::vector<int> diff; in TEST_F() local 315 diff.push_back(std::abs(time_deltas[i] - expected[i])); in TEST_F() 318 ASSERT_LT(diff[0], delta.count() * 0.5); in TEST_F() 319 ASSERT_LT(diff[1], delta.count() * 0.5); in TEST_F() 320 ASSERT_LT(diff[2], delta.count() * 0.5); in TEST_F()
|
/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/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/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/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/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/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/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/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/s2/ |
D | S2LevelRange.java | 36 long diff = o2.mStartCellIdNumeric - o1.mStartCellIdNumeric; 37 if (diff < 0) { 39 } else if (diff > 0) {
|
/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/services/Iwlan/ |
D | PREUPLOAD.cfg | 6 google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format…
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DevicePaddings.java | 181 int diff = Math.abs(sum - maxEmptySpacePx); in isValid() local 187 + ", diff=" + diff); in isValid() 189 return diff <= ROUNDING_THRESHOLD_PX; in isValid()
|