Home
last modified time | relevance | path

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

1234

/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.java177 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/
DProcDiskStatsCollector.cpp129 ProcDiskStatsCollector::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 …]
DUidIoStatsCollector.cpp66 const auto diff = [](int64_t lhs, int64_t rhs) -> int64_t { return lhs > rhs ? lhs - rhs : 0; }; in operator -=() local
68 diff(metrics[READ_BYTES][FOREGROUND], rhs.metrics[READ_BYTES][FOREGROUND]); in operator -=()
70 diff(metrics[READ_BYTES][BACKGROUND], rhs.metrics[READ_BYTES][BACKGROUND]); in operator -=()
72 diff(metrics[WRITE_BYTES][FOREGROUND], rhs.metrics[WRITE_BYTES][FOREGROUND]); in operator -=()
74 diff(metrics[WRITE_BYTES][BACKGROUND], rhs.metrics[WRITE_BYTES][BACKGROUND]); in operator -=()
76 diff(metrics[FSYNC_COUNT][FOREGROUND], rhs.metrics[FSYNC_COUNT][FOREGROUND]); in operator -=()
78 diff(metrics[FSYNC_COUNT][BACKGROUND], rhs.metrics[FSYNC_COUNT][BACKGROUND]); in operator -=()
/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/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Dlarge_test.sh30 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/
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/services/Car/service/src/com/android/car/os/
DCpuInfoReader.java589 return new CpuUsageStats(diff(userTimeMillis, rhs.userTimeMillis), in delta()
590 diff(niceTimeMillis, rhs.niceTimeMillis), in delta()
591 diff(systemTimeMillis, rhs.systemTimeMillis), in delta()
592 diff(idleTimeMillis, rhs.idleTimeMillis), in delta()
593 diff(iowaitTimeMillis, rhs.iowaitTimeMillis), in delta()
594 diff(irqTimeMillis, rhs.irqTimeMillis), in delta()
595 diff(softirqTimeMillis, rhs.softirqTimeMillis), in delta()
596 diff(stealTimeMillis, rhs.stealTimeMillis), in delta()
597 diff(guestTimeMillis, rhs.guestTimeMillis), in delta()
598 diff(guestNiceTimeMillis, rhs.guestNiceTimeMillis)); in delta()
[all …]
/packages/modules/adb/fdevent/
Dfdevent_test.cpp302 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/modules/Bluetooth/floss/build/
Dllvm-rename.sh16 --slave /usr/bin/llvm-diff llvm-diff /usr/bin/llvm-diff-${version} \
42 …--slave /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-${versio…
/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/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/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/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DWifiUtils.java48 long diff = (now - config.getNetworkSelectionStatus().getDisableTime()) / 1000; in buildLoggingSummary() local
49 long sec = diff % 60; //seconds in buildLoggingSummary()
50 long min = (diff / 60) % 60; //minutes in buildLoggingSummary()
/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/Car/SystemUI/src/com/android/systemui/car/window/
DOverlayPanelViewController.java684 float diff = mAnimateDirection * (event1.getRawY() - event2.getRawY()); in getYPositionOfPanelEndingEdge() local
685 float y = mAnimateDirection > 0 ? getLayout().getHeight() - diff : diff; in getYPositionOfPanelEndingEdge()
779 float diff = mAnimateDirection * (event1.getRawY() - event2.getRawY()); in onScroll() local
781 ? getLayout().getHeight() - diff in onScroll()
782 : diff; in onScroll()
/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/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/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/modules/StatsD/statsd/src/metrics/
DNumericValueMetricProducer.cpp427 Value diff; in aggregateFields() local
431 diff = value - base.value(); in aggregateFields()
433 diff = value; in aggregateFields()
445 diff = base.value() - value; in aggregateFields()
447 diff = value; in aggregateFields()
458 diff = value - base.value(); in aggregateFields()
464 value = diff; in aggregateFields()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/s2/
DS2LevelRange.java36 long diff = o2.mStartCellIdNumeric - o1.mStartCellIdNumeric;
37 if (diff < 0) {
39 } else if (diff > 0) {

1234