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

<<21222324252627282930>>

  /frameworks/base/services/core/java/com/android/server/
AssetAtlasService.java 24 import android.graphics.Bitmap;
118 // Describes how bitmaps are placed in the atlas. Each bitmap is
120 // long0: SkBitmap*, the native bitmap object
123 // long3: rotated, 1 if the bitmap must be rotated, 0 otherwise
137 Collection<Bitmap> bitmaps = new HashSet<Bitmap>(300);
154 ArrayList<Bitmap> sortedBitmaps = new ArrayList<Bitmap>(bitmaps);
156 // The comparator will sort the bitmap by width first, then by height
157 Collections.sort(sortedBitmaps, new Comparator<Bitmap>() {
277 final Bitmap bitmap = mBitmaps.get(i); local
729 final Bitmap bitmap = mBitmaps.get(i); local
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GLDepthTestActivity.java 23 import android.graphics.Bitmap;
243 Bitmap bitmap; local
245 bitmap = BitmapFactory.decodeStream(is);
254 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
255 bitmap.recycle();
  /packages/apps/Email/tests/src/com/android/email/provider/
AttachmentProviderTests.java 23 import android.graphics.Bitmap;
661 Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), local
664 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
ImageCurves.java 20 import android.graphics.Bitmap;
336 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> {
338 protected int[] doInBackground(Bitmap... params) {
340 Bitmap bitmap = params[0]; local
341 int w = bitmap.getWidth();
342 int h = bitmap.getHeight();
344 bitmap.getPixels(pixels, 0, w, 0, 0, w, h);
  /art/runtime/gc/collector/
mark_compact.cc 95 // Set the bit in the bitmap so that we know to restore it later.
124 // Visit all the marked objects in the bitmap.
137 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap.
189 // Bitmap which describes which objects we have to move.
192 // Bitmap which describes which lock words we need to restore.
355 // No mod union table, so we need to scan the space using bitmap visit.
356 // Scan the space using bitmap visit.
357 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); local
358 if (bitmap != nullptr)
    [all...]
  /art/runtime/gc/space/
large_object_space.cc 499 accounting::LargeObjectBitmap* bitmap = space->GetLiveBitmap(); local
501 bitmap->Clear(ptrs[i]);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
NinePatchDrawableTest.java 27 import android.graphics.Bitmap;
37 import android.graphics.Bitmap.Config;
70 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0);
88 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888);
211 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
222 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
233 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
244 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
254 // Known failure: Bug 2834281 - Bitmap#hasAlpha seems to return true fo
299 Bitmap bitmap = Bitmap.createBitmap(COLOR, width, height, Bitmap.Config.RGB_565); local
347 Bitmap bitmap = getBitmapUnscaled(resId); local
355 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); local
    [all...]
VectorDrawableTest.java 20 import android.graphics.Bitmap;
106 private Bitmap mBitmap;
115 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
129 // Setup VectorDrawable from xml file and draw into the bitmap.
152 Bitmap golden = BitmapFactory.decodeResource(mResources, goldenImages[i]);
159 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index) throws IOException {
179 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out)
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
ActivityTestBase.java 19 import android.graphics.Bitmap;
119 static int[] getBitmapPixels(Bitmap bitmap) {
120 int[] pixels = new int[bitmap.getWidth() * bitmap.getHeight()];
121 bitmap.getPixels(pixels, 0, bitmap.getWidth(),
122 0, 0, bitmap.getWidth(), bitmap.getHeight());
126 private Bitmap takeScreenshotImpl()
    [all...]
  /developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/
MainActivity.java 23 import android.graphics.Bitmap;
150 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo); local
155 mLayout.setBackground(new BitmapDrawable(getResources(), bitmap));
175 * Extracts {@link android.graphics.Bitmap} data from the
178 private Bitmap loadBitmapFromAsset(GoogleApiClient apiClient, Asset asset) {
  /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.
87 // Bitmap found in memory cache
105 * Set placeholder bitmap that shows when the the background thread is running.
107 * @param bitmap
109 public void setLoadingImage(Bitmap bitmap) {
110 mLoadingBitmap = bitmap;
258 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.
87 // Bitmap found in memory cache
105 * Set placeholder bitmap that shows when the the background thread is running.
107 * @param bitmap
109 public void setLoadingImage(Bitmap bitmap) {
110 mLoadingBitmap = bitmap;
258 Bitmap bitmap = null; local
    [all...]
  /developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/
MainActivity.java 23 import android.graphics.Bitmap;
150 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo); local
155 mLayout.setBackground(new BitmapDrawable(getResources(), bitmap));
175 * Extracts {@link android.graphics.Bitmap} data from the
178 private Bitmap loadBitmapFromAsset(GoogleApiClient apiClient, Asset asset) {
  /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/DataLayer/Wearable/src/com.example.android.wearable.datalayer/
MainActivity.java 23 import android.graphics.Bitmap;
150 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo); local
155 mLayout.setBackground(new BitmapDrawable(getResources(), bitmap));
175 * Extracts {@link android.graphics.Bitmap} data from the
178 private Bitmap loadBitmapFromAsset(GoogleApiClient apiClient, Asset asset) {
  /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.
87 // Bitmap found in memory cache
105 * Set placeholder bitmap that shows when the the background thread is running.
107 * @param bitmap
109 public void setLoadingImage(Bitmap bitmap) {
110 mLoadingBitmap = bitmap;
258 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/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/chromium_org/chrome/browser/android/
tab_android.cc 644 ScopedJavaLocalRef<jobject> bitmap; local
649 return bitmap;
651 // If the favicon isn't valid, it will return a default bitmap.
677 bitmap = gfx::ConvertToJavaBitmap(&favicon);
679 return bitmap;
  /external/chromium_org/components/search_provider_logos/
logo_tracker_unittest.cc 52 const SkBitmap& bitmap) {
54 gfx::Image::CreateFrom1xBitmap(bitmap).As1xPNGBytes();
60 std::string EncodeBitmapAsPNGBase64(const SkBitmap& bitmap) {
61 scoped_refptr<base::RefCountedString> png_bytes = EncodeBitmapAsPNG(bitmap);
68 SkBitmap bitmap; local
69 bitmap.allocN32Pixels(width, height);
70 bitmap.eraseColor(SK_ColorBLUE);
71 return bitmap;
285 SkBitmap bitmap = variable
289 FROM_HERE, base::Bind(image_decoded_callback, bitmap));
    [all...]
  /external/chromium_org/content/browser/renderer_host/
render_widget_host_view_browsertest.cc 110 const SkBitmap& bitmap) {
114 EXPECT_FALSE(bitmap.empty());
422 const SkBitmap& bitmap) {
431 EXPECT_EQ(expected_bitmap.width(), bitmap.width());
432 EXPECT_EQ(expected_bitmap.height(), bitmap.height());
433 EXPECT_EQ(expected_bitmap.colorType(), bitmap.colorType());
435 SkAutoLockPixels bitmap_lock(bitmap);
437 for (int i = 0; i < bitmap.width() && fails < 10; ++i) {
438 for (int j = 0; j < bitmap.height() && fails < 10; ++j) {
443 SkColor color = bitmap.getColor(i, j)
491 SkBitmap bitmap; local
    [all...]

Completed in 1217 milliseconds

<<21222324252627282930>>