/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 | 100 void insert(String delta) { in insert() argument 101 mDisplay.insert(delta); in insert() 139 boolean acceptInsert(String delta) { in acceptInsert() argument 143 isOperator(delta) || in acceptInsert()
|
D | CalculatorDisplay.java | 115 void insert(String delta) { in insert() argument 118 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 | 56 public static EntityDeltaList fromSingle(EntityDelta delta) { in fromSingle() argument 58 state.add(delta); in fromSingle() 133 for (EntityDelta delta : this) { in buildDiff() 134 delta.buildAssert(diff); in buildDiff() 143 for (EntityDelta delta : this) { in buildDiff() 145 final boolean isInsert = delta.isContactInsert(); in buildDiff() 148 delta.buildDiff(diff); in buildDiff() 270 for (EntityDelta delta : this) { in findRawContactId() 271 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId() 284 final EntityDelta delta = this.get(index); in getRawContactId() local [all …]
|
D | EntityModifier.java | 702 for (ValuesDelta delta : entries) { in parseValues() 703 if (!delta.isDelete()) { in parseValues() 704 if (areEqual(delta, values, kind)) { in parseValues() 730 for (ValuesDelta delta : entries) { in parseValues() 731 if (!delta.isDelete() && !isEmpty(delta, kind)) { in parseValues() 737 for (ValuesDelta delta : entries) { in parseValues() 738 delta.markDeleted(); in parseValues() 752 for (ValuesDelta delta : entries) { in parseValues() 753 if (!isEmpty(delta, kind)) { in parseValues() 754 delta.put(Note.NOTE, delta.getAsString(Note.NOTE) + "\n" in parseValues()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
D | WaveformImage.java | 67 int delta = size / (numSamplePerPixel * w); in drawWaveform() local 68 if (delta == 0) { in drawWaveform() 70 delta = 1; in drawWaveform() 83 index += delta; in drawWaveform()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 191 private int getTouchIndicatorIndex(double delta) { in getTouchIndicatorIndex() argument 199 if ((delta >= (mStartVisibleRadians[mCurrentLevel] - HIGHLIGHT_RADIANS / 2)) && in getTouchIndicatorIndex() 200 (delta <= (mEndVisibleRadians[mCurrentLevel] + HIGHLIGHT_RADIANS / 2))) { in getTouchIndicatorIndex() 201 int index = (int) ((delta - mStartVisibleRadians[mCurrentLevel]) in getTouchIndicatorIndex() 209 if (delta <= (mChildRadians[startIndex + index] in getTouchIndicatorIndex() 213 if (delta >= (mChildRadians[startIndex + index + 1] in getTouchIndicatorIndex() 239 double delta = Math.atan2(dy, dx); in dispatchTouchEvent() local 240 if (delta < 0) delta += Math.PI * 2; in dispatchTouchEvent() 241 int index = getTouchIndicatorIndex(delta); in dispatchTouchEvent() 419 float delta = mStrokeWidth * 0.5f; in onDraw() local
|
D | ZoomControlBar.java | 101 int delta = mSliderPosition - pos; in dispatchTouchEvent() local 102 if ((delta > THRESHOLD_FIRST_MOVE) || in dispatchTouchEvent() 103 (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/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()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | FakeSystemFacade.java | 29 void incrementTimeMillis(long delta) { in incrementTimeMillis() argument 30 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/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 | FocusHelper.java | 603 private static View findIndexOfIcon(ArrayList<View> views, int i, int delta) { in findIndexOfIcon() argument 606 int newI = i + delta; in findIndexOfIcon() 612 newI += delta; in findIndexOfIcon() 617 int delta) { in getIconInDirection() argument 619 return findIndexOfIcon(views, i, delta); in getIconInDirection() 622 int delta) { in getIconInDirection() argument 624 return findIndexOfIcon(views, views.indexOf(v), delta); in getIconInDirection()
|
D | PagedView.java | 506 int delta = newX - mScrollX; in scrollToNewPageWithoutMovingPages() local 511 page.setX(page.getX() + delta); in scrollToNewPageWithoutMovingPages() 1006 int delta = screenCenter - (getChildOffset(page) - in getScrollProgress() local 1009 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress() 1410 int delta = newX - mUnboundedScrollX; in snapToPageWithVelocity() local 1424 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() 1436 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity() 1451 final int delta = newX - sX; in snapToPage() local 1452 snapToPage(whichPage, delta, duration); in snapToPage() 1455 protected void snapToPage(int whichPage, int delta, int duration) { in snapToPage() argument [all …]
|
/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/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
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 544 long delta = unixTime - now; in formatDebugTime() local 545 if (delta > DateUtils.MINUTE_IN_MILLIS) { in formatDebugTime() 546 delta /= DateUtils.MINUTE_IN_MILLIS; in formatDebugTime() 548 time.format("%H:%M:%S"), delta); in formatDebugTime() 550 delta /= DateUtils.SECOND_IN_MILLIS; in formatDebugTime() 552 time.format("%H:%M:%S"), delta); in formatDebugTime()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | SetAlarm.java | 340 long delta = timeInMillis - System.currentTimeMillis(); in formatToast() local 341 long hours = delta / (1000 * 60 * 60); in formatToast() 342 long minutes = delta / (1000 * 60) % 60; in formatToast()
|
/packages/apps/Browser/src/com/android/browser/ |
D | NavTabScroller.java | 482 protected void onPull(int delta) { in onPull() argument 485 if (delta == 0 && mPullValue == 0) return; in onPull() 486 if (delta == 0 && mPullValue != 0) { in onPull() 511 mPullValue += delta; in onPull()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/ |
D | BlobCacheTest.java | 655 float delta = (System.nanoTime() - t0) * 1e-3f; 656 Log.v(TAG, "write bandwidth = " + (count / delta) + " M/s"); 670 delta = (System.nanoTime() - t0) * 1e-3f; 671 Log.v(TAG, "copy over bandwidth = " + (count / delta) + " M/s"); 684 delta = (System.nanoTime() - t0) * 1e-3f; 685 Log.v(TAG, "read bandwidth = " + (count / delta) + " M/s");
|