/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | PicassoBackgroundManagerTarget.java | 35 @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom loadedFrom) { argument 36 this.mBackgroundManager.setBitmap(bitmap);
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/libs/ |
H A D | picasso-2.5.2.jar | ... .io.IOException byte[] bytes
android.graphics.Bitmap bitmap
java.io.InputStream stream
com.squareup ... |
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | PicassoBackgroundManagerTarget.java | 35 @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom loadedFrom) { argument 36 this.mBackgroundManager.setBitmap(bitmap);
|
/frameworks/support/samples/SupportLeanbackShowcase/libs/ |
H A D | picasso-2.5.2.jar | ... .io.IOException byte[] bytes
android.graphics.Bitmap bitmap
java.io.InputStream stream
com.squareup ... |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 76 * <p>BackgroundManager holds references to potentially large bitmap Drawables. 120 ConstantState(Bitmap bitmap, Matrix matrix) { argument 121 mBitmap = bitmap; 152 BitmapDrawable(Resources resources, Bitmap bitmap) { argument 153 this(resources, bitmap, null); 156 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { argument 157 mState = new ConstantState(bitmap, matrix); 715 * overhead when not visible. It's app's responsibility to restore the drawable/bitmap in 888 * Sets the given bitmap into the background. When using setCoverImageBitmap to set the 889 * background, the provided bitmap wil 893 setBitmap(Bitmap bitmap) argument [all...] |
H A D | DetailsFragmentBackgroundController.java | 80 * protected void onPostExecute(Bitmap bitmap) { 83 * fragment.mController.setCoverBitmap(bitmap); 178 * Example to move bitmap within FitWidthBitmapDrawable: 191 // if bitmap is set before enableParallax, use it as initial value. 424 * @param bitmap bitmap to set as cover. 426 public final void setCoverBitmap(Bitmap bitmap) { argument 427 mCoverBitmap = bitmap; 468 * Sets default parallax offset in pixels for bitmap moving vertically. This method must 482 * Returns Default parallax offset in pixels for bitmap movin [all...] |
H A D | DetailsSupportFragmentBackgroundController.java | 83 * protected void onPostExecute(Bitmap bitmap) { 86 * fragment.mController.setCoverBitmap(bitmap); 181 * Example to move bitmap within FitWidthBitmapDrawable: 194 // if bitmap is set before enableParallax, use it as initial value. 427 * @param bitmap bitmap to set as cover. 429 public final void setCoverBitmap(Bitmap bitmap) { argument 430 mCoverBitmap = bitmap; 471 * Sets default parallax offset in pixels for bitmap moving vertically. This method must 485 * Returns Default parallax offset in pixels for bitmap movin [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | FitWidthBitmapDrawable.java | 32 * Subclass of {@link Drawable} that can be used to draw a bitmap into a region. Bitmap 35 * position of the bitmap can be controlled by {@link #setVerticalOffset(int)} call or 98 * Sets the bitmap. 100 public void setBitmap(Bitmap bitmap) { argument 101 mBitmapState.mBitmap = bitmap; 102 if (bitmap != null) { 103 mBitmapState.mDefaultSource.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); 111 * Returns the bitmap. 118 * Sets the {@link Rect} used for extracting the bitmap [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | PlaybackControlsRow.java | 737 static Bitmap createBitmap(Bitmap bitmap, int color) { argument 738 Bitmap dst = bitmap.copy(bitmap.getConfig(), true); 742 canvas.drawBitmap(bitmap, 0, 0, paint); 817 * @param bm The bitmap to set.
|
H A D | PlaybackSeekDataProvider.java | 33 * Client of thumbnail bitmap being loaded. PlaybackSeekDataProvider must invoke this method 36 * @param bitmap Result of bitmap. 39 public void onThumbnailLoaded(Bitmap bitmap, int index) { argument 54 * Called to get thumbnail bitmap. This method is called on UI thread. When provider finds 55 * cache bitmap, it may invoke {@link ResultCallback#onThumbnailLoaded(Bitmap, int)}
|
H A D | ThumbsBar.java | 218 * Get bitmap of given child index. 225 * Set thumb bitmap for a given index of child. 227 public void setThumbBitmap(int index, Bitmap bitmap) { argument 228 mBitmaps.put(index, bitmap); 229 ((ImageView) getChildAt(index)).setImageBitmap(bitmap);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
H A D | BackgroundManagerTest.java | 88 void setBitmapAndVerify(final BackgroundManager manager, final Bitmap bitmap) argument 93 manager.setBitmap(bitmap); 97 assertIsBitmapDrawable(manager, bitmap); 187 void assertIsBitmapDrawable(BackgroundManager manager, Bitmap bitmap) { argument 193 .mState.mBitmap, bitmap); 195 .mState.mBitmap, bitmap); 208 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 209 Canvas canvas = new Canvas(bitmap); 213 return bitmap; 217 final Bitmap bitmap [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/ |
H A D | FitWidthBitmapDrawableTest.java | 46 private Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); field in class:FitWidthBitmapDrawableTest 53 drawable.setBitmap(bitmap); 67 verify(canvas).drawBitmap(eq(bitmap), eq(bitmapBounds), eq(expectedDest), any(Paint.class)); 75 drawable.setBitmap(bitmap);
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
H A D | TestUtils.java | 43 * This method takes a view and returns a single bitmap that is the layered combination 59 // Create a bitmap 60 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, 62 // Create a canvas that wraps the bitmap 63 final Canvas canvas = new Canvas(bitmap); 94 // the topmost ancestor) and draw their backgrounds into our combined bitmap. At each step 107 return bitmap; 121 // Create a bitmap 122 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, 124 // Create a canvas that wraps the bitmap 149 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument 213 assertCenterPixelOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteControllerDialog.java | 534 Log.w(TAG, "Can't set artwork image with recycled bitmap: " + mArtIconLoadedBitmap); 546 private boolean isBitmapRecycled(Bitmap bitmap) { argument 547 return bitmap != null && bitmap.isRecycled(); 857 final BitmapDrawable bitmap = item.getValue(); 861 object = new OverlayObject(bitmap, bounds).setAlphaAnimation(1.0f, 0.0f) 866 object = new OverlayObject(bitmap, bounds).setTranslateYAnimation(deltaY) 1104 * Clear the bitmap loaded by FetchArtTask. Will be called after the loaded bitmaps are applied 1115 * Bitmap objects first, and then compares URIs only if bitmap is unchanged with 1324 // If overlay bitmap exist [all...] |
H A D | OverlayListView.java | 86 BitmapDrawable bitmap = object.getBitmapDrawable(); 87 if (bitmap != null) { 88 bitmap.draw(canvas); 115 public OverlayObject(BitmapDrawable bitmap, Rect startRect) { argument 116 mBitmap = bitmap; 126 * Returns the bitmap that this object represents.
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 62 * Palette p = Palette.from(bitmap).generate(); 65 * Palette.from(bitmap).generate(new PaletteAsyncListener() { 98 public static Builder from(Bitmap bitmap) { argument 99 return new Builder(bitmap); 115 public static Palette generate(Bitmap bitmap) { argument 116 return from(bitmap).generate(); 123 public static Palette generate(Bitmap bitmap, int numColors) { argument 124 return from(bitmap).maximumColorCount(numColors).generate(); 132 Bitmap bitmap, PaletteAsyncListener listener) { 133 return from(bitmap) 131 generateAsync( Bitmap bitmap, PaletteAsyncListener listener) argument 140 generateAsync( final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) argument 613 Builder(Bitmap bitmap) argument 876 getPixelsFromBitmap(Bitmap bitmap) argument 904 scaleBitmapDown(final Bitmap bitmap) argument [all...] |
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | BitmapCompat.java | 28 public boolean hasMipMap(Bitmap bitmap) { argument 32 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument 35 public int getAllocationByteCount(Bitmap bitmap) { argument 36 return bitmap.getByteCount(); 43 public boolean hasMipMap(Bitmap bitmap){ argument 44 return bitmap.hasMipMap(); 48 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument 49 bitmap.setHasMipMap(hasMipMap); 56 public int getAllocationByteCount(Bitmap bitmap) { argument 57 return bitmap 75 hasMipMap(Bitmap bitmap) argument 79 setHasMipMap(Bitmap bitmap, boolean hasMipMap) argument 90 getAllocationByteCount(Bitmap bitmap) argument [all...] |
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | PointerIconCompat.java | 136 * Creates a custom pointer from the given bitmap and hotspot information. 138 * @param bitmap The bitmap for the icon. 139 * @param hotSpotX The X offset of the pointer icon hotspot in the bitmap. 140 * Must be within the [0, bitmap.getWidth()) range. 141 * @param hotSpotY The Y offset of the pointer icon hotspot in the bitmap. 142 * Must be within the [0, bitmap.getHeight()) range. 143 * @return A pointer icon for this bitmap. 145 * @throws IllegalArgumentException if bitmap is null, or if the x/y hotspot 148 public static PointerIconCompat create(Bitmap bitmap, floa argument [all...] |
/frameworks/support/compat/tests/java/android/support/v4/graphics/drawable/ |
H A D | IconCompatTest.java | 49 private void verifyClippedCircle(Bitmap bitmap, int fillColor, int size) { argument 50 assertEquals(size, bitmap.getHeight()); 51 assertEquals(bitmap.getWidth(), bitmap.getHeight()); 52 assertEquals(fillColor, bitmap.getPixel(size / 2, size / 2)); 54 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, 0)); 55 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, size - 1)); 56 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, 0)); 57 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, size - 1)); 70 Bitmap bitmap [all...] |
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable21.java | 29 protected RoundedBitmapDrawable21(Resources res, Bitmap bitmap) { argument 30 super(res, bitmap);
|
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable.java | 35 * A Drawable that wraps a bitmap and can be drawn with rounded corners. You can create a 40 * transformation of raw bitmap graphics, and should be used when drawing to a 74 * Returns the bitmap used by this drawable to render. May be null. 130 * Get the gravity used to position/stretch the bitmap within its bounds. 132 * @return the gravity applied to the bitmap 141 * Set the gravity used to position/stretch the bitmap within its bounds. 156 * Enables or disables the mipmap hint for this drawable's bitmap. 159 * If the bitmap is null, or the current API version does not support setting a mipmap hint, 162 * @param mipMap True if the bitmap should use mipmaps, false otherwise. 171 * Indicates whether the mipmap hint is enabled on this drawable's bitmap 379 RoundedBitmapDrawable(Resources res, Bitmap bitmap) argument [all...] |
/frameworks/support/core-utils/java/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawableFactory.java | 37 DefaultRoundedBitmapDrawable(Resources res, Bitmap bitmap) { argument 38 super(res, bitmap); 63 * Returns a new drawable by creating it from a bitmap, setting initial target density based on 66 public static RoundedBitmapDrawable create(Resources res, Bitmap bitmap) { argument 68 return new RoundedBitmapDrawable21(res, bitmap); 70 return new DefaultRoundedBitmapDrawable(res, bitmap); 74 * Returns a new drawable, creating it by opening a given file path and decoding the bitmap. 87 * Returns a new drawable, creating it by decoding a bitmap from the given input stream.
|
/frameworks/support/core-utils/java/android/support/v4/print/ |
H A D | PrintHelper.java | 104 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback); argument 144 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) { argument 195 public void printBitmap(String jobName, Bitmap bitmap, argument 206 mPrintHelper.printBitmap(jobName, bitmap, delegateCallback); 355 * Prints a bitmap. 358 * @param bitmap The bitmap to print. 360 public void printBitmap(String jobName, Bitmap bitmap) { argument 361 mImpl.printBitmap(jobName, bitmap, null); 365 * Prints a bitmap 371 printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) argument [all...] |
/frameworks/support/core-utils/kitkat/android/support/v4/print/ |
H A D | PrintHelperKitkat.java | 188 * Check if the supplied bitmap should best be printed on a portrait orientation paper. 190 * @param bitmap The bitmap to be printed. 193 private static boolean isPortrait(Bitmap bitmap) { argument 194 if (bitmap.getWidth() <= bitmap.getHeight()) { 222 * Prints a bitmap. 225 * @param bitmap The bitmap to print. 228 public void printBitmap(final String jobName, final Bitmap bitmap, argument 324 writeBitmap(final PrintAttributes attributes, final int fittingMode, final Bitmap bitmap, final ParcelFileDescriptor fileDescriptor, final CancellationSignal cancellationSignal, final PrintDocumentAdapter.WriteResultCallback writeResultCallback) argument [all...] |