Home
last modified time | relevance | path

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

/development/ndk/platforms/android-17/samples/Teapot/src/com/sample/helper/
DNDKHelper.java145 public int getBitmapWidth(Bitmap bmp) in getBitmapWidth() argument
147 return bmp.getWidth(); in getBitmapWidth()
150 public int getBitmapHeight(Bitmap bmp) in getBitmapHeight() argument
152 return bmp.getHeight(); in getBitmapHeight()
155 public void getBitmapPixels(Bitmap bmp, int[] pixels) in getBitmapPixels() argument
157 int w = bmp.getWidth(); in getBitmapPixels()
158 int h = bmp.getHeight(); in getBitmapPixels()
159 bmp.getPixels(pixels, 0, w, 0, 0, w, h); in getBitmapPixels()
162 public void closeBitmap(Bitmap bmp) in closeBitmap() argument
164 bmp.recycle(); in closeBitmap()
/development/ndk/platforms/android-18/samples/MoreTeapots/src/com/sample/helper/
DNDKHelper.java145 public int getBitmapWidth(Bitmap bmp) in getBitmapWidth() argument
147 return bmp.getWidth(); in getBitmapWidth()
150 public int getBitmapHeight(Bitmap bmp) in getBitmapHeight() argument
152 return bmp.getHeight(); in getBitmapHeight()
155 public void getBitmapPixels(Bitmap bmp, int[] pixels) in getBitmapPixels() argument
157 int w = bmp.getWidth(); in getBitmapPixels()
158 int h = bmp.getHeight(); in getBitmapPixels()
159 bmp.getPixels(pixels, 0, w, 0, 0, w, h); in getBitmapPixels()
162 public void closeBitmap(Bitmap bmp) in closeBitmap() argument
164 bmp.recycle(); in closeBitmap()
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DThumbnailRadioButton.java62 BitmapDrawable bmp = new BitmapDrawable(getResources(), bitmap); in setThumbnail() local
63 bmp.setGravity(Gravity.CENTER); in setThumbnail()
73 Drawable drawableArray[] = new Drawable[]{bmp, rectChecked}; in setThumbnail()
83 Drawable drawableArray2[] = new Drawable[]{bmp, rectUnchecked}; in setThumbnail()
/development/apps/WidgetPreview/src/com/android/widgetpreview/
DWidgetPreviewActivity.java243 Bitmap bmp = Bitmap.createBitmap( in getPreviewBitmap() local
245 Canvas c = new Canvas(bmp); in getPreviewBitmap()
247 return bmp; in getPreviewBitmap()
250 private boolean saveImage(Bitmap bmp, String name) { in saveImage() argument
261 if (!bmp.compress(CompressFormat.PNG, 100, fout)) { in saveImage()
295 Bitmap bmp = getPreviewBitmap(); in onClick() local
296 if (saveImage(bmp, mAppWidgetName)) { in onClick()
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java449 Bitmap bmp = BitmapFactory.decodeResource(res, bmpResId, opts);
451 if (bmp == null && isInEditMode()) {
458 bmp = Bitmap.createBitmap(w, h, Config.ARGB_8888);
459 Canvas c = new Canvas(bmp);
464 return bmp;
/development/ndk/platforms/android-21/include/linux/
Dxfrm.h102 __u32 bmp[0]; member