Skip to content

Instantly share code, notes, and snippets.

@tg44
Created July 16, 2016 21:09
Show Gist options
  • Save tg44/ddb5e911b36838f580084e45e51a15a2 to your computer and use it in GitHub Desktop.
Save tg44/ddb5e911b36838f580084e45e51a15a2 to your computer and use it in GitHub Desktop.
adb shell dumpsys | grep Width
C:\adb\src
λ adb shell dumpsys | grep Width
requiresSmallestWidthDp=0 compatibleWidthLimitDp=0 largestWidthLimitDp=0
requiresSmallestWidthDp=0 compatibleWidthLimitDp=0 largestWidthLimitDp=0
requiresSmallestWidthDp=0 compatibleWidthLimitDp=0 largestWidthLimitDp=0
requiresSmallestWidthDp=0 compatibleWidthLimitDp=0 largestWidthLimitDp=0
requiresSmallestWidthDp=0 compatibleWidthLimitDp=0 largestWidthLimitDp=0
options=Bundle[{appWidgetMaxHeight=492, appWidgetCategory=1, appWidgetMaxWidth=492, appWidgetMinHeight=306, appWidgetMinWidth=336}]
options=Bundle[{appWidgetMaxHeight=111, appWidgetCategory=1, appWidgetMaxWidth=492, appWidgetMinHeight=64, appWidgetMinWidth=336}]
options=Bundle[{appWidgetMaxHeight=492, appWidgetCategory=1, appWidgetMaxWidth=492, appWidgetMinHeight=306, appWidgetMinWidth=336}]
options=Bundle[{appWidgetMaxHeight=238, appWidgetCategory=1, appWidgetMaxWidth=492, appWidgetMinHeight=145, appWidgetMinWidth=336}]
mDefaultViewport=DisplayViewport{valid=true, displayId=0, orientation=0, logicalFrame=Rect(0, 0 - 720, 1280), physicalFrame=Rect(0, 0 - 720, 1280), deviceWidth=720, deviceHeight=1280}
mExternalTouchViewport=DisplayViewport{valid=false, displayId=0, orientation=0, logicalFrame=Rect(0, 0 - 0, 0), physicalFrame=Rect(0, 0 - 0, 0), deviceWidth=0, deviceHeight=0}
mAdvertisedDisplayWidth=0
mDisplayWidth=720
SurfaceWidth: 720px
SwipeMaxWidthRatio: 0.2
mWidth=1440 mHeight=1280
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment