/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/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/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | EntitySet.java | 52 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/ContactsCommon/src/com/android/contacts/common/model/ |
D | RawContactDeltaList.java | 140 for (RawContactDelta delta : this) { in buildDiff() 141 delta.buildAssert(diff); in buildDiff() 150 for (RawContactDelta delta : this) { in buildDiff() 152 final boolean isInsert = delta.isContactInsert(); in buildDiff() 155 delta.buildDiff(diff); in buildDiff() 228 for (RawContactDelta delta : this) { in buildDiffWrapper() 229 delta.buildAssertWrapper(diffWrapper); in buildDiffWrapper() 238 for (RawContactDelta delta : this) { in buildDiffWrapper() 240 final boolean isInsert = delta.isContactInsert(); in buildDiffWrapper() 243 delta.buildDiffWrapper(diffWrapper); in buildDiffWrapper() [all …]
|
D | RawContactModifier.java | 723 for (ValuesDelta delta : entries) { in parseValues() 724 if (!delta.isDelete()) { in parseValues() 725 if (areEqual(delta, values, kind)) { in parseValues() 751 for (ValuesDelta delta : entries) { in parseValues() 752 if (!delta.isDelete() && !isEmpty(delta, kind)) { in parseValues() 758 for (ValuesDelta delta : entries) { in parseValues() 759 delta.markDeleted(); in parseValues() 773 for (ValuesDelta delta : entries) { in parseValues() 774 if (!isEmpty(delta, kind)) { in parseValues() 775 delta.put(Note.NOTE, delta.getAsString(Note.NOTE) + "\n" in parseValues()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 507 final float delta = updatePositionAndComputeDelta(event); in onTouchEvent() local 508 scrollTo(0, getScroll() + (int) delta); in onTouchEvent() 513 if (delta > distanceFromMaxScrolling) { in onTouchEvent() 516 EdgeEffectCompat.onPull(mEdgeGlowBottom, delta / getHeight(), in onTouchEvent() 721 final int delta = y - getScroll(); in scrollTo() local 723 if (delta > 0) { in scrollTo() 724 scrollUp(delta); in scrollTo() 726 scrollDown(delta); in scrollTo() 750 public void setToolbarHeight(int delta) { in setToolbarHeight() argument 753 toolbarLayoutParams.height = delta; in setToolbarHeight() [all …]
|
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/ |
D | Listener.java | 141 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/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/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/DeskClock/src/com/android/deskclock/ |
D | AlarmUtils.java | 57 static String formatElapsedTimeUntilAlarm(Context context, long delta) { in formatElapsedTimeUntilAlarm() argument 60 if (delta < DateUtils.MINUTE_IN_MILLIS) { in formatElapsedTimeUntilAlarm() 67 final long remainder = delta % DateUtils.MINUTE_IN_MILLIS; in formatElapsedTimeUntilAlarm() 68 delta += remainder == 0 ? 0 : (DateUtils.MINUTE_IN_MILLIS - remainder); in formatElapsedTimeUntilAlarm() 70 int hours = (int) delta / (1000 * 60 * 60); in formatElapsedTimeUntilAlarm() 71 final int minutes = (int) delta / (1000 * 60) % 60; in formatElapsedTimeUntilAlarm()
|
/packages/apps/Music/src/com/android/music/ |
D | MediaPlaybackActivity.java | 195 int delta = mLastX - x; in onTouch() local 196 if (delta != 0) { in onTouch() 198 scrollx += delta; in onTouch() 213 int delta = mInitialX - (int) event.getX(); in onTouch() local 214 if (Math.abs(delta) > mTouchSlop) { in onTouch() 876 private void scanBackward(int repcnt, long delta) { in scanBackward() argument 885 if (delta < 5000) { in scanBackward() 887 delta = delta * 10; in scanBackward() 890 delta = 50000 + (delta - 5000) * 40; in scanBackward() 892 long newpos = mStartSeekPos - delta; in scanBackward() [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()
|
D | ZoomControlBar.java | 102 int delta = mSliderPosition - pos; in dispatchTouchEvent() local 103 if ((delta > THRESHOLD_FIRST_MOVE) || in dispatchTouchEvent() 104 (delta < -THRESHOLD_FIRST_MOVE)) { in dispatchTouchEvent()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | PagedView.java | 596 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/TV/tests/unit/src/com/android/tv/dvr/ |
D | RecordingTaskTest.java | 158 verify(mMockHandler).sendMessageAtTime(argThat(messageMatchesWhat(what)), delta(when, 100)); in verifySendMessageAt() 161 private static long delta(final long value, final long delta) { in delta() method in RecordingTaskTest 166 return other >= value - delta && other <= value + delta; in delta() 171 description.appendText("eq " + value + "±" + delta); in delta()
|
/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()
|
D | ImageCrop.java | 291 int delta = Math.min(canvas.getWidth(), canvas.getHeight()) / 4; in onDraw() local 292 int[] dy = {delta, -delta, 0, 0}; in onDraw() 293 int[] dx = {0, 0, delta, -delta}; in onDraw()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsManager.java | 239 final Bundle delta) { in computeConfigDelta() argument 247 delta.putString(key, (String) callerValue); in computeConfigDelta() 249 delta.putInt(key, (Integer) callerValue); in computeConfigDelta() 251 delta.putBoolean(key, (Boolean) callerValue); in computeConfigDelta()
|
/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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 855 final int delta = mIsRtl ? -1 : 1; in onLayout() local 867 for (int i = startIndex; i != endIndex; i += delta) { in onLayout() 892 int next = i + delta; in onLayout() 1480 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress() local 1486 if ((delta < 0 && !mIsRtl) || (delta > 0 && mIsRtl)) { in getScrollProgress() 1496 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress() 2019 int delta = newX - getUnboundedScrollX(); in snapToPageWithVelocity() local 2033 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() 2045 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity() 2069 final int delta = newX - getUnboundedScrollX(); in snapToPage() local [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 614 long delta = unixTime - now; 615 if (delta > DateUtils.MINUTE_IN_MILLIS) { 616 delta /= DateUtils.MINUTE_IN_MILLIS; 618 time.format("%H:%M:%S"), delta); 620 delta /= DateUtils.SECOND_IN_MILLIS; 622 time.format("%H:%M:%S"), delta);
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
D | DampedSpring.java | 113 float delta = (mTarget - mValue); in update() local 114 float force = delta - 2.0f * mVelocity; in update()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | UndoBarView.java | 198 float delta = (float) (AnimationTime.get() - mAnimationStartTime) / in advanceAnimation() local 200 mAlpha = mFromAlpha + ((mToAlpha > mFromAlpha) ? delta : -delta); in advanceAnimation()
|