Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java311 int curW = mBitmap != null ? mBitmap.getWidth() : 0; in onSizeChanged() local
313 if (curW >= w && curH >= h) { in onSizeChanged()
317 if (curW < w) curW = w; in onSizeChanged()
320 Bitmap newBitmap = Bitmap.createBitmap(curW, curH, Bitmap.Config.ARGB_8888); in onSizeChanged()
360 final int curW = mBitmap != null ? mBitmap.getWidth() : 0; in moveTrackball() local
363 mCurX = Math.max(Math.min(mCurX + deltaX, curW - 1), 0); in moveTrackball()