HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 601 - 625 of 1029) sorted by null

<<21222324252627282930>>

  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageWorker.java 21 import android.graphics.Bitmap;
37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an
47 private Bitmap mLoadingBitmap;
70 * will be created to asynchronously load the bitmap.
88 // Bitmap found in memory cache
114 * will be created to asynchronously load the bitmap.
124 * Set placeholder bitmap that shows when the the background thread is running.
126 * @param bitmap
128 public void setLoadingImage(Bitmap bitmap) {
285 Bitmap bitmap = null; local
    [all...]
  /developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
PdfRendererBasicFragment.java 20 import android.graphics.Bitmap;
41 * {@link android.graphics.Bitmap}s.
71 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap}
201 // Important: the destination bitmap must be ARGB (not RGB).
202 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local
203 Bitmap.Config.ARGB_8888);
204 // Here, we render the page onto the Bitmap.
208 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY)
    [all...]
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageFetcher.java 20 import android.graphics.Bitmap;
185 * @param data The data to load the bitmap, in this case, a regular http URL
186 * @return The downloaded and resized bitmap
188 private Bitmap processBitmap(String data) {
242 Bitmap bitmap = null; local
244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth,
252 return bitmap;
256 protected Bitmap processBitmap(Object data) {
261 * Download a bitmap from a URL and write the content to an output stream
    [all...]
ImageWorker.java 21 import android.graphics.Bitmap;
37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an
47 private Bitmap mLoadingBitmap;
70 * will be created to asynchronously load the bitmap.
88 // Bitmap found in memory cache
114 * will be created to asynchronously load the bitmap.
124 * Set placeholder bitmap that shows when the the background thread is running.
126 * @param bitmap
128 public void setLoadingImage(Bitmap bitmap) {
285 Bitmap bitmap = null; local
    [all...]
  /developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
PdfRendererBasicFragment.java 20 import android.graphics.Bitmap;
41 * {@link android.graphics.Bitmap}s.
71 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap}
201 // Important: the destination bitmap must be ARGB (not RGB).
202 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local
203 Bitmap.Config.ARGB_8888);
204 // Here, we render the page onto the Bitmap.
208 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY)
    [all...]
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
ImageDownloader.java 24 import android.graphics.Bitmap;
62 private final static HashMap<String, Bitmap> sHardBitmapCache =
63 new LinkedHashMap<String, Bitmap>(HARD_CACHE_CAPACITY / 2, 0.75f, true) {
66 protected boolean removeEldestEntry(Map.Entry<String, Bitmap> eldest) {
69 sSoftBitmapCache.put(eldest.getKey(), new SoftReference<Bitmap>(eldest.getValue()));
77 // Soft cache for bitmap kicked out of hard cache
78 private final static ConcurrentHashMap<String, SoftReference<Bitmap>> sSoftBitmapCache =
79 new ConcurrentHashMap<String, SoftReference<Bitmap>>(HARD_CACHE_CAPACITY / 2);
92 * otherwise. A null bitmap will be associated to the ImageView if an error occurs.
111 Bitmap bitmap = getBitmapFromCache(url) local
206 final Bitmap bitmap = sHardBitmapCache.get(url); local
219 final Bitmap bitmap = bitmapReference.get(); local
278 final Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageFetcher.java 20 import android.graphics.Bitmap;
185 * @param data The data to load the bitmap, in this case, a regular http URL
186 * @return The downloaded and resized bitmap
188 private Bitmap processBitmap(String data) {
242 Bitmap bitmap = null; local
244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth,
252 return bitmap;
256 protected Bitmap processBitmap(Object data) {
261 * Download a bitmap from a URL and write the content to an output stream
    [all...]
ImageWorker.java 21 import android.graphics.Bitmap;
37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an
47 private Bitmap mLoadingBitmap;
70 * will be created to asynchronously load the bitmap.
88 // Bitmap found in memory cache
114 * will be created to asynchronously load the bitmap.
124 * Set placeholder bitmap that shows when the the background thread is running.
126 * @param bitmap
128 public void setLoadingImage(Bitmap bitmap) {
285 Bitmap bitmap = null; local
    [all...]
  /development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/
ImagePixelization.java 20 import android.graphics.Bitmap;
59 Bitmap mImageBitmap;
66 Bitmap mPixelatedBitmap;
155 public BitmapDrawable customImagePixelization(float pixelizationFactor, Bitmap bitmap) {
157 int width = bitmap.getWidth();
158 int height = bitmap.getHeight();
162 mPixelatedBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
172 bitmap.getPixels(bitmapPixels, 0, width, 0, 0, width, height)
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageLoader.java 21 import android.graphics.Bitmap;
38 * This class wraps up completing some arbitrary long running work when loading a bitmap to an
47 private Bitmap mLoadingBitmap;
67 * created to asynchronously load the bitmap.
78 Bitmap bitmap = null; local
81 bitmap = mImageCache.getBitmapFromMemCache(String.valueOf(data));
84 if (bitmap != null) {
85 // Bitmap found in memory cache
86 imageView.setImageBitmap(bitmap);
210 Bitmap bitmap = null; local
    [all...]
  /external/curl/lib/
transfer.c 1245 int bitmap = GETSOCK_BLANK; local
    [all...]
  /external/fio/
smalloc.c 25 #define SMALLOC_BPB 32 /* block size, bytes-per-bit in bitmap */
45 unsigned int *bitmap; /* blocks free/busy map */ member in struct:pool
87 map = &pool->bitmap[pool_idx];
192 pool->bitmap = (void *) ptr + (pool->nr_blocks * SMALLOC_BPL);
193 memset(pool->bitmap, 0, bitmap_blocks * sizeof(unsigned int));
363 if (pool->bitmap[i] == -1U) {
370 idx = find_next_zero(pool->bitmap[i], last_idx);
  /external/freetype/src/winfonts/
winfnt.c 995 FT_Bitmap* bitmap = &slot->bitmap; local
1037 bitmap->width = FT_NEXT_USHORT_LE( p );
1052 bitmap->rows = font->header.pixel_height;
1053 bitmap->pixel_mode = FT_PIXEL_MODE_MONO;
1060 slot->metrics.width = (FT_Pos)( bitmap->width << 6 );
1061 slot->metrics.height = (FT_Pos)( bitmap->rows << 6 );
1062 slot->metrics.horiAdvance = (FT_Pos)( bitmap->width << 6 );
1067 (FT_Pos)( bitmap->rows << 6 ) );
1075 /* allocate and build bitmap */
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
ImageHeaderParser.java 1 package com.bumptech.glide.load.resource.bitmap;
3 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.GIF;
4 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.JPEG;
5 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG;
6 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG_A;
7 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.UNKNOWN;
  /external/pdfium/core/fxge/win32/
fx_win32_dwrite.cpp 427 BITMAP bitmap; local
428 GetObject(hBitmap, sizeof bitmap, &bitmap);
430 dib->Create(bitmap.bmWidth, bitmap.bmHeight,
431 bitmap.bmBitsPixel == 24 ? FXDIB_Rgb : FXDIB_Rgb32,
432 (uint8_t*)bitmap.bmBits);
  /external/pdfium/testing/
embedder_test.cpp 33 int GetBitmapBytesPerPixel(FPDF_BITMAP bitmap) {
34 const int format = FPDFBitmap_GetFormat(bitmap);
280 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, alpha); local
282 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, fill_color);
283 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, flags);
284 FPDF_FFLDraw(handle, bitmap, page, 0, 0, width, height, 0, flags);
285 return bitmap;
421 std::string EmbedderTest::HashBitmap(FPDF_BITMAP bitmap) {
423 CRYPT_MD5Generate(static_cast<uint8_t*>(FPDFBitmap_GetBuffer(bitmap)),
424 FPDFBitmap_GetWidth(bitmap) *
    [all...]
  /external/selinux/checkpolicy/test/
dismod.c 369 ebitmap_t *bitmap; local
373 bitmap = &(p->user_val_to_struct[i]->roles.roles);
374 for (j = ebitmap_startbit(bitmap); j < ebitmap_length(bitmap);
376 if (ebitmap_get_bit(bitmap, j)) {
  /external/skia/gm/
image.cpp 180 SkBitmap bitmap; local
181 bitmap.installPixels(pmap);
182 canvas->drawBitmap(bitmap, 0, 0, nullptr);
  /external/skia/tests/
AAClipTest.cpp 90 SkBitmap bitmap; local
91 bitmap.installPixels(info, mask->fImage, mask->fRowBytes);
99 SkCanvas canvas(bitmap);
  /external/skqp/gm/
image.cpp 179 SkBitmap bitmap; local
180 bitmap.installPixels(pmap);
181 canvas->drawBitmap(bitmap, 0, 0, nullptr);
  /external/skqp/tests/
AAClipTest.cpp 79 SkBitmap bitmap; local
80 bitmap.installPixels(info, mask->fImage, mask->fRowBytes);
88 SkCanvas canvas(bitmap);
  /external/tensorflow/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
ImageClassifier.java 20 import android.graphics.Bitmap;
99 String classifyFrame(Bitmap bitmap) {
104 convertBitmapToByteBuffer(bitmap);
172 private void convertBitmapToByteBuffer(Bitmap bitmap) {
177 bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight())
    [all...]
  /external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
TensorFlowMultiBoxDetector.java 19 import android.graphics.Bitmap;
203 public List<Recognition> recognizeImage(final Bitmap bitmap) {
210 bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
  /frameworks/base/core/jni/
android_view_Surface.cpp 290 bitmap.setAlphaType(kOpaque_SkAlphaType) on the resulting SkBitmap
338 SkBitmap bitmap; local
340 bitmap.setInfo(info, bpr);
342 bitmap.setPixels(outBuffer.bits);
344 // be safe with an empty bitmap.
345 bitmap.setPixels(NULL);
349 nativeCanvas->setBitmap(bitmap);
  /frameworks/base/core/tests/coretests/src/android/graphics/drawable/
AdaptiveIconDrawableTest.java 4 import android.graphics.Bitmap;
5 import android.graphics.Bitmap.Config;
49 final Bitmap bm_test = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888);
50 final Bitmap bm_org = bm_test.copy(Config.ARGB_8888, false);
78 final Bitmap bm_org = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
83 // Tested bitmap is drawn from the adaptive icon drawable
179 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); local
    [all...]

Completed in 1179 milliseconds

<<21222324252627282930>>