Searched refs:WIDTH (Results 1 – 6 of 6) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CreateBitmap.java | 34 private static final int WIDTH = 50; field in CreateBitmap 41 for (int x = 0; x < WIDTH; x++) { in createColors() 42 int r = x * 255 / (WIDTH - 1); in createColors() 77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView() 79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView() 81 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView() 85 mBitmaps[3] = Bitmap.createBitmap(WIDTH, HEIGHT, in SampleView() 87 mBitmaps[4] = Bitmap.createBitmap(WIDTH, HEIGHT, in SampleView() 89 mBitmaps[5] = Bitmap.createBitmap(WIDTH, HEIGHT, in SampleView() 92 mBitmaps[i].setPixels(colors, 0, STRIDE, 0, 0, WIDTH, HEIGHT); in SampleView() [all …]
|
D | PurgeableBitmapView.java | 45 private static final int WIDTH = 150; field in PurgeableBitmapView 59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in PurgeableBitmapView() 70 for (int x = 0; x < WIDTH; x++) { in createColors() 71 int r = x * 255 / (WIDTH - 1); in createColors() 105 canvas.drawText(String.valueOf(mDecodingCount), WIDTH / 2 - 20, in onDraw()
|
D | BitmapMesh.java | 35 private static final int WIDTH = 20; field in BitmapMesh.SampleView 37 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1); 64 for (int x = 0; x <= WIDTH; x++) { in SampleView() 65 float fx = w * x / WIDTH; in SampleView() 80 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0, in onDraw()
|
D | MeasureText.java | 32 private static final int WIDTH = 50; field in MeasureText 39 for (int x = 0; x < WIDTH; x++) { in createColors() 40 int r = x * 255 / (WIDTH - 1); in createColors()
|
D | ScaleToFit.java | 59 private static final int WIDTH = 52; field in ScaleToFit.SampleView 61 private final RectF mDstR = new RectF(0, 0, WIDTH, HEIGHT);
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
D | NinePatchLab.java | 129 final int WIDTH = getWidth() - 2*MARGIN_X; in onDraw() local 134 final int drWidth = WIDTH; in onDraw()
|