Home
last modified time | relevance | path

Searched refs:widthPixels (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/util/
DDisplayMetrics.java234 public int widthPixels; field in DisplayMetrics
331 widthPixels = o.widthPixels; in setTo()
348 widthPixels = 0; in setToDefaults()
355 noncompatWidthPixels = widthPixels; in setToDefaults()
392 && widthPixels == other.widthPixels in equalsPhysical()
408 return widthPixels * heightPixels * densityDpi; in hashCode()
413 return "DisplayMetrics{density=" + density + ", width=" + widthPixels + in toString()
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java116 int widthPixels = dm.widthPixels; in onAttachedToWindow() local
130 if (cfg.isScreenRound() && heightPixels < widthPixels) { in onAttachedToWindow()
131 heightPixels = widthPixels; in onAttachedToWindow()
133 applyProportionalLayout(widthPixels, heightPixels); in onAttachedToWindow()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java37 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl()
39 new Mode(0, mMetrics.widthPixels, mMetrics.heightPixels, 60f) in WindowManagerImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java54 return dm.widthPixels; in getWidth()
76 return dm.widthPixels; in getHeight()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java134 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth()
135 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
DFrameworkActionBar.java218 int popupMaxWidth = Math.max(mBridgeContext.getMetrics().widthPixels / 2, in measureContentWidth()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java467 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics()
478 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); in applyToDisplayMetrics()
544 outDm.widthPixels = newWidth; in computeCompatibleScaling()
DResourcesImpl.java204 if (DEBUG_CONFIG) Slog.v(TAG, "Returning DisplayMetrics: " + mMetrics.widthPixels in getDisplayMetrics()
446 if (mMetrics.widthPixels >= mMetrics.heightPixels) { in updateConfiguration()
447 width = mMetrics.widthPixels; in updateConfiguration()
453 height = mMetrics.widthPixels; in updateConfiguration()
DConfiguration.java1320 if (metrics.widthPixels >= metrics.heightPixels) { in writeResConfigToProto()
1321 width = metrics.widthPixels; in writeResConfigToProto()
1327 height = metrics.widthPixels; in writeResConfigToProto()
2436 if (metrics.widthPixels >= metrics.heightPixels) { in resourceQualifierString()
2437 width = metrics.widthPixels; in resourceQualifierString()
2443 height = metrics.widthPixels; in resourceQualifierString()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DResizeHWLayerActivity.java37 int width = metrics.widthPixels; in onCreate()
DBitmapUploadActivity.java59 int minDisplayDimen = Math.min(mMetrics.widthPixels, mMetrics.heightPixels); in onAttachedToWindow()
DSlowNestedRecyclerViewActivity.java53 innerItemWidth = (int) (resources.getDisplayMetrics().widthPixels / 3.3f); in SizeData()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java62 final int displayWidth = dm.widthPixels; in testScaleGestureDetector()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels; in onMeasure()
DActionBarContextView.java121 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitToolbar()
235 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java77 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DClassifierTest.java44 displayMetrics.widthPixels = 1000; in setup()
/frameworks/base/core/java/android/view/
DDisplay.java657 outSize.x = mTempMetrics.widthPixels; in getSize()
672 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels); in getRectSize()
1152 mCachedAppWidthCompat = mTempMetrics.widthPixels; in updateCachedAppSizeIfNeededLocked()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DBitmapLoader.java63 int width = metrics.widthPixels; in getLruCache()
DTestHelper.java231 int width = metrics.widthPixels; in initBackground()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DBitmapUploadActivity.java72 int minDisplayDimen = Math.min(mMetrics.widthPixels, mMetrics.heightPixels); in onAttachedToWindow()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java106 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in DisplayDensityUtils()
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java130 mPosX = metrics.widthPixels/2; in TransformView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java56 mWidthPixels = displayMetrics.widthPixels; in FalsingDataProvider()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java675 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot()
685 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot()
736 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
743 new Rect(0, 0, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in takeScreenshot()

123