Home
last modified time | relevance | path

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

123

/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorEditable.java41 String delta = tb.subSequence(tbstart, tbend).toString(); in replace() local
42 return internalReplace(start, end, delta); in replace()
49 private SpannableStringBuilder internalReplace(int start, int end, String delta) { in internalReplace() argument
50 if (!mLogic.acceptInsert(delta)) { in internalReplace()
57 delta = delta.replace(ORIGINALS[i], REPLACEMENTS[i]); in internalReplace()
60 int length = delta.length(); in internalReplace()
62 char text = delta.charAt(0); in internalReplace()
96 return super.replace(start, end, delta); in internalReplace()
DLogic.java106 void insert(String delta) { in insert() argument
107 mDisplay.insert(delta); in insert()
149 boolean acceptInsert(String delta) { in acceptInsert() argument
153 isOperator(delta) || in acceptInsert()
DCalculatorDisplay.java113 void insert(String delta) { in insert() argument
116 editor.getText().insert(cursor, delta); in insert()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DStatistics.java106 final long delta = time - mLastTapTime; in recordChar() local
109 if (delta < MIN_DELETION_INTERMISSION) { in recordChar()
111 mDuringRepeatedDeleteKeysCounter.add(delta); in recordChar()
113 mBeforeDeleteKeyCounter.add(delta); in recordChar()
128 if (mIsLastKeyDeleteKey && delta < MIN_DELETION_INTERMISSION) { in recordChar()
129 mAfterDeleteKeyCounter.add(delta); in recordChar()
130 } else if (!mIsLastKeyDeleteKey && delta < MIN_TYPING_INTERMISSION) { in recordChar()
131 mKeyCounter.add(delta); in recordChar()
/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/model/
DRawContactDeltaList.java59 public static RawContactDeltaList fromSingle(RawContactDelta delta) { in fromSingle() argument
61 state.add(delta); in fromSingle()
143 for (RawContactDelta delta : this) { in buildDiff()
144 delta.buildAssert(diff); in buildDiff()
153 for (RawContactDelta delta : this) { in buildDiff()
155 final boolean isInsert = delta.isContactInsert(); in buildDiff()
158 delta.buildDiff(diff); in buildDiff()
293 for (RawContactDelta delta : this) { in findRawContactId()
294 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId()
307 final RawContactDelta delta = this.get(index); in getRawContactId() local
[all …]
/packages/apps/Music/src/com/android/music/
DMediaPlaybackActivity.java195 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/Browser/src/com/android/browser/view/
DScrollerView.java784 protected void onPull(int delta) { in onPull() argument
816 final int delta = (int) (hscroll * getHorizontalScrollFactor()); in onGenericMotionEvent() local
819 int newScrollX = oldScrollX - delta; in onGenericMotionEvent()
834 final int delta = (int) (vscroll * getVerticalScrollFactor()); in onGenericMotionEvent() local
837 int newScrollY = oldScrollY - delta; in onGenericMotionEvent()
1141 int delta = up ? (top - containerTop) : (bottom - containerBottom); in scrollAndFocus() local
1142 doScrollY(delta); in scrollAndFocus()
1229 private boolean isWithinDeltaOfScreen(View descendant, int delta, int height) { in isWithinDeltaOfScreen() argument
1233 return (mTempRect.right + delta) >= getScrollX() in isWithinDeltaOfScreen()
1234 && (mTempRect.left - delta) <= (getScrollX() + height); in isWithinDeltaOfScreen()
[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()
DZoomControlBar.java102 int delta = mSliderPosition - pos; in dispatchTouchEvent() local
103 if ((delta > THRESHOLD_FIRST_MOVE) || in dispatchTouchEvent()
104 (delta < -THRESHOLD_FIRST_MOVE)) { in dispatchTouchEvent()
/packages/inputmethods/PinyinIME/jni/share/
Dngram.cpp111 double delta = recalculate_kernel(freqs, num, code_book, code_idx); in iterate_codes() local
115 iter_num, changed, delta); in iterate_codes()
120 (delta == 0 || fabs(delta_last - delta)/fabs(delta) < 0.000000001)) in iterate_codes()
122 delta_last = delta; in iterate_codes()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSpline.java162 double delta = (x2 - x1); in getAppliedCurve() local
163 double delta2 = delta * delta; in getAppliedCurve()
164 double b = (x - x1) / delta; in getAppliedCurve()
257 double delta = (x2 - x1); in draw() local
258 double delta2 = delta * delta; in draw()
259 double b = (x - x1) / delta; in draw()
DImageCurves.java151 double delta = Math.sqrt((px - x) * (px - x) + (py - y) * (py - y)); in pickControlPoint() local
157 if (currentDelta < delta) { in pickControlPoint()
158 delta = currentDelta; in pickControlPoint()
163 if (!mDidAddPoint && (delta * getWidth() > 100) in pickControlPoint()
DSliderController.java77 int delta = (int) (100 * (getCurrentX() - getCenterX()) / getWidth()); in computeValue() local
78 int value = mOriginalValue + delta; in computeValue()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DHorizontalScrollView.java689 final int delta = (int) (hscroll * getHorizontalScrollFactor()); in onGenericMotionEvent() local
692 int newScrollX = oldScrollX + delta; in onGenericMotionEvent()
1016 int delta = goLeft ? (left - containerLeft) : (right - containerRight); in scrollAndFocus() local
1017 doScrollX(delta); in scrollAndFocus()
1096 private boolean isWithinDeltaOfScreen(View descendant, int delta) { in isWithinDeltaOfScreen() argument
1100 return (mTempRect.right + delta) >= getScrollX() in isWithinDeltaOfScreen()
1101 && (mTempRect.left - delta) <= (getScrollX() + getWidth()); in isWithinDeltaOfScreen()
1109 private void doScrollX(int delta) { in doScrollX() argument
1110 if (delta != 0) { in doScrollX()
1112 smoothScrollBy(delta, 0); in doScrollX()
[all …]
DHandleView.java60 public boolean onMove(HandleView view, int left, int delta); in onMove() argument
69 public void onMoveEnd(HandleView view, int left, int delta); in onMoveEnd() argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCacheStorageUsageInfo.java52 public void increaseTargetCacheSize(long delta) { in increaseTargetCacheSize() argument
53 mUserChangeDelta += delta; in increaseTargetCacheSize()
DUndoBarView.java194 float delta = (float) (AnimationTime.get() - mAnimationStartTime) / in advanceAnimation() local
196 mAlpha = mFromAlpha + ((mToAlpha > mFromAlpha) ? delta : -delta); in advanceAnimation()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java25 void incrementTimeMillis(long delta) { in incrementTimeMillis() argument
26 mTimeMillis += delta; in incrementTimeMillis()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
Dmany.rs269 int delta = now - lastuptime;
271 if (delta > 80) {
276 delta = 80;
278 autorotation += .3 * delta / 35;
/packages/apps/Launcher2/src/com/android/launcher2/
DSmoothPagedView.java134 final int delta = newX - mUnboundedScrollX; in snapToPageWithVelocity() local
154 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
DPagedView.java577 int delta = newX - getScrollX(); in scrollToNewPageWithoutMovingPages() local
582 page.setX(page.getX() + delta); in scrollToNewPageWithoutMovingPages()
1104 int delta = screenCenter - (getChildOffset(page) - in getScrollProgress() local
1107 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress()
1475 int delta = newX - mUnboundedScrollX; in snapToPageWithVelocity() local
1489 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()
1502 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
1517 final int delta = newX - sX; in snapToPage() local
1518 snapToPage(whichPage, delta, duration); in snapToPage()
1521 protected void snapToPage(int whichPage, int delta, int duration) { in snapToPage() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDetailPhotoSetter.java66 RawContactDeltaList delta = mContactData.createRawContactDeltaList(); in onClick() local
87 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(), in onClick()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java613 long delta = unixTime - now;
614 if (delta > DateUtils.MINUTE_IN_MILLIS) {
615 delta /= DateUtils.MINUTE_IN_MILLIS;
617 time.format("%H:%M:%S"), delta);
619 delta /= DateUtils.SECOND_IN_MILLIS;
621 time.format("%H:%M:%S"), delta);
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
Dnexus.rs161 int delta = gNow - p->startTime;
163 if (p->active != 0 && delta >= 0) {
176 float x = p->originX + (p->dx * SPEED * delta);
177 float y = p->originY + (p->dy * SPEED * delta);

123