Home
last modified time | relevance | path

Searched refs:outputBitmap (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java157 Bitmap outputBitmap = outputImage.toBitmap(); in testFaceSquareFilter() local
158 int[] outputPixels = new int[outputBitmap.getByteCount()]; in testFaceSquareFilter()
159 outputBitmap.getPixels(outputPixels, 0, outputBitmap.getWidth(), 0, 0, in testFaceSquareFilter()
160 outputBitmap.getWidth(), outputBitmap.getHeight()); in testFaceSquareFilter()
162 for ( int i = 0; i < outputBitmap.getByteCount(); i++) { in testFaceSquareFilter()
167 if (equalCount + (0.05f*outputBitmap.getByteCount()) < outputBitmap.getByteCount()) { in testFaceSquareFilter()
169 assertEquals(equalCount, outputBitmap.getByteCount()); in testFaceSquareFilter()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java132 /*package*/ static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
133 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
137 outputBitmap.setDensity(density); in setDensityFromOptions()
149 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
153 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java562 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) { in setDensityFromOptions() argument
563 if (outputBitmap == null || opts == null) return; in setDensityFromOptions()
567 outputBitmap.setDensity(density); in setDensityFromOptions()
573 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions()
576 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
580 outputBitmap.setDensity(Bitmap.getDefaultDensity()); in setDensityFromOptions()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp461 SkBitmap outputBitmap; in doDecode() local
483 outputBitmap.setInfo(SkImageInfo::Make(scaledWidth, scaledHeight, in doDecode()
485 if (!outputBitmap.tryAllocPixels(outputAllocator, NULL)) { in doDecode()
499 SkCanvas canvas(outputBitmap); in doDecode()
503 outputBitmap.swap(decodingBitmap); in doDecode()
517 if (outputBitmap.pixelRef() == NULL) { in doDecode()
523 outputBitmap.setImmutable(); in doDecode()
528 GraphicsJNI::reinitBitmap(env, javaBitmap, outputBitmap.info(), isPremultiplied); in doDecode()
529 outputBitmap.notifyPixelsChanged(); in doDecode()