Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 108) sorted by relevance

12345

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DLerper.java44 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/
DDynamicShortcuts.java134 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 …]
DPinnedShortcuts.java96 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/apps/Contacts/src/com/android/contacts/model/
DRawContactDeltaList.java138 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/
Dgeometry_utils.h42 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/
DMultiShrinkScroller.java529 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/
Dwprint_image.c404 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/
DSelectionMetadata.java75 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/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java467 IoStatsEntry delta21 = statEntry2.delta(statEntry1); in testUidIoStatEntryDelta()
485 IoStatsEntry delta31 = statEntry3.delta(statEntry1); in testUidIoStatEntryDelta()
501 UidIoRecord delta = statRecord.delta(statEntry); in testUidIoStatsRecordDelta() local
503 assertNotNull(delta); in testUidIoStatsRecordDelta()
504 assertEquals(statRecord.uid, delta.uid); in testUidIoStatsRecordDelta()
506 assertEquals(10, delta.foreground_rchar); in testUidIoStatsRecordDelta()
507 assertEquals(0, delta.foreground_wchar); in testUidIoStatsRecordDelta()
508 assertEquals(0, delta.foreground_read_bytes); in testUidIoStatsRecordDelta()
509 assertEquals(10, delta.foreground_write_bytes); in testUidIoStatsRecordDelta()
510 assertEquals(20, delta.foreground_fsync); in testUidIoStatsRecordDelta()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ddtoa.h34 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()
Dstrtod.h106 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/
DSplineMath.java57 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/
Dstrtodtest.cpp116 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/
DWidgetModel.kt35 var delta = WidgetDAO.updateWidgetCount(mPrefs, widgetClass, count) in updateWidgetCount() variable
36 while (delta > 0) { in updateWidgetCount()
38 delta-- in updateWidgetCount()
40 while (delta < 0) { in updateWidgetCount()
42 delta++ in updateWidgetCount()
DWidgetModel.java42 int delta = WidgetDAO.updateWidgetCount(mPrefs, widgetClass, count); in updateWidgetCount() local
43 for (; delta > 0; delta--) { in updateWidgetCount()
46 for (; delta < 0; delta++) { in updateWidgetCount()
DStopwatch.kt107 val delta = max(0, wallClockTime - lastWallClockTime) in reset() constant
108 return Stopwatch(state, timeSinceBoot, wallClockTime, accumulatedTime + delta) in reset()
122 val delta = timeSinceBoot - lastStartTime in updateAfterTimeSet() constant
123 return if (delta < 0) { in updateAfterTimeSet()
129 Stopwatch(state, timeSinceBoot, wallClockTime, accumulatedTime + delta) in updateAfterTimeSet()
DStopwatch.java127 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()
DTimer.java267 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()
DTimer.kt212 val delta = max(0, wallClockTime - lastWallClockTime) in <lambda>() constant
213 val remainingTime = lastRemainingTime - delta in <lambda>()
227 val delta = timeSinceBoot - lastStartTime in <lambda>() constant
228 val remainingTime = lastRemainingTime - delta in <lambda>()
229 return if (delta < 0) { in <lambda>()
285 val delta = remainingTime - lastRemainingTime in <lambda>() constant
286 val totalLength = totalLength + delta in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java625 final int delta = mIsRtl ? -1 : 1; in getPageScrolls() local
634 for (int i = startIndex, childLeft = scrollOffsetLeft; i != endIndex; i += delta) { in getPageScrolls()
983 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress() local
989 if ((delta < 0 && !mIsRtl) || (delta > 0 && mIsRtl)) { in getScrollProgress()
999 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress()
1431 int delta = newX - getUnboundedScrollX(); in snapToPageWithVelocity() local
1444 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()
1457 return snapToPage(whichPage, delta, duration, false, null, in snapToPageWithVelocity()
1460 return snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
1485 final int delta = newX - getUnboundedScrollX(); in snapToPage() local
[all …]
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java1117 int delta; in compareProvisioning() local
1123 delta = PROV_CHANGE_GAINED_PROVISIONING; in compareProvisioning()
1125 delta = PROV_CHANGE_STILL_PROVISIONED; in compareProvisioning()
1127 delta = PROV_CHANGE_STILL_NOT_PROVISIONED; in compareProvisioning()
1139 delta = PROV_CHANGE_LOST_PROVISIONING; in compareProvisioning()
1176 delta = PROV_CHANGE_LOST_PROVISIONING; in compareProvisioning()
1195 delta = PROV_CHANGE_STILL_PROVISIONED; in compareProvisioning()
1200 delta = PROV_CHANGE_LOST_PROVISIONING; in compareProvisioning()
1204 return delta; in compareProvisioning()
1207 private void dispatchCallback(int delta, LinkProperties newLp) { in dispatchCallback() argument
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmUtils.java63 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/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java246 public void startScroll(int start, int delta) { in startScroll() argument
247 startScroll(start, delta, DEFAULT_DURATION); in startScroll()
259 public void startScroll(int start, int delta, int duration) { in startScroll() argument
261 mScroller.startScroll(start, delta, duration); in startScroll()
274 public void startScrollSpring(int start, int delta, int duration, float velocity) { in startScrollSpring() argument
277 mScroller.startScroll(start, delta, duration, velocity); in startScrollSpring()
629 final int delta = start - end; in startSpringback() local
630 mDeceleration = getDeceleration(delta); in startSpringback()
632 mVelocity = -delta; // only sign is used in startSpringback()
633 mOver = Math.abs(delta); in startSpringback()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java202 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java190 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()

12345