HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 426 - 450 of 864) sorted by null

<<11121314151617181920>>

  /packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
WearPackageInstallerService.java 30 import android.graphics.Bitmap;
536 // Convert bitmap to byte array
537 Bitmap bitmap = ((BitmapDrawable) d).getBitmap(); local
539 bitmap.compress(Bitmap.CompressFormat.PNG, 0, bos);
  /art/runtime/gc/collector/
mark_compact.cc 78 // Set the bit in the bitmap so that we know to restore it later.
107 // Visit all the marked objects in the bitmap.
120 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap.
171 // Bitmap which describes which objects we have to move.
174 // Bitmap which describes which lock words we need to restore.
367 // No mod union table, so we need to scan the space using bitmap visit.
368 // Scan the space using bitmap visit.
369 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); local
370 if (bitmap != nullptr)
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
ActivityTestBase.java 20 import android.graphics.Bitmap;
127 public Bitmap takeScreenshot(Point testOffset) {
129 Bitmap source = getInstrumentation().getUiAutomation().takeScreenshot();
130 return Bitmap.createBitmap(source, testOffset.x, testOffset.y, TEST_WIDTH, TEST_HEIGHT);
149 * Used to execute a specific part of a test and get the resultant bitmap
151 protected Bitmap captureRenderSpec(TestCase testCase) {
160 protected void assertBitmapsAreSimilar(Bitmap bitmap1, Bitmap bitmap2,
187 * Tests to see if a bitmap passes a verifier's test. If it doesn't the bitmap is saved to th
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
PixelCopyTests.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
78 Bitmap dest = null;
95 dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888);
107 "Should have generated an IllegalArgumentException, recycled bitmap!", t);
139 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
141 int result = copyHelper.request(activity.getView(), bitmap);
189 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
    [all...]
  /developers/build/prebuilts/gradle/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/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...]
  /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/
http2.c 55 int bitmap = GETSOCK_BLANK; local
63 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET);
66 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET);
68 return bitmap;
    [all...]
transfer.c 1194 int bitmap = GETSOCK_BLANK; local
    [all...]
  /external/fio/
smalloc.c 24 #define SMALLOC_BPB 32 /* block size, bytes-per-bit in bitmap */
40 unsigned int *bitmap; /* blocks free/busy map */ member in struct:pool
113 map = &pool->bitmap[pool_idx];
216 pool->bitmap = (void *) ptr + (pool->nr_blocks * SMALLOC_BPL);
390 if (pool->bitmap[i] == -1U) {
397 idx = find_next_zero(pool->bitmap[i], last_idx);
  /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/src/fxge/win32/
fx_win32_dwrite.cpp 390 BITMAP bitmap; local
391 GetObject(hBitmap, sizeof bitmap, &bitmap);
393 dib.Create(bitmap.bmWidth, bitmap.bmHeight,
394 bitmap.bmBitsPixel == 24 ? FXDIB_Rgb : FXDIB_Rgb32,
395 (uint8_t*)bitmap.bmBits);
  /external/pdfium/samples/
pdfium_test.cc 109 fprintf(stderr, "Failed to convert bitmap to PNG\n");
355 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, alpha); local
356 if (!bitmap) {
361 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, fill_color);
362 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0);
364 FPDF_FFLDraw(form, bitmap, page, 0, 0, width, height, 0, 0);
365 int stride = FPDFBitmap_GetStride(bitmap);
367 reinterpret_cast<const char*>(FPDFBitmap_GetBuffer(bitmap));
391 FPDFBitmap_Destroy(bitmap);
  /external/selinux/checkpolicy/test/
dismod.c 344 ebitmap_t *bitmap; local
348 bitmap = &(p->user_val_to_struct[i]->roles.roles);
349 for (j = ebitmap_startbit(bitmap); j < ebitmap_length(bitmap);
351 if (ebitmap_get_bit(bitmap, j)) {
  /external/skia/gm/
image.cpp 202 SkBitmap bitmap; local
203 bitmap.installPixels(pmap);
204 canvas->drawBitmap(bitmap, 0, 0, nullptr);
  /external/skia/src/core/
SkPicturePlayback.cpp 83 static SkBitmap shallow_copy(const SkBitmap& bitmap) {
84 return bitmap;
199 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
201 canvas->drawBitmap(bitmap, loc.fX, loc.fY, paint);
205 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
209 canvas->legacy_drawBitmapRect(bitmap, src, dst, paint, constraint);
213 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
219 canvas->drawBitmap(bitmap, 0, 0, paint);
223 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local
226 canvas->drawBitmapNine(bitmap, src, dst, paint)
    [all...]
  /external/skia/src/pdf/
SkPDFBitmap.cpp 24 // We must check to see if the bitmap has a color table.
27 // We can't use an indexed bitmap with no colortable.
119 // Clamp the range to the edge of the bitmap.
175 static void bitmap_to_pdf_pixels(const SkBitmap& bitmap, SkWStream* out) {
176 if (!bitmap.getPixels()) {
177 size_t size = pixel_count(bitmap) *
178 pdf_color_component_count(bitmap.colorType());
183 const SkBitmap& bm = not4444(bitmap, &copy);
245 static void bitmap_alpha_to_a8(const SkBitmap& bitmap, SkWStream* out) {
246 if (!bitmap.getPixels())
336 SkBitmap bitmap; local
    [all...]
  /external/skia/src/ports/
SkImageDecoder_WIC.cpp 182 //Get the size of the bitmap.
189 //Exit early if we're only looking for the bitmap bounds.
215 piBitmapSourceOriginal.get() //Input bitmap to convert
232 //Copy the pixels into the bitmap.
309 const SkBitmap* bitmap; local
312 bitmap = &bitmapOrig;
317 bitmap = &bitmapCopy;
321 if (!bitmap->isOpaque()) {
322 SkAutoLockPixels alp(*bitmap);
324 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap->getPixels())
    [all...]
  /external/skia/tests/
AAClipTest.cpp 78 SkBitmap bitmap; local
79 bitmap.installPixels(info, mask->fImage, mask->fRowBytes);
87 SkCanvas canvas(bitmap);

Completed in 1172 milliseconds

<<11121314151617181920>>