Home
last modified time | relevance | path

Searched refs:pixelFormat (Results 1 – 15 of 15) sorted by relevance

/aosp14/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DSurfaceCompositionMeasuringActivity.java127 configureSurfacesAndWait(0, pixelFormat, false); in measureCompositionScore()
158 configureSurfacesAndWait(0, pixelFormat, false); in measureAllocationScore()
222 updateSystemInfo(pixelFormat); in doTest()
411 measureFPS(medianSurfaceCnt, pixelFormat)); in measureCompositionScore()
445 updateSystemInfo(pixelFormat); in waitForSurfacesConfigured()
461 view.setMode(pixelFormat, invalidate); in configureSurfaces()
477 waitForSurfacesConfigured(pixelFormat); in configureSurfacesAndWait()
512 private void updateSystemInfo(int pixelFormat) { in updateSystemInfo() argument
549 public static String getPixelFormatInfo(int pixelFormat) { in getPixelFormatInfo() argument
550 switch (pixelFormat) { in getPixelFormatInfo()
[all …]
H A DSurfaceCompositionTest.java75 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceCompositionPerformance() local
76 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceCompositionPerformance()
77 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance()
84 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceCompositionPerformance()
98 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceAllocationPerformance() local
99 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceAllocationPerformance()
100 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance()
108 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceAllocationPerformance()
H A DCustomSurfaceView.java96 public void setMode(int pixelFormat, boolean drawNameOnReady) { in setMode() argument
98 getHolder().setFormat(pixelFormat); in setMode()
/aosp14/frameworks/base/libs/hwui/
H A DDeviceInfo.cpp61 AHardwareBuffer_Format pixelFormat; in updateDisplayInfo() local
62 ADisplay_getPreferredWideColorFormat(displays[i], &dataspace, &pixelFormat); in updateDisplayInfo()
64 if (pixelFormat == AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM) { in updateDisplayInfo()
66 } else if (pixelFormat == AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT) { in updateDisplayInfo()
69 LOG_ALWAYS_FATAL("Unreachable: unsupported pixel format: %d", pixelFormat); in updateDisplayInfo()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DAbsAppSnapshotController.java208 TaskSnapshot snapshot(TYPE source, int pixelFormat) { in snapshot() argument
210 if (!prepareTaskSnapshot(source, pixelFormat, builder)) { in snapshot()
240 float scaleFraction, int pixelFormat, Point outTaskSize, TaskSnapshot.Builder builder) { in createSnapshot() argument
285 pixelFormat, excludeLayers); in createSnapshot()
315 boolean prepareTaskSnapshot(TYPE source, int pixelFormat, TaskSnapshot.Builder builder) { in prepareTaskSnapshot() argument
332 if (pixelFormat == PixelFormat.UNKNOWN) { in prepareTaskSnapshot()
333 pixelFormat = use16BitFormat() && activity.fillsParent() in prepareTaskSnapshot()
338 final boolean isTranslucent = PixelFormat.formatHasAlpha(pixelFormat) in prepareTaskSnapshot()
341 builder.setPixelFormat(pixelFormat); in prepareTaskSnapshot()
H A DTaskSnapshotController.java213 int pixelFormat) { in createImeSnapshot() argument
226 bounds, 1.0f, pixelFormat, null); in createImeSnapshot()
242 final int pixelFormat = mPersistInfoProvider.use16BitFormat() in snapshotImeFromAttachedTask() local
245 return createImeSnapshot(task, pixelFormat); in snapshotImeFromAttachedTask()
/aosp14/frameworks/base/core/jni/
H A Dandroid_hardware_HardwareBuffer.cpp76 int pixelFormat = android_hardware_HardwareBuffer_convertToPixelFormat(format); in android_hardware_HardwareBuffer_create() local
77 if (pixelFormat == 0) { in android_hardware_HardwareBuffer_create()
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create()
H A Dandroid_window_ScreenCapture.cpp40 jfieldID pixelFormat; member
143 captureArgs.pixelFormat = static_cast<ui::PixelFormat>( in getCaptureArgs()
144 env->GetIntField(captureArgsObject, gCaptureArgsClassInfo.pixelFormat)); in getCaptureArgs()
302 gCaptureArgsClassInfo.pixelFormat = GetFieldIDOrDie(env, captureArgsClazz, "mPixelFormat", "I"); in register_android_window_ScreenCapture()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotControllerTest.java156 final int pixelFormat = PixelFormat.RGBA_8888; in testSnapshotBuilder() local
177 builder.setPixelFormat(pixelFormat); in testSnapshotBuilder()
181 assertEquals(pixelFormat, builder.getPixelFormat()); in testSnapshotBuilder()
/aosp14/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp434 jint pixelFormat = postProcessAndRelease(env, jdecoder, std::move(canvas)); in ImageDecoder_nDecodeBitmap() local
440 switch (pixelFormat) { in ImageDecoder_nDecodeBitmap()
451 msg.printf("invalid return from postProcess: %i", pixelFormat); in ImageDecoder_nDecodeBitmap()
459 msg.printf("incompatible return from postProcess: %i", pixelFormat); in ImageDecoder_nDecodeBitmap()
H A DYuvToJpegEncoder.h22 static YuvToJpegEncoder* create(int pixelFormat, int* strides);
/aosp14/frameworks/base/core/java/android/window/
H A DTaskSnapshot.java416 public Builder setPixelFormat(int pixelFormat) {
417 mPixelFormat = pixelFormat;
H A DScreenCapture.java373 public T setPixelFormat(int pixelFormat) { in setPixelFormat() argument
374 mPixelFormat = pixelFormat; in setPixelFormat()
H A DSnapshotDrawerUtils.java403 int pixelFormat, IBinder token) { in createLayoutParameters() argument
421 layoutParams.format = pixelFormat; in createLayoutParameters()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DSplashscreenContentDrawer.java237 CharSequence title, int pixelFormat, IBinder appToken) { in createLayoutParameters() argument
242 params.format = pixelFormat; in createLayoutParameters()