Home
last modified time | relevance | path

Searched refs:displayWidth (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/packages/Shell/src/com/android/shell/
DScreenshooter.java47 final int displayWidth = displaySize.x; in takeScreenshot() local
51 Rect crop = new Rect(0, 0, displayWidth, displayHeight); in takeScreenshot()
52 Log.d(TAG, "Taking screenshot of dimensions " + displayWidth + " x " + displayHeight); in takeScreenshot()
55 SurfaceControl.screenshot(crop, displayWidth, displayHeight, rotation); in takeScreenshot()
57 Log.e(TAG, "Failed to take screenshot of dimensions " + displayWidth + " x " in takeScreenshot()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DRenderSurfaceCreationArgs.h38 int32_t displayWidth; member
67 RenderSurfaceCreationArgsBuilder& setDisplayWidth(int32_t displayWidth) { in setDisplayWidth() argument
68 mArgs.displayWidth = displayWidth; in setDisplayWidth()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java62 final int displayWidth = dm.widthPixels; in testScaleGestureDetector() local
66 final int centerX = displayWidth / 2; in testScaleGestureDetector()
72 new float[] {0.75f * displayWidth, 0.25f * displayHeight}; in testScaleGestureDetector()
75 new float[] {0.25f * displayWidth, 0.75f * displayHeight}; in testScaleGestureDetector()
/frameworks/base/core/java/com/android/internal/policy/
DDockedDividerUtils.java35 int displayWidth, int displayHeight, int dividerSize) { in calculateBoundsForPosition() argument
36 outRect.set(0, 0, displayWidth, displayHeight); in calculateBoundsForPosition()
100 int displayWidth, int displayHeight, int dividerSize) { in calculateMiddlePosition() argument
104 : displayWidth - insets.right; in calculateMiddlePosition()
DDividerSnapAlgorithm.java103 public DividerSnapAlgorithm(Resources res, int displayWidth, int displayHeight, int dividerSize, in DividerSnapAlgorithm() argument
105 this(res, displayWidth, displayHeight, dividerSize, isHorizontalDivision, insets, in DividerSnapAlgorithm()
109 public DividerSnapAlgorithm(Resources res, int displayWidth, int displayHeight, int dividerSize, in DividerSnapAlgorithm() argument
111 this(res, displayWidth, displayHeight, dividerSize, isHorizontalDivision, insets, in DividerSnapAlgorithm()
115 public DividerSnapAlgorithm(Resources res, int displayWidth, int displayHeight, int dividerSize, in DividerSnapAlgorithm() argument
122 mDisplayWidth = displayWidth; in DividerSnapAlgorithm()
DPipSnapAlgorithm.java342 public Size getSizeForAspectRatio(float aspectRatio, float minEdgeSize, int displayWidth, in getSizeForAspectRatio() argument
344 final int smallestDisplaySize = Math.min(displayWidth, displayHeight); in getSizeForAspectRatio()
/frameworks/base/core/java/android/view/
DDisplayCutout.java602 …public static DisplayCutout fromResourcesRectApproximation(Resources res, int displayWidth, int di… in fromResourcesRectApproximation() argument
604 displayWidth, displayHeight, DENSITY_DEVICE_STABLE / (float) DENSITY_DEFAULT); in fromResourcesRectApproximation()
612 public static Path pathFromResources(Resources res, int displayWidth, int displayHeight) { in pathFromResources() argument
615 displayWidth, displayHeight, DENSITY_DEVICE_STABLE / (float) DENSITY_DEFAULT).first; in pathFromResources()
624 public static DisplayCutout fromSpec(String spec, int displayWidth, int displayHeight, in fromSpec() argument
626 return pathAndDisplayCutoutFromSpec(spec, displayWidth, displayHeight, density).second; in fromSpec()
630 int displayWidth, int displayHeight, float density) { in pathAndDisplayCutoutFromSpec() argument
635 if (spec.equals(sCachedSpec) && sCachedDisplayWidth == displayWidth in pathAndDisplayCutoutFromSpec()
645 offsetX = displayWidth; in pathAndDisplayCutoutFromSpec()
651 offsetX = displayWidth / 2f; in pathAndDisplayCutoutFromSpec()
[all …]
/frameworks/av/include/private/media/
DVideoFrame.h39 uint32_t displayWidth, uint32_t displayHeight, in VideoFrame() argument
43 mDisplayWidth(displayWidth), mDisplayHeight(displayHeight), in VideoFrame()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dvop.cpp412 video->displayWidth = video->width = (int) BitstreamReadBits16(stream, 13); in DecodeVOLHeader()
1092 video->displayWidth = video->width = 128; in DecodeShortHeader()
1102 video->displayWidth = video->width = 176; in DecodeShortHeader()
1112 video->displayWidth = video->width = 352; in DecodeShortHeader()
1122 video->displayWidth = video->width = 704; in DecodeShortHeader()
1132 video->displayWidth = video->width = 1408; in DecodeShortHeader()
1175 video->displayWidth = video->width = 128; in DecodeShortHeader()
1185 video->displayWidth = video->width = 176; in DecodeShortHeader()
1195 video->displayWidth = video->width = 352; in DecodeShortHeader()
1205 video->displayWidth = video->width = 704; in DecodeShortHeader()
[all …]
Dmp4lib_int.h245 int displayWidth; /* Handle image whose size is not a multiple of 16. */ member
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp69 const ssize_t displayWidth = info.w; in setupBackgroundSurface() local
74 mComposerClient->createSurface(SURFACE_NAME, displayWidth, displayHeight, in setupBackgroundSurface()
87 const ssize_t displayWidth = 100; in setupVirtualDisplay() local
92 mComposerClient->createSurface(SURFACE_NAME, displayWidth, displayHeight, in setupVirtualDisplay()
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp61 int32_t displayWidth, displayHeight; in allocVideoFrame() local
65 displayWidth = (width * sarWidth) / sarHeight; in allocVideoFrame()
67 } else if (trackMeta->findInt32(kKeyDisplayWidth, &displayWidth) in allocVideoFrame()
69 && displayWidth > 0 && displayHeight > 0 in allocVideoFrame()
71 ALOGV("found display size %dx%d", displayWidth, displayHeight); in allocVideoFrame()
73 displayWidth = width; in allocVideoFrame()
77 VideoFrame frame(width, height, displayWidth, displayHeight, in allocVideoFrame()
/frameworks/base/media/jni/
Dandroid_media_MediaMetadataRetriever.cpp280 uint32_t width, height, displayWidth, displayHeight; in getBitmapFromVideoFrame() local
286 displayWidth = videoFrame->mDisplayHeight; in getBitmapFromVideoFrame()
291 displayWidth = videoFrame->mDisplayWidth; in getBitmapFromVideoFrame()
327 dst_width = displayWidth; in getBitmapFromVideoFrame()
330 float factor = std::min((float)dst_width / (float)displayWidth, in getBitmapFromVideoFrame()
332 dst_width = std::round(displayWidth * factor); in getBitmapFromVideoFrame()
/frameworks/av/cmds/stagefright/
Dstream.cpp327 ssize_t displayWidth = info.w; in main() local
330 ALOGV("display is %zd x %zd\n", displayWidth, displayHeight); in main()
335 displayWidth, in main()
Dcodec.cpp420 ssize_t displayWidth = info.w; in main() local
423 ALOGV("display is %zd x %zd\n", displayWidth, displayHeight); in main()
427 displayWidth, in main()
Dmediafilter.cpp757 ssize_t displayWidth = info.w; in main() local
760 ALOGV("display is %zd x %zd", displayWidth, displayHeight); in main()
763 String8("A Surface"), displayWidth, displayHeight, in main()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java45 int displayWidth, int displayHeight) { in computeSafeInsets() argument
50 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp2037 int32_t displayWidth, displayHeight; in updateVideoSize() local
2048 displayWidth = cropRight - cropLeft + 1; in updateVideoSize()
2054 displayWidth, in updateVideoSize()
2058 CHECK(inputFormat->findInt32("width", &displayWidth)); in updateVideoSize()
2061 ALOGV("Video input format %d x %d", displayWidth, displayHeight); in updateVideoSize()
2071 displayWidth = (displayWidth * sarWidth) / sarHeight; in updateVideoSize()
2073 ALOGV("display dimensions %d x %d", displayWidth, displayHeight); in updateVideoSize()
2079 && displayWidth > 0 && displayHeight > 0) { in updateVideoSize()
2080 if (displayHeight * (int64_t)width / height > (int64_t)displayWidth) { in updateVideoSize()
2081 displayHeight = (int32_t)(displayWidth * (int64_t)height / width); in updateVideoSize()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DInvocationLightsView.java96 int displayWidth = DisplayUtils.getWidth(context); in InvocationLightsView() local
99 mStrokeWidth / 2, displayWidth, displayHeight); in InvocationLightsView()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java464 final int displayWidth = dc.mInitialDisplayWidth; in testDisplayCutout_rot90() local
468 final int left = (displayWidth - cutoutWidth) / 2; in testDisplayCutout_rot90()
470 final int right = (displayWidth + cutoutWidth) / 2; in testDisplayCutout_rot90()
477 .computeSafeInsets(displayWidth, displayHeight).getDisplayCutout(); in testDisplayCutout_rot90()
494 .computeSafeInsets(displayHeight, displayWidth) in testDisplayCutout_rot90()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java144 int displayWidth = portrait ? mDisplayInfo.logicalWidth : mDisplayInfo.logicalHeight; in checkIfShouldStopTransition() local
147 && (frameWidth < displayWidth || frameHeight < displayHeight); in checkIfShouldStopTransition()
/frameworks/base/services/core/java/com/android/server/wm/
DDockedStackDividerController.java234 final int displayWidth = parentConfig.windowConfiguration.getBounds().width(); in getHomeStackBoundsInDockedMode() local
237 parentConfig.windowConfiguration.getRotation(), displayWidth, displayHeight, in getHomeStackBoundsInDockedMode() local
244 displayWidth, displayHeight); in getHomeStackBoundsInDockedMode()
250 int right = displayWidth - mTmpRect.right; in getHomeStackBoundsInDockedMode()
DDisplayPolicy.java1514 final int displayWidth = displayFrames.mDisplayWidth; in layoutScreenDecorWindows() local
1539 } else if (frame.right >= displayWidth) { in layoutScreenDecorWindows()
1545 + " displayWidth=" + displayWidth + " displayHeight=" + displayHeight); in layoutScreenDecorWindows()
1547 } else if (frame.right >= displayWidth && frame.bottom >= displayHeight) { in layoutScreenDecorWindows()
1558 + " displayWidth=" + displayWidth + " displayHeight=" + displayHeight); in layoutScreenDecorWindows()
1564 + " displayWidth=" + displayWidth + " displayHeight=" + displayHeight); in layoutScreenDecorWindows()
1653 final int displayWidth = displayFrames.mDisplayWidth; in layoutNavigationBar() local
1655 mNavigationBarPosition = navigationBarPosition(displayWidth, displayHeight, rotation); in layoutNavigationBar()
1667 navigationFrame.set(0, topNavBar, displayWidth, displayFrames.mUnrestricted.bottom); in layoutNavigationBar()
2959 public void getStableInsetsLw(int displayRotation, int displayWidth, int displayHeight, in getStableInsetsLw() argument
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp55 mSize(args.displayWidth, args.displayHeight) { in RenderSurface()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp2064 const long long displayWidth = vtrack->GetDisplayWidth(); in addTracks() local
2066 if (displayWidth > 0 && displayWidth <= INT32_MAX in addTracks()
2071 AMEDIAFORMAT_KEY_DISPLAY_WIDTH, (int32_t)displayWidth); in addTracks()
2083 std::max(width, height * displayWidth / displayHeight); in addTracks()
2085 std::max(height, width * displayHeight / displayWidth); in addTracks()

12