Home
last modified time | relevance | path

Searched refs:PixelFormat (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/base/graphics/java/android/graphics/
DPixelFormat.java24 public class PixelFormat { class
94 public static void getPixelFormatInfo(int format, PixelFormat info) { in getPixelFormatInfo()
134 case PixelFormat.A_8: in formatHasAlpha()
135 case PixelFormat.LA_88: in formatHasAlpha()
136 case PixelFormat.RGBA_4444: in formatHasAlpha()
137 case PixelFormat.RGBA_5551: in formatHasAlpha()
138 case PixelFormat.RGBA_8888: in formatHasAlpha()
139 case PixelFormat.TRANSLUCENT: in formatHasAlpha()
140 case PixelFormat.TRANSPARENT: in formatHasAlpha()
/frameworks/base/media/java/android/media/
DImageUtils.java20 import android.graphics.PixelFormat;
51 case PixelFormat.RGB_565: in getNumPlanesForFormat()
52 case PixelFormat.RGBA_8888: in getNumPlanesForFormat()
53 case PixelFormat.RGBX_8888: in getNumPlanesForFormat()
54 case PixelFormat.RGB_888: in getNumPlanesForFormat()
206 case PixelFormat.RGB_565: in getEstimatedNativeAllocBytes()
214 case PixelFormat.RGB_888: in getEstimatedNativeAllocBytes()
217 case PixelFormat.RGBA_8888: in getEstimatedNativeAllocBytes()
218 case PixelFormat.RGBX_8888: in getEstimatedNativeAllocBytes()
245 case PixelFormat.RGB_565: in getEffectivePlaneSizeForImage()
[all …]
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java29 import android.graphics.PixelFormat;
79 PixelFormat.TRANSLUCENT,
80 PixelFormat.TRANSPARENT,
81 PixelFormat.OPAQUE,
82 PixelFormat.RGBA_8888,
83 PixelFormat.RGBX_8888,
84 PixelFormat.RGB_888,
85 PixelFormat.RGB_565,
376 updateSystemInfo(PixelFormat.UNKNOWN); in onResume()
553 case PixelFormat.TRANSLUCENT: in getPixelFormatInfo()
[all …]
DSurfaceCompositionTest.java19 import android.graphics.PixelFormat;
44 PixelFormat.TRANSLUCENT,
45 PixelFormat.OPAQUE,
87 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceCompositionPerformance()
111 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceAllocationPerformance()
/frameworks/native/include/ui/
DGraphicBuffer.h75 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
79 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
93 PixelFormat getPixelFormat() const { return format; } in getPixelFormat()
103 PixelFormat inFormat, uint32_t inUsage);
106 PixelFormat inFormat, uint32_t inUsage);
161 status_t initSize(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
DPixelFormat.h65 typedef int32_t PixelFormat; typedef
67 uint32_t bytesPerPixel(PixelFormat format);
68 uint32_t bitsPerPixel(PixelFormat format);
DGraphicBufferAllocator.h64 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage,
77 PixelFormat format;
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java42 import android.graphics.PixelFormat;
891 public abstract @PixelFormat.Opacity int getOpacity(); in getOpacity()
908 public static @PixelFormat.Opacity int resolveOpacity(@PixelFormat.Opacity int op1, in resolveOpacity()
909 @PixelFormat.Opacity int op2) { in resolveOpacity()
913 if (op1 == PixelFormat.UNKNOWN || op2 == PixelFormat.UNKNOWN) { in resolveOpacity()
914 return PixelFormat.UNKNOWN; in resolveOpacity()
916 if (op1 == PixelFormat.TRANSLUCENT || op2 == PixelFormat.TRANSLUCENT) { in resolveOpacity()
917 return PixelFormat.TRANSLUCENT; in resolveOpacity()
919 if (op1 == PixelFormat.TRANSPARENT || op2 == PixelFormat.TRANSPARENT) { in resolveOpacity()
920 return PixelFormat.TRANSPARENT; in resolveOpacity()
[all …]
DPictureDrawable.java23 import android.graphics.PixelFormat;
87 return PixelFormat.TRANSLUCENT; in getOpacity()
DScaleDrawable.java30 import android.graphics.PixelFormat;
201 return PixelFormat.TRANSPARENT; in getOpacity()
205 if (opacity == PixelFormat.OPAQUE && d.getLevel() < MAX_LEVEL) { in getOpacity()
206 return PixelFormat.TRANSLUCENT; in getOpacity()
DColorDrawable.java213 return PixelFormat.TRANSLUCENT; in getOpacity()
218 return PixelFormat.OPAQUE; in getOpacity()
220 return PixelFormat.TRANSPARENT; in getOpacity()
222 return PixelFormat.TRANSLUCENT; in getOpacity()
DClipDrawable.java160 if (opacity == PixelFormat.TRANSPARENT || dr.getLevel() == 0) { in getOpacity()
161 return PixelFormat.TRANSPARENT; in getOpacity()
170 return PixelFormat.TRANSLUCENT; in getOpacity()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java25 import android.graphics.PixelFormat;
410 && mSplitBackground.getOpacity() == PixelFormat.OPAQUE) { in getOpacity()
411 return PixelFormat.OPAQUE; in getOpacity()
415 || mStackedBackground.getOpacity() != PixelFormat.OPAQUE)) { in getOpacity()
416 return PixelFormat.UNKNOWN; in getOpacity()
419 && mBackground.getOpacity() == PixelFormat.OPAQUE) { in getOpacity()
420 return PixelFormat.OPAQUE; in getOpacity()
424 return PixelFormat.UNKNOWN; in getOpacity()
/frameworks/native/libs/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel()
39 uint32_t bitsPerPixel(PixelFormat format) { in bitsPerPixel()
/frameworks/native/libs/gui/
DIGraphicBufferAlloc.cpp48 uint32_t height, PixelFormat format, uint32_t usage, in createGraphicBuffer()
102 PixelFormat format = static_cast<PixelFormat>(data.readInt32()); in onTransact()
DISurfaceComposerClient.cpp57 uint32_t height, PixelFormat format, uint32_t flags, in createSurface()
116 PixelFormat format = static_cast<PixelFormat>(data.readInt32()); in onTransact()
/frameworks/base/services/core/java/com/android/server/wm/
DEmulatorDisplayOverlay.java27 import android.graphics.PixelFormat;
62 mScreenSize.x, mScreenSize.y, PixelFormat.TRANSLUCENT, in EmulatorDisplayOverlay()
66 mScreenSize.y, PixelFormat.TRANSLUCENT, SurfaceControl.HIDDEN); in EmulatorDisplayOverlay()
DCircularDisplayMask.java27 import android.graphics.PixelFormat;
72 mScreenSize.x, mScreenSize.y, PixelFormat.TRANSLUCENT, in CircularDisplayMask()
76 mScreenSize.y, PixelFormat.TRANSLUCENT, SurfaceControl.HIDDEN); in CircularDisplayMask()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java25 import android.graphics.PixelFormat;
365 return PixelFormat.TRANSLUCENT; in getOpacity()
372 ? PixelFormat.TRANSLUCENT : PixelFormat.OPAQUE; in getOpacity()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DFullscreenOverdrawActivity.java23 import android.graphics.PixelFormat;
66 return PixelFormat.OPAQUE; in getOpacity()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DVirtualDisplaySurface.h107 uint32_t h, PixelFormat format, uint32_t usage);
121 PixelFormat format, uint32_t usage);
137 status_t dequeueBuffer(Source source, PixelFormat format, uint32_t usage,
/frameworks/support/design/base/android/support/design/widget/
DCircularBorderDrawable.java24 import android.graphics.PixelFormat;
142 return mBorderWidth > 0 ? PixelFormat.TRANSLUCENT : PixelFormat.TRANSPARENT; in getOpacity()
/frameworks/native/include/gui/
DCpuConsumer.h50 PixelFormat format;
61 PixelFormat flexFormat;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipRecentsOverlayManager.java20 import android.graphics.PixelFormat;
107 PixelFormat.TRANSLUCENT); in initViews()
113 PixelFormat.TRANSLUCENT); in initViews()
/frameworks/native/services/surfaceflinger/
DClient.cpp111 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, in createSurface()
128 PixelFormat format; in createSurface()
133 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, in createSurface()

1234567