Home
last modified time | relevance | path

Searched defs:bitmap (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/frameworks/base/opengl/java/android/opengl/
DGLUtils.java40 public static int getInternalFormat(Bitmap bitmap) { in getInternalFormat()
62 public static int getType(Bitmap bitmap) { in getType()
99 Bitmap bitmap, int border) { in texImage2D()
125 Bitmap bitmap, int type, int border) { in texImage2D()
146 public static void texImage2D(int target, int level, Bitmap bitmap, in texImage2D()
182 Bitmap bitmap) { in texSubImage2D()
207 Bitmap bitmap, int format, int type) { in texSubImage2D()
264 private static native int native_getInternalFormat(Bitmap bitmap); in native_getInternalFormat()
265 private static native int native_getType(Bitmap bitmap); in native_getType()
267 Bitmap bitmap, int type, int border); in native_texImage2D()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt45 val bitmap = in setUp() constant
109 val bitmap = in validBitmapResource_loadDrawable_returnsBitmapDrawable() constant
128 val bitmap = in validBitmapResource_loadBitmap_returnsBitmapDrawable() constant
141 val bitmap = in validBitmapUri_returnsBitmapDrawable() constant
156 val bitmap = BitmapFactory.decodeFile(imgFile.absolutePath) in validBitmapFile_returnsBitmapDrawable() constant
164 val bitmap = BitmapFactory.decodeFile(imgFile.absolutePath) in validInputStream_returnsBitmapDrawable() constant
173 val bitmap = in validBitmapIcon_returnsBitmapDrawable() constant
185 val bitmap = in validBitmapIcon_loadSize_returnsNull() constant
196 val bitmap = in validUriIcon_returnsBitmapDrawable() constant
221 val bitmap = in validDataIcon_returnsBitmapDrawable() constant
[all …]
/frameworks/base/libs/hwui/platform/host/
DReadback.cpp27 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto()
31 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto()
35 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto()
40 SkBitmap* bitmap) { in copyImageInto()
45 SkBitmap* bitmap) { in copyLayerInto()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DBitmapSerializeUtils.java43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) { in readBitmapPixels()
53 public static void writeBitmapPixels(Bitmap bitmap, ParcelFileDescriptor destination) { in writeBitmapPixels()
57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); in nativeReadBitmapPixels()
59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); in nativeWriteBitmapPixels()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DWallpaperLocalColorExtractorTest.java108 Bitmap bitmap = mock(Bitmap.class); in getMockBitmap() local
202 Bitmap bitmap = getMockBitmap(width, height); in testMiniBitmapCreation() local
223 Bitmap bitmap = getMockBitmap(width, height); in testSmallMiniBitmapCreation() local
239 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testNewColorExtraction() local
272 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testRemoveColors() local
310 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testRecomputeColorExtraction() local
357 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testRecomputeColors() local
372 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testRecomputeColorsBeforeBitmapLoaded() local
386 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testRecomputeColorsOnDimChanged() local
400 Bitmap bitmap = getMockBitmap(HIGH_BMP_WIDTH, HIGH_BMP_HEIGHT); in testRecomputeColorsOnDimChangedBeforeBitmapLoaded() local
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java116 Bitmap bitmap, float scale, boolean recycle) { in resizeBitmapByScale()
130 private static Bitmap.Config getConfig(Bitmap bitmap) { in getConfig()
139 Bitmap bitmap, int maxLength, boolean recycle) { in resizeDownBySideLength()
148 public static Bitmap resizeAndCropCenter(Bitmap bitmap, int size, boolean recycle) { in resizeAndCropCenter()
169 public static void recycleSilently(Bitmap bitmap) { in recycleSilently()
184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); in rotateBitmap() local
207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); in createVideoThumbnail() local
237 public static byte[] compressToBytes(Bitmap bitmap) { in compressToBytes()
241 public static byte[] compressToBytes(Bitmap bitmap, int quality) { in compressToBytes()
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp35 Bitmap* bitmap = GraphicsJNI::getNativeBitmap(env, bitmapObj); in ABitmap_acquireBitmapFromJava() local
43 void ABitmap_acquireRef(ABitmap* bitmap) { in ABitmap_acquireRef()
47 void ABitmap_releaseRef(ABitmap* bitmap) { in ABitmap_releaseRef()
138 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getInfo() local
143 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getDataSpace() local
156 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getPixels() local
172 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_notifyPixelsChanged() local
295 SkBitmap bitmap; in ABitmap_compress() local
308 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getHardwareBuffer() local
DTypeCast.h32 static inline Bitmap& toBitmapRef(const ABitmap* bitmap) { in toBitmapRef()
36 static inline Bitmap* toBitmap(ABitmap* bitmap) { in toBitmap()
40 static inline ABitmap* toABitmap(Bitmap* bitmap) { in toABitmap()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
DBitmapUtils.java35 final Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in renderDrawableToByteArray() local
47 final Bitmap bitmap = Bitmap.createBitmap(APP_ICON_BITMAP_DIMENSION, in renderDrawableToByteArray() local
60 private static byte[] renderBitmapToByteArray(Bitmap bitmap) { in renderBitmapToByteArray()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DBitmapTexture.java31 public BitmapTexture(Bitmap bitmap) { in BitmapTexture()
35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) { in BitmapTexture()
42 protected void onFreeBitmap(Bitmap bitmap) { in onFreeBitmap()
DUploadedTexture.java124 Bitmap bitmap = sBorderLines.get(key); in getBorderLine() local
129 sBorderLines.put(key.clone(), bitmap); in getBorderLine() local
166 protected abstract void onFreeBitmap(Bitmap bitmap); in onFreeBitmap()
193 Bitmap bitmap = getBitmap(); in updateContent() local
212 Bitmap bitmap = getBitmap(); in uploadToCanvas() local
/frameworks/base/libs/hwui/jni/
DBitmap.cpp46 explicit BitmapWrapper(Bitmap* bitmap) in BitmapWrapper()
63 Bitmap& bitmap() { in bitmap() function in android::BitmapWrapper
169 namespace bitmap { namespace
194 jobject createBitmap(JNIEnv* env, Bitmap* bitmap, in createBitmap()
219 LocalScopedBitmap bitmap(bitmapHandle); in toSkBitmap() local
235 Bitmap* GraphicsJNI::getNativeBitmap(JNIEnv* env, jobject bitmap) { in getNativeBitmap()
244 SkImageInfo GraphicsJNI::getBitmapInfo(JNIEnv* env, jobject bitmap, uint32_t* outRowBytes, in getBitmapInfo()
310 SkBitmap bitmap; in Bitmap_creator() local
378 sk_sp<Bitmap> bitmap(Bitmap::allocateHardwareBitmap(src)); in Bitmap_copy() local
398 auto bitmap = allocator.getStorageObjAndReset(); in Bitmap_copy() local
[all …]
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/
DBitmapUtils.kt45 val bitmap = BitmapFactory.decodeResource(context.resources, bitmapResourceId, options) in getBitmapSize() constant
65 val bitmap = Bitmap.createBitmap(view.measuredWidth, view.measuredHeight, config) in generateBitmapFromView() constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotNotificationSmartActionsTest.java76 Bitmap bitmap = mock(Bitmap.class); in testExceptionHandlingInGetSmartActionsFuture() local
121 Bitmap bitmap = mock(Bitmap.class); in testUnsupportedBitmapConfiguration() local
137 Bitmap bitmap = mock(Bitmap.class); in testScreenshotNotificationSmartActionsProviderInvokedOnce() local
151 Bitmap bitmap = mock(Bitmap.class); in testSupportedBitmapConfiguration() local
DRequestProcessorTest.kt71 val bitmap = makeHardwareBitmap(100, 100) in <lambda>() constant
124 val bitmap = makeHardwareBitmap(100, 100) in <lambda>() constant
150 val bitmap = makeHardwareBitmap(100, 100) in <lambda>() constant
/frameworks/base/native/graphics/jni/
Dbitmap.cpp39 android::graphics::Bitmap bitmap(env, jbitmap); in AndroidBitmap_getDataSpace() local
52 android::graphics::Bitmap bitmap(env, jbitmap); in AndroidBitmap_lockPixels() local
72 android::graphics::Bitmap bitmap(env, jbitmap); in AndroidBitmap_unlockPixels() local
88 android::graphics::Bitmap bitmap(env, jbitmap); in AndroidBitmap_getHardwareBuffer() local
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaMetadataRetrieverTest.java121 Bitmap bitmap = retriever.getFrameAtTime(-1); in testThumbnailCapture() local
199 Bitmap bitmap = retriever.getFrameAtTime(-1); in testBasicNormalMethodCallSequence() local
306 Bitmap bitmap = retriever.getFrameAtTime(-1); in testGetFrameAtTimeWithRGBA8888Flag_Set() local
320 Bitmap bitmap = retriever.getFrameAtTime(-1); in testGetFrameAtTimeWithRGBA8888Flag_Unset() local
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/data/repository/
DWallpaperFileUtils.kt84 val bitmap = BitmapFactory.decodeFile(absolutePath) in importBitmapFromAbsolutePath() constant
113 val bitmap = BitmapFactory.decodeStream(inputStream) in importBitmapFromLocalStorage() constant
/frameworks/base/libs/hwui/
DReadback.cpp175 SkBitmap* bitmap = &skBitmap; in copySurfaceInto() local
273 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto()
280 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto()
300 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto()
306 SkBitmap* bitmap) { in copyImageInto()
346 SkBitmap* bitmap) { in copyLayerInto()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java141 public BitmapDrawable(Bitmap bitmap) { in BitmapDrawable()
152 public BitmapDrawable(Resources res, Bitmap bitmap) { in BitmapDrawable()
174 Bitmap bitmap = null; in BitmapDrawable() local
207 Bitmap bitmap = null; in BitmapDrawable() local
240 final Bitmap bitmap = mBitmapState.mBitmap; in computeBitmapSize() local
252 public void setBitmap(@Nullable Bitmap bitmap) { in setBitmap()
498 final Bitmap bitmap = mBitmapState.mBitmap; in onBoundsChange() local
507 final Bitmap bitmap = mBitmapState.mBitmap; in draw() local
584 private void updateShaderMatrix(@NonNull Bitmap bitmap, @NonNull Paint paint, in updateShaderMatrix()
850 Bitmap bitmap = null; in updateStateFromTypedArray() local
[all …]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java165 Bitmap bitmap; in addBitmapDrawable() local
191 Bitmap bitmap; in addCanvasBitmap() local
215 Bitmap bitmap; in loadAndPrintDpi() local
229 public ScaledBitmapView(Context context, Bitmap bitmap) { in ScaledBitmapView()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DPixelCopyWindow.java86 final Bitmap bitmap = Bitmap.createBitmap( in takeScreenshot() local
88 PixelCopy.request(getWindow(), srcRect, bitmap, (result) -> { in takeScreenshot() local
/frameworks/base/packages/SettingsLib/Spa/screenshot/src/com/android/settingslib/spa/screenshot/util/
DBitmap.kt30 val bitmap = in View() constant
/frameworks/base/tests/InputScreenshotTest/src/android/input/screenshot/
DBitmap.kt30 val bitmap = in View() constant
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DBitmapLoader.java94 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.ARGB_8888); in doInBackground() local
111 protected void onPostExecute(Bitmap bitmap) { in onPostExecute()
122 Bitmap bitmap = getLruCache(context).get(id); in loadBitmap() local

12345678910>>...12