/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | Lerper.java | 44 int delta = targetValue - currentValue; in getValue() local 46 if (delta > 0) { in getValue() 48 delta = (int)(Math.ceil(delta / mDivisor)); in getValue() 49 if (delta == 0) { in getValue() 50 delta = 1; in getValue() 52 retValue = currentValue + delta; in getValue() 56 } else if (delta < 0) { in getValue() 58 delta = (int)(Math.floor(delta / mDivisor)); in getValue() 59 if (delta == 0) { in getValue() 60 delta = -1; in getValue() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
D | DynamicShortcuts.java | 134 Delta delta = computeDelta(oldDynamicShortcuts, newDynamicShortcutsById); in refresh() local 135 applyDelta(delta); in refresh() 175 Delta delta = new Delta(); in computeDelta() local 177 delta.shortcutsToAddById.putAll(newDynamicShortcutsById); in computeDelta() 178 return delta; in computeDelta() 187 delta.shortcutsToUpdateById.put(oldInfo.getId(), newShortcut); in computeDelta() 192 delta.shortcutIdsToRemove.add(oldInfo.getId()); in computeDelta() 203 delta.shortcutsToAddById.put(newId, newShortcut); in computeDelta() 206 return delta; in computeDelta() 209 private void applyDelta(@NonNull Delta delta) { in applyDelta() argument [all …]
|
D | PinnedShortcuts.java | 96 Delta delta = new Delta(); in refresh() local 126 delta.shortcutIdsToDisable.add(shortcutInfo.getId()); in refresh() 143 delta.shortcutsToUpdateById.put(shortcutInfo.getId(), shortcut); in refresh() 147 applyDelta(delta); in refresh() 150 private void applyDelta(@NonNull Delta delta) { in applyDelta() argument 154 if (!delta.shortcutIdsToDisable.isEmpty()) { in applyDelta() 155 shortcutManager.disableShortcuts(delta.shortcutIdsToDisable, shortcutDisabledMessage); in applyDelta() 157 if (!delta.shortcutsToUpdateById.isEmpty()) { in applyDelta() 161 shortcutInfoFactory.buildShortcutInfos(delta.shortcutsToUpdateById))) { in applyDelta()
|
/packages/services/Car/watchdog/server/src/ |
D | ProcStat.cpp | 85 ProcStatInfo delta; in collect() local 87 delta.cpuStats.userTime = info->cpuStats.userTime - mLastCpuStats.userTime; in collect() 88 delta.cpuStats.niceTime = info->cpuStats.niceTime - mLastCpuStats.niceTime; in collect() 89 delta.cpuStats.sysTime = info->cpuStats.sysTime - mLastCpuStats.sysTime; in collect() 90 delta.cpuStats.idleTime = info->cpuStats.idleTime - mLastCpuStats.idleTime; in collect() 91 delta.cpuStats.ioWaitTime = info->cpuStats.ioWaitTime - mLastCpuStats.ioWaitTime; in collect() 92 delta.cpuStats.irqTime = info->cpuStats.irqTime - mLastCpuStats.irqTime; in collect() 93 delta.cpuStats.softIrqTime = info->cpuStats.softIrqTime - mLastCpuStats.softIrqTime; in collect() 94 delta.cpuStats.stealTime = info->cpuStats.stealTime - mLastCpuStats.stealTime; in collect() 95 delta.cpuStats.guestTime = info->cpuStats.guestTime - mLastCpuStats.guestTime; in collect() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 138 for (RawContactDelta delta : this) { in buildDiffWrapper() 139 delta.buildAssertWrapper(diffWrapper); in buildDiffWrapper() 148 for (RawContactDelta delta : this) { in buildDiffWrapper() 150 final boolean isInsert = delta.isContactInsert(); in buildDiffWrapper() 153 delta.buildDiffWrapper(diffWrapper); in buildDiffWrapper() 297 for (RawContactDelta delta : this) { in findRawContactId() 298 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId() 311 final RawContactDelta delta = this.get(index); in getRawContactId() local 312 final ValuesDelta values = delta.getValues(); in getRawContactId() 349 for (RawContactDelta delta : this) { in indexOfFirstWritableRawContact() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | geometry_utils.h | 42 float delta = fabsf(a1 - a2); in getAngleDiff() local 43 if (delta > M_2PI_F) { in getAngleDiff() 44 delta -= (M_2PI_F * static_cast<int>(delta / M_2PI_F)); in getAngleDiff() 46 if (delta > M_PI_F) { in getAngleDiff() 47 delta = M_2PI_F - delta; in getAngleDiff() 49 return ROUND_FLOAT_10000(delta); in getAngleDiff()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 529 final float delta = updatePositionAndComputeDelta(event); in onTouchEvent() local 530 scrollTo(0, getScroll() + (int) delta); in onTouchEvent() 535 if (delta > distanceFromMaxScrolling) { in onTouchEvent() 538 EdgeEffectCompat.onPull(mEdgeGlowBottom, delta / getHeight(), in onTouchEvent() 743 final int delta = y - getScroll(); in scrollTo() local 745 if (delta > 0) { in scrollTo() 746 scrollUp(delta); in scrollTo() 748 scrollDown(delta); in scrollTo() 772 public void setToolbarHeight(int delta) { in setToolbarHeight() argument 775 toolbarLayoutParams.height = delta; in setToolbarHeight() [all …]
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | wprint_image.c | 404 int delta; in wprint_image_set_output_properties() local 414 delta = paddingDelta / 2; in wprint_image_set_output_properties() 415 image_info->output_padding_left += delta; in wprint_image_set_output_properties() 416 image_info->output_padding_right += delta + (paddingDelta & 0x1); in wprint_image_set_output_properties() 432 delta = paddingDelta / 2; in wprint_image_set_output_properties() 433 image_info->output_padding_top += delta; in wprint_image_set_output_properties() 434 image_info->output_padding_bottom += delta + (paddingDelta & 0x1); in wprint_image_set_output_properties() 449 delta = paddingDelta / 2; in wprint_image_set_output_properties() 450 image_info->output_padding_left += delta; in wprint_image_set_output_properties() 451 image_info->output_padding_right += delta + (paddingDelta & 0x1); in wprint_image_set_output_properties() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | SelectionMetadata.java | 75 final int delta = selected ? 1 : -1; in onItemStateChanged() local 79 mDirectoryCount += delta; in onItemStateChanged() 81 mFileCount += delta; in onItemStateChanged() 86 mPartialCount += delta; in onItemStateChanged() 89 mWritableDirectoryCount += delta; in onItemStateChanged() 92 mNoDeleteCount += delta; in onItemStateChanged() 95 mNoRenameCount += delta; in onItemStateChanged() 98 mPartialCount += delta; in onItemStateChanged() 106 mInArchiveCount += delta; in onItemStateChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 659 final int delta = mIsRtl ? -1 : 1; in getPageScrolls() local 667 for (int i = startIndex, childStart = scrollOffsetStart; i != endIndex; i += delta) { in getPageScrolls() 1013 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress() local 1019 if ((delta < 0 && !mIsRtl) || (delta > 0 && mIsRtl)) { in getScrollProgress() 1029 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress() 1190 float delta = mLastMotion + mLastMotionRemainder - direction; 1191 mTotalMotion += Math.abs(delta); 1196 if (Math.abs(delta) >= 1.0f) { 1198 mLastMotionRemainder = delta - (int) delta; 1200 mOrientationHandler.set(this, VIEW_SCROLL_BY, (int) delta); [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | CarStorageMonitoringTest.java | 500 IoStatsEntry delta21 = statEntry2.delta(statEntry1); in testUidIoStatEntryDelta() 518 IoStatsEntry delta31 = statEntry3.delta(statEntry1); in testUidIoStatEntryDelta() 535 UidIoRecord delta = statRecord.delta(statEntry); in testUidIoStatsRecordDelta() local 537 assertThat(delta).isNotNull(); in testUidIoStatsRecordDelta() 538 assertThat(delta.uid).isEqualTo(statRecord.uid); in testUidIoStatsRecordDelta() 540 assertThat(delta.foreground_rchar).isEqualTo(10); in testUidIoStatsRecordDelta() 541 assertThat(delta.foreground_wchar).isEqualTo(0); in testUidIoStatsRecordDelta() 542 assertThat(delta.foreground_read_bytes).isEqualTo(0); in testUidIoStatsRecordDelta() 543 assertThat(delta.foreground_write_bytes).isEqualTo(10); in testUidIoStatsRecordDelta() 544 assertThat(delta.foreground_fsync).isEqualTo(20); in testUidIoStatsRecordDelta() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | dtoa.h | 34 inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, ui… in GrisuRound() argument 35 while (rest < wp_w && delta - rest >= ten_kappa && in GrisuRound() 59 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen() argument 86 if (tmp <= delta) { in DigitGen() 88 … GrisuRound(buffer, *len, delta, tmp, static_cast<uint64_t>(kPow10[kappa]) << -one.e, wp_w.f); in DigitGen() 96 delta *= 10; in DigitGen() 102 if (p2 < delta) { in DigitGen() 104 GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-static_cast<int>(kappa)]); in DigitGen()
|
D | strtod.h | 106 BigInteger delta(0); in CheckWithinHalfULP() 107 dS.Difference(bS, &delta); in CheckWithinHalfULP() 109 return delta.Compare(hS); in CheckWithinHalfULP() 250 int delta = (int(length) - kMaxDecimalDigit); in StrtodFullPrecision() local 251 exp += delta; in StrtodFullPrecision() 252 decimalPosition -= static_cast<unsigned>(delta); in StrtodFullPrecision()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 57 double delta = (x2 - x1); in calculatetCurve() local 58 double delta2 = delta * delta; in calculatetCurve() 59 double b = (x - x1) / delta; in calculatetCurve() 98 double delta = (x2 - x1); in getValue() local 99 double delta2 = delta * delta; in getValue() 100 double b = (x - x1) / delta; in getValue()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | strtodtest.cpp | 116 BigInteger delta(0); in TEST() local 117 EXPECT_FALSE(dS.Difference(bS, &delta)); in TEST() 118 EXPECT_TRUE(BIGINTEGER_LITERAL("16216586195252933526457586554279088") == delta); in TEST() 119 EXPECT_TRUE(bS.Difference(dS, &delta)); in TEST() 120 EXPECT_TRUE(BIGINTEGER_LITERAL("16216586195252933526457586554279088") == delta); in TEST() 122 EXPECT_EQ(-1, delta.Compare(hS)); in TEST()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | WidgetModel.java | 42 int delta = WidgetDAO.updateWidgetCount(mPrefs, widgetClass, count); in updateWidgetCount() local 43 for (; delta > 0; delta--) { in updateWidgetCount() 46 for (; delta < 0; delta++) { in updateWidgetCount()
|
D | Stopwatch.java | 127 final long delta = Math.max(0, wallClockTime - mLastStartWallClockTime); in updateAfterReboot() local 128 return new Stopwatch(mState, timeSinceBoot, wallClockTime, mAccumulatedTime + delta); in updateAfterReboot() 142 final long delta = timeSinceBoot - mLastStartTime; in updateAfterTimeSet() local 143 if (delta < 0) { in updateAfterTimeSet() 149 return new Stopwatch(mState, timeSinceBoot, wallClockTime, mAccumulatedTime + delta); in updateAfterTimeSet()
|
D | Timer.java | 267 final long delta = Math.max(0, wallClockTime - mLastStartWallClockTime); in updateAfterReboot() local 268 final long remainingTime = mRemainingTime - delta; in updateAfterReboot() 283 final long delta = timeSinceBoot - mLastStartTime; in updateAfterTimeSet() local 284 final long remainingTime = mRemainingTime - delta; in updateAfterTimeSet() 285 if (delta < 0) { in updateAfterTimeSet() 340 final long delta = remainingTime - mRemainingTime; in setRemainingTime() local 341 final long totalLength = mTotalLength + delta; in setRemainingTime()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmUtils.java | 63 static String formatElapsedTimeUntilAlarm(Context context, long delta) { in formatElapsedTimeUntilAlarm() argument 66 if (delta < DateUtils.MINUTE_IN_MILLIS) { in formatElapsedTimeUntilAlarm() 73 final long remainder = delta % DateUtils.MINUTE_IN_MILLIS; in formatElapsedTimeUntilAlarm() 74 delta += remainder == 0 ? 0 : (DateUtils.MINUTE_IN_MILLIS - remainder); in formatElapsedTimeUntilAlarm() 76 int hours = (int) delta / (1000 * 60 * 60); in formatElapsedTimeUntilAlarm() 77 final int minutes = (int) delta / (1000 * 60) % 60; in formatElapsedTimeUntilAlarm()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClient.java | 1116 int delta; in compareProvisioning() local 1122 delta = PROV_CHANGE_GAINED_PROVISIONING; in compareProvisioning() 1124 delta = PROV_CHANGE_STILL_PROVISIONED; in compareProvisioning() 1126 delta = PROV_CHANGE_STILL_NOT_PROVISIONED; in compareProvisioning() 1138 delta = PROV_CHANGE_LOST_PROVISIONING; in compareProvisioning() 1175 delta = PROV_CHANGE_LOST_PROVISIONING; in compareProvisioning() 1194 delta = PROV_CHANGE_STILL_PROVISIONED; in compareProvisioning() 1199 delta = PROV_CHANGE_LOST_PROVISIONING; in compareProvisioning() 1203 return delta; in compareProvisioning() 1206 private void dispatchCallback(int delta, LinkProperties newLp) { in dispatchCallback() argument [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 202 private int getTouchIndicatorIndex(double delta) { in getTouchIndicatorIndex() argument 220 if ((delta >= (mChildRadians[startIndex] - halfTouchSectorRadians)) && in getTouchIndicatorIndex() 221 (delta <= (mChildRadians[endIndex] + halfTouchSectorRadians))) { in getTouchIndicatorIndex() 224 index = (int) ((delta - mChildRadians[startIndex]) in getTouchIndicatorIndex() 231 if (delta <= (mChildRadians[startIndex + index] in getTouchIndicatorIndex() 235 if (delta >= (mChildRadians[startIndex + index + 1] in getTouchIndicatorIndex() 265 double delta = Math.atan2(dy, dx); in dispatchTouchEvent() local 266 if (delta < 0) delta += Math.PI * 2; in dispatchTouchEvent() 267 int index = getTouchIndicatorIndex(delta); in dispatchTouchEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverScroller.java | 251 public void startScroll(int start, int delta) { in startScroll() argument 252 startScroll(start, delta, DEFAULT_DURATION); in startScroll() 264 public void startScroll(int start, int delta, int duration) { in startScroll() argument 266 mScroller.startScroll(start, delta, duration); in startScroll() 279 public void startScrollSpring(int start, int delta, int duration, float velocity) { in startScrollSpring() argument 282 mScroller.startScroll(start, delta, duration, velocity); in startScrollSpring() 640 final int delta = start - end; in startSpringback() local 641 mDeceleration = getDeceleration(delta); in startSpringback() 643 mVelocity = -delta; // only sign is used in startSpringback() 644 mOver = Math.abs(delta); in startSpringback() [all …]
|
/packages/services/Car/service/src/com/android/car/user/ |
D | UserMetrics.java | 354 long delta = switchTime - startTime; in dump() local 360 TimeUtils.formatDuration(delta, pw); in dump() 364 long delta = unlockingTime - startTime; in dump() local 366 TimeUtils.formatDuration(delta, pw); in dump() 369 long delta = unlockedTime - startTime; in dump() local 371 TimeUtils.formatDuration(delta, pw); in dump() 392 long delta = shutdownTime - stopTime; in dump() local 394 TimeUtils.formatDuration(delta, pw); in dump()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | Spline.java | 190 double delta = (x2 - x1); in getAppliedCurve() local 191 double delta2 = delta * delta; in getAppliedCurve() 192 double b = (x - x1) / delta; in getAppliedCurve() 285 double delta = (x2 - x1); in draw() local 286 double delta2 = delta * delta; in draw() 287 double b = (x - x1) / delta; in draw()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 377 final double[] delta = { b[0] - a[0], in moveFocus() local 379 if (cross(delta, left) > 0.0 && cross(delta, right) < 0.0) { in moveFocus() 380 final double distance = norm(delta); in moveFocus() 778 float[] delta = { 0f, 0f }; in fling() local 780 delta[0] = b[0] - a[0]; in fling() 781 delta[1] = b[1] - a[1]; in fling() 783 delta[0] = c[0] - a[0]; in fling() 784 delta[1] = c[1] - a[1]; in fling() 787 final float dist = (float) Math.hypot(delta[0], delta[1]); in fling() 789 fling(photo, delta[0], delta[1], duration, true); in fling()
|