Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 103) 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.java97 Delta delta = new Delta(); in refresh() local
119 delta.shortcutIdsToDisable.add(shortcutInfo.getId()); in refresh()
136 delta.shortcutsToUpdateById.put(shortcutInfo.getId(), shortcut); in refresh()
140 applyDelta(delta); in refresh()
143 private void applyDelta(@NonNull Delta delta) { in applyDelta() argument
147 if (!delta.shortcutIdsToDisable.isEmpty()) { in applyDelta()
148 shortcutManager.disableShortcuts(delta.shortcutIdsToDisable, shortcutDisabledMessage); in applyDelta()
150 if (!delta.shortcutsToUpdateById.isEmpty()) { in applyDelta()
154 shortcutInfoFactory.buildShortcutInfos(delta.shortcutsToUpdateById))) { in applyDelta()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntitySet.java52 public static EntitySet fromSingle(EntityDelta delta) { in fromSingle() argument
54 state.add(delta); in fromSingle()
121 for (EntityDelta delta : this) { in buildDiff()
122 delta.buildAssert(diff); in buildDiff()
131 for (EntityDelta delta : this) { in buildDiff()
134 delta.buildDiff(diff); in buildDiff()
137 if (!delta.isContactInsert()) continue; in buildDiff()
232 for (EntityDelta delta : this) { in findRawContactId()
233 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId()
246 final EntityDelta delta = this.get(index); in getRawContactId() local
[all …]
/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/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/DocumentsUI/src/com/android/documentsui/selection/
DSelectionMetadata.java72 final int delta = selected ? 1 : -1; in onItemStateChanged() local
76 mDirectoryCount += delta; in onItemStateChanged()
78 mFileCount += delta; in onItemStateChanged()
83 mPartialCount += delta; in onItemStateChanged()
86 mWritableDirectoryCount += delta; in onItemStateChanged()
89 mNoDeleteCount += delta; in onItemStateChanged()
92 mNoRenameCount += delta; in onItemStateChanged()
95 mPartialCount += delta; in onItemStateChanged()
103 mInArchiveCount += delta; in onItemStateChanged()
DSelection.java106 Map<String, Boolean> delta = new HashMap<>(); in setProvisionalSelection() local
112 delta.put(id, false); in setProvisionalSelection()
120 delta.put(id, false); in setProvisionalSelection()
128 delta.put(id, true); in setProvisionalSelection()
135 for (Map.Entry<String, Boolean> entry: delta.entrySet()) { in setProvisionalSelection()
144 return delta; in setProvisionalSelection()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackActivity.java189 int delta = mLastX - x; in onTouch() local
190 if (delta != 0) { in onTouch()
192 scrollx += delta; in onTouch()
207 int delta = mInitialX - (int) event.getX(); in onTouch() local
208 if (Math.abs(delta) > mTouchSlop) { in onTouch()
855 private void scanBackward(int repcnt, long delta) { in scanBackward() argument
864 if (delta < 5000) { in scanBackward()
866 delta = delta * 10; in scanBackward()
869 delta = 50000 + (delta - 5000) * 40; in scanBackward()
871 long newpos = mStartSeekPos - delta; in scanBackward()
[all …]
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
DListener.java141 Delta delta = null; in onCreate()
143 delta = (Delta) msg.obj; in onCreate()
148 Log.i(TAG, "notify: " + delta.mSbn.getKey()); in onCreate()
150 … boolean exists = mRankingMap.getRanking(delta.mSbn.getKey(), mTmpRanking); in onCreate()
152 sNotifications.add(delta.mSbn); in onCreate()
155 sNotifications.set(position, delta.mSbn); in onCreate()
157 mRankingMap = delta.mRankingMap; in onCreate()
163 .putExtra(EXTRA_KEY, delta.mSbn.getKey())); in onCreate()
167 final String cancelKey = delta.mSbn.getKey(); in onCreate()
174 mRankingMap = delta.mRankingMap; in onCreate()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java596 int delta = newX - getScrollX(); in scrollToNewPageWithoutMovingPages() local
601 page.setX(page.getX() + delta); in scrollToNewPageWithoutMovingPages()
657 final int delta = isRtl ? -1 : 1; in onLayout() local
659 for (int i = startIndex; i != endIndex; i += delta) { in onLayout()
748 final int delta = isRtl ? -1 : 1; in getChildOffset() local
750 for (int i = startIndex; i != endIndex; i += delta) { in getChildOffset()
792 int delta = isRtl ? -1 : 1; in getVisiblePages() local
797 leftScreen += delta; in getVisiblePages()
801 currPage = getPageAt(rightScreen + delta); in getVisiblePages()
804 rightScreen += delta; in getVisiblePages()
[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/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/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/
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/DeskClock/src/com/android/deskclock/data/
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()
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()
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()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java377 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()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java792 final int delta = mIsRtl ? -1 : 1; in onLayout() local
804 for (int i = startIndex; i != endIndex; i += delta) { in onLayout()
827 int next = i + delta; in onLayout()
1274 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress() local
1280 if ((delta < 0 && !mIsRtl) || (delta > 0 && mIsRtl)) { in getScrollProgress()
1290 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress()
1837 int delta = newX - getUnboundedScrollX(); in snapToPageWithVelocity() local
1851 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()
1863 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
1887 final int delta = newX - getUnboundedScrollX(); in snapToPage() local
[all …]
/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