/aosp14/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | SurfaceCompositionMeasuringActivity.java | 127 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 D | SurfaceCompositionTest.java | 75 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 D | CustomSurfaceView.java | 96 public void setMode(int pixelFormat, boolean drawNameOnReady) { in setMode() argument 98 getHolder().setFormat(pixelFormat); in setMode()
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | DeviceInfo.cpp | 61 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 D | AbsAppSnapshotController.java | 208 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 D | TaskSnapshotController.java | 213 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 D | android_hardware_HardwareBuffer.cpp | 76 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 D | android_window_ScreenCapture.cpp | 40 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 D | TaskSnapshotControllerTest.java | 156 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 D | ImageDecoder.cpp | 434 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 D | YuvToJpegEncoder.h | 22 static YuvToJpegEncoder* create(int pixelFormat, int* strides);
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | TaskSnapshot.java | 416 public Builder setPixelFormat(int pixelFormat) { 417 mPixelFormat = pixelFormat;
|
H A D | ScreenCapture.java | 373 public T setPixelFormat(int pixelFormat) { in setPixelFormat() argument 374 mPixelFormat = pixelFormat; in setPixelFormat()
|
H A D | SnapshotDrawerUtils.java | 403 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 D | SplashscreenContentDrawer.java | 237 CharSequence title, int pixelFormat, IBinder appToken) { in createLayoutParameters() argument 242 params.format = pixelFormat; in createLayoutParameters()
|