/packages/apps/Calculator/src/com/android/calculator2/ |
D | CalculatorEditable.java | 41 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()
|
D | Logic.java | 106 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()
|
D | CalculatorDisplay.java | 113 void insert(String delta) { in insert() argument 116 editor.getText().insert(cursor, delta); in insert()
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
D | RotateView.java | 114 float delta = radius - centerX; in onSizeChanged() local 115 referenceLine.moveTo(-delta, centerY); in onSizeChanged() 116 referenceLine.lineTo(getWidth() + delta, centerY); in onSizeChanged() 117 delta = radius - centerY; in onSizeChanged() 118 referenceLine.moveTo(centerX, -delta); in onSizeChanged() 119 referenceLine.lineTo(centerX, getHeight() + delta); in onSizeChanged() 123 delta = displayBounds.width() / 4.0f; in onSizeChanged() 124 for (float x = displayBounds.left + delta; x < displayBounds.right; x += delta) { in onSizeChanged() 128 delta = displayBounds.height() / 4.0f; in onSizeChanged() 129 for (float y = displayBounds.top + delta; y < displayBounds.bottom; y += delta) { in onSizeChanged()
|
/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/Contacts/src/com/android/contacts/model/ |
D | EntityDeltaList.java | 59 public static EntityDeltaList fromSingle(EntityDelta delta) { in fromSingle() argument 61 state.add(delta); in fromSingle() 139 for (EntityDelta delta : this) { in buildDiff() 140 delta.buildAssert(diff); in buildDiff() 149 for (EntityDelta delta : this) { in buildDiff() 151 final boolean isInsert = delta.isContactInsert(); in buildDiff() 154 delta.buildDiff(diff); in buildDiff() 289 for (EntityDelta delta : this) { in findRawContactId() 290 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId() 303 final EntityDelta delta = this.get(index); in getRawContactId() local [all …]
|
D | EntityModifier.java | 710 for (ValuesDelta delta : entries) { in parseValues() 711 if (!delta.isDelete()) { in parseValues() 712 if (areEqual(delta, values, kind)) { in parseValues() 738 for (ValuesDelta delta : entries) { in parseValues() 739 if (!delta.isDelete() && !isEmpty(delta, kind)) { in parseValues() 745 for (ValuesDelta delta : entries) { in parseValues() 746 delta.markDeleted(); in parseValues() 760 for (ValuesDelta delta : entries) { in parseValues() 761 if (!isEmpty(delta, kind)) { in parseValues() 762 delta.put(Note.NOTE, delta.getAsString(Note.NOTE) + "\n" in parseValues()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 269 private int getTouchIndicatorIndex(double delta) { in getTouchIndicatorIndex() argument 308 touchInRange = (delta >= startRadians || delta <= endRadians); in getTouchIndicatorIndex() 310 touchInRange = (delta >= startRadians && delta <= endRadians); in getTouchIndicatorIndex() 322 delta = rebase(delta, offset); in getTouchIndicatorIndex() 327 index = (int) ((delta - rebase(mChildRadians[startIndex], offset)) in getTouchIndicatorIndex() 335 if (delta >= (rebase(mChildRadians[startIndex], offset) in getTouchIndicatorIndex() 340 if (delta <= (rebase(mChildRadians[startIndex + index], offset) in getTouchIndicatorIndex() 344 if (delta >= (rebase(mChildRadians[startIndex + index + 1], offset) in getTouchIndicatorIndex() 390 double delta = Math.atan2(dy, dx); in dispatchTouchEvent() local 391 if (delta < 0) delta += Math.PI * 2; in dispatchTouchEvent() [all …]
|
D | ZoomControlBar.java | 128 int delta = mSliderPosition - pos; in dispatchTouchEvent() local 129 if ((delta > THRESHOLD_FIRST_MOVE) || in dispatchTouchEvent() 130 (delta < -THRESHOLD_FIRST_MOVE)) { in dispatchTouchEvent()
|
/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/Browser/src/com/android/browser/view/ |
D | ScrollerView.java | 784 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/ |
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/inputmethods/PinyinIME/jni/share/ |
D | ngram.cpp | 111 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/ui/ |
D | CacheStorageUsageInfo.java | 51 public void increaseTargetCacheSize(long delta) { in increaseTargetCacheSize() argument 52 mUserChangeDelta += delta; in increaseTargetCacheSize()
|
D | UndoBarView.java | 192 float delta = (float) (AnimationTime.get() - mAnimationStartTime) / in advanceAnimation() local 194 mAlpha = mFromAlpha + ((mToAlpha > mFromAlpha) ? delta : -delta); in advanceAnimation()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | FakeSystemFacade.java | 30 void incrementTimeMillis(long delta) { in incrementTimeMillis() argument 31 mTimeMillis += delta; in incrementTimeMillis()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/ |
D | many.rs | 269 int delta = now - lastuptime; 271 if (delta > 80) { 276 delta = 80; 278 autorotation += .3 * delta / 35;
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDetailPhotoSetter.java | 66 EntityDeltaList delta = mContactData.createEntityDeltaList(); in onClick() local 87 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(), in onClick()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | SmoothPagedView.java | 134 final int delta = newX - mUnboundedScrollX; in snapToPageWithVelocity() local 154 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
|
D | PagedView.java | 554 int delta = newX - getScrollX(); in scrollToNewPageWithoutMovingPages() local 559 page.setX(page.getX() + delta); in scrollToNewPageWithoutMovingPages() 1090 int delta = screenCenter - (getChildOffset(page) - in getScrollProgress() local 1093 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress() 1461 int delta = newX - mUnboundedScrollX; in snapToPageWithVelocity() local 1475 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() 1487 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity() 1502 final int delta = newX - sX; in snapToPage() local 1503 snapToPage(whichPage, delta, duration); in snapToPage() 1506 protected void snapToPage(int whichPage, int delta, int duration) { in snapToPage() argument [all …]
|
D | FocusHelper.java | 594 private static View findIndexOfIcon(ArrayList<View> views, int i, int delta) { in findIndexOfIcon() argument 597 int newI = i + delta; in findIndexOfIcon() 603 newI += delta; in findIndexOfIcon() 608 int delta) { in getIconInDirection() argument 610 return findIndexOfIcon(views, i, delta); in getIconInDirection() 613 int delta) { in getIconInDirection() argument 615 return findIndexOfIcon(views, views.indexOf(v), delta); in getIconInDirection()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
D | nexus.rs | 159 int delta = gNow - p->startTime; 161 if (p->active != 0 && delta >= 0) { 174 float x = p->originX + (p->dx * SPEED * delta); 175 float y = p->originY + (p->dy * SPEED * delta);
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 608 long delta = unixTime - now; 609 if (delta > DateUtils.MINUTE_IN_MILLIS) { 610 delta /= DateUtils.MINUTE_IN_MILLIS; 612 time.format("%H:%M:%S"), delta); 614 delta /= DateUtils.SECOND_IN_MILLIS; 616 time.format("%H:%M:%S"), delta);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | HandleView.java | 60 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
|