Home
last modified time | relevance | path

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

/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyNetworkMonitor.java62 long delta = timeNow - mEventTime; in updateNetworkStats() local
65 if (LDEBUG) Logger.out.println("Adding to mobile: " + delta); in updateNetworkStats()
66 mMobileElapsedTime += delta; in updateNetworkStats()
69 if (LDEBUG) Logger.out.println("Adding to wifi: " + delta); in updateNetworkStats()
70 mWifiElapsedTime += delta; in updateNetworkStats()
73 if (LDEBUG) Logger.out.println("Unaccounted for: " + delta); in updateNetworkStats()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java283 int delta = Math.round(mIsHorizontal ? ((float) w) / ((float) mNumberOfFolds) : in prepareFold() local
292 int deltap = (x + 1) * delta > w ? w - x * delta : delta; in prepareFold()
293 mFoldRectArray[x] = new Rect(x * delta, 0, x * delta + deltap, h); in prepareFold()
295 int deltap = (x + 1) * delta > h ? h - x * delta : delta; in prepareFold()
296 mFoldRectArray[x] = new Rect(0, x * delta, w, x * delta + deltap); in prepareFold()
302 mFoldMaxWidth = delta; in prepareFold()
304 mFoldMaxHeight = delta; in prepareFold()
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandingListView.java219 int delta = newHeight - oldHeight;
221 mTranslate = getTopAndBottomTranslations(oldTop, oldBottom, delta, true);
281 int delta = old[0] < oldTop ? -yTranslateTop : yTranslateBottom;
282 animations.add(getAnimation(v, delta, delta));
286 int delta = i > index ? yTranslateBottom : -yTranslateTop;
287 animations.add(getAnimation(v, delta, delta));
467 int delta = i > index ? yTranslateBottom : -yTranslateTop;
468 v.setTop(v.getTop() + delta);
469 v.setBottom(v.getBottom() + delta);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DDrawPoints.java46 final float delta = SIZE / SEGS; in buildPoints() local
52 value += delta; in buildPoints()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java207 int delta = startTop - top; in animateRemoval()
208 child.setTranslationY(delta); in animateRemoval()
227 int delta = startTop - top; in animateRemoval()
228 child.setTranslationY(delta); in animateRemoval()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DSpriteTextRenderer.java178 long delta = time - mLastTime; in onDrawFrame() local
179 Log.w("time", Long.toString(delta)); in onDrawFrame()
211 long delta = time - mStartTime; in drawMsPF() local
213 mMsPerFrame = (int) (delta * SAMPLE_FACTOR); in drawMsPF()
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java202 int delta = startTop - top; in addRow()
204 View.TRANSLATION_Y, delta, 0); in addRow()
212 int delta = startTop - top; in addRow()
214 View.TRANSLATION_Y, delta, 0); in addRow()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java300 int delta = startTop - top; in animateOtherViews()
301 if (delta != 0) { in animateOtherViews()
313 moveView(child, 0, 0, delta, 0, endAction); in animateOtherViews()
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
DDynamicListView.java358 int delta = switchViewStartTop - switchViewNewTop; in handleCellSwitch()
360 switchView.setTranslationY(delta); in handleCellSwitch()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/provider/
DSampleMediaRouteProvider.java277 public void onUpdateVolume(int delta) { in onUpdateVolume() argument
278 Log.d(TAG, mRouteId + ": Update volume by " + delta); in onUpdateVolume()
280 setVolumeInternal(mVolume + delta); in onUpdateVolume()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DDeviceAdminSample.java1139 long delta = expr - System.currentTimeMillis(); in onPasswordExpiring() local
1140 boolean expired = delta < 0L; in onPasswordExpiring()